This is most likely a gcc6 bug. When compiling ledger with clang via DEB_BUILD_MAINT_OPTIONS=reproducible=-fixdebugpath CC=clang-3.8 CXX=clang++-3.8 dpkg-buildpackage
the package compiles successfully. Note, that clang-3.8 is needed otherwise linking fails due to bug #797917.