Errors building gcc44 under MacOsX
David Epstein
David.Epstein at warwick.ac.uk
Sun Sep 4 07:00:58 PDT 2011
I run MacOsX 10.6.8 on a MacBook Pro. The System Profiler says:
Model Name: MacBook Pro
Model Identifier: MacBookPro8,2
Processor Name: Intel Core i7
Processor Speed: 2.2 GHz
Number of Processors: 1
Total Number of Cores: 4
L2 Cache (per Core): 256 KB
L3 Cache: 6 MB
Memory: 8 GB
Boot ROM Version: MBP81.0047.B0E
SMC Version (system): 1.69f1
Serial Number (system): C02FP475DF91
Hardware UUID: 6DA5EF38-F18A-5578-80DD-396EAB563725
Here is the error message from port:
sudo port install gcc44
---> Computing dependencies for gcc44
---> Fetching archive for gcc44
---> Attempting to fetch gcc44-4.4.6_0.darwin_10.x86_64.tgz from
http://packages.macports.org/gcc44
---> Fetching gcc44
---> Verifying checksum(s) for gcc44
---> Extracting gcc44
---> Configuring gcc44
---> Building gcc44
Error: Target org.macports.build returned: shell command failed (see log for
details)
Log for gcc44 is at:
/opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_gcc44/gcc44/main.log
Error: Status 1 encountered during processing.
To report a bug, see <http://guide.macports.org/#project.tickets>
I was actually trying to install octave under macports. This called for
gcc44, and then it stumbled. Maybe I should install it some other way.
Thanks for any help.
David Epstein
Here are the last lines of the main.log file referred to in the error
message. I hope this includes everything of importance. I tried to upload
the whole of main.log to Nabble, but Nabble said it was too big. Also, I
wasn't sure whether uploading to Nabble was the right thing to do:
:info:build
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_gcc44/gcc44/work/build/./prev-gcc/xgcc
-B/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_gcc44/gcc44/work/build/./prev-gcc/
-B/opt/local/x86_64-apple-darwin10/bin/ -O2 -g -D_FORTIFY_SOURCE=0 -DIN_GCC
-W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes
-Wcast-qual -Wold-style-definition -Wc++-compat -Wmissing-format-attribute
-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings
-DHAVE_CONFIG_H -o jcf-dump java/jcf-dump.o java/jcf-io.o java/jcf-depend.o
java/jcf-path.o java/win32-host.o java/zextract.o errors.o version.o
ggc-none.o intl.o \
:info:build -lz ../libcpp/libcpp.a -liconv ../libiberty/libiberty.a
../libdecnumber/libdecnumber.a
:info:build ld: warning: ignoring file /opt/local/lib/libz.dylib, file was
built for unsupported file format which is not the architecture being linked
(x86_64)
:info:build Undefined symbols for architecture x86_64:
:info:build "_inflateInit2_", referenced from:
:info:build _read_zip_member in jcf-io.o
:info:build "_inflate", referenced from:
:info:build _read_zip_member in jcf-io.o
:info:build "_inflateEnd", referenced from:
:info:build _read_zip_member in jcf-io.o
:info:build ld: symbol(s) not found for architecture x86_64
:info:build collect2: ld returned 1 exit status
:info:build make[3]: *** [jcf-dump] Error 1
:info:build make[3]: *** Waiting for unfinished jobs....
:info:build /usr/bin/ranlib: file: libbackend.a(insn-peep.o) has no symbols
:info:build /usr/bin/ranlib: file: libbackend.a(loop-doloop.o) has no
symbols
:info:build /usr/bin/ranlib: file: libbackend.a(vmsdbgout.o) has no symbols
:info:build /usr/bin/ranlib: file: libbackend.a(xcoffout.o) has no symbols
:info:build ranlib -c libbackend.a
:info:build ranlib: file: libbackend.a(insn-peep.o) has no symbols
:info:build ranlib: file: libbackend.a(loop-doloop.o) has no symbols
:info:build ranlib: file: libbackend.a(vmsdbgout.o) has no symbols
:info:build ranlib: file: libbackend.a(xcoffout.o) has no symbols
:info:build rm gfortran.pod gcc.pod
:info:build make[3]: Leaving directory
`/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_gcc44/gcc44/work/build/gcc'
:info:build make[2]: *** [all-stage2-gcc] Error 2
:info:build make[2]: Leaving directory
`/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_gcc44/gcc44/work/build'
:info:build make[1]: *** [stage2-bubble] Error 2
:info:build make[1]: Leaving directory
`/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_gcc44/gcc44/work/build'
:info:build make: *** [bootstrap] Error 2
:info:build make: Leaving directory
`/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_gcc44/gcc44/work/build'
:info:build shell command " cd
"/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_gcc44/gcc44/work/build"
&& /usr/bin/make -j8 -w bootstrap BOOT_CFLAGS="-O2 -g -D_FORTIFY_SOURCE=0"
STAGE1_CFLAGS="-O2 -fkeep-inline-functions -D_FORTIFY_SOURCE=0 -std=gnu89" "
returned error 2
:error:build Target org.macports.build returned: shell command failed (see
log for details)
:debug:build Backtrace: shell command failed (see log for details)
while executing
"command_exec build"
(procedure "portbuild::build_main" line 8)
invoked from within
"$procedure $targetname"
:info:build Warning: the following items did not execute (for gcc44):
org.macports.activate org.macports.build org.macports.destroot
org.macports.install
:notice:build Log for gcc44 is at:
/opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_gcc44/gcc44/main.log
--
View this message in context: http://old.nabble.com/Errors-building-gcc44-under-MacOsX-tp32395987p32395987.html
Sent from the MacPorts - Users mailing list archive at Nabble.com.
More information about the macports-users
mailing list