cd /dev/shm/portage/app-office/ledger-3.1/work/ledger-3.1_build/src && /usr/lib64/ccache/bin/x86_64-pc-linux-gnu-g++ -Dlibledger_EXPORTS -DNDEBUG -march=native -O2 -pipe -fPIC -I/dev/shm/portage/app-office/ledger-3.1/work/ledger-3.1/lib -I/dev/shm/portage/app-office/ledger-3.1/work/ledger-3.1/lib/utfcpp/source -I/dev/shm/portage/app-office/ledger-3.1/work/ledger-3.1_build -std=c++11 -o CMakeFiles/libledger.dir/emacs.cc.o -c /dev/shm/portage/app-office/ledger-3.1/work/ledger-3.1/src/emacs.cc In file included from /usr/include/boost/date_time/gregorian/gregorian_io.hpp:15:0, from /usr/include/boost/date_time/gregorian/gregorian.hpp:31, from /usr/include/boost/date_time/posix_time/time_formatters.hpp:12, from /usr/include/boost/date_time/posix_time/posix_time.hpp:24, from /dev/shm/portage/app-office/ledger-3.1/work/ledger-3.1_build/system.hh:174, from /dev/shm/portage/app-office/ledger-3.1/work/ledger-3.1/src/csv.cc:32: /usr/include/boost/io/ios_state.hpp: In destructor ‘boost::io::ios_pword_saver::~ios_pword_saver()’: /usr/include/boost/io/ios_state.hpp:309:17: error: ‘class boost::io::ios_pword_saver’ has no member named ‘restore’ { this->restore(); } ^ /usr/include/boost/io/ios_state.hpp: In member function ‘void boost::io::ios_pword_saver::__data_selector()’: /usr/include/boost/io/ios_state.hpp:312:11: error: ‘__glibc_reserved4’ was not declared in this scope { s_save_.pword( i_save_ ) = a_save_; } ^ /usr/include/boost/io/ios_state.hpp: At global scope: /usr/include/boost/io/ios_state.hpp:328:5: error: expected unqualified-id before ‘typedef’ typedef ::std::ios_base state_type; ^ /usr/include/boost/io/ios_state.hpp:330: confused by earlier errors, bailing out src/CMakeFiles/libledger.dir/build.make:103: recipe for target 'src/CMakeFiles/libledger.dir/csv.cc.o' failed
Portage 2.2.18 (python 2.7.8-final-0, default/linux/amd64/13.0/developer, gcc-4.9.2, glibc-2.20-r2, 4.1.0-rc1 x86_64) ================================================================= System uname: Linux-4.1.0-rc1-x86_64-Intel-R-_Core-TM-_i7-2600K_CPU_@_3.40GHz-with-gentoo-2.2 KiB Mem: 32914240 total, 21797904 free KiB Swap: 0 total, 0 free Timestamp of repository gentoo: Sat, 28 Feb 2015 19:00:01 +0000 sh bash 4.3_p33-r2 ld GNU ld (Gentoo 2.25 p1.0) 2.25 ccache version 3.1.9 [enabled] app-shells/bash: 4.3_p33-r2::gentoo dev-java/java-config: 2.2.0::gentoo dev-lang/perl: 5.20.1-r4::gentoo dev-lang/python: 2.7.8::gentoo, 3.1.5-r1::gentoo, 3.2.5-r4::gentoo, 3.3.5-r1::gentoo, 3.4.0::gentoo dev-util/ccache: 3.1.9-r3::gentoo dev-util/cmake: 2.8.12.1-r2::gentoo dev-util/pkgconfig: 0.28-r2::gentoo sys-apps/baselayout: 2.2::gentoo sys-apps/openrc: 9999::gentoo sys-apps/sandbox: 2.6-r1::gentoo sys-devel/autoconf: 2.13::gentoo, 2.69::gentoo sys-devel/automake: 1.4_p6-r1::gentoo, 1.5-r1::gentoo, 1.6.3-r1::gentoo, 1.7.9-r2::gentoo, 1.8.5-r4::gentoo, 1.9.6-r3::gentoo, 1.10.3::gentoo, 1.11.6::gentoo, 1.12.6::gentoo, 1.13.4::gentoo, 1.14.1::gentoo sys-devel/binutils: 2.25::gentoo sys-devel/gcc: 4.2.4-r1::gentoo, 4.3.6-r1::gentoo, 4.4.5::gentoo, 4.5.4::gentoo, 4.6.3::gentoo, 4.7.4::gentoo, 4.8.4::gentoo, 4.9.2::gentoo sys-devel/gcc-config: 1.8::gentoo sys-devel/libtool: 2.4.6::gentoo sys-devel/make: 4.1-r1::gentoo sys-kernel/linux-headers: 4.0::gentoo (virtual/os-headers) sys-libs/glibc: 2.20-r2::gentoo Repositories: gentoo location: /code/gentoo/gentoo-cvs/gentoo-x86 sync-type: rsync sync-uri: rsync://rsync.gentoo.org/gentoo-portage priority: -1000 usr-local location: /usr/local/portage masters: gentoo mysql priority: 0 oss-overlay location: /code/layman/oss-overlay masters: gentoo priority: 1 mysql location: /code/gentoo/gentoo-git/mysql masters: gentoo priority: 2 robbat2 location: /code/gentoo/gentoo-git/robbat2 masters: gentoo priority: 3 bitcoin location: /code/layman/bitcoin masters: gentoo priority: 4 ACCEPT_KEYWORDS="amd64 ~amd64" ACCEPT_LICENSE="* @EULA" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=native -O2 -pipe -frecord-gcc-switches" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /opt/openjms/config /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/maven-bin-2.0/conf /usr/share/maven-bin-2.1/conf /usr/share/maven-bin-2.2/conf /usr/share/maven-bin-3.0/conf /usr/share/maven-bin-3.1/conf /usr/share/polkit-1/actions /var/bind /var/lib/hsqldb /var/spool/munin-async/.ssh" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.3/ext-active/ /etc/php/apache2-php5.4/ext-active/ /etc/php/apache2-php5.5/ext-active/ /etc/php/cgi-php5.3/ext-active/ /etc/php/cgi-php5.4/ext-active/ /etc/php/cgi-php5.5/ext-active/ /etc/php/cli-php5.3/ext-active/ /etc/php/cli-php5.4/ext-active/ /etc/php/cli-php5.5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c" CXXFLAGS="-march=native -O2 -pipe" DISTDIR="/home/gentoo/distfiles" FCFLAGS="-O2 -pipe" FEATURES="assume-digests binpkg-logs buildpkg ccache collision-protect config-protect-if-modified distlocks ebuild-locks fixlafiles lmirror merge-sync mirror multilib-strict news parallel-fetch preserve-libs protect-owned sandbox sfperms splitdebug strict test-fail-continue unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr" FFLAGS="-O2 -pipe" GENTOO_MIRRORS="http://gentoo.osuosl.org/" LANG="en_US.UTF-8" LDFLAGS="-Wl,--hash-style=gnu -Wl,-O1 -Wl,--as-needed -Wl,--build-id" MAKEOPTS="-j8 -l10" PKGDIR="/home/gentoo/packages/bohr-int/" PORTAGE_CONFIGROOT="/" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages" PORTAGE_TMPDIR="/dev/shm" USE="a52 aac aalib acl acpi adns adplug agg aio alsa amd64 amr animgif ares arts audiofile audit avahi avx bash-completion berkdb bluetooth bonjour bzip2 cairo calendar cdaudio cdda cddb cdio cdparanoia cdr chardet chm clamav cli consolekit cracklib crypt cscope css ctype cups curl curlwrappers cvs cxx d3d daap dbus dc1394 designer-plugin dia diskio djbfft djvu dri dts dv dvb dvd dvdr dvdread ebook emf encode exif expat fam ffmpeg fftw firefox flac fltk fontconfig foomaticdb fortran gd gdbm geoip gif gimp glamor glut gmp gnokii gnutls gps graphviz gsm gstreamer hal ical iconv id3tag idea ieee1394 imagemagick imlib inkjar ipod ipv6 jack java5 java6 javacomm jbig jingle jpeg jpeg2k lash lcms ldap libgcrypt libnotify libsamplerate llvm llvm-shared-libs lm_sensors logitech-mouse lzma lzo mad maildir mhash midi mikmod mmap mmx mmxext mng modplug modules mozilla mp3 mp3tunes mp4 mpeg mplayer mudflap multilib multitarget musepack nas ncurses nls nocd nptl nptlonly nsplugin offensive ofx ogg openal opencl openexr opengl openmp oss otr pam pango pccntl pch pcre pda pdf perl plotutils png policykit posix postscript povray ppds pulseaudio python qt3support quicktime raw rdesktop readline reflection rpc rss ruby savedconfig scanner sdl semantic-desktop session sid simplexml slp smp sms smux sndfile snmp sockets socks5 solver speex spell spl sqlite sqlite3 sse sse2 ssl ssse3 startup-notification subversion svg symlink sysfs syslog sysvipc taglib theora threads tidy tiff timidity truetype tta twolame udev udisks unicode upower urandom usb v4l v4l2 vcd vcdx videos vim-syntax vnc vorbis vorbis-psy wavpack webkit wideband wifi win32codecs wma wmf wxwidgets x264 xanim xattr xcb xcomposite xfs xine xinerama xinetd xml xorg xosd xpm xrandr xscreensaver xsl xulrunner xv xvid zeroconf zlib" ABI_X86="64 32" ALSA_CARDS="hda-intel usb-audio usb-usx2y ad1816a ad1848 ad1848-lib ad1889 serial-u16550 virmidi seq-dummy dummy" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias asis auth_digest imagemap log_forensic proxy proxy_ajp proxy_balancer proxy_connect proxy_ftp proxy_http cern_meta cgi cgid dbd dumpio ident proxy_scgi reqtimeout substitute version authn_dbd" APACHE2_MPMS="worker" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" ELIBC="glibc" FOO2ZJS_DEVICES="hp1020" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ublox ubx" GRUB_PLATFORMS="pc efi-32 efi-64" INPUT_DEVICES="evdev keyboard mouse void wacom" KERNEL="linux" LCD_DEVICES="g15 glk graphlcd iowarrior ncurses null png ppm text usbhub usblcd X xosd" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en_CA en_GB en_ZA en_US en af" OFFICE_IMPLEMENTATION="libreoffice" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_2 python3_3" RUBY_TARGETS="ruby19 ruby20 ruby21" USERLAND="GNU" VIDEO_CARDS="dummy fbdev ati radeon v4l vga vesa radeonhd r600 nouveau" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
which boost version? Upstream says it should work with >=1.49. Could you try older boost?
(In reply to Jan Matějka from comment #2) > which boost version? > > Upstream says it should work with >=1.49. Could you try older boost? I looked into this [1], and it seems that Ledger won't work with 1.58. It *will* work with 1.57, but media-sound/ncmpcpp won't, forcing anyone with both installed to downgrade to boost-1.56. Other ~arch consumers such as inkscape and geeqie still work fine with boost-1.56 through 1.58 (as far as I tested). It seems that, for now anyway, only ncmpcpp and ledger are having trouble. [1]: https://bugs.gentoo.org/show_bug.cgi?id=572810#c5
I'll get 3.1.1 pushed this weekend, perhaps with python integration.
Fixed in 4fd570e04759fdba7f23ffdf96a4716a39d05150 by constraining the boost version. Also, version 3.1.1 is now available (adds USE=python!)