Opened 16 years ago

Closed 16 years ago

Last modified 15 years ago

#13314 closed defect (fixed)

gcc41 fails to build on Mac OS X 10.5 Leopard

Reported by: carnevale@… Owned by: mww@…
Priority: Low Milestone:
Component: ports Version: 1.5.2
Keywords: gcc gcc41 Leopard Cc:
Port:

Description

I have an iBook G4 with Leopard 10.5.0

the output is this:

--> Fetching gcc41 ---> Attempting to fetch gcc-core-4.1.2.tar.bz2 from ftp://ftp.funet.fi/pub/mirrors/sources.redhat.com/pub/gcc/releases/gcc-4.1.2/ ---> Attempting to fetch gcc-fortran-4.1.2.tar.bz2 from ftp://ftp.funet.fi/pub/mirrors/sources.redhat.com/pub/gcc/releases/gcc-4.1.2/ ---> Attempting to fetch gcc-g++-4.1.2.tar.bz2 from ftp://ftp.funet.fi/pub/mirrors/sources.redhat.com/pub/gcc/releases/gcc-4.1.2/ ---> Attempting to fetch gcc-java-4.1.2.tar.bz2 from ftp://ftp.funet.fi/pub/mirrors/sources.redhat.com/pub/gcc/releases/gcc-4.1.2/ ---> Attempting to fetch gcc-objc-4.1.2.tar.bz2 from ftp://ftp.funet.fi/pub/mirrors/sources.redhat.com/pub/gcc/releases/gcc-4.1.2/ ---> Attempting to fetch gcc-objc-4.1.2.tar.bz2 from ftp://ftp.nluug.nl/mirror/languages/gcc/releases/gcc-4.1.2/ ---> Verifying checksum(s) for gcc41 ---> Extracting gcc41 ---> Configuring gcc41 ---> Building gcc41 with target profiledbootstrap Error: Target org.macports.build returned: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_gcc41/work/build" && make profiledbootstrap " returned error 2 Command output: gcc -c -g -no-cpp-precomp -DHAVE_DESIGNATED_INITIALIZERS=0 -DENABLE_CHECKING -DENABLE_ASSERT_CHECKING -DIN_GCC -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -pedantic -Wno-long-long -Wno-variadic-macros -Wold-style-definition -Wmissing-format-attribute -DHAVE_CONFIG_H -I. -I. -I../../gcc-4.1.2/gcc -I../../gcc-4.1.2/gcc/. -I../../gcc-4.1.2/gcc/../include -I../../gcc-4.1.2/gcc/../libcpp/include -I/opt/local/include -I/opt/local/include ../../gcc-4.1.2/gcc/cfgexpand.c -o cfgexpand.o gcc -c -g -no-cpp-precomp -DHAVE_DESIGNATED_INITIALIZERS=0 -DENABLE_CHECKING -DENABLE_ASSERT_CHECKING -DIN_GCC -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -pedantic -Wno-long-long -Wno-variadic-macros -Wold-style-definition -Wmissing-format-attribute -DHAVE_CONFIG_H -I. -I. -I../../gcc-4.1.2/gcc -I../../gcc-4.1.2/gcc/. -I../../gcc-4.1.2/gcc/../include -I../../gcc-4.1.2/gcc/../libcpp/include -I/opt/local/include -I/opt/local/include ../../gcc-4.1.2/gcc/lambda-mat.c -o lambda-mat.o gcc -c -g -no-cpp-precomp -DHAVE_DESIGNATED_INITIALIZERS=0 -DENABLE_CHECKING -DENABLE_ASSERT_CHECKING -DIN_GCC -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -pedantic -Wno-long-long -Wno-variadic-macros -Wold-style-definition -Wmissing-format-attribute -DHAVE_CONFIG_H -I. -I. -I../../gcc-4.1.2/gcc -I../../gcc-4.1.2/gcc/. -I../../gcc-4.1.2/gcc/../include -I../../gcc-4.1.2/gcc/../libcpp/include -I/opt/local/include -I/opt/local/include ../../gcc-4.1.2/gcc/lambda-trans.c -o lambda-trans.o gcc -c -g -no-cpp-precomp -DHAVE_DESIGNATED_INITIALIZERS=0 -DENABLE_CHECKING -DENABLE_ASSERT_CHECKING -DIN_GCC -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -pedantic -Wno-long-long -Wno-variadic-macros -Wold-style-definition -Wmissing-format-attribute -DHAVE_CONFIG_H -I. -I. -I../../gcc-4.1.2/gcc -I../../gcc-4.1.2/gcc/. -I../../gcc-4.1.2/gcc/../include -I../../gcc-4.1.2/gcc/../libcpp/include -I/opt/local/include -I/opt/local/include ../../gcc-4.1.2/gcc/lambda-code.c -o lambda-code.o gcc -c -g -no-cpp-precomp -DHAVE_DESIGNATED_INITIALIZERS=0 -DENABLE_CHECKING -DENABLE_ASSERT_CHECKING -DIN_GCC -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -pedantic -Wno-long-long -Wno-variadic-macros -Wold-style-definition -Wmissing-format-attribute -DHAVE_CONFIG_H -I. -I. -I../../gcc-4.1.2/gcc -I../../gcc-4.1.2/gcc/. -I../../gcc-4.1.2/gcc/../include -I../../gcc-4.1.2/gcc/../libcpp/include -I/opt/local/include -I/opt/local/include ../../gcc-4.1.2/gcc/tree-loop-linear.c -o tree-loop-linear.o gcc -c -g -no-cpp-precomp -DHAVE_DESIGNATED_INITIALIZERS=0 -DENABLE_CHECKING -DENABLE_ASSERT_CHECKING -DIN_GCC -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -pedantic -Wno-long-long -Wno-variadic-macros -Wold-style-definition -Wmissing-format-attribute -DHAVE_CONFIG_H -I. -I. -I../../gcc-4.1.2/gcc -I../../gcc-4.1.2/gcc/. -I../../gcc-4.1.2/gcc/../include -I../../gcc-4.1.2/gcc/../libcpp/include -I/opt/local/include -I/opt/local/include ../../gcc-4.1.2/gcc/tree-ssa-sink.c -o tree-ssa-sink.o gcc -c -g -no-cpp-precomp -DHAVE_DESIGNATED_INITIALIZERS=0 -DENABLE_CHECKING -DENABLE_ASSERT_CHECKING -DIN_GCC -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -pedantic -Wno-long-long -Wno-variadic-macros -Wold-style-definition -Wmissing-format-attribute -DHAVE_CONFIG_H -I. -I. -I../../gcc-4.1.2/gcc -I../../gcc-4.1.2/gcc/. -I../../gcc-4.1.2/gcc/../include -I../../gcc-4.1.2/gcc/../libcpp/include -I/opt/local/include -I/opt/local/include ../../gcc-4.1.2/gcc/tree-vrp.c -o tree-vrp.o gcc -c -g -no-cpp-precomp -DHAVE_DESIGNATED_INITIALIZERS=0 -DENABLE_CHECKING -DENABLE_ASSERT_CHECKING -DIN_GCC -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -pedantic -Wno-long-long -Wno-variadic-macros -Wold-style-definition -Wmissing-format-attribute -DHAVE_CONFIG_H -I. -I. -I../../gcc-4.1.2/gcc -I../../gcc-4.1.2/gcc/. -I../../gcc-4.1.2/gcc/../include -I../../gcc-4.1.2/gcc/../libcpp/include -I/opt/local/include -I/opt/local/include ../../gcc-4.1.2/gcc/tree-stdarg.c -o tree-stdarg.o gcc -c -g -no-cpp-precomp -DHAVE_DESIGNATED_INITIALIZERS=0 -DENABLE_CHECKING -DENABLE_ASSERT_CHECKING -DIN_GCC -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -pedantic -Wno-long-long -Wno-variadic-macros -Wold-style-definition -Wmissing-format-attribute -DHAVE_CONFIG_H -I. -I. -I../../gcc-4.1.2/gcc -I../../gcc-4.1.2/gcc/. -I../../gcc-4.1.2/gcc/../include -I../../gcc-4.1.2/gcc/../libcpp/include -I/opt/local/include -I/opt/local/include ../../gcc-4.1.2/gcc/tree-cfgcleanup.c -o tree-cfgcleanup.o gcc -c -g -no-cpp-precomp -DHAVE_DESIGNATED_INITIALIZERS=0 -DENABLE_CHECKING -DENABLE_ASSERT_CHECKING -DIN_GCC -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -pedantic -Wno-long-long -Wno-variadic-macros -Wold-style-definition -Wmissing-format-attribute -DHAVE_CONFIG_H -I. -I. -I../../gcc-4.1.2/gcc -I../../gcc-4.1.2/gcc/. -I../../gcc-4.1.2/gcc/../include -I../../gcc-4.1.2/gcc/../libcpp/include -I/opt/local/include -I/opt/local/include ../../gcc-4.1.2/gcc/tree-ssa-reassoc.c -o tree-ssa-reassoc.o gcc -c -g -no-cpp-precomp -DHAVE_DESIGNATED_INITIALIZERS=0 -DENABLE_CHECKING -DENABLE_ASSERT_CHECKING -DIN_GCC -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -pedantic -Wno-long-long -Wno-variadic-macros -Wold-style-definition -Wmissing-format-attribute -DHAVE_CONFIG_H -I. -I. -I../../gcc-4.1.2/gcc -I../../gcc-4.1.2/gcc/. -I../../gcc-4.1.2/gcc/../include -I../../gcc-4.1.2/gcc/../libcpp/include -I/opt/local/include -I/opt/local/include ../../gcc-4.1.2/gcc/tree-ssa-structalias.c -o tree-ssa-structalias.o gcc -c -g -no-cpp-precomp -DHAVE_DESIGNATED_INITIALIZERS=0 -DENABLE_CHECKING -DENABLE_ASSERT_CHECKING -DIN_GCC -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -pedantic -Wno-long-long -Wno-variadic-macros -Wold-style-definition -Wmissing-format-attribute -DHAVE_CONFIG_H -I. -I. -I../../gcc-4.1.2/gcc -I../../gcc-4.1.2/gcc/. -I../../gcc-4.1.2/gcc/../include -I../../gcc-4.1.2/gcc/../libcpp/include -I/opt/local/include -I/opt/local/include ../../gcc-4.1.2/gcc/tree-object-size.c -o tree-object-size.o gcc -c -g -no-cpp-precomp -DHAVE_DESIGNATED_INITIALIZERS=0 -DENABLE_CHECKING -DENABLE_ASSERT_CHECKING -DIN_GCC -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -pedantic -Wno-long-long -Wno-variadic-macros -Wold-style-definition -Wmissing-format-attribute -DHAVE_CONFIG_H -I. -I. -I../../gcc-4.1.2/gcc -I../../gcc-4.1.2/gcc/. -I../../gcc-4.1.2/gcc/../include -I../../gcc-4.1.2/gcc/../libcpp/include -I/opt/local/include -I/opt/local/include \

../../gcc-4.1.2/gcc/config/rs6000/rs6000.c -o rs6000.o

gcc -c -g -no-cpp-precomp -DHAVE_DESIGNATED_INITIALIZERS=0 -DENABLE_CHECKING -DENABLE_ASSERT_CHECKING -DIN_GCC -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -pedantic -Wno-long-long -Wno-variadic-macros -Wold-style-definition -Wmissing-format-attribute -DHAVE_CONFIG_H -I. -I. -I../../gcc-4.1.2/gcc -I../../gcc-4.1.2/gcc/. -I../../gcc-4.1.2/gcc/../include -I../../gcc-4.1.2/gcc/../libcpp/include -I/opt/local/include -I/opt/local/include -I. -I. -I../../gcc-4.1.2/gcc -I../../gcc-4.1.2/gcc/. -I../../gcc-4.1.2/gcc/../include -I../../gcc-4.1.2/gcc/../libcpp/include -I/opt/local/include -I/opt/local/include ../../gcc-4.1.2/gcc/config/darwin.c gcc -c -g -no-cpp-precomp -DHAVE_DESIGNATED_INITIALIZERS=0 -DENABLE_CHECKING -DENABLE_ASSERT_CHECKING -DIN_GCC -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -pedantic -Wno-long-long -Wno-variadic-macros -Wold-style-definition -Wmissing-format-attribute -DHAVE_CONFIG_H -I. -I. -I../../gcc-4.1.2/gcc -I../../gcc-4.1.2/gcc/. -I../../gcc-4.1.2/gcc/../include -I../../gcc-4.1.2/gcc/../libcpp/include -I/opt/local/include -I/opt/local/include -I. -I. -I../../gcc-4.1.2/gcc -I../../gcc-4.1.2/gcc/. -I../../gcc-4.1.2/gcc/../include -I../../gcc-4.1.2/gcc/../libcpp/include -I/opt/local/include -I/opt/local/include ../../gcc-4.1.2/gcc/config/host-darwin.c gcc -c -g -no-cpp-precomp -DHAVE_DESIGNATED_INITIALIZERS=0 -DENABLE_CHECKING -DENABLE_ASSERT_CHECKING -DIN_GCC -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -pedantic -Wno-long-long -Wno-variadic-macros -Wold-style-definition -Wmissing-format-attribute -DHAVE_CONFIG_H -I. -I. -I../../gcc-4.1.2/gcc -I../../gcc-4.1.2/gcc/. -I../../gcc-4.1.2/gcc/../include -I../../gcc-4.1.2/gcc/../libcpp/include -I/opt/local/include -I/opt/local/include -I. -I. -I../../gcc-4.1.2/gcc -I../../gcc-4.1.2/gcc/. -I../../gcc-4.1.2/gcc/../include -I../../gcc-4.1.2/gcc/../libcpp/include -I/opt/local/include -I/opt/local/include ../../gcc-4.1.2/gcc/config/rs6000/host-darwin.c -o host-ppc-darwin.o ../../gcc-4.1.2/gcc/config/rs6000/host-darwin.c:38: warning: 'struct sigaltstack' declared inside parameter list ../../gcc-4.1.2/gcc/config/rs6000/host-darwin.c:38: warning: its scope is only this definition or declaration, which is probably not what you want ../../gcc-4.1.2/gcc/config/rs6000/host-darwin.c:38: error: conflicting types for 'sigaltstack' /usr/include/signal.h:89: error: previous declaration of 'sigaltstack' was here ../../gcc-4.1.2/gcc/config/rs6000/host-darwin.c: In function 'segv_handler': ../../gcc-4.1.2/gcc/config/rs6000/host-darwin.c:71: error: 'struct darwin_mcontext' has no member named 'ss' ../../gcc-4.1.2/gcc/config/rs6000/host-darwin.c:120: error: 'struct darwin_mcontext' has no member named 'es' ../../gcc-4.1.2/gcc/config/rs6000/host-darwin.c:120: error: 'struct darwin_mcontext' has no member named 'ss' ../../gcc-4.1.2/gcc/config/rs6000/host-darwin.c: In function 'darwin_rs6000_extra_signals': ../../gcc-4.1.2/gcc/config/rs6000/host-darwin.c:134: warning: passing argument 1 of 'sigaltstack' from incompatible pointer type make[2]: * [host-ppc-darwin.o] Error 1 make[1]: * [stage1_build] Error 2 make: * [profiledbootstrap] Error 2

Error: Status 1 encountered during processing.

Attachments (3)

Portfile.diff (961 bytes) - added by roland@… 16 years ago.
Patch against Portfile.
patch-make-exports.pl-leopard (512 bytes) - added by roland@… 16 years ago.
Fix invocation of c++filt.
patch-configure-texinfo (510 bytes) - added by roland@… 16 years ago.
Fix test looking for Texinfo >= 4.2.

Download all attachments as: .zip

Change History (8)

comment:1 Changed 16 years ago by nox@…

Milestone: Port Bugs
Owner: changed from macports-dev@… to mww@…
Summary: gcc 4.1.2 don't compile under Leopard PowerPCgcc41 fails to build on Mac OS X 10.5 Leopard

comment:2 Changed 16 years ago by mww@…

Priority: HighLow
Status: newassigned

fixing this would take a huge effort -- we should really wait for 4.1.3 to fix this. This is btw. an expected bug as gcc 4.1.2 was released before 10.5.

Changed 16 years ago by roland@…

Attachment: Portfile.diff added

Patch against Portfile.

Changed 16 years ago by roland@…

Fix invocation of c++filt.

Changed 16 years ago by roland@…

Attachment: patch-configure-texinfo added

Fix test looking for Texinfo >= 4.2.

comment:3 Changed 16 years ago by roland@…

I managed to compile the whole set of GCC back-ends on Mac OS X 10.5 (Leopard) on Intel (currently, the Portfile is configured to compile the C back-end only). Here is a patch against Portfile as well as two patches to have GCC 4.1.2 compile again.

I had to fix three problems:

  1. First, configure looks for a version of Texinfo equal or greater than 4.2, but the test is broken (the test doesn't handle Texinfo 4.11, which is the one currently shipped with MacPorts). Attached patch patch-configure-texinfo fixes this test.
  2. Then, c++filt's interface seems to have changed over time: option --strip-underscores is now named --strip-underscore (with no 's'), at least in the version provided by Apple in Leopard. Attached file patch-make-exports.pl-leopard handles this.
  3. Last, the interface of libiconv (1.12) from MacPorts is not the one expected by the GCC being compiled, and some symbols are unresolved. A solution is to force the build system to use the system's library, located in /usr/lib/, rather than the MacPorts' one. Line configure.args-append --with-libiconv-prefix=/usr from Portfile.diff addresses this.

Hope it'll help!

comment:4 Changed 16 years ago by mww@…

Keywords: gcc41 added
Resolution: fixed
Status: assignedclosed

awesome, thanks for your effort -- commited;

comment:5 Changed 15 years ago by (none)

Milestone: Port Bugs

Milestone Port Bugs deleted

Note: See TracTickets for help on using tickets.