macports


Error installing libstdcxx with macports


I'm trying to install libstdcxx using macports, and I keep running into errors but I'm not sure what's causing them.
I'm working on a machine running Mac OS X Server 10.4.11. I'm not sure what version of Xcode is installed, but I worked out the component versions are DevToolsCore-798.0 and DevToolsSupport-794.0. I'm also working with macports running in a virtualenv (macports configured with prefix=/cluster/plaw/regenv/ ). I've used macports in a virtualenv before without problems.
I discovered here that there are sometimes problems with libstdcxx due to problems with ld64. I've followed most of the suggested solutions (reinstalling ld64, using ld64+llvm31, installing in different orders, etc), but to no avail.
I also found a similar problem here, but the ticket is unresolved.
So, I'm wondering if it's just a matter of the old OS, and there's nothing I can do about it (the sysadmin is unwilling to update). Below is a part of the install log, if someone can spot what may be causing the problem.
These are the ports I have installed (if it makes a difference)
apple-gcc42 #5666.3_10+bootstrap (active)
autoconf #2.69_0 (active)
automake #1.13.1_0 (active)
bzip2 #1.0.6_0 (active)
cctools #806_2 (active)
cctools-headers #836_0 (active)
cloog #0.17.0_1 (active)
db46 #4.6.21_7 (active)
dyld-headers #210.2.3_0 (active)
expat #2.1.0_0 (active)
gcc_select #0.1_7 (active)
gdbm #1.10_2 (active)
gettext #0.18.2_0 (active)
glpk #4.47_0 (active)
gmake #3.82_0 (active)
gmp #5.0.5_0 (active)
gperf #3.0.4_2 (active)
help2man #1.40.13_0 (active)
isl #0.10_1 (active)
ld64 #97.17_2+llvm31 (active)
libedit #20121213-3.0_0 (active)
libffi #3.0.11_1 (active)
libiconv #1.14_0 (active)
libmpc #1.0.1_0 (active)
libtool #2.4.2_3 (active)
libunwind-headers #35.1_0 (active)
llvm-3.1 #3.1_6 (active)
llvm_select #0.2_0 (active)
m4 #1.4.16_0 (active)
mpfr #3.1.1-p2_0 (active)
ncurses #5.9_1 (active)
openssl #1.0.1c_0 (active)
p5.12-locale-gettext #1.50.0_7 (active)
perl5 #5.12.4_0+perl5_12 (active)
perl5.12 #5.12.4_1 (active)
ppl #1.0_0 (active)
python27 #2.7.3_1 (active)
python_select #0.3_2 (active)
sqlite3 #3.7.15.2_0 (active)
xz #5.0.4_0 (active)
zlib #1.2.7_0 (active)
Output from the install log:
:info:build /usr/bin/gcc-4.0 -arch i386 -g -fkeep-inline-functions -DIN_GCC -W -Wall -Wwrite-strings -Wcast-qual -Wstrict-prototypes -Wmissing-prototypes -Wmissing-format-attribute -Wold-style-definition -fno-common -DHAVE_CONFIG_H -L/cluster/plaw/regenv/lib -o cc1plus \
:info:build cp/cp-lang.o c-family/stub-objc.o cp/call.o cp/decl.o cp/expr.o cp/pt.o cp/typeck2.o cp/class.o cp/decl2.o cp/error.o cp/lex.o cp/parser.o cp/ptree.o cp/rtti.o cp/typeck.o cp/cvt.o cp/except.o cp/friend.o cp/init.o cp/method.o cp/search.o cp/semantics.o cp/tree.o cp/repo.o cp/dump.o cp/optimize.o cp/mangle.o cp/cp-objcp-common.o cp/name-lookup.o cp/cxx-pretty-print.o cp/cp-gimplify.o tree-mudflap.o attribs.o incpath.o c-family/c-common.o c-family/c-cppbuiltin.o c-family/c-dump.o c-family/c-format.o c-family/c-gimplify.o c-family/c-lex.o c-family/c-omp.o c-family/c-opts.o c-family/c-pch.o c-family/c-ppoutput.o c-family/c-pragma.o c-family/c-pretty-print.o c-family/c-semantics.o c-family/c-ada-spec.o i386-c.o darwin-c.o cc1plus-checksum.o main.o tree-browser.o libbackend.a libcommon-target.a libcommon.a ../libcpp/libcpp.a ../libdecnumber/libdecnumber.a libcommon.a ../libcpp/libcpp.a -liconv ../libiberty/libiberty.a ../libdecnumber/libdecnumber.a -L/cluster/plaw/regenv/lib -lcloog-isl -lisl -L/cluster/plaw/regenv/lib -lppl_c -lppl -lgmpxx -L/cluster/plaw/regenv/lib -L/cluster/plaw/regenv/lib -L/cluster/plaw/regenv/lib -lmpc -lmpfr -lgmp -lz
:info:build /usr/libexec/gcc/i686-apple-darwin8/4.0.1/ld: warning suggest use of -bind_at_load, as lazy binding may result in errors or different symbols being used
:info:build /usr/libexec/gcc/i686-apple-darwin8/4.0.1/ld: Undefined symbols:
:info:build typeinfo for std::logic_error
:info:build typeinfo for std::runtime_error
:info:build typeinfo for std::basic_streambuf<char, std::char_traits<char> >
:info:build typeinfo for std::bad_alloc
:info:build typeinfo for std::exception
:info:build typeinfo for int
:info:build VTT for std::basic_ostringstream<char, std::char_traits<char>, std::allocator<char> >
:info:build vtable for std::basic_istream<char, std::char_traits<char> >
:info:build vtable for std::basic_ostream<char, std::char_traits<char> >
:info:build vtable for std::basic_streambuf<char, std::char_traits<char> >
:info:build vtable for std::basic_stringbuf<char, std::char_traits<char>, std::allocator<char> >
:info:build vtable for std::basic_ostringstream<char, std::char_traits<char>, std::allocator<char> >
:info:build vtable for std::basic_ios<char, std::char_traits<char> >
:info:build operator delete(void*)
:info:build operator new(unsigned long)
:info:build operator delete[](void*)
:info:build operator new[](unsigned long)
:info:build symbol ___gmpz_neg used from dynamic library /cluster/plaw/regenv/lib/libgmp.dylib(single module) not from earlier dynamic library /cluster/plaw/regenv/lib/libppl_c.4.dylib(single module)
:info:build collect2: ld returned 1 exit status
:info:build make[3]: *** [lto1] Error 1
:info:build make[3]: *** Waiting for unfinished jobs....
:info:build /usr/libexec/gcc/i686-apple-darwin8/4.0.1/ld: warning suggest use of -bind_at_load, as lazy binding may result in errors or different symbols being used
:info:build /usr/libexec/gcc/i686-apple-darwin8/4.0.1/ld: Undefined symbols:
:info:build typeinfo for std::logic_error
:info:build typeinfo for std::runtime_error
:info:build typeinfo for std::basic_streambuf<char, std::char_traits<char> >
:info:build typeinfo for std::bad_alloc
:info:build typeinfo for std::exception
:info:build typeinfo for int
:info:build VTT for std::basic_ostringstream<char, std::char_traits<char>, std::allocator<char> >
:info:build vtable for std::basic_istream<char, std::char_traits<char> >
:info:build vtable for std::basic_ostream<char, std::char_traits<char> >
:info:build vtable for std::basic_streambuf<char, std::char_traits<char> >
:info:build vtable for std::basic_stringbuf<char, std::char_traits<char>, std::allocator<char> >
:info:build vtable for std::basic_ostringstream<char, std::char_traits<char>, std::allocator<char> >
:info:build vtable for std::basic_ios<char, std::char_traits<char> >
:info:build operator delete(void*)
:info:build operator new(unsigned long)
:info:build operator delete[](void*)
:info:build operator new[](unsigned long)
:info:build symbol ___gmpz_neg used from dynamic library /cluster/plaw/regenv/lib/libgmp.dylib(single module) not from earlier dynamic library /cluster/plaw/regenv/lib/libppl_c.4.dylib(single module)
:info:build collect2: ld returned 1 exit status
:info:build make[3]: *** [cc1] Error 1
:info:build /usr/libexec/gcc/i686-apple-darwin8/4.0.1/ld: warning suggest use of -bind_at_load, as lazy binding may result in errors or different symbols being used
:info:build /usr/libexec/gcc/i686-apple-darwin8/4.0.1/ld: Undefined symbols:
:info:build typeinfo for std::logic_error
:info:build typeinfo for std::runtime_error
:info:build typeinfo for std::basic_streambuf<char, std::char_traits<char> >
:info:build typeinfo for std::bad_alloc
:info:build typeinfo for std::exception
:info:build typeinfo for int
:info:build VTT for std::basic_ostringstream<char, std::char_traits<char>, std::allocator<char> >
:info:build vtable for std::basic_istream<char, std::char_traits<char> >
:info:build vtable for std::basic_ostream<char, std::char_traits<char> >
:info:build vtable for std::basic_streambuf<char, std::char_traits<char> >
:info:build vtable for std::basic_stringbuf<char, std::char_traits<char>, std::allocator<char> >
:info:build vtable for std::basic_ostringstream<char, std::char_traits<char>, std::allocator<char> >
:info:build vtable for std::basic_ios<char, std::char_traits<char> >
:info:build operator delete(void*)
:info:build operator new(unsigned long)
:info:build operator delete[](void*)
:info:build operator new[](unsigned long)
:info:build symbol ___gmpz_neg used from dynamic library /cluster/plaw/regenv/lib/libgmp.dylib(single module) not from earlier dynamic library /cluster/plaw/regenv/lib/libppl_c.4.dylib(single module)
:info:build collect2: ld returned 1 exit status
:info:build make[3]: *** [cc1plus] Error 1
:info:build make[2]: *** [all-stage1-gcc] Error 2
:info:build make[2]: Leaving directory `/Volumes/cluster/plaw/regenv/var/macports/build/_cluster_plaw_regenv_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_gcc47/libstdcxx/work/build'
:info:build make[1]: *** [stage1-bubble] Error 2
:info:build make[1]: Leaving directory `/Volumes/cluster/plaw/regenv/var/macports/build/_cluster_plaw_regenv_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_gcc47/libstdcxx/work/build'
:info:build make: *** [bootstrap] Error 2
:info:build make: Leaving directory `/Volumes/cluster/plaw/regenv/var/macports/build/_cluster_plaw_regenv_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_gcc47/libstdcxx/work/build'
:info:build Command failed: cd "/cluster/plaw/regenv/var/macports/build/_cluster_plaw_regenv_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_gcc47/libstdcxx/work/build" && /usr/bin/make -j4 -w bootstrap
:info:build Exit code: 2
:error:build org.macports.build for port libstdcxx returned: command execution failed
:debug:build Error code: CHILDSTATUS 864 2
:debug:build Backtrace: command execution failed
while executing
"system -nice 0 $fullcmdstring"
("eval" body line 1)
invoked from within
"eval system $notty $nice \$fullcmdstring"
invoked from within
"command_exec build"
(procedure "portbuild::build_main" line 8)
invoked from within
"$procedure $targetname"
:info:build Warning: targets not executed for libstdcxx: org.macports.activate org.macports.build org.macports.destroot org.macports.install
Looks like a conflict between gmp and ppl, unless you need the graphite optimisations (you probably don't) and unless Macports insists on enabling them, you could try removing the ppl package and reinstalling.

Related Links

PHP upgrade fails due to libiconv.2.dylib. Should I symlink?
MacPorts: List all available versions of a port
Macports: what exactly does the -f flag mean?
sudo port selfupdate never succeeds
Macports download of gcc hangs
selfupdate for Macports, install packages via macports
MacPorts: install hangs/remains unusable
Bio.Phylo v.1.65 on Macports does not contain TreeConstruction
How to configure Macports installed application for first time?
Macports failure after upgrade to Yosemite
how to know the installed version of a library by macports
MacPorts Build of Gimp ends prematurely
Error : Port gnuplot not found
How do I uninstall Macports from OS X Yosemite?
MacPorts block some ports from ever being installed (blacklist)
Find a macports package given a file name

Categories

HOME
keyboard
eclipse-plugin
out-of-memory
websocket
liferay-7
biztalk-2010
elk-stack
apache-kafka-connect
dji-sdk
angular-meteor
ag-grid
firebase-dynamic-links
telegraf
hystrix
match
slide
watch-os-3
pm2
distributed-computing
mahout-recommender
pickle
fluent-migrator
ratio
react-dnd
web-config-transform
ipa
clipboard
mongodb-3.4
osx-lion
char-pointer
grails-2.5
orchardcms-1.8
cups
des
cargo
mars-simulator
assemblies
data-uri
classnotfoundexception
distributed-caching
reverse-dns
absolute
adblock
dredd
swift2.3
viewmodel
jgrapht
android-webservice
adobe-reader
logical
jpda
wininet
static-methods
android-syncadapter
jeasyui
vaadin4spring
univocity
wikimedia-commons
gdl
calcite
enaml
hmisc
espresso
supercomputers
gql
cache-manifest
textscan
innerhtml
global-scope
visual-studio-6
windows-messages
miglayout
roxy-fileman
assetic
autonumber
ctp
revmob
notin
ntlmv2
xmlwriter
red-system
clearinterval
word-frequency
taskkill
pcspim
exponent
drawimage
glassfish-esb
motodev-studio
groovy-console
getopts
anonymous-types
main-method
gtktextview
chronic

Resources

Database Users
RDBMS discuss
Database Dev&Adm
javascript
java
csharp
php
android
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App