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

Wine is extremely slow, how do I find out why?
Problems with macports
Where can I view tools or packages availble in Homebrew
See what has been installed via MacPorts
Installing a php extension with Macports
Lost ability to run as sudo following MacPorts upgrade
Error: Failed to install atk with mac ports
How to replace MacPort's libiconv with Mac's default 64-bit version?
Cannot install YUM in MacOS
Perl5.12 not installing via Macports
changing macports install directory *after* installing
Why does macports list multiple installed ports of the same version, and how do I fix it?
Memory and upload size settings ignored in Macports php.ni
Macport skip dependency
macports python_select command not found
Trying to install MacPorts

Categories

HOME
office365
flask
libgdx
class
yaml
vagrant
out-of-memory
visual-studio-2010
docker-cloud
moodle-api
hyperledger
ag-grid
timber
jpa-criteria
amazon-emr
game-maker
jquery-select2-4
grocery-crud
max-msp-jitter
dma
corona
vmware-workstation
fosuserbundle
spam
multiple-tables
cmake-gui
angular2-highcharts
activeadmin
sharedpreferences
unordered-multimap
managed-c++
fstar
hdmi
gravity-forms-plugin
acrobat
sparkle
xenapp
vcenter
mongodb-3.4
series
wampsharp
john-the-ripper
microsoft-certifications
gsp
adminer
amazon-kms
uivisualeffectview
assemblies
python-sounddevice
game-center
flume-twitter
dredd
non-linear-regression
sonatype
mura
emacs25
polymaps
kendo-treeview
http4s
qtextedit
jpda
livecycle
ftp-client
spring-mongo
android-4.2-jelly-bean
wicked-pdf
node-glob
android-expansion-files
linuxbrew
screen-orientation
org-babel
componentart
unidata
android-audiomanager
tkx
comctl32
dc
quantify
git-reset
jini
rails-api
jack
autonumber
facebook-game-groups
vlab
libxml-js
postgres-xc
kaazing
fitch-proofs
qtextbrowser
3des
active-record-query
eventaggregator
html-components
data-retrieval
jquery-effects
subtext
stretchblt
server-load
community-server
webclient.uploaddata

Resources

Mobile Apps Dev
Database Users
javascript
java
csharp
php
android
MS Developer
developer works
python
ios
c
html
jquery
RDBMS discuss
Cloud Virtualization
Database Dev&Adm
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App