I dont think this is a bug, but rather a dependency problem. Here is the error:
g++ -o libs/ardour/audioengine.os -c -Woverloaded-virtual -DGTK_NEW_TOOLTIP_API -DPACKAGE=“libardour3” -DLIBSIGC_DISABLE_DEPRECATED -DGLIBMM_EXCEPTIONS_ENABLED -DDATA_DIR="/usr/local/share" -DMODULE_DIR="/usr/local/lib" -DVAMP_DIR="/usr/local/lib/ardour3/vamp" -DCONFIG_DIR="/usr/local/etc" -DLOCALEDIR="/usr/local/share/locale" -DHAVE_JACK_CLIENT_OPEN -DHAVE_JACK_RECOMPUTE_LATENCIES -DHAVE_JACK_RECOMPUTE_LATENCY -DHAVE_JACK_VIDEO_SUPPORT -DHAVE_WORDEXP -DHAVE_SYS_VFS_H -DHAVE_SLV2 -O3 -fomit-frame-pointer -ffast-math -fstrength-reduce -pipe -DARCH_X86 -mmmx -march=i686 -msse -mfpmath=sse -DUSE_XMMINTRIN -DBUILD_SSE_OPTIMIZATIONS -Wall -DWITH_JACK_MIDI -Ilibs -DENABLE_NLS -DHAVE_SLV2 -D_REENTRANT -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -Ilibs -pthread -DUSE_RUBBERBAND -fPIC -I/usr/local/include -Ilibs/pbd -I/usr/include/glib-2.0 -Ilibs/surfaces/control_protocol -Ilibs/midi++2 -Ilibs/glibmm2/glib -Ilibs/sigc++2 -Ilibs/vamp-sdk -I/usr/lib/glib-2.0/include -Ilibs/ardour -Ilibs/taglib/taglib -Ilibs/rubberband -I/usr/include/rasqal -Ilibs/evoral -I/usr/include/libxml2 -Ilibs/evoral/src/libsmf -Ilibs/taglib libs/ardour/audioengine.cc
libs/ardour/audioengine.cc: In member function ‘bool ARDOUR::AudioEngine::get_sync_offset(ARDOUR::nframes_t&) const’:
libs/ardour/audioengine.cc:231: error: ‘offset’ was not declared in this scope
scons: *** [libs/ardour/audioengine.os] Error 1
scons: building terminated because of errors.
make: *** [build-stamp] Error 2
dpkg-buildpackage: failure: debian/rules build gave error exit status 2
debuild: fatal error at line 1334:
dpkg-buildpackage -rfakeroot -D -us -uc failed
Please help me? Thanks in advance.