#39135: Libstdcxx fails to build on OSX 10.8.3 --------------------------+-------------------------------- Reporter: d.schreij@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.3 Resolution: | Keywords: build fail Port: libstdcxx | --------------------------+-------------------------------- Comment (by vince@…): The culprit is here: {{{ :info:build yes :info:build checking for sys/types.h... yes :info:build checking for sys/stat.h... yes :info:build if [ x"" != x ]; then \ :info:build /usr/bin/clang -arch i386 -c -DHAVE_CONFIG_H -pipe -O2 -I. -I../../gcc -4.8-20130411/libiberty/../include -W -Wall -Wwrite-strings -Wc++-compat -Wstrict-protot ypes -pedantic ../../gcc-4.8-20130411/libiberty/sha1.c -o pic/sha1.o; \ :info:build else true; fi :info:build checking for stdlib.h... /usr/bin/clang -arch i386 -c -DHAVE_CONFIG_H -pipe - O2 -I. -I../../gcc-4.8-20130411/libiberty/../include -W -Wall -Wwrite- strings -Wc++-com pat -Wstrict-prototypes -pedantic ../../gcc-4.8-20130411/libiberty/sha1.c -o sha1.o … }}} You see the -arch i386 in the clang flags? That what causes libiberty.a to be built 32bit (i386). No wonder that the link with 64bit binaries fails… -- Ticket URL: <https://trac.macports.org/ticket/39135#comment:1> MacPorts <http://www.macports.org/> Ports system for OS X