Opened 12 years ago

Closed 10 years ago

Last modified 10 years ago

#15838 closed defect (fixed)

gcc34 build fails on Mac OS X 10.5.4 intel

Reported by: shirose@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 1.6.0
Keywords: Cc: ryandesign (Ryan Schmidt), raimue (Rainer Müller), bva@…, MarcusCalhoun-Lopez (Marcus Calhoun-Lopez), blb@…, erickt@…, albatros@…, asimmons@…
Port: gcc34

Description

% sudo port install gcc34
--->  Fetching gcc34
--->  Attempting to fetch gcc-3.4.6.tar.bz2 from http://ftp.gnu.org/gnu//gcc/gcc-3.4.6
--->  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/local/var/macports/build/_Users_shirose_src_macports-trunk_dports_lang_gcc34/work/build" && make bootstrap-lean " returned error 2
Command output: 	    > tmp-mlib.h; \
	else \
	  /bin/sh /opt/local/var/macports/build/_Users_shirose_src_macports-trunk_dports_lang_gcc34/work/gcc-3.4.6/gcc/genmultilib '' '' '' '' '' '' '' no \
	    > tmp-mlib.h; \
	fi
/bin/sh /opt/local/var/macports/build/_Users_shirose_src_macports-trunk_dports_lang_gcc34/work/gcc-3.4.6/gcc/move-if-change tmp-mlib.h multilib.h
echo timestamp > s-mlib
lsf="/opt/local/var/macports/build/_Users_shirose_src_macports-trunk_dports_lang_gcc34/work/gcc-3.4.6/gcc/cp/lang-specs.h /opt/local/var/macports/build/_Users_shirose_src_macports-trunk_dports_lang_gcc34/work/gcc-3.4.6/gcc/f/lang-specs.h /opt/local/var/macports/build/_Users_shirose_src_macports-trunk_dports_lang_gcc34/work/gcc-3.4.6/gcc/java/lang-specs.h /opt/local/var/macports/build/_Users_shirose_src_macports-trunk_dports_lang_gcc34/work/gcc-3.4.6/gcc/objc/lang-specs.h"; for f in $lsf; do \
	    echo "#include \"$f\""; \
	done | sed 's|/opt/local/var/macports/build/_Users_shirose_src_macports-trunk_dports_lang_gcc34/work/gcc-3.4.6/gcc/||' > tmp-specs.h
/bin/sh /opt/local/var/macports/build/_Users_shirose_src_macports-trunk_dports_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/local/var/macports/build/_Users_shirose_src_macports-trunk_dports_lang_gcc34/work/gcc-3.4.6/gcc -I/opt/local/var/macports/build/_Users_shirose_src_macports-trunk_dports_lang_gcc34/work/gcc-3.4.6/gcc/. -I/opt/local/var/macports/build/_Users_shirose_src_macports-trunk_dports_lang_gcc34/work/gcc-3.4.6/gcc/../include  \
  -DSTANDARD_STARTFILE_PREFIX=\"../../../\" -DSTANDARD_EXEC_PREFIX=\"/opt/local/lib/gcc-3.4/gcc/\" -DSTANDARD_LIBEXEC_PREFIX=\"/opt/local/libexec/gcc/\" -DDEFAULT_TARGET_VERSION=\"3.4.6\" -DDEFAULT_TARGET_MACHINE=\"i686-apple-darwin9.4.0\" -DSTANDARD_BINDIR_PREFIX=\"/opt/local/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/local/var/macports/build/_Users_shirose_src_macports-trunk_dports_lang_gcc34/work/gcc-3.4.6/gcc/gcc.c -o gcc.o)
/opt/local/var/macports/build/_Users_shirose_src_macports-trunk_dports_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/local/var/macports/build/_Users_shirose_src_macports-trunk_dports_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/local/var/macports/build/_Users_shirose_src_macports-trunk_dports_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/local/var/macports/build/_Users_shirose_src_macports-trunk_dports_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/local/var/macports/build/_Users_shirose_src_macports-trunk_dports_lang_gcc34/work/gcc-3.4.6/gcc/gcc.c:957:
/opt/local/var/macports/build/_Users_shirose_src_macports-trunk_dports_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/local/var/macports/build/_Users_shirose_src_macports-trunk_dports_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/local/var/macports/build/_Users_shirose_src_macports-trunk_dports_lang_gcc34/work/gcc-3.4.6/gcc/gcc.c:1095: error: syntax error before ',' token
/opt/local/var/macports/build/_Users_shirose_src_macports-trunk_dports_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: Status 1 encountered during processing.

Change History (18)

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

Cc: ryandesign@… added

Why do you need gcc34?

comment:2 Changed 12 years ago by mjscod@…

I have the sample problem. I want to create a build environment for OpenMoko. The MokoMakefile automatically compiles QEMU which has problems with GCC 4.0+.

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

I do not know if it will be possible to make gcc 3.4 work on Leopard. gcc 3.4 is very old. It will probably be a better use of your time to update your software to work with gcc 4.3. For example the qemu port has been updated to work with gcc4 on Leopard on Intel. See its patches.

comment:4 Changed 12 years ago by raimue (Rainer Müller)

I tried to fix this particular issue, it's just one misplaced comma in gcc/gcc.c at line 1095.

-TARGET_OPTION_TRANSLATE_TABLE,
+TARGET_OPTION_TRANSLATE_TABLE

But anyhow, the build fails later with an "internal compiler error" and I think that one will not be so easy to fix.

As gcc34 does not compile on Tiger or Leopard, we should think about removing the port.

There is also a similar report in #13805.

comment:5 in reply to:  4 ; Changed 12 years ago by ryandesign (Ryan Schmidt)

Replying to raimue@macports.org:

As gcc34 does not compile on Tiger or Leopard, we should think about removing the port.

Removing the gcc34 port? There are still 10 ports that declare dependencies on it. Those dependencies should be changed first before we consider removing gcc34.

comment:6 in reply to:  5 Changed 12 years ago by raimue (Rainer Müller)

Cc: raimue@… added

Replying to ryandesign@macports.org:

Replying to raimue@macports.org:

As gcc34 does not compile on Tiger or Leopard, we should think about removing the port.

Removing the gcc34 port? There are still 10 ports that declare dependencies on it. Those dependencies should be changed first before we consider removing gcc34.

Right, I was taking this as an implied requirement :-)

$ port echo depends:gcc34
algae                           
mipsel-linux-uclib              
p5-extutils-f77                 
pgplot                          
py-scipy03                      
mercury 

(depends: is a trunk feature)

As 'port depends' uses the PortIndex only, this does not take variants into account.

But most of them listed only need g77, which could be used from gcc4x as well. Also, most of them don't have a maintainer.

$ port info --name --depends --maintainer depends:gcc34

shows details (again, trunk only).

Currently these ports are not usable without a working gcc34 build. So either we need to fix gcc34 or we have to investigate the dependencies of these ports, switch them to another compiler version or if there is no other possibility remove them, too.

comment:7 Changed 12 years ago by mf2k (Frank Schima)

Cc: bva@… added
Port: gcc34 added

Ccing reporter to dup #17469.

comment:8 Changed 12 years ago by blb@…

I was under the impression that gcc doesn't support building older versions with newer versions? If so, then gcc34 can't be done on Intel-based Macs which only support gcc4.

comment:9 Changed 12 years ago by jeremyhu (Jeremy Huddleston Sequoia)

Cc: mcalhoun@… added

This issue has not been addressed in quite some time. Those ports relying on gcc34 have had enough time to get fixed. obviously nobody cares enough about them to do that, so maybe we should start nuking them out:

algae mipsel-linux-uclib p5-extutils-f77 py-scipy03 mercury

comment:10 Changed 12 years ago by MarcusCalhoun-Lopez (Marcus Calhoun-Lopez)

pgplot will no longer depend on gcc34 in a day or two.
The last update was 2001-02-26, so it has taken a little work to get everything working.

comment:11 Changed 12 years ago by mgs@…

@jeremyhu

haha, I care about these ports. I just hadn't found them until last night (algae pgplot). Had they been nuked I wouldn't have found them. I don't think that's a very sensible approach. I won't get started but ... wouldn't unstable repositories be a solution to things like this.

comment:12 Changed 12 years ago by MarcusCalhoun-Lopez (Marcus Calhoun-Lopez)

As or r47644, pgplot no longer depends on gcc34.

comment:13 Changed 12 years ago by blb@…

Cc: blb@… erickt@… added

algae is old (hasn't seen an update in five years); I tried using g95 and gcc43 for its Fortran needs, neither of which worked. Unless someone wants to put in the work to update it for newer gcc tools, it should probably be dropped.

mipsel-linux-uclib actually depends on mipsel-linux-gcc34, not gcc34, but I don't know the status of that.

p5-extutils-f77 updated to use gcc43 in r47769.

py-scipy03 belongs to erickt, so Cc'ing for advice.

mercury doesn't appear to support Intel-based Macs currently, so I can't really do anything else with it.

comment:14 Changed 12 years ago by (none)

Milestone: Port Bugs

Milestone Port Bugs deleted

comment:15 Changed 11 years ago by tobypeterson

Cc: albatros@… added

comment:16 Changed 11 years ago by asimmons@…

Cc: asimmons@… added

Cc Me!

comment:17 Changed 10 years ago by raimue (Rainer Müller)

Resolution: fixed
Status: newclosed

Removed py-scipy03 in r71378. Removed gcc33 and gcc34 in r71379.

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

  • r77725: cfitsio: Removed g77 variant which depended on gcc34
Note: See TracTickets for help on using tickets.