The build always fail with the same error related to boost. I have tried to rebuild boost, turn off 'ccache' and set MAKEOPTS="-j2", but none of these would resolve this issue. I have tried revdep-build and no broken libs found on my system. I could not downgrade boost, because it is bound with the latest gcc, which is very difficult to downgrade. Detailed build.log and emerge --info are in the Additional Information section. Below is the summary of the build error: Linking CXX executable autooptimiser cd /var/tmp/portage/media-gfx/hugin-2012.0.0/work/hugin-2012.0.0_build/src/tools && /usr/bin/cmake -E cmake_link_script CMakeFiles/autooptimiser.dir/link.txt --verbose=1 /usr/bin/x86_64-pc-linux-gnu-g++ -O2 -pipe -Wl,-O1 -Wl,--as-needed CMakeFiles/autooptimiser.dir/autooptimiser.cpp.o -o autooptimiser -rdynamic ../hugin_base/libhuginbase.so.0.0 -lboost_thread-mt -lboost_date_time-mt -lboost_regex-mt -lboost_filesystem-mt -lboost_iostreams-mt -lboost_system-mt -lboost_signals-mt -lpano13 -lGLEW ../foreign/levmar/libhuginlevmar.a ../foreign/vigra/vigra_impex/libhuginvigraimpex.so.0.0 -lImath -lIlmImf -lIex -lHalf -lIlmThread -ljpeg -ltiff -lpng -lz -lz -lexiv2 -lpthread -lImath -lIlmImf -lIex -lHalf -lIlmThread -ljpeg -lpng -lz ../hugin_base/makefilelib/libmakefilelib.so.0.0 -lpthread -lGLU -lGL -lSM -lICE -lX11 -lXext -lglut -lXmu -lXi -lpthread -lGLU -lGL -lSM -lICE -lX11 -lXext -lglut -lXmu -lXi -lboost_thread-mt -lboost_date_time-mt -lboost_regex-mt -lboost_filesystem-mt -lboost_iostreams-mt -lboost_system-mt -lboost_signals-mt -lpano13 -lGLEW -ltiff -lexiv2 -llensfun -Wl,-rpath,/var/tmp/portage/media-gfx/hugin-2012.0.0/work/hugin-2012.0.0_build/src/hugin_base:/var/tmp/portage/media-gfx/hugin-2012.0.0/work/hugin-2012.0.0_build/src/foreign/vigra/vigra_impex:/var/tmp/portage/media-gfx/hugin-2012.0.0/work/hugin-2012.0.0_build/src/hugin_base/makefilelib: ../hugin_base/libhuginbase.so.0.0: undefined reference to `boost::thread::join()' ../hugin_base/libhuginbase.so.0.0: undefined reference to `boost::thread::start_thread()' collect2: error: ld returned 1 exit status make[2]: *** [src/tools/autooptimiser] Error 1 make[2]: Leaving directory `/var/tmp/portage/media-gfx/hugin-2012.0.0/work/hugin-2012.0.0_build' make[1]: *** [src/tools/CMakeFiles/autooptimiser.dir/all] Error 2 make[1]: Leaving directory `/var/tmp/portage/media-gfx/hugin-2012.0.0/work/hugin-2012.0.0_build' make: *** [all] Error 2 Reproducible: Always Steps to Reproduce: 1. eix-sync 2. emerge hugin 3. Actual Results: hugin failed to build Expected Results: hugin build successfully build log: http://bpaste.net/show/133668/ emerge --info: http://bpaste.net/show/133669/
(In reply to Xi from comment #0) > build log: http://bpaste.net/show/133668/ 1) Please attach the entire build log to this bug report. > emerge --info: http://bpaste.net/show/133669/ 2) Please post your `emerge --info' output in a comment.
Created attachment 359046 [details] Bad Boost build suspected.
Please run: objdump -T /usr/lib/libboost_*.so.1* |grep 'boost.*thread.*join' in a console. You should see a few lines, one of which would look like: 000000000013050 g DF .text 0000000000000949 Base _ZN5boost6thread4joinEv if not please rebuild your boost library.
$ emerge --info Portage 2.2.4 (default/linux/amd64/13.0/desktop/kde, gcc-4.7.3, glibc-2.17, 3.10.10-gentoo x86_64) ================================================================= System uname: Linux-3.10.10-gentoo-x86_64-Intel-R-_Core-TM-_i5-3210M_CPU_@_2.50GHz-with-gentoo-2.2 KiB Mem: 8035740 total, 2303960 free KiB Swap: 0 total, 0 free Timestamp of tree: Sat, 14 Sep 2013 02:45:01 +0000 ld GNU ld (GNU Binutils) 2.23.2 distcc 3.1 x86_64-pc-linux-gnu [disabled] ccache version 3.1.9 [enabled] app-shells/bash: 4.2_p45 dev-java/java-config: 2.2.0 dev-lang/python: 2.7.5-r2, 3.2.5-r2, 3.3.2-r2 dev-util/ccache: 3.1.9-r1 dev-util/cmake: 2.8.10.2-r2 dev-util/pkgconfig: 0.28 sys-apps/baselayout: 2.2 sys-apps/openrc: 0.12 sys-apps/sandbox: 2.6-r1 sys-devel/autoconf: 2.13, 2.69 sys-devel/automake: 1.11.6, 1.12.6, 1.14 sys-devel/binutils: 2.23.2 sys-devel/gcc: 4.7.3 sys-devel/gcc-config: 1.8 sys-devel/libtool: 2.4.2 sys-devel/make: 3.82-r4 sys-kernel/linux-headers: 3.11 (virtual/os-headers) sys-libs/glibc: 2.17 Repositories: gentoo ACCEPT_KEYWORDS="amd64 ~amd64" ACCEPT_LICENSE="* -@EULA AdobeFlash-11.x Intel-SDP" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-O2 -pipe" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /var/lib/hsqldb" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo" CXXFLAGS="-O2 -pipe" DISTDIR="/usr/portage/distfiles" FCFLAGS="-O2 -pipe" FEATURES="assume-digests binpkg-logs ccache config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync" FFLAGS="-O2 -pipe" GENTOO_MIRRORS="http://mirrors.sohu.com/gentoo/ http://mirrors.163.com/gentoo/" LANG="en_US.UTF-8" LDFLAGS="-Wl,-O1 -Wl,--as-needed" MAKEOPTS="-j5" PKGDIR="/usr/portage/packages" 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="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="" SYNC="rsync://rsync.us.gentoo.org/gentoo-portage" USE="X a52 aac acl acpi alsa amd64 bash-completion berkdb bluetooth branding bzip2 cairo cdda cjk cli cracklib crypt cxx dbus declarative dri dts dvd dvdr emboss encode exif fam firefox flac fortran gdbm gif gtk iconv icu jpeg kde kipi lcms libnotify mad mmx mng modules mp3 mp4 mpeg mudflap multilib ncurses nls nptl ogg opengl openmp pam pango pcre pdf phonon plasma png policykit ppds pulseaudio python qt3support qt4 readline sdl semantic-desktop session spell sse sse2 ssl ssse3 startup-notification svg systemd tcpd threads tiff truetype udev udisks unicode upower usb vim-syntax vorbis wxwidgets x264 xcb xcomposite xinerama xml xscreensaver xv xvid zlib" ABI_X86="64" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd 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 cgi cgid 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" 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" ELIBC="glibc" 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 ubx" GRUB_PLATFORMS="pc" INPUT_DEVICES="evdev synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_2" RUBY_TARGETS="ruby19 ruby18" USERLAND="GNU" VIDEO_CARDS="intel" 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
Created attachment 359086 [details] build.log
According to your build log the hugin build reads some information from files in /usr/include/boost-1_51. Do you really still have that version installed? On one of my machines these files were left orphaned after boost-1.51 was removed. Try manually removing the entire /usr/include/boost-1_51 directory, unless it's still owned by some package.
(In reply to Gabriel Homeier from comment #3) > Please run: > > objdump -T /usr/lib/libboost_*.so.1* |grep 'boost.*thread.*join' > > in a console. > You should see a few lines, one of which would look like: > > 000000000013050 g DF .text 0000000000000949 Base > _ZN5boost6thread4joinEv > > if not please rebuild your boost library. Below is the output. It does not look correct...but I don't understand. I have rebuild the boost lib with/without 'ccache' for many times, why the lib would be incorrect? I did not file the bug right after I saw this issue, I tried to rebuild almost everything I can think of. $ objdump -T /usr/lib/libboost_*.so.1* |grep 'boost.*thread.*join' 000000000000fce0 g DF .text 00000000000001bc Base _ZN5boost6thread26do_try_join_until_noexceptERK8timespecRb 000000000000f3a0 g DF .text 0000000000000060 Base _ZNK5boost6thread8joinableEv 000000000000fea0 g DF .text 00000000000003ce Base _ZN5boost6thread13join_noexceptEv
(In reply to Magnus Kessler from comment #6) > According to your build log the hugin build reads some information from > files in /usr/include/boost-1_51. Do you really still have that version > installed? On one of my machines these files were left orphaned after > boost-1.51 was removed. Try manually removing the entire > /usr/include/boost-1_51 directory, unless it's still owned by some package. That is a very acute observation!!! Thank you very much! sudo rm -rf /usr/include/boost-1_51 one command, problem solved :D