Opened 16 years ago

Closed 15 years ago

#13805 closed defect (duplicate)

mercury depends on gcc34 which fails to compile (intel, leopard)

Reported by: albatros@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 1.6.0
Keywords: Cc: ryandesign (Ryan Carsten Schmidt), gwright@…
Port:

Description (last modified by jmpp@…)

colin@tigger:/opt/macports-1.6.0/var/macports> nice sudo port install mercury
--->  Fetching gcc34
--->  Verifying checksum(s) for gcc34
--->  Extracting gcc34
--->  Configuring gcc34
--->  Building gcc34 with target bootstrap-lean
Error: Target org.macports.build returned: shell command " cd "/opt/macports-1.6.0/var/macports/build/_opt_macports-1.6.0_var_macports_sources_rsync.macports.org_release_ports_lang_gcc34/work/build" && make bootstrap-lean " returned error 2
Command output: 	    > tmp-mlib.h; \
	else \
	  /bin/sh /opt/macports-1.6.0/var/macports/build/_opt_macports-1.6.0_var_macports_sources_rsync.macports.org_release_ports_lang_gcc34/work/gcc-3.4.6/gcc/genmultilib '' '' '' '' '' '' '' no \
	    > tmp-mlib.h; \
	fi
/bin/sh /opt/macports-1.6.0/var/macports/build/_opt_macports-1.6.0_var_macports_sources_rsync.macports.org_release_ports_lang_gcc34/work/gcc-3.4.6/gcc/move-if-change tmp-mlib.h multilib.h
echo timestamp > s-mlib
lsf="/opt/macports-1.6.0/var/macports/build/_opt_macports-1.6.0_var_macports_sources_rsync.macports.org_release_ports_lang_gcc34/work/gcc-3.4.6/gcc/cp/lang-specs.h /opt/macports-1.6.0/var/macports/build/_opt_macports-1.6.0_var_macports_sources_rsync.macports.org_release_ports_lang_gcc34/work/gcc-3.4.6/gcc/f/lang-specs.h /opt/macports-1.6.0/var/macports/build/_opt_macports-1.6.0_var_macports_sources_rsync.macports.org_release_ports_lang_gcc34/work/gcc-3.4.6/gcc/java/lang-specs.h /opt/macports-1.6.0/var/macports/build/_opt_macports-1.6.0_var_macports_sources_rsync.macports.org_release_ports_lang_gcc34/work/gcc-3.4.6/gcc/objc/lang-specs.h"; for f in $lsf; do \
	    echo "#include \"$f\""; \
	done | sed 's|/opt/macports-1.6.0/var/macports/build/_opt_macports-1.6.0_var_macports_sources_rsync.macports.org_release_ports_lang_gcc34/work/gcc-3.4.6/gcc/||' > tmp-specs.h
/bin/sh /opt/macports-1.6.0/var/macports/build/_opt_macports-1.6.0_var_macports_sources_rsync.macports.org_release_ports_lang_gcc34/work/gcc-3.4.6/gcc/move-if-change tmp-specs.h specs.h
echo timestamp > s-specs
(SHLIB_LINK='' \
	SHLIB_MULTILIB=''; \
	/usr/bin/gcc-4.0   -g  -DIN_GCC   -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -pedantic -Wno-long-long  -Wno-error  -DHAVE_CONFIG_H    -I. -I. -I/opt/macports-1.6.0/var/macports/build/_opt_macports-1.6.0_var_macports_sources_rsync.macports.org_release_ports_lang_gcc34/work/gcc-3.4.6/gcc -I/opt/macports-1.6.0/var/macports/build/_opt_macports-1.6.0_var_macports_sources_rsync.macports.org_release_ports_lang_gcc34/work/gcc-3.4.6/gcc/. -I/opt/macports-1.6.0/var/macports/build/_opt_macports-1.6.0_var_macports_sources_rsync.macports.org_release_ports_lang_gcc34/work/gcc-3.4.6/gcc/../include  \
  -DSTANDARD_STARTFILE_PREFIX=\"../../../\" -DSTANDARD_EXEC_PREFIX=\"/opt/macports-1.6.0/lib/gcc-3.4/gcc/\" -DSTANDARD_LIBEXEC_PREFIX=\"/opt/macports-1.6.0/libexec/gcc/\" -DDEFAULT_TARGET_VERSION=\"3.4.6\" -DDEFAULT_TARGET_MACHINE=\"i686-apple-darwin9.1.0\" -DSTANDARD_BINDIR_PREFIX=\"/opt/macports-1.6.0/bin/\" -DTOOLDIR_BASE_PREFIX=\"../../../../\"  `test "X${SHLIB_LINK}" = "X" || test "yes" != "yes" || echo "-DENABLE_SHARED_LIBGCC"` `test "X${SHLIB_MULTILIB}" = "X" || echo "-DNO_SHARED_LIBGCC_MULTILIB"` \
  -c /opt/macports-1.6.0/var/macports/build/_opt_macports-1.6.0_var_macports_sources_rsync.macports.org_release_ports_lang_gcc34/work/gcc-3.4.6/gcc/gcc.c -o gcc.o)
/opt/macports-1.6.0/var/macports/build/_opt_macports-1.6.0_var_macports_sources_rsync.macports.org_release_ports_lang_gcc34/work/gcc-3.4.6/gcc/gcc.c:716: warning: string length '2483' is greater than the length '509' ISO C89 compilers are required to support
/opt/macports-1.6.0/var/macports/build/_opt_macports-1.6.0_var_macports_sources_rsync.macports.org_release_ports_lang_gcc34/work/gcc-3.4.6/gcc/gcc.c:723: warning: string length '636' is greater than the length '509' ISO C89 compilers are required to support
/opt/macports-1.6.0/var/macports/build/_opt_macports-1.6.0_var_macports_sources_rsync.macports.org_release_ports_lang_gcc34/work/gcc-3.4.6/gcc/gcc.c:906: warning: string length '529' is greater than the length '509' ISO C89 compilers are required to support
/opt/macports-1.6.0/var/macports/build/_opt_macports-1.6.0_var_macports_sources_rsync.macports.org_release_ports_lang_gcc34/work/gcc-3.4.6/gcc/gcc.c:924: warning: string length '608' is greater than the length '509' ISO C89 compilers are required to support
In file included from ./specs.h:4,
                 from /opt/macports-1.6.0/var/macports/build/_opt_macports-1.6.0_var_macports_sources_rsync.macports.org_release_ports_lang_gcc34/work/gcc-3.4.6/gcc/gcc.c:957:
/opt/macports-1.6.0/var/macports/build/_opt_macports-1.6.0_var_macports_sources_rsync.macports.org_release_ports_lang_gcc34/work/gcc-3.4.6/gcc/objc/lang-specs.h:27: warning: string length '603' is greater than the length '509' ISO C89 compilers are required to support
/opt/macports-1.6.0/var/macports/build/_opt_macports-1.6.0_var_macports_sources_rsync.macports.org_release_ports_lang_gcc34/work/gcc-3.4.6/gcc/objc/lang-specs.h:42: warning: string length '783' is greater than the length '509' ISO C89 compilers are required to support
/opt/macports-1.6.0/var/macports/build/_opt_macports-1.6.0_var_macports_sources_rsync.macports.org_release_ports_lang_gcc34/work/gcc-3.4.6/gcc/gcc.c:1095: error: syntax error before ',' token
/opt/macports-1.6.0/var/macports/build/_opt_macports-1.6.0_var_macports_sources_rsync.macports.org_release_ports_lang_gcc34/work/gcc-3.4.6/gcc/gcc.c:1506: warning: string length '833' is greater than the length '509' ISO C89 compilers are required to support
make[2]: *** [gcc.o] Error 1
make[1]: *** [stage1_build] Error 2
make: *** [bootstrap-lean] Error 2

Error: The following dependencies failed to build: gcc34
Error: Status 1 encountered during processing.
colin@tigger:/opt/macports-1.6.0/var/macports> uname -a
Darwin tigger.local 9.1.0 Darwin Kernel Version 9.1.0: Wed Oct 31 17:46:22 PDT 2007; root:xnu-1228.0.2~1/RELEASE_I386 i386
colin@tigger:/opt/macports-1.6.0/var/macports> gcc -v
Using built-in specs.
Target: i686-apple-darwin9
Configured with: /var/tmp/gcc/gcc-5465~16/src/configure --disable-checking -enable-werror --prefix=/usr --mandir=/share/man --enable-languages=c,objc,c++,obj-c++ --program-transform-name=/^[cg][^.-]*$/s/$/-4.0/ --with-gxx-include-dir=/include/c++/4.0.0 --with-slibdir=/usr/lib --build=i686-apple-darwin9 --with-arch=apple --with-tune=generic --host=i686-apple-darwin9 --target=i686-apple-darwin9
Thread model: posix
gcc version 4.0.1 (Apple Inc. build 5465)
colin@tigger:/opt/macports-1.6.0/var/macports> sudo port version
Password:
Version: 1.600

Change History (8)

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

Cc: ryandesign@… added
Milestone: Port Bugs

That's not entirely unexpected. You should be using gcc42 anyway. Why do you want gcc34?

comment:2 Changed 16 years ago by albatros@…

Sorry, should have mentioned this in the original post:

colin@tigger:/opt/macports-1.6.0> sudo port install mercury ---> Verifying checksum(s) for gcc34 ---> Extracting gcc34 ...

comment:3 Changed 16 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: gwright@… added
Summary: gcc34 fails to compile (intel, leopard)mercury depends on gcc34 which fails to compile (intel, leopard)

Greg, can you remember why in r16494 you added to the mercury port the dependency on gcc34?

comment:4 Changed 16 years ago by jmpp@…

Description: modified (diff)

Please read WikiFormatting to learn how to properly paste Terminal output into tickets, thanks!

-jmpp

comment:5 in reply to:  3 Changed 16 years ago by godboutn@…

Replying to ryandesign@macports.org:

Greg, can you remember why in r16494 you added to the mercury port the dependency on gcc34?

If I may, I will provide an answer. It is stated several times on the Mercury web site and INSTALL files that it will not compile at all under gcc4.0.x, which now comes of course with XCode 3. It is recommended to either roll back to gcc34 or possibly forward to gcc 4.2.x.

Building Mercury on Darwin 9 is a major pain and requires much more work than changing the compiler. The included boehm_gc sources must be upgraded. I managed to compile Mercury but it doesn't work: it just leaks memory like crazy and doesn't do anything.

I will post pointers if I manage to iron out all the kinks.

comment:6 Changed 16 years ago by raimue (Rainer Müller)

There is also a similar report in #15838.

comment:7 Changed 15 years ago by (none)

Milestone: Port Bugs

Milestone Port Bugs deleted

comment:8 Changed 15 years ago by tobypeterson

Resolution: duplicate
Status: newclosed

This failure is identical to that reported in #15838. This ticket is older but contains less relevant info - marking as duplicate.

Note: See TracTickets for help on using tickets.