port install gcc40 or gcc41 fails

RenĂ© Donner <[email protected]> Thu, 31 Aug 2006 20:30:18 +0200
Newsgroups gmane.os.opendarwin.darwinports
Message-ID <[email protected]>
hi everybody!

I am trying to install py-scipy04, which depends on gcc40. trying to  
install either of the two results in the first output shown below  
(internal compiler error). i am using the stock i686-apple-darwin8- 
gcc-4.0.1 on a macbook pro und just ran selfupdate.

i then tried changing the scipy Portfile to depend on gcc41, but  
installing gcc41 doesn't work either, resulting in output #2   (no  
direct compiler error message apparent to me)

any hints on what i could try would be highly appreciated! thanks a lot!

rene

-------------------
output #1, trying gcc40


mia:~ rene$ sudo port install gcc40
Password:
--->  Building gcc40 with target profiledbootstrap
Error: Target com.apple.build returned: shell command "cd "/opt/local/ 
var/db/dports/build/ 
_opt_local_var_db_dports_sources_rsync.rsync.darwinports.org_dpupdate_dp 
orts_lang_gcc40/work/build" && make profiledbootstrap -j 2" returned  
error 2
Command output: make[2]: Nothing to be done for `all'.
make[1]: Nothing to be done for `all'.
true "AR_FLAGS=rc" "CC_FOR_BUILD=/usr/bin/gcc-4.0" "CFLAGS=-g -O2"  
"CXXFLAGS=-g -O2" "CFLAGS_FOR_BUILD=" "CFLAGS_FOR_TARGET=-O2 -g -O2"  
"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=" "LIBCFLAGS=-g -O2" "LIBCFLAGS_FOR_TARGET=-O2 - 
g -O2" "MAKE=make" "MAKEINFO=makeinfo --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/gcc40" "prefix=/opt/ 
local" "tooldir=/opt/local/i386-apple-darwin8.7.1" "AR=ar" "AS=as"  
"CC=/usr/bin/gcc-4.0" "CXX=/usr/bin/g++-4.0" "LD=ld" "LIBCFLAGS=-g - 
O2" "NM=nm" "PICFLAG=" "RANLIB=ranlib" "DESTDIR=" DO=all multi-do # make
make[2]: Nothing to be done for `all'.
make[1]: Nothing to be done for `all'.
make[1]: Nothing to be done for `all'.
Bootstrapping training compiler
make CC=" stage1/xgcc -Bstage1/ -B/opt/local/i386-apple-darwin8.7.1/ 
bin/" CC_FOR_BUILD=" stage1/xgcc -Bstage1/ -B/opt/local/i386-apple- 
darwin8.7.1/bin/" \
          STAGE_PREFIX=stage1/ \
          ADAFLAGS="" CFLAGS="-O2 -g -fomit-frame-pointer" LDFLAGS=""  
WARN_CFLAGS="\$(GCC_WARN_CFLAGS)" STRICT_WARN="-pedantic -Wno-long- 
long -Wno-variadic-macros -Wold-style-definition " libdir=/opt/local/ 
lib/gcc40 LANGUAGES="c gcov gcov-dump c++ f95 java objc"  
MAKEINFO="makeinfo --split-size=5000000" MAKEINFOFLAGS="--no-split"  
MAKEOVERRIDES= OUTPUT_OPTION="-o \$@" \
          CFLAGS="-O2 -g -fomit-frame-pointer -fprofile-generate"
stage1/xgcc -Bstage1/ -B/opt/local/i386-apple-darwin8.7.1/bin/ -c   - 
O2 -g -fomit-frame-pointer -fprofile-generate -DIN_GCC   -W -Wall - 
Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -pedantic - 
Wno-long-long -Wno-variadic-macros -Wold-style-definition     - 
DHAVE_CONFIG_H -DGENERATOR_FILE -I. -Ibuild -I/opt/local/var/db/ 
dports/build/ 
_opt_local_var_db_dports_sources_rsync.rsync.darwinports.org_dpupdate_dp 
orts_lang_gcc40/work/gcc-4.0.3/gcc -I/opt/local/var/db/dports/build/ 
_opt_local_var_db_dports_sources_rsync.rsync.darwinports.org_dpupdate_dp 
orts_lang_gcc40/work/gcc-4.0.3/gcc/build -I/opt/local/var/db/dports/ 
build/ 
_opt_local_var_db_dports_sources_rsync.rsync.darwinports.org_dpupdate_dp 
orts_lang_gcc40/work/gcc-4.0.3/gcc/../include -I/opt/local/var/db/ 
dports/build/ 
_opt_local_var_db_dports_sources_rsync.rsync.darwinports.org_dpupdate_dp 
orts_lang_gcc40/work/gcc-4.0.3/gcc/../libcpp/include -I/opt/local/ 
include -I/opt/local/include    -o build/genautomata.o /opt/local/var/ 
db/dports/build/ 
_opt_local_var_db_dports_sources_rsync.rsync.darwinports.org_dpupdate_dp 
orts_lang_gcc40/work/gcc-4.0.3/gcc/genautomata.c
stage1/xgcc -Bstage1/ -B/opt/local/i386-apple-darwin8.7.1/bin/ -c   - 
O2 -g -fomit-frame-pointer -fprofile-generate -DIN_GCC   -W -Wall - 
Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -pedantic - 
Wno-long-long -Wno-variadic-macros -Wold-style-definition     - 
DHAVE_CONFIG_H -I. -I. -I/opt/local/var/db/dports/build/ 
_opt_local_var_db_dports_sources_rsync.rsync.darwinports.org_dpupdate_dp 
orts_lang_gcc40/work/gcc-4.0.3/gcc -I/opt/local/var/db/dports/build/ 
_opt_local_var_db_dports_sources_rsync.rsync.darwinports.org_dpupdate_dp 
orts_lang_gcc40/work/gcc-4.0.3/gcc/. -I/opt/local/var/db/dports/build/ 
_opt_local_var_db_dports_sources_rsync.rsync.darwinports.org_dpupdate_dp 
orts_lang_gcc40/work/gcc-4.0.3/gcc/../include -I/opt/local/var/db/ 
dports/build/ 
_opt_local_var_db_dports_sources_rsync.rsync.darwinports.org_dpupdate_dp 
orts_lang_gcc40/work/gcc-4.0.3/gcc/../libcpp/include -I/opt/local/ 
include -I/opt/local/include    /opt/local/var/db/dports/build/ 
_opt_local_var_db_dports_sources_rsync.rsync.darwinports.org_dpupdate_dp 
orts_lang_gcc40/work/gcc-4.0.3/gcc/c-errors.c -o c-errors.o
stage1/xgcc -Bstage1/ -B/opt/local/i386-apple-darwin8.7.1/bin/ -c   - 
O2 -g -fomit-frame-pointer -fprofile-generate -DIN_GCC   -W -Wall - 
Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -pedantic - 
Wno-long-long -Wno-variadic-macros -Wold-style-definition     - 
DHAVE_CONFIG_H -I. -I. -I/opt/local/var/db/dports/build/ 
_opt_local_var_db_dports_sources_rsync.rsync.darwinports.org_dpupdate_dp 
orts_lang_gcc40/work/gcc-4.0.3/gcc -I/opt/local/var/db/dports/build/ 
_opt_local_var_db_dports_sources_rsync.rsync.darwinports.org_dpupdate_dp 
orts_lang_gcc40/work/gcc-4.0.3/gcc/. -I/opt/local/var/db/dports/build/ 
_opt_local_var_db_dports_sources_rsync.rsync.darwinports.org_dpupdate_dp 
orts_lang_gcc40/work/gcc-4.0.3/gcc/../include -I/opt/local/var/db/ 
dports/build/ 
_opt_local_var_db_dports_sources_rsync.rsync.darwinports.org_dpupdate_dp 
orts_lang_gcc40/work/gcc-4.0.3/gcc/../libcpp/include -I/opt/local/ 
include -I/opt/local/include    /opt/local/var/db/dports/build/ 
_opt_local_var_db_dports_sources_rsync.rsync.darwinports.org_dpupdate_dp 
orts_lang_gcc40/work/gcc-4.0.3/gcc/c-lex.c -o c-lex.o
stage1/xgcc -Bstage1/ -B/opt/local/i386-apple-darwin8.7.1/bin/ -c   - 
O2 -g -fomit-frame-pointer -fprofile-generate -DIN_GCC   -W -Wall - 
Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -pedantic - 
Wno-long-long -Wno-variadic-macros -Wold-style-definition     - 
DHAVE_CONFIG_H -I. -I. -I/opt/local/var/db/dports/build/ 
_opt_local_var_db_dports_sources_rsync.rsync.darwinports.org_dpupdate_dp 
orts_lang_gcc40/work/gcc-4.0.3/gcc -I/opt/local/var/db/dports/build/ 
_opt_local_var_db_dports_sources_rsync.rsync.darwinports.org_dpupdate_dp 
orts_lang_gcc40/work/gcc-4.0.3/gcc/. -I/opt/local/var/db/dports/build/ 
_opt_local_var_db_dports_sources_rsync.rsync.darwinports.org_dpupdate_dp 
orts_lang_gcc40/work/gcc-4.0.3/gcc/../include -I/opt/local/var/db/ 
dports/build/ 
_opt_local_var_db_dports_sources_rsync.rsync.darwinports.org_dpupdate_dp 
orts_lang_gcc40/work/gcc-4.0.3/gcc/../libcpp/include -I/opt/local/ 
include -I/opt/local/include    /opt/local/var/db/dports/build/ 
_opt_local_var_db_dports_sources_rsync.rsync.darwinports.org_dpupdate_dp 
orts_lang_gcc40/work/gcc-4.0.3/gcc/c-pragma.c -o c-pragma.o
stage1/xgcc -Bstage1/ -B/opt/local/i386-apple-darwin8.7.1/bin/ -c   - 
O2 -g -fomit-frame-pointer -fprofile-generate -DIN_GCC   -W -Wall - 
Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -pedantic - 
Wno-long-long -Wno-variadic-macros -Wold-style-definition     - 
DHAVE_CONFIG_H -I. -I. -I/opt/local/var/db/dports/build/ 
_opt_local_var_db_dports_sources_rsync.rsync.darwinports.org_dpupdate_dp 
orts_lang_gcc40/work/gcc-4.0.3/gcc -I/opt/local/var/db/dports/build/ 
_opt_local_var_db_dports_sources_rsync.rsync.darwinports.org_dpupdate_dp 
orts_lang_gcc40/work/gcc-4.0.3/gcc/. -I/opt/local/var/db/dports/build/ 
_opt_local_var_db_dports_sources_rsync.rsync.darwinports.org_dpupdate_dp 
orts_lang_gcc40/work/gcc-4.0.3/gcc/../include -I/opt/local/var/db/ 
dports/build/ 
_opt_local_var_db_dports_sources_rsync.rsync.darwinports.org_dpupdate_dp 
orts_lang_gcc40/work/gcc-4.0.3/gcc/../libcpp/include -I/opt/local/ 
include -I/opt/local/include    /opt/local/var/db/dports/build/ 
_opt_local_var_db_dports_sources_rsync.rsync.darwinports.org_dpupdate_dp 
orts_lang_gcc40/work/gcc-4.0.3/gcc/c-decl.c -o c-decl.o
/opt/local/var/db/dports/build/ 
_opt_local_var_db_dports_sources_rsync.rsync.darwinports.org_dpupdate_dp 
orts_lang_gcc40/work/gcc-4.0.3/gcc/genautomata.c: In function  
'output_automata_list_min_issue_delay_code':
/opt/local/var/db/dports/build/ 
_opt_local_var_db_dports_sources_rsync.rsync.darwinports.org_dpupdate_dp 
orts_lang_gcc40/work/gcc-4.0.3/gcc/genautomata.c:8342: internal  
compiler error: in choose_reload_regs, at reload1.c:5837
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
make[2]: *** [build/genautomata.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [stageprofile_build] Error 2
make: *** [profiledbootstrap] Error 2

Error: Status 1 encountered during processing.
mia:~ rene$

####################################
####################################

output #2, trying gcc41:

mia:~ rene$ sudo port install gcc41
--->  Building gcc41 with target profiledbootstrap
Error: Target com.apple.build returned: shell command "cd "/opt/local/ 
var/db/dports/build/ 
_opt_local_var_db_dports_sources_rsync.rsync.darwinports.org_dpupdate_dp 
orts_lang_gcc41/work/build" && make profiledbootstrap" returned error 2
Command output:                         GCJFLAGS=" ${flags}" \
                         CXXFLAGS="-g -O2  ${flags}" \
                         LIBCFLAGS="-O2 -g -O2  ${flags}" \
                         LIBCXXFLAGS="-g -O2  -fno-implicit-templates  
${flags}" \
                         LDFLAGS=" ${flags}" \
                         MULTIFLAGS="${flags}" \
                         DESTDIR="" \
                         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" \
                         all); then \
           true; \
         else \
           exit 1; \
         fi; \
       else true; \
       fi; \
     fi; \
   done; \
fi
make  all-am
/bin/sh ./libtool --mode=compile /opt/local/var/db/dports/build/ 
_opt_local_var_db_dports_sources_rsync.rsync.darwinports.org_dpupdate_dp 
orts_lang_gcc41/work/build/./gcc/xgcc -B/opt/local/var/db/dports/ 
build/ 
_opt_local_var_db_dports_sources_rsync.rsync.darwinports.org_dpupdate_dp 
orts_lang_gcc41/work/build/./gcc/ -B/opt/local/i386-apple-darwin8.7.1/ 
bin/ -B/opt/local/i386-apple-darwin8.7.1/lib/ -isystem /opt/local/ 
i386-apple-darwin8.7.1/include -isystem /opt/local/i386-apple- 
darwin8.7.1/sys-include -DHAVE_CONFIG_H -I. -I../../../gcc-4.1.1/ 
libgfortran -I.  -iquote../../../gcc-4.1.1/libgfortran/io -I../../../ 
gcc-4.1.1/libgfortran/../gcc -I../../../gcc-4.1.1/libgfortran/../gcc/ 
config -I../.././gcc -D_GNU_SOURCE  -std=gnu99 -Wall -Wstrict- 
prototypes -Wmissing-prototypes -Wold-style-definition -Wextra - 
Wwrite-strings -O2 -g -O2  -c -o compile_options.lo `test -f 'runtime/ 
compile_options.c' || echo '../../../gcc-4.1.1/libgfortran/'`runtime/ 
compile_options.c
/opt/local/var/db/dports/build/ 
_opt_local_var_db_dports_sources_rsync.rsync.darwinports.org_dpupdate_dp 
orts_lang_gcc41/work/build/./gcc/xgcc -B/opt/local/var/db/dports/ 
build/ 
_opt_local_var_db_dports_sources_rsync.rsync.darwinports.org_dpupdate_dp 
orts_lang_gcc41/work/build/./gcc/ -B/opt/local/i386-apple-darwin8.7.1/ 
bin/ -B/opt/local/i386-apple-darwin8.7.1/lib/ -isystem /opt/local/ 
i386-apple-darwin8.7.1/include -isystem /opt/local/i386-apple- 
darwin8.7.1/sys-include -DHAVE_CONFIG_H -I. -I../../../gcc-4.1.1/ 
libgfortran -I. -iquote../../../gcc-4.1.1/libgfortran/io -I../../../ 
gcc-4.1.1/libgfortran/../gcc -I../../../gcc-4.1.1/libgfortran/../gcc/ 
config -I../.././gcc -D_GNU_SOURCE -std=gnu99 -Wall -Wstrict- 
prototypes -Wmissing-prototypes -Wold-style-definition -Wextra - 
Wwrite-strings -O2 -g -O2 -c ../../../gcc-4.1.1/libgfortran/runtime/ 
compile_options.c  -fno-common -DPIC -o .libs/compile_options.o
/opt/local/var/db/dports/build/ 
_opt_local_var_db_dports_sources_rsync.rsync.darwinports.org_dpupdate_dp 
orts_lang_gcc41/work/build/./gcc/xgcc -B/opt/local/var/db/dports/ 
build/ 
_opt_local_var_db_dports_sources_rsync.rsync.darwinports.org_dpupdate_dp 
orts_lang_gcc41/work/build/./gcc/ -B/opt/local/i386-apple-darwin8.7.1/ 
bin/ -B/opt/local/i386-apple-darwin8.7.1/lib/ -isystem /opt/local/ 
i386-apple-darwin8.7.1/include -isystem /opt/local/i386-apple- 
darwin8.7.1/sys-include -DHAVE_CONFIG_H -I. -I../../../gcc-4.1.1/ 
libgfortran -I. -iquote../../../gcc-4.1.1/libgfortran/io -I../../../ 
gcc-4.1.1/libgfortran/../gcc -I../../../gcc-4.1.1/libgfortran/../gcc/ 
config -I../.././gcc -D_GNU_SOURCE -std=gnu99 -Wall -Wstrict- 
prototypes -Wmissing-prototypes -Wold-style-definition -Wextra - 
Wwrite-strings -O2 -g -O2 -c ../../../gcc-4.1.1/libgfortran/runtime/ 
compile_options.c -o compile_options.o >/dev/null 2>&1
make[4]: *** [compile_options.lo] Error 1
make[3]: *** [all] Error 2
make[2]: *** [all-target-libgfortran] Error 2
make[1]: *** [all] Error 2
make: *** [profiledbootstrap] Error 2

Error: Status 1 encountered during processing.
mia:~ rene$