Opened 10 years ago

Closed 10 years ago

#20430 closed defect (duplicate)

gcc44 4.4.1 fails bootstrap because of -arch

Reported by: andre.david@… Owned by: mww@…
Priority: Normal Milestone:
Component: ports Version:
Keywords: Cc:
Port: gcc44

Description

Hi, I was trying to get gcc44 going and got:

$ sudo port install gcc44
--->  Computing dependencies for gcc44
--->  Building gcc44
Error: Target org.macports.build returned: shell command " cd "/opt/local/var/macports/build/_Users_adavid_macports-trunk_dports_lang_gcc44/work/build" && /usr/bin/make -j2 bootstrap " returned error 2
Command output: make[3]: Nothing to be done for `all'.
make[4]: Nothing to be done for `all'.
make[4]: Nothing to be done for `all'.
true "AR_FLAGS=rc" "CC_FOR_BUILD=/usr/bin/gcc-4.0" "CFLAGS=-g -fkeep-inline-functions" "CXXFLAGS=-g -fkeep-inline-functions" "CFLAGS_FOR_BUILD=-O2 -arch i386" "CFLAGS_FOR_TARGET=-g -O2 -arch i386" "INSTALL=/usr/bin/install -c" "INSTALL_DATA=/usr/bin/install -c -m 644" "INSTALL_PROGRAM=/usr/bin/install -c" "INSTALL_SCRIPT=/usr/bin/install -c" "LDFLAGS=-L/opt/local/lib" "LIBCFLAGS=-g -O2 -arch i386" "LIBCFLAGS_FOR_TARGET=-g -O2 -arch i386" "MAKE=/usr/bin/make" "MAKEINFO=makeinfo --split-size=5000000 --split-size=5000000 --split-size=5000000 " "PICFLAG=" "PICFLAG_FOR_TARGET=" "SHELL=/bin/sh" "EXPECT=expect" "RUNTEST=runtest" "RUNTESTFLAGS=" "exec_prefix=/opt/local" "infodir=/opt/local/share/info" "libdir=/opt/local/lib/gcc44" "prefix=/opt/local" "tooldir=/opt/local/i386-apple-darwin9.7.0" "AR=ar" "AS=as" "CC=/usr/bin/gcc-4.0" "CXX=/usr/bin/g++-4.0" "LD=/usr/libexec/gcc/i686-apple-darwin9/4.0.1/ld" "LIBCFLAGS=-g -O2 -arch i386" "NM=nm" "PICFLAG=" "RANLIB=ranlib" "DESTDIR=" DO=all multi-do # /usr/bin/make
make[3]: Nothing to be done for `all'.
make[3]: Nothing to be done for `all'.
make[3]: Nothing to be done for `all'.
Makefile:3355: warning: overriding commands for target `gt-darwin.h'
../../gcc-4.4.1/gcc/config/t-darwin:17: warning: ignoring old commands for target `gt-darwin.h'
Checking multilib configuration for libgcc...
Configuring stage 1 in i386-apple-darwin9.7.0/libgcc
configure: loading cache ./config.cache
checking for --enable-version-specific-runtime-libs... no
checking for a BSD-compatible install... /usr/bin/install -c
checking for gawk... gawk
checking build system type... i386-apple-darwin9.7.0
checking host system type... i386-apple-darwin9.7.0
checking for i386-apple-darwin9.7.0-ar... /usr/bin/ar
checking for i386-apple-darwin9.7.0-lipo... lipo
checking for i386-apple-darwin9.7.0-nm... /opt/local/var/macports/build/_Users_adavid_macports-trunk_dports_lang_gcc44/work/build/./gcc/nm
checking for i386-apple-darwin9.7.0-ranlib... /usr/bin/ranlib -c
checking for i386-apple-darwin9.7.0-strip... /usr/bin/strip
checking whether ln -s works... yes
checking for i386-apple-darwin9.7.0-gcc... /opt/local/var/macports/build/_Users_adavid_macports-trunk_dports_lang_gcc44/work/build/./gcc/xgcc -B/opt/local/var/macports/build/_Users_adavid_macports-trunk_dports_lang_gcc44/work/build/./gcc/ -B/opt/local/i386-apple-darwin9.7.0/bin/ -B/opt/local/i386-apple-darwin9.7.0/lib/ -isystem /opt/local/i386-apple-darwin9.7.0/include -isystem /opt/local/i386-apple-darwin9.7.0/sys-include
checking for suffix of object files... configure: error: in `/opt/local/var/macports/build/_Users_adavid_macports-trunk_dports_lang_gcc44/work/build/i386-apple-darwin9.7.0/libgcc':
configure: error: cannot compute suffix of object files: cannot compile
See `config.log' for more details.
make[2]: *** [configure-stage1-target-libgcc] Error 1
make[1]: *** [stage1-bubble] Error 2
make: *** [bootstrap] Error 2

Error: Status 1 encountered during processing.

config.log shows

configure:2590: checking for suffix of object files
configure:2611: /opt/local/var/macports/build/_Users_adavid_macports-trunk_dports_lang_gcc44/work/build/./gcc/xgcc -B/opt/local/var/macports/build/_U
sers_adavid_macports-trunk_dports_lang_gcc44/work/build/./gcc/ -B/opt/local/i386-apple-darwin9.7.0/bin/ -B/opt/local/i386-apple-darwin9.7.0/lib/ -isy
stem /opt/local/i386-apple-darwin9.7.0/include -isystem /opt/local/i386-apple-darwin9.7.0/sys-include -c -g -O2 -arch i386    conftest.c >&5
cc1: error: unrecognized command line option "-arch"
configure:2614: $? = 1
configure: failed program was:
| /* confdefs.h.  */
| 
| #define PACKAGE_NAME "GNU C Runtime Library"
| #define PACKAGE_TARNAME "libgcc"
| #define PACKAGE_VERSION "1.0"
| #define PACKAGE_STRING "GNU C Runtime Library 1.0"
| #define PACKAGE_BUGREPORT ""
| /* end confdefs.h.  */
| 
| int
| main ()
| {
| 
|   ;
|   return 0;
| }
configure:2627: error: in `/opt/local/var/macports/build/_Users_adavid_macports-trunk_dports_lang_gcc44/work/build/i386-apple-darwin9.7.0/libgcc':
configure:2630: error: cannot compute suffix of object files: cannot compile
See `config.log' for more details.

Could this be related to #20280 and #20361 ?

Change History (2)

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

Owner: changed from macports-tickets@… to mww@…
Port: gcc44 added

comment:2 Changed 10 years ago by tobypeterson

Resolution: duplicate
Status: newclosed
Note: See TracTickets for help on using tickets.