problems compiling gcc42 on intel

Ewan Klein ewan at inf.ed.ac.uk
Fri Feb 9 03:10:04 PST 2007


I am trying to build gcc42 (as part of py-numpy) on an intel iMac.  
uname -a:
Darwin Edinburgh.local 8.8.1 Darwin Kernel Version 8.8.1: Mon Sep 25  
19:42:00 PDT 2006; root:xnu-792.13.8.obj~1/RELEASE_I386 i386 i386
I have installed XCode 2.4.1.

I am getting errors about not having an x86_64 assembler:

--->  Building gcc42 with target bootstrap
Error: Target com.apple.build returned: shell command "cd "/opt/local/ 
var/db/dports/build/ 
_opt_local_var_db_dports_sources_rsync.rsync.darwinports.org_dpupdate_dp 
orts_lang_gcc42/work/build" && make bootstrap -j 2" returned error 2
Command output:   BUILD_PREFIX="" \
   BUILD_PREFIX_1="" \
   LANGUAGES="" \
   LIBGCC2_CFLAGS="-O2  -O2 -g -O2  -DIN_GCC    -W -Wall -Wwrite- 
strings -Wstrict-prototypes -Wmissing-prototypes -Wold-style- 
definition  -isystem ./include  -fPIC -pipe -g -DHAVE_GTHR_DEFAULT - 
DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED  -m64 "  \
   MULTILIB_CFLAGS=" -m64" T=x86_64/ x86_64/crt3.o
/opt/local/var/db/dports/build/ 
_opt_local_var_db_dports_sources_rsync.rsync.darwinports.org_dpupdate_dp 
orts_lang_gcc42/work/build/./gcc/xgcc -B/opt/local/var/db/dports/ 
build/ 
_opt_local_var_db_dports_sources_rsync.rsync.darwinports.org_dpupdate_dp 
orts_lang_gcc42/work/build/./gcc/ -B/opt/local/i386-apple-darwin8.8.1/ 
bin/ -B/opt/local/i386-apple-darwin8.8.1/lib/ -isystem /opt/local/ 
i386-apple-darwin8.8.1/include -isystem /opt/local/i386-apple- 
darwin8.8.1/sys-include -O2  -O2 -g -O2  -DIN_GCC    -W -Wall -Wwrite- 
strings -Wstrict-prototypes -Wmissing-prototypes -Wold-style- 
definition  -isystem ./include  -fPIC -pipe -g -DHAVE_GTHR_DEFAULT - 
DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED  -I. -I. -I../../ 
gcc-4.2-20070124/gcc -I../../gcc-4.2-20070124/gcc/. -I../../ 
gcc-4.2-20070124/gcc/../include -I../../gcc-4.2-20070124/gcc/../ 
libcpp/include -I/opt/local/include -I/opt/local/include -I../../ 
gcc-4.2-20070124/gcc/../libdecnumber -I../libdecnumber -m64 - 
DL_muldi3 -fvisibility=hidden -DHIDE_EXPORTS -c ../../ 
gcc-4.2-20070124/gcc/libgcc2.c -o libgcc/x86_64/_muldi3.o
/opt/local/bin/odas: assembler (/opt/local/libexec/as/x86_64/as or )  
for architecture x86_64 not installed
Installed assemblers are:
/opt/local/libexec/as/ppc64/as for architecture ppc64
/opt/local/libexec/as/ppc/as for architecture ppc
/opt/local/libexec/as/i386/as for architecture i386
../../gcc-4.2-20070124/gcc/libgcc2.c:542: fatal error: error writing  
to -: Broken pipe
compilation terminated.
make[4]: *** [libgcc/x86_64/_muldi3.o] Error 1
make[4]: *** Waiting for unfinished jobs....
/opt/local/var/db/dports/build/ 
_opt_local_var_db_dports_sources_rsync.rsync.darwinports.org_dpupdate_dp 
orts_lang_gcc42/work/build/./gcc/xgcc -B/opt/local/var/db/dports/ 
build/ 
_opt_local_var_db_dports_sources_rsync.rsync.darwinports.org_dpupdate_dp 
orts_lang_gcc42/work/build/./gcc/ -B/opt/local/i386-apple-darwin8.8.1/ 
bin/ -B/opt/local/i386-apple-darwin8.8.1/lib/ -isystem /opt/local/ 
i386-apple-darwin8.8.1/include -isystem /opt/local/i386-apple- 
darwin8.8.1/sys-include -O2 -g -O2  -DIN_GCC    -W -Wall -Wwrite- 
strings -Wstrict-prototypes -Wmissing-prototypes -Wold-style- 
definition  -isystem ./include  -I. -Ix86_64 -I../../gcc-4.2-20070124/ 
gcc -I../../gcc-4.2-20070124/gcc/x86_64 -I../../gcc-4.2-20070124/ 
gcc/../include -I../../gcc-4.2-20070124/gcc/../libcpp/include -I/opt/ 
local/include -I/opt/local/include -I../../gcc-4.2-20070124/gcc/../ 
libdecnumber -I../libdecnumber -m64 \
   -fno-tree-dominator-opts  \
   -c ../../gcc-4.2-20070124/gcc/config/darwin-crt3.c -o x86_64/crt3.o
/opt/local/bin/odas: assembler (/opt/local/libexec/as/x86_64/as or )  
for architecture x86_64 not installed
Installed assemblers are:
/opt/local/libexec/as/ppc64/as for architecture ppc64
/opt/local/libexec/as/ppc/as for architecture ppc
/opt/local/libexec/as/i386/as for architecture i386
make[5]: *** [x86_64/crt3.o] Error 1
make[4]: *** [extrax86_64] Error 2
make[3]: *** [stmp-multilib] Error 2
rm fsf-funding.pod gcov.pod cpp.pod gfdl.pod gpl.pod gcc.pod
make[2]: *** [all-stage1-gcc] Error 2
make[1]: *** [stage1-bubble] Error 2
make: *** [bootstrap] Error 2

Can someone point me to a solution for this?

Cheers,
Ewan



More information about the macports-users mailing list