Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 497282 - media-libs/openimageio-1.3.5 - ../libOpenImageIO/libOpenImageIO.so.1.3.5: undefined reference to `boost::thread::start_thread()'
Summary: media-libs/openimageio-1.3.5 - ../libOpenImageIO/libOpenImageIO.so.1.3.5: und...
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Gentoo Graphics Project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-01-06 16:15 UTC by Michele Alzetta
Modified: 2014-02-02 16:38 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
Complete build.log (build.log,174.06 KB, text/plain)
2014-01-06 16:19 UTC, Michele Alzetta
Details
Build environment (environment,128.62 KB, text/plain)
2014-01-06 16:20 UTC, Michele Alzetta
Details
complete output of nm -C -D /usr/lib64/libboost_thread.so | less (boost.txt,33.15 KB, text/plain)
2014-01-07 05:11 UTC, Michele Alzetta
Details
Complete build log of boost (build.log.gz.gz,396.84 KB, application/gzip)
2014-01-12 09:10 UTC, Michele Alzetta
Details
Complete build log of openimageio built with boost 1.53.0 built with gcc-4.7.3 (build.log,167.54 KB, text/plain)
2014-01-18 18:41 UTC, Michele Alzetta
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Michele Alzetta 2014-01-06 16:15:36 UTC
Compiling openimageio fails as follows:

[ 91%] /usr/bin/cmake -E cmake_progress_report /var/tmp/portage/media-libs/openimageio-1.3.5/work/openimageio-1.3.5_build/CMakeFiles 99
Building CXX object oiiotool/CMakeFiles/oiiotool.dir/imagerec.cpp.o
cd /var/tmp/portage/media-libs/openimageio-1.3.5/work/openimageio-1.3.5_build/oiiotool && /usr/lib64/ccache/bin/x86_64-pc-linux-gnu-g++  -DUSE_FREETYPE -DUSE_OPENEXR_VERSION2=1 -DUSE_OPENSSL=1 -DUSE_TBB=0  -DNDEBUG -march=native -mmmx -msse -msse2 -msse4a -m3dnow -O2 -pipe  -I/usr/include/OpenEXR -isystem /usr/include/boost-1_51 -I/var/tmp/portage/media-libs/openimageio-1.3.5/work/openimageio-1.3.5/src/include -I/var/tmp/portage/media-libs/openimageio-1.3.5/work/openimageio-1.3.5_build/include    -Wall -UUSE_FIELD3D -o CMakeFiles/oiiotool.dir/imagerec.cpp.o -c /var/tmp/portage/media-libs/openimageio-1.3.5/work/openimageio-1.3.5/src/oiiotool/imagerec.cpp
[ 92%] Building CXX object oiiotool/CMakeFiles/oiiotool.dir/printinfo.cpp.o
cd /var/tmp/portage/media-libs/openimageio-1.3.5/work/openimageio-1.3.5_build/oiiotool && /usr/lib64/ccache/bin/x86_64-pc-linux-gnu-g++  -DUSE_FREETYPE -DUSE_OPENEXR_VERSION2=1 -DUSE_OPENSSL=1 -DUSE_TBB=0  -DNDEBUG -march=native -mmmx -msse -msse2 -msse4a -m3dnow -O2 -pipe  -I/usr/include/OpenEXR -isystem /usr/include/boost-1_51 -I/var/tmp/portage/media-libs/openimageio-1.3.5/work/openimageio-1.3.5/src/include -I/var/tmp/portage/media-libs/openimageio-1.3.5/work/openimageio-1.3.5_build/include    -Wall -UUSE_FIELD3D -o CMakeFiles/oiiotool.dir/printinfo.cpp.o -c /var/tmp/portage/media-libs/openimageio-1.3.5/work/openimageio-1.3.5/src/oiiotool/printinfo.cpp
../libOpenImageIO/libOpenImageIO.so.1.3.5: undefined reference to `boost::thread::start_thread()'
../libOpenImageIO/libOpenImageIO.so.1.3.5: undefined reference to `boost::thread::join()'
collect2: error: ld returned 1 exit status
igrep/CMakeFiles/igrep.dir/build.make:115: recipe for target 'igrep/igrep' failed
make[2]: *** [igrep/igrep] Error 1
make[2]: Leaving directory '/var/tmp/portage/media-libs/openimageio-1.3.5/work/openimageio-1.3.5_build'
CMakeFiles/Makefile2:1096: recipe for target 'igrep/CMakeFiles/igrep.dir/all' failed
make[1]: *** [igrep/CMakeFiles/igrep.dir/all] Error 2
../libOpenImageIO/libOpenImageIO.so.1.3.5: undefined reference to `boost::thread::start_thread()'
../libOpenImageIO/libOpenImageIO.so.1.3.5: undefined reference to `boost::thread::join()'
collect2: error: ld returned 1 exit status
idiff/CMakeFiles/idiff.dir/build.make:115: recipe for target 'idiff/idiff' failed
make[2]: *** [idiff/idiff] Error 1
make[2]: Leaving directory '/var/tmp/portage/media-libs/openimageio-1.3.5/work/openimageio-1.3.5_build'
CMakeFiles/Makefile2:1046: recipe for target 'idiff/CMakeFiles/idiff.dir/all' failed
make[1]: *** [idiff/CMakeFiles/idiff.dir/all] Error 2
Linking CXX executable oiiotool
cd /var/tmp/portage/media-libs/openimageio-1.3.5/work/openimageio-1.3.5_build/oiiotool && /usr/bin/cmake -E cmake_link_script CMakeFiles/oiiotool.dir/link.txt --verbose=1
/usr/lib64/ccache/bin/x86_64-pc-linux-gnu-g++   -march=native -mmmx -msse -msse2 -msse4a -m3dnow -O2 -pipe    -Wl,-O1 -Wl,--as-needed CMakeFiles/oiiotool.dir/oiiotool.cpp.o CMakeFiles/oiiotool.dir/diff.cpp.o CMakeFiles/oiiotool.dir/imagerec.cpp.o CMakeFiles/oiiotool.dir/printinfo.cpp.o  -o oiiotool -rdynamic -lHalf -lIex -lImath -lIlmThread -lpthread ../libOpenImageIO/libOpenImageIO.so.1.3.5 -lboost_filesystem-mt -lboost_regex-mt -lboost_system-mt -lboost_thread-mt -ldl -lssl -lcrypto -lfreetype -lHalf -lIex -lImath -lIlmThread -lpthread -lpng -lz -ltiff -ljpeg -lz -ltiff -ljpeg -lwebp -lIlmImf -lgif -lpugixml -Wl,-rpath,/var/tmp/portage/media-libs/openimageio-1.3.5/work/openimageio-1.3.5_build/libOpenImageIO: 
../libOpenImageIO/libOpenImageIO.so.1.3.5: undefined reference to `boost::thread::start_thread()'
../libOpenImageIO/libOpenImageIO.so.1.3.5: undefined reference to `boost::thread::join()'
collect2: error: ld returned 1 exit status
maketx/CMakeFiles/maketx.dir/build.make:115: recipe for target 'maketx/maketx' failed
make[2]: *** [maketx/maketx] Error 1
make[2]: Leaving directory '/var/tmp/portage/media-libs/openimageio-1.3.5/work/openimageio-1.3.5_build'
CMakeFiles/Makefile2:1196: recipe for target 'maketx/CMakeFiles/maketx.dir/all' failed
make[1]: *** [maketx/CMakeFiles/maketx.dir/all] Error 2
../libOpenImageIO/libOpenImageIO.so.1.3.5: undefined reference to `boost::thread::start_thread()'
../libOpenImageIO/libOpenImageIO.so.1.3.5: undefined reference to `boost::thread::join()'
collect2: error: ld returned 1 exit status
iinfo/CMakeFiles/iinfo.dir/build.make:115: recipe for target 'iinfo/iinfo' failed
make[2]: *** [iinfo/iinfo] Error 1
make[2]: Leaving directory '/var/tmp/portage/media-libs/openimageio-1.3.5/work/openimageio-1.3.5_build'
CMakeFiles/Makefile2:1146: recipe for target 'iinfo/CMakeFiles/iinfo.dir/all' failed
make[1]: *** [iinfo/CMakeFiles/iinfo.dir/all] Error 2
../libOpenImageIO/libOpenImageIO.so.1.3.5: undefined reference to `boost::thread::start_thread()'
../libOpenImageIO/libOpenImageIO.so.1.3.5: undefined reference to `boost::thread::join()'
collect2: error: ld returned 1 exit status
oiiotool/CMakeFiles/oiiotool.dir/build.make:190: recipe for target 'oiiotool/oiiotool' failed
make[2]: *** [oiiotool/oiiotool] Error 1
make[2]: Leaving directory '/var/tmp/portage/media-libs/openimageio-1.3.5/work/openimageio-1.3.5_build'
CMakeFiles/Makefile2:1246: recipe for target 'oiiotool/CMakeFiles/oiiotool.dir/all' failed
make[1]: *** [oiiotool/CMakeFiles/oiiotool.dir/all] Error 2
make[1]: Leaving directory '/var/tmp/portage/media-libs/openimageio-1.3.5/work/openimageio-1.3.5_build'
Makefile:146: recipe for target 'all' failed
make: *** [all] Error 2
 * ERROR: media-libs/openimageio-1.3.5::gentoo failed (compile phase):
 *   emake failed

Here is what I get with: 
emerge -pqv '=media-libs/openimageio-1.3.5::gentoo'

[ebuild  N    ] media-libs/openimageio-1.3.5  USE="gif opengl qt4 ssl truetype -colorio -jpeg2k -opencv -python -tbb" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7" 

Note: I have boost 1.53.0 installed.
Comment 1 Michele Alzetta 2014-01-06 16:19:44 UTC
Created attachment 367188 [details]
Complete build.log
Comment 2 Michele Alzetta 2014-01-06 16:20:20 UTC
Created attachment 367190 [details]
Build environment
Comment 3 Michele Alzetta 2014-01-06 16:21:41 UTC
emerge.info :

Portage 2.2.7 (default/linux/amd64/13.0/desktop/kde, gcc-4.8.2, glibc-2.17, 3.12.6-gentoo x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-3.12.6-gentoo-x86_64-AMD_Phenom-tm-_II_X6_1100T_Processor-with-gentoo-2.2
KiB Mem:     3793456 total,   1935656 free
KiB Swap:    3929084 total,   3929084 free
Timestamp of tree: Sat, 04 Jan 2014 09:15:01 +0000
ld ld di GNU (GNU Binutils) 2.23.2
ccache version 3.1.9 [enabled]
app-shells/bash:          4.2_p45
dev-java/java-config:     2.2.0
dev-lang/python:          2.7.6, 3.3.3
dev-util/ccache:          3.1.9-r3
dev-util/cmake:           2.8.12.1-r2
dev-util/pkgconfig:       0.28
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.12.4
sys-apps/sandbox:         2.6-r1
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.11.6, 1.12.6, 1.14.1
sys-devel/binutils:       2.23.2
sys-devel/gcc:            4.8.2
sys-devel/gcc-config:     1.8
sys-devel/libtool:        2.4.2
sys-devel/make:           4.0-r1
sys-kernel/linux-headers: 3.12 (virtual/os-headers)
sys-libs/glibc:           2.17
Repositories: gentoo
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -mmmx -msse -msse2 -msse4a -m3dnow -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/themes/oxygen-gtk/gtk-2.0 /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /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 -mmmx -msse -msse2 -msse4a -m3dnow -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--jobs=4 --load-average=5"
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://mirror.switch.ch/ftp/mirror/gentoo/ http://gentoo.wheel.sk/ http://mirror.ovh.net/gentoo-distfiles/ http://gentoo.mneisen.org/ http://mirrors.linuxant.fr/distfiles.gentoo.org/"
LANG="it"
LC_ALL="it_IT.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j6"
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.at.gentoo.org/gentoo-portage"
USE="3dnow 3dnowext X a52 aac acl acpi alsa amd64 berkdb bluetooth branding bzip2 cairo cdda cdr cleartype cli consolekit corefonts cracklib crypt cups cxx dbus declarative dri dts dvd dvdr emboss encode exif fam firefox firmware flac fortran gdbm gif gpm gtk iconv icu ipv6 jack java javascript jpeg kde kipi lcms ldap libnotify lm_sensors mad midi mmx mng modules mp3 mp4 mpeg mudflap multilib ncurses nls nptl nsplugin ogg opengl openmp pam pango pcre pdf phonon plasma png policykit ppds pulseaudio qt3support qt4 readline sdl semantic-desktop session spell sqlite sse sse2 ssl startup-notification svg tcpd threads tiff truetype type1 udev udisks unicode upower usb vorbis wxwidgets x264 xcb xcomposite xinerama xml xscreensaver xv xvid zlib" ABI_X86="64" ALSA_CARDS="hda-intel" 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 ublox ubx" INPUT_DEVICES="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="it ru" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-3 php5-4" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_3" RUBY_TARGETS="ruby18 ruby20" SANE_BACKENDS="plustek" USERLAND="GNU" VIDEO_CARDS="radeon r600" 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"
USE_PYTHON="2.7 3.3"
Unset:  CPPFLAGS, CTARGET, INSTALL_MASK, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 4 Rafał Mużyło 2014-01-06 22:07:14 UTC
The error makes little sense: the command that builds the lib does contain libboost_thread in the place that looks proper.
Check if libboost_thread contains those two symbols ('nm -C -D' probably the easiest way), if the built lib is linked to that lib and if '-j1' changes anything.
Comment 5 Michele Alzetta 2014-01-06 22:56:11 UTC
Building with -j1 doesn't change anything. 

How do I check if libboost_thread contains the two symbols needed? 

I don't understand what should I use 'nm -C -D' with; and how to check if the built lib is linked to that lib?
Comment 6 Rafał Mużyło 2014-01-06 23:10:47 UTC
As for the first, it probably 'nm -C -D /usr/lib64/libboost_thread.so | less' (as the output will be quite long).
As for the second, find the lib in the build dir and run 'ldd' on it.
Comment 7 Michele Alzetta 2014-01-07 05:11:53 UTC
Created attachment 367256 [details]
complete output of nm -C -D /usr/lib64/libboost_thread.so | less
Comment 8 Michele Alzetta 2014-01-07 05:13:13 UTC
nm -C -D /usr/lib64/libboost_thread.so | grep join
000000000000e020 T boost::thread::join_noexcept()
000000000000e1e0 T boost::thread::do_try_join_until_noexcept(timespec const&, bool&)
000000000000d1e0 T boost::thread::joinable() const
                 U pthread_join

nm -C -D /usr/lib64/libboost_thread.so | grep start_thread
000000000000d0e0 T boost::thread::start_thread_noexcept(boost::thread_attributes const&)
000000000000d060 T boost::thread::start_thread_noexcept()
Comment 9 Rafał Mużyło 2014-01-07 17:05:03 UTC
(In reply to Michele Alzetta from comment #8)
> nm -C -D /usr/lib64/libboost_thread.so | grep join
> 000000000000e020 T boost::thread::join_noexcept()
> 000000000000e1e0 T boost::thread::do_try_join_until_noexcept(timespec
> const&, bool&)
> 000000000000d1e0 T boost::thread::joinable() const
>                  U pthread_join
> 
> nm -C -D /usr/lib64/libboost_thread.so | grep start_thread
> 000000000000d0e0 T
> boost::thread::start_thread_noexcept(boost::thread_attributes const&)
> 000000000000d060 T boost::thread::start_thread_noexcept()

...
Which version of boost is installed (and its useflags) ?
Comment 10 Michele Alzetta 2014-01-11 18:23:16 UTC
 boost 1.53.0-r1 

USE flags:  icu nls threads -debug -doc -mpi -python -static-libs -tools
Comment 11 Rafał Mużyło 2014-01-11 23:06:19 UTC
(In reply to Michele Alzetta from comment #10)
>  boost 1.53.0-r1 
> 
> USE flags:  icu nls threads -debug -doc -mpi -python -static-libs -tools

Going by headers, while start_thread() is private, join() isn't, so at least the later should be exposed...

Attach build log of boost and paste ldd output on libbost_thread.
Comment 12 Michele Alzetta 2014-01-12 09:03:43 UTC
ldd /usr/lib64/libboost_thread.so.1.53.0

        linux-vdso.so.1 (0x00007fff64788000)
        libboost_system.so.1.53.0 => /usr/lib64/libboost_system.so.1.53.0 (0x00007f7b8f48a000)
        librt.so.1 => /lib64/librt.so.1 (0x00007f7b8f282000)
        libstdc++.so.6 => /usr/lib/gcc/x86_64-pc-linux-gnu/4.8.2/libstdc++.so.6 (0x00007f7b8ef74000)
        libgcc_s.so.1 => /usr/lib/gcc/x86_64-pc-linux-gnu/4.8.2/libgcc_s.so.1 (0x00007f7b8ed5d000)
        libpthread.so.0 => /lib64/libpthread.so.0 (0x00007f7b8eb40000)
        libc.so.6 => /lib64/libc.so.6 (0x00007f7b8e78f000)
        libm.so.6 => /lib64/libm.so.6 (0x00007f7b8e48f000)
        /lib64/ld-linux-x86-64.so.2 (0x00007f7b8f8eb000)
Comment 13 Michele Alzetta 2014-01-12 09:10:45 UTC
Created attachment 367692 [details]
Complete build log of boost
Comment 14 Michele Alzetta 2014-01-12 13:09:11 UTC
I have now masked boost-1.53 and gone back to 1.52. 

Rebuilt system, everything works including openimageio. 

In bug 454100 mention was made of openimageio, actually. I don't know if this is the same problem.
Comment 15 Rafał Mużyło 2014-01-12 13:29:48 UTC
...OK (as in "this sucks")...

There doesn't seem to be anything *obviously* wrong in the log.

Time to test the really bad options.

First, downgrade boost to 1.52.0 and retry.

It may or may not work.

Regardless of above, install something from gcc:4.7 slot, temporarily switch to it (chances are a better part of the system was already linked against libstdc++ from 4.8, so full permanent downgrade would be tedious at best), (you might need to rebuild cmake at this point), build boost 1.53.0 and retry again.

The other bad option would be binutils 2.22 vs 2.23, but the first is more likely.

Post the results.
Comment 16 Michele Alzetta 2014-01-12 16:21:41 UTC
Downgrading boost to 1.52 works fine.
Comment 17 Rafał Mużyło 2014-01-13 01:16:29 UTC
(In reply to Michele Alzetta from comment #16)
> Downgrading boost to 1.52 works fine.

...but that doesn't really tell what went wrong, as there was no real change in API wrt. these functions and other than them being marked as inline, there doesn't seem to be anything that should have made them inaccessible.
Comment 18 Michele Alzetta 2014-01-18 18:39:52 UTC
OK.

Switched gcc to 4.7.3
Rebuilt boost 1.53.0-r1 and boost-build 1.53.0, rebuitl cmake with gcc-4.73
Rebuilding openimageio fails:

Linking CXX executable iinfo
cd /var/tmp/portage/media-libs/openimageio-1.3.5/work/openimageio-1.3.5_build/iinfo && /usr/bin/cmake -E cmake_link_script CMakeFiles/iinfo.dir/link.txt --verbose=1
/usr/lib64/ccache/bin/x86_64-pc-linux-gnu-g++   -march=native -mmmx -msse -msse2 -msse4a -m3dnow -O2 -pipe    -Wl,-O1 -Wl,--as-needed CMakeFiles/iinfo.dir/iinfo.cpp.o  -o iinfo -rdynamic -lHalf -lIex -lImath -lIlmThread -lpthread ../libOpenImageIO/libOpenImageIO.so.1.3.5 -lboost_filesystem-mt -lboost_regex-mt -lboost_system-mt -lboost_thread-mt -ldl -lssl -lcrypto -lfreetype -lHalf -lIex -lImath -lIlmThread -lpthread -lpng -lz -ltiff -ljpeg -lz -ltiff -ljpeg -lwebp -lIlmImf -lgif -lpugixml -Wl,-rpath,/var/tmp/portage/media-libs/openimageio-1.3.5/work/openimageio-1.3.5_build/libOpenImageIO: 
../libOpenImageIO/libOpenImageIO.so.1.3.5: undefined reference to `boost::thread::start_thread()'
../libOpenImageIO/libOpenImageIO.so.1.3.5: undefined reference to `boost::thread::join()'
collect2: error: ld returned 1 exit status

So, it seems that it doesn't matter which gcc is used. Openimageio does not build with boost-1.53.0 on my system.
Comment 19 Michele Alzetta 2014-01-18 18:41:24 UTC
Created attachment 368110 [details]
Complete build log of openimageio built with boost 1.53.0 built with gcc-4.7.3
Comment 20 Michele Alzetta 2014-01-18 18:50:35 UTC
Downgraded binutils to sys-devel/binutils-2.23.2 - build still fails.

Linking CXX executable iinfo
cd /var/tmp/portage/media-libs/openimageio-1.3.5/work/openimageio-1.3.5_build/iinfo && /usr/bin/cmake -E cmake_link_script CMakeFiles/iinfo.dir/link.txt --verbose=1
/usr/lib64/ccache/bin/x86_64-pc-linux-gnu-g++   -march=native -mmmx -msse -msse2 -msse4a -m3dnow -O2 -pipe    -Wl,-O1 -Wl,--as-needed CMakeFiles/iinfo.dir/iinfo.cpp.o  -o iinfo -rdynamic -lHalf -lIex -lImath -lIlmThread -lpthread ../libOpenImageIO/libOpenImageIO.so.1.3.5 -lboost_filesystem-mt -lboost_regex-mt -lboost_system-mt -lboost_thread-mt -ldl -lssl -lcrypto -lfreetype -lHalf -lIex -lImath -lIlmThread -lpthread -lpng -lz -ltiff -ljpeg -lz -ltiff -ljpeg -lwebp -lIlmImf -lgif -lpugixml -Wl,-rpath,/var/tmp/portage/media-libs/openimageio-1.3.5/work/openimageio-1.3.5_build/libOpenImageIO: 
../libOpenImageIO/libOpenImageIO.so.1.3.5: undefined reference to `boost::thread::start_thread()'
../libOpenImageIO/libOpenImageIO.so.1.3.5: undefined reference to `boost::thread::join()'
collect2: error: ld returned 1 exit status

So, I'll just mask boost-1.53 again.
Comment 21 Michele Alzetta 2014-01-25 15:38:41 UTC
Just wished to add, upgraded my system to glibc 2.18-r1.

Emerge -e system followed by emerge -e world, with boost 1.53.0-r1 and gcc 4.8.2

Everything has built fine, except for openimageio (which is now asking to be rebuilt with emerge @preserved-rebuild )

So, it seems openimageio will not build with boost-1.53 - at least, not on this system, and using two different glibc and two different gcc, with a clean build chain each time.  

It would be interesting if someone could tell me they have a system on which they can, we could try to compare systems.
Comment 22 megabaks 2014-02-02 14:58:51 UTC
rm -rf /usr/include/boost-1_51
enjoy
Comment 23 Michele Alzetta 2014-02-02 15:37:42 UTC
rm -rf /usr/include/boost-1_51 

fixed it.

So was that a bug in the boost-1.51 ebuild?
Comment 24 megabaks 2014-02-02 16:14:54 UTC
may be
i don't know why /usr/include/boost-1_51 is still exists
Comment 25 Samuli Suominen (RETIRED) gentoo-dev 2014-02-02 16:38:11 UTC
(In reply to megabaks from comment #24)
> may be
> i don't know why /usr/include/boost-1_51 is still exists

likely old cruft from times when boost was still eselectable.