The build compiler: [lindv2:gcc/mainline/objdir64] lucier% gcc -v Using built-in specs. Target: powerpc-apple-darwin8.6.0 Configured with: ../configure --with-gmp=/opt/local/ --with-mpfr=/opt/local/ --prefix=/pkgs/gcc-4.1.1 Thread model: posix gcc version 4.1.1
The configure and make bootstrap: /bin/rm -rf * ; env CC='gcc -mcpu=970 -m64' ../configure --prefix=/pkgs/gcc-4.2.0 --enable-languages=c ; make -j 8 bootstrap BOOT_CFLAGS='-mcpu=970 -m64 -O2 -g' > & build.log & The version of cctools: [lindv2:gcc/mainline/objdir64] lucier% ld -v Apple Computer, Inc. version cctools-590.42.1.obj~1 This command never finishes, and takes one entire CPU (50% cc1, 50% kernel_task) near the end of stage1 on the command: echo | /Users/lucier/programs/gcc/mainline/objdir64/./gcc/xgcc -B/Users/lucier/programs/gcc/mainline/objdir64/./gcc/ -B/pkgs/gcc-4.2.0/powerpc-apple-darwin8.6.0/bin/ -B/pkgs/gcc-4.2.0/powerpc-apple-darwin8.6.0/lib/ -isystem /pkgs/gcc-4.2.0/powerpc-apple-darwin8.6.0/include -isystem /pkgs/gcc-4.2.0/powerpc-apple-darwin8.6.0/sys-include -E -dM - | \ sed -n -e 's/^#define \([^_][a-zA-Z0-9_]*\).*/\1/p' \ -e 's/^#define \(_[^_A-Z][a-zA-Z0-9_]*\).*/\1/p' | \ sort -u > tmp-macro_list I don't know what's going on; are some arguments missing from the "echo" command? When I try to run gdb I get [lindv2:gcc/mainline/objdir64] lucier% gdb /Users/lucier/programs/gcc/mainline/objdir64/./gcc/xgcc GNU gdb 6.3.50-20050815 (Apple version gdb-477) (Sun Apr 30 20:06:22 GMT 2006) Copyright 2004 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "powerpc-apple-darwin"...Reading symbols for shared libraries .. done (gdb) run -B/Users/lucier/programs/gcc/mainline/objdir64/./gcc/ -B/pkgs/gcc-4.2.0/powerpc-apple-darwin8.6.0/bin/ -B/pkgs/gcc-4.2.0/powerpc-apple-darwin8.6.0/lib/ -isystem /pkgs/gcc-4.2.0/powerpc-apple-darwin8.6.0/include -isystem /pkgs/gcc-4.2.0/powerpc-apple-darwin8.6.0/sys-include -E -dM - Starting program: /Users/lucier/programs/gcc/mainline/objdir64/gcc/xgcc -B/Users/lucier/programs/gcc/mainline/objdir64/./gcc/ -B/pkgs/gcc-4.2.0/powerpc-apple-darwin8.6.0/bin/ -B/pkgs/gcc-4.2.0/powerpc-apple-darwin8.6.0/lib/ -isystem /pkgs/gcc-4.2.0/powerpc-apple-darwin8.6.0/include -isystem /pkgs/gcc-4.2.0/powerpc-apple-darwin8.6.0/sys-include -E -dM - Reading symbols for shared libraries .+ done ^C Program received signal SIGINT, Interrupt. 0x0000000000451558 in wait4 () (gdb) where #0 0x0000000000451558 in wait4 () #1 0x000000000003904c in pex_wait (obj=0x804a60, pid=27659, status=0x800260, time=0x0) at ../../libiberty/pex-unix.c:524 #2 0x0000000000039914 in pex_unix_wait (obj=0x804a60, pid=27659, status=0x800260, time=0x0, done=0, errmsg=0x7fffeffffed90, err=0x7fffeffffed98) at ../../libiberty/pex-unix.c:524 #3 0x0000000000038ad8 in pex_get_status_and_time (obj=0x804a60, done=0, errmsg=0x7fffeffffed90, err=0x7fffeffffed98) at ../../libiberty/pex-common.c:575 #4 0x0000000000038b9c in pex_get_status (obj=0x804a60, count=1, vector=0x7fffeffffee30) at ../../libiberty/pex-common.c:575 #5 0x00000000000079b4 in execute () at ../../gcc/gcc.c:3657 #6 0x000000000000f790 in do_spec (spec=0x3cb98 "%{!E:%e-E or -x required when input is from standard input} %(trad_capable_cpp) %(cpp_options) %(cpp_debug_options)") at ../../gcc/gcc.c:5016 #7 0x0000000000017ca0 in main (argc=0, argv=0x7fffefffff408) at ../../gcc/gcc.c:7362 -- Summary: Can't build 64-bit 4.2.0 with 4.1.1 on darwin-ppc Product: gcc Version: 4.1.1 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: lucier at math dot purdue dot edu GCC build triplet: powerpc-apple-darwin8.6.0 GCC host triplet: powerpc-apple-darwin8.6.0 GCC target triplet: powerpc-apple-darwin8.6.0 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27845