Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 243358 - PREFIX (OS X – intel): Compilation of boost versions 1.34 and 1.35 fails with libtool error
Summary: PREFIX (OS X – intel): Compilation of boost versions 1.34 and 1.35 fails with...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: x86 OS X
: High normal (vote)
Assignee: Gentoo non-Linux Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-10-23 10:02 UTC by Bernhard
Modified: 2009-10-19 20:23 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Bernhard 2008-10-23 10:02:26 UTC
Attempting to compile boost versions 1.34.1-r2, 1.35.0-r1 or 1.35.0-r2 fails on fresh installation of portage prefix on Mac OS X 10.5.5.

There appears to be a problem with a libtool command generated during the build process.




Reproducible: Always

Steps to Reproduce:
1. emerge -v boost

Actual Results:  
libtool: unrecognized option `-static'
Try `libtool --help' for more information.

    libtool -static -o "bin.v2/libs/test/build/darwin-4.2/gentoorelease/link-static/macosx-version-10.4/libboost_test_exec_monitor.a"    "bin.v2/libs/test/build/darwin-4.2/gentoorelease/link-static/macosx-version-10.4/execution_monitor.o" "bin.v2/libs/test/build/darwin-4.2/gentoorelease/link-static/macosx-version-10.4/debug.o" "bin.v2/libs/test/build/darwin-4.2/gentoorelease/link-static/macosx-version-10.4/compiler_log_formatter.o" "bin.v2/libs/test/build/darwin-4.2/gentoorelease/link-static/macosx-version-10.4/framework.o" "bin.v2/libs/test/build/darwin-4.2/gentoorelease/link-static/macosx-version-10.4/plain_report_formatter.o" "bin.v2/libs/test/build/darwin-4.2/gentoorelease/link-static/macosx-version-10.4/progress_monitor.o" "bin.v2/libs/test/build/darwin-4.2/gentoorelease/link-static/macosx-version-10.4/results_collector.o" "bin.v2/libs/test/build/darwin-4.2/gentoorelease/link-static/macosx-version-10.4/results_reporter.o" "bin.v2/libs/test/build/darwin-4.2/gentoorelease/link-static/macosx-version-10.4/test_main.o" "bin.v2/libs/test/build/darwin-4.2/gentoorelease/link-static/macosx-version-10.4/test_tools.o" "bin.v2/libs/test/build/darwin-4.2/gentoorelease/link-static/macosx-version-10.4/unit_test_log.o" "bin.v2/libs/test/build/darwin-4.2/gentoorelease/link-static/macosx-version-10.4/unit_test_main.o" "bin.v2/libs/test/build/darwin-4.2/gentoorelease/link-static/macosx-version-10.4/unit_test_monitor.o" "bin.v2/libs/test/build/darwin-4.2/gentoorelease/link-static/macosx-version-10.4/unit_test_parameters.o" "bin.v2/libs/test/build/darwin-4.2/gentoorelease/link-static/macosx-version-10.4/unit_test_suite.o" "bin.v2/libs/test/build/darwin-4.2/gentoorelease/link-static/macosx-version-10.4/xml_log_formatter.o" "bin.v2/libs/test/build/darwin-4.2/gentoorelease/link-static/macosx-version-10.4/xml_report_formatter.o"


Expected Results:  
boost libraries installed

This appears to be a relatively recent bug (compared to the age of the ebuilds) since I installed portage prefix on another machine 2-3 weeks ago and had no such problems.
Comment 1 Fabian Groffen gentoo-dev 2008-10-23 20:23:51 UTC
looks like it is using GNU libtool somehow, while it is coded to use Apple libtool...
Comment 2 Bernhard 2008-10-28 10:54:30 UTC
(In reply to comment #1)
> looks like it is using GNU libtool somehow, while it is coded to use Apple
> libtool...
> 

Thanks for the tip.

Using a quick and dirty hack to do the following two things allowed installation to proceed.

1) use Apple libtool
2) add include path for the "cxxabi.h" file

No idea how to do these two things properly in the ebuild. I used the $EPREFIX/etc/portage/env/dev-libs/boost file to redefine $PATH and $CPATH
Comment 3 Fabian Groffen gentoo-dev 2009-10-19 20:08:11 UTC
this works with current boost versions
Comment 4 Ramon 2009-10-19 20:23:30 UTC
1.34.1-r2 compiles fine for me on OSX-snowleopard now, I tested 1.35.0-r5 and that compiles and installs fine.

I lack to knowledge to actually test if boost itself is sane, but the linker issues seem to have resolved