Opened 14 years ago

Closed 11 years ago

Last modified 11 years ago

#29067 closed defect (fixed)

gcc46 fails to build on OS X 10.4.11 PPC

Reported by: Dudemac Owned by: mww@…
Priority: Normal Milestone:
Component: ports Version: 1.9.1
Keywords: tiger Cc: ifn22@…, cooljeanius (Eric Gallager)
Port: gcc46

Description (last modified by ryandesign (Ryan Carsten Schmidt))

Trying to build gcc46 +gfortran on Os X 10.4.11 on a G4 PowerPC with freshly updated Macports. I do not know whether this error is OS version specific. Xcode 2.5 (i.e. latest for Tiger) is installed on this system. main.log is attached. Here is some output:

sudo port install gcc46 +gfortran
--->  Computing dependencies for mpfr
--->  Fetching mpfr
--->  Attempting to fetch mpfr-3.0.1.tar.xz from http://distfiles.macports.org/mpfr/3.0.1
--->  Verifying checksum(s) for mpfr
--->  Extracting mpfr
--->  Configuring mpfr
--->  Building mpfr
--->  Staging mpfr into destroot
--->  Computing dependencies for mpfr
--->  Installing mpfr @3.0.1_0
--->  Deactivating mpfr @3.0.0-p8_0
--->  Cleaning mpfr
--->  Activating mpfr @3.0.1_0
--->  Cleaning mpfr
--->  Computing dependencies for gcc46
--->  Fetching gcc46
--->  Attempting to fetch gcc-core-4.6-20110325.tar.bz2 from http://distfiles.macports.org/gcc46
--->  Attempting to fetch gcc-core-4.6-20110325.tar.bz2 from ftp://gcc.gnu.org/pub/gcc/snapshots/4.6-20110325/
--->  Attempting to fetch gcc-core-4.6-20110325.tar.bz2 from http://ykf.ca.distfiles.macports.org/MacPorts/mpdistfiles/gcc46
--->  Attempting to fetch gcc-core-4.6-20110325.tar.bz2 from http://lil.fr.distfiles.macports.org/gcc46
--->  Attempting to fetch gcc-core-4.6-20110325.tar.bz2 from ftp://ftp.gwdg.de/pub/linux/gcc/snapshots/4.6-20110325/
--->  Attempting to fetch gcc-fortran-4.6-20110325.tar.bz2 from http://distfiles.macports.org/gcc46
--->  Attempting to fetch gcc-fortran-4.6-20110325.tar.bz2 from ftp://gcc.gnu.org/pub/gcc/snapshots/4.6-20110325/
--->  Attempting to fetch gcc-g++-4.6-20110325.tar.bz2 from http://distfiles.macports.org/gcc46
--->  Attempting to fetch gcc-g++-4.6-20110325.tar.bz2 from ftp://gcc.gnu.org/pub/gcc/snapshots/4.6-20110325/
--->  Attempting to fetch gcc-java-4.6-20110325.tar.bz2 from http://distfiles.macports.org/gcc46
--->  Attempting to fetch gcc-java-4.6-20110325.tar.bz2 from ftp://gcc.gnu.org/pub/gcc/snapshots/4.6-20110325/
--->  Attempting to fetch gcc-objc-4.6-20110325.tar.bz2 from http://distfiles.macports.org/gcc46
--->  Attempting to fetch gcc-objc-4.6-20110325.tar.bz2 from ftp://gcc.gnu.org/pub/gcc/snapshots/4.6-20110325/
--->  Attempting to fetch ecj-4.5.jar from http://mirrors.kernel.org/sources.redhat.com/java/
--->  Verifying checksum(s) for gcc46
--->  Extracting gcc46
--->  Configuring gcc46
--->  Building gcc46
Error: Target org.macports.build returned: shell command failed
Error: Status 1 encountered during processing.
To report a bug, see <http://guide.macports.org/#project.tickets>

Attachments (1)

main.log (3.1 MB) - added by Dudemac 14 years ago.
log of new attempt to build, with -d flag

Change History (12)

comment:1 Changed 14 years ago by ryandesign (Ryan Carsten Schmidt)

Description: modified (diff)
Keywords: tiger added; gcc Tiger removed
Owner: changed from macports-tickets@… to mww@…

The main.log you attached shows a successful build of mpfr. Please attach the main.log that shows the failure to compile gcc46.

Also, if you're really running MacPorts 1.9.1, please "sudo port selfupdate" to get 1.9.2.

Changed 14 years ago by Dudemac

Attachment: main.log added

log of new attempt to build, with -d flag

comment:2 in reply to:  1 Changed 14 years ago by Dudemac

Replying to ryandesign@…:

The main.log you attached shows a successful build of mpfr. Please attach the main.log that shows the failure to compile gcc46.

Also, if you're really running MacPorts 1.9.1, please "sudo port selfupdate" to get 1.9.2.

I did the selfupdate before my initial attempt to build gcc46, but the update of Macports to 1.9.2 failed. The ports tree did update successfully, though. (This is an old issue for me, having apparently to do with no user "501" on this system. I gave up on this one.)

I reran the build attempt of gcc46, after "sudo port clean gcc46" to get rid of old crap. This time I added the -d flag to the install command. I have attached the log file (which now shows the fail). I believe this attach has overwritten the previous attachment.

I saved the screen messages on my machine, but the logfile seems to have the same info so I am not uploading the screen messages.

Uli

comment:3 Changed 13 years ago by jmroot (Joshua Root)

Is this still an issue with 4.6.3? Note that we can't offer any support if you're not using the current version of MacPorts.

comment:4 Changed 12 years ago by darylew@…

I can't directly get gcc46 to build on my PPC/32-bit Tiger system either. On my system, all the object files are built, but the linking stage fails, with missing symbols for C++ runtime functions. But I've gotten around this by forcing Apple's GCC 4.2 (from MacPorts) to be used to build. (The default is the built-in GCC 4.0.1 compiler.) You can force this with a line similar to this comment or messing around with the Portfile. I think that should be added full time (which adds a dependency on apple-gcc-42).

comment:5 Changed 12 years ago by mww@…

so does adding

platform darwin 8 { configure.compiler apple-gcc-4.2 }

fix the problem?

comment:6 Changed 12 years ago by darylew@…

I got my build of GCC 4.6 to work by using

sudo port install gcc46 configure.compiler=apple-gcc-4.2

I could not use "upgrade" as the port command; I guess it only pays attention to the compiler setting when "install" is used. I just saw the post by mww, so I don't know if it would work.

Last edited 11 years ago by ryandesign (Ryan Carsten Schmidt) (previous) (diff)

comment:7 Changed 12 years ago by mww@…

Resolution: fixed
Status: newclosed

I've added this to the Portfile in r96428 -- if someone with 10.4 could try and report if this works, that would be great; if not, please re-open this ticket!

comment:8 Changed 12 years ago by ifn22@…

Resolution: fixed
Status: closedreopened

I believe I'm getting the same error. macports 2.1.2 trying to install gcc46 on mac os 10.4.11 and it fails with some missing symbols. It first installs gcc 4.2, then looks like it's trying to install 4.7 ?? I tried the command "sudo port install gcc46 configure.compiler=apple-gcc-4.2" but it looks like it's still using apple's gcc 4.0.1 in the log:

:info:build /usr/bin/gcc-4.0 -arch ppc   -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/opt/local/lib -o cc1 c-lang.o c-family/stub-objc.o attribs.o c-errors.o c-decl.o c-typeck.o c-convert.o c-aux-info.o c-objc-common.o c-parser.o tree-mudflap.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 darwin-c.o rs6000-c.o \
:info:build   cc1-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/opt/local/lib -lcloog-isl -lisl -L/opt/local/lib -lppl_c -lppl  -lgmpxx -L/opt/local/lib -L/opt/local/lib -L/opt/local/lib -lmpc -lmpfr -lgmp   -lz
:info:build /usr/libexec/gcc/powerpc-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/powerpc-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 /opt/local/lib/libgmp.dylib(single module) not from earlier dynamic library /opt/local/lib/libppl_c.4.dylib(single module)
:info:build collect2: ld returned 1 exit status
:info:build make[3]: *** [cc1] Error 1
:info:build make[3]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_gcc47/libstdcxx/work/build/gcc'
:info:build make[2]: *** [all-stage1-gcc] Error 2
:info:build make[2]: Leaving directory `/opt/local/var/macports/build/_opt_local_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 `/opt/local/var/macports/build/_opt_local_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 `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_gcc47/libstdcxx/work/build'
:info:build Command failed:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_gcc47/libstdcxx/work/build" && /usr/bin/make -w bootstrap 
:info:build Exit code: 2
Last edited 11 years ago by ryandesign (Ryan Carsten Schmidt) (previous) (diff)

comment:9 Changed 12 years ago by ifn22@…

For some reason gcc46 needs gcc47, so I copied the lines in r96428 from the gcc46 portfile to a similar location in the gcc47 portfile and it looks like that fixed it. And to reiterate: sudo port install gcc46 configure.compiler=apple-gcc-4.2 did not work for me.

Last edited 12 years ago by ifn22@… (previous) (diff)

comment:10 Changed 11 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: ifn22@… added
Resolution: fixed
Status: reopenedclosed

comment:11 Changed 11 years ago by cooljeanius (Eric Gallager)

Cc: egall@… added

Cc Me!

Note: See TracTickets for help on using tickets.