Opened 8 years ago

Closed 8 years ago

#51982 closed defect (worksforme)

gcc5 fails to build on snowleopard

Reported by: chrisjogorman Owned by: mww@…
Priority: Normal Milestone:
Component: ports Version: 2.3.4
Keywords: snowleopard Cc: ryandesign (Ryan Carsten Schmidt)
Port: gcc5

Description

g -O2 -pipe -Os  -c -o atexit_arm.lo /sandbox/var/macports/build/_sandbox_trunk_dports_lang_gcc5/gcc5/work/gcc-5.3.0/libstdc++-v3/libsupc++/atexit_arm.cc
../libtool: line 533: CDPATH: command not found
../libtool: line 533: CDPATH: command not found
../libtool: line 937: libtool: ignoring unknown tag CXX: command not found
../libtool: line 937: libtool: ignoring unknown tag disable-shared: command not found
../libtool: line 937: libtool: ignoring unknown tag CXX: command not found
../libtool: line 937: libtool: ignoring unknown tag disable-shared: command not found
libtool: Version mismatch error.  This is libtool 2.2.7a, but the
libtool: definition of this LT_INIT comes from an older release.
libtool: You should recreate aclocal.m4 with macros from libtool 2.2.7a
libtool: and run autoconf again.
libtool: Version mismatch error.  This is libtool 2.2.7a, but the
libtool: definition of this LT_INIT comes from an older release.
libtool: You should recreate aclocal.m4 with macros from libtool 2.2.7a
libtool: and run autoconf again.
make[5]: *** [atexit_arm.lo] Error 63
make[5]: *** Waiting for unfinished jobs....
make[5]: *** [array_type_info.lo] Error 63
make[5]: Leaving directory `/sandbox/var/macports/build/_sandbox_trunk_dports_lang_gcc5/gcc5/work/build/x86_64-apple-darwin10/libstdc++-v3/libsupc++'
make[4]: *** [all-recursive] Error 1
make[4]: Leaving directory `/sandbox/var/macports/build/_sandbox_trunk_dports_lang_gcc5/gcc5/work/build/x86_64-apple-darwin10/libstdc++-v3'
make[3]: *** [all] Error 2
make[3]: Leaving directory `/sandbox/var/macports/build/_sandbox_trunk_dports_lang_gcc5/gcc5/work/build/x86_64-apple-darwin10/libstdc++-v3'
make[2]: *** [all-stage3-target-libstdc++-v3] Error 2
make[2]: Leaving directory `/sandbox/var/macports/build/_sandbox_trunk_dports_lang_gcc5/gcc5/work/build'
make[1]: *** [stage3-bubble] Error 2
make[1]: Leaving directory `/sandbox/var/macports/build/_sandbox_trunk_dports_lang_gcc5/gcc5/work/build'
make: *** [bootstrap-lean] Error 2
make: Leaving directory `/sandbox/var/macports/build/_sandbox_trunk_dports_lang_gcc5/gcc5/work/build'
Command failed:  cd "/sandbox/var/macports/build/_sandbox_trunk_dports_lang_gcc5/gcc5/work/build" && /usr/bin/make -j2 -w bootstrap-lean 
Exit code: 2
Error: Failed to build gcc5: command execution failed
Error: See /sandbox/var/macports/logs/_sandbox_trunk_dports_lang_gcc5/gcc5/main.log for details.
Error: Follow http://guide.macports.org/#project.tickets to report a bug.
Error: Processing of port octave failed

Attachments (1)

main.log (7.7 MB) - added by chrisjogorman 8 years ago.

Change History (5)

Changed 8 years ago by chrisjogorman

Attachment: main.log added

comment:1 Changed 8 years ago by mf2k (Frank Schima)

Cc: mww@… removed
Keywords: gcc5 libgcc removed
Owner: changed from macports-tickets@… to mww@…

comment:2 Changed 8 years ago by kenneth.f.cunningham@…

I just installed gcc5 on Snow Leopard without issue. I do have my Snow Leopard systems set up with the LibcxxOnOlderSystems variant, if that makes any difference to the process.

I did notice that your build log indicated gcc-5.3.0.tar.bz2, whereas I just built gcc-5.4.0.tar.bz2, so perhaps you haven't updated macports in a while?

As a suggestion, you might consider trying to

sudo port clean gcc5
sudo port selfupdate
sudo port upgrade outdated

and then try gcc5 again.

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

comment:3 in reply to:  2 Changed 8 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: ryandesign@… added

Replying to kenneth.f.cunningham@…:

I just installed gcc5 on Snow Leopard without issue. I do have my Snow Leopard systems set up with the LibcxxOnOlderSystems variant, if that makes any difference to the process.

All versions of gcc5 were built successfully on Snow Leopard by our buildbot, which is not using libc++, so that would not be the reason for the failure. (Chris is using a custom MacPorts prefix, which is why he can't use the binaries produced by our buildbot.)

The main.log contains five installation attempts. This should not happen with MacPorts 2.3.4 or earlier, but there is a bug with MacPorts trunk which does cause the logfile to fail to be cleared between attempts. Are you actually running MacPorts trunk, and not 2.3.4 as indicated? Please sudo rm $(port logfile gcc5) before cleaning and trying again per Kenneth's instructions above.

Also, please let us know what version of Xcode you have. If it's older than 3.2.6, please upgrade to 3.2.6.

comment:4 Changed 8 years ago by mojca (Mojca Miklavec)

Resolution: worksforme
Status: newclosed

Failing to get any additional information from the submitter for months and not being able to reproduce the problem, I'm closing this ticket as worksforme. If there are still problems, please submit a new ticket after updating macports & port definitions and after a clean attempt.

Note: See TracTickets for help on using tickets.