[Bug bootstrap/26814] Bootstrapping with a non default ABI (-m64 on ppc-darwin or on ppc-linux with a compiler defaulting to 32 and now defaulting to 64)
--- Comment #18 from pinskia at gcc dot gnu dot org 2008-12-28 21:34 --- You have to set CC to begin with if you are bootstrapping. -- pinskia at gcc dot gnu dot org changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution||INVALID http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26814
[Bug bootstrap/26814] Bootstrapping with a non default ABI (-m64 on ppc-darwin or on ppc-linux with a compiler defaulting to 32 and now defaulting to 64)
--- Comment #19 from lucier at math dot purdue dot edu 2008-12-29 01:30 --- Maybe you could offer a few more details; I just tried % cat ../../mainline/build-and-check-gcc-64-32 #!/bin/tcsh /bin/rm -rf *; ../../mainline/configure CC='/usr/bin/gcc-4.0 -mcpu=970 -m64' --build=powerpc64-apple-darwin9.6.0 --host=powerpc64-apple-darwin9.6.0 --target=powerpc-apple-darwin9.6.0 --with-gmp-include=/sw/include/ --with-gmp-lib=/sw/lib/ppc64 --with-mpfr-include=/sw/include/ --with-mpfr-lib=/sw/lib/ppc64 --prefix=/pkgs/gcc-4.4.0-64-32 --with-libiconv-prefix=/usr --with-system-zlib; make -j 4 BOOT_LDFLAGS='-Wl,-search_paths_first' build.log (make install) (make -k -j 8 check RUNTESTFLAGS=--target_board 'unix{-mcpu=970/-m64}' check.log ; make mail-report.log) (make bootstrap isn't even available) and ended up with checking for powerpc-apple-darwin9.6.0-gcc... /Users/lucier/programs/gcc/objdirs/mainline/./gcc/xgcc -B/Users/lucier/programs/gcc/objdirs/mainline/./gcc/ -B/pkgs/gcc-4.4.0-64-32/powerpc-apple-darwin9.6.0/bin/ -B/pkgs/gcc-4.4.0-64-32/powerpc-apple-darwin9.6.0/lib/ -isystem /pkgs/gcc-4.4.0-64-32/powerpc-apple-darwin9.6.0/include -isystem /pkgs/gcc-4.4.0-64-32/powerpc-apple-darwin9.6.0/sys-include checking for suffix of object files... configure: error: in `/Users/lucier/programs/gcc/objdirs/mainline/powerpc-apple-darwin9.6.0/libgcc': configure: error: cannot compute suffix of object files: cannot compile See `config.log' for more details. while config.log gives configure:2611: /Users/lucier/programs/gcc/objdirs/mainline/./gcc/xgcc -B/Users/lucier/programs/gcc/objdirs/mainline/./gcc/ -B/pkgs/gcc-4.4.0-64-32/powerpc-apple-darwin9.6.0/bin/ -B/pkgs/gcc-4.4.0-64-32/powerpc-apple-darwin9.6.0/lib/ -isystem /pkgs/gcc-4.4.0-64-32/powerpc-apple-darwin9.6.0/include -isystem /pkgs/gcc-4.4.0-64-32/powerpc-apple-darwin9.6.0/sys-include -c -g -O2 conftest.c 5 /Users/lucier/programs/gcc/objdirs/mainline/./gcc/as: line 76: exec: : not found 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 `/Users/lucier/programs/gcc/objdirs/mainline/powerpc-apple-darwin9.6.0/libgcc': configure:2630: error: cannot compute suffix of object files: cannot compile See `config.log' for more details. It appears to be looking for a special as. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26814
[Bug bootstrap/26814] Bootstrapping with a non default ABI (-m64 on ppc-darwin or on ppc-linux with a compiler defaulting to 32 and now defaulting to 64)
--- Comment #20 from pinskia at gcc dot gnu dot org 2008-12-29 02:42 --- /Users/lucier/programs/gcc/objdirs/mainline/./gcc/as: line 76: exec: : not found That means as was not found in the first place. --target=powerpc-apple-darwin9.6.0 Since build == host != target, you are building a cross compiler and not a native compiler so this will never work correctly the way you are building. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26814
[Bug bootstrap/26814] Bootstrapping with a non default ABI (-m64 on ppc-darwin or on ppc-linux with a compiler defaulting to 32 and now defaulting to 64)
--- Comment #21 from lucier at math dot purdue dot edu 2008-12-29 03:06 --- Thanks for your comments. So, to get back to basics, how do I build a compiler on darwin that has a 64-bit gcc/cc1/etc., but compiles to 32-bit binaries by default? -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26814
[Bug bootstrap/26814] Bootstrapping with a non default ABI (-m64 on ppc-darwin or on ppc-linux with a compiler defaulting to 32 and now defaulting to 64)
--- Comment #17 from howarth at nitro dot med dot uc dot edu 2006-11-10 02:49 --- A patch fixing this bug has been submitted to gcc-patches... http://gcc.gnu.org/ml/gcc-patches/2006-11/msg00493.html -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26814
[Bug bootstrap/26814] Bootstrapping with a non default ABI (-m64 on ppc-darwin or on ppc-linux with a compiler defaulting to 32 and now defaulting to 64)
--- Comment #15 from howarth at nitro dot med dot uc dot edu 2006-11-03 03:14 --- I can now complete a multilib build of the languages c, c++, objc and fortran on a G4 under Darwin8 if I apply the following patch... --- gcc-4.2-20061031/zlib/configure.ac.org 2006-11-02 11:44:36.0 -0500 +++ gcc-4.2-20061031/zlib/configure.ac 2006-11-02 12:19:04.0 -0500 @@ -31,15 +31,6 @@ AC_ARG_WITH(cross-host, [ --with-cross-host=HOST configuring with a cross compiler]) -dnl Default to --enable-multilib -AC_ARG_ENABLE(multilib, -[ --enable-multilib build many library versions (default)], -[case ${enableval} in - yes) multilib=yes ;; - no) multilib=no ;; - *) AC_MSG_ERROR(bad value ${enableval} for multilib option) ;; - esac], [test -z $with_target_subdir multilib=no || multilib=yes])dnl - AC_ARG_WITH(system-zlib, [ --with-system-zlib use installed libz]) and do a... cd libgfortran aclocal -I ../config autoconf -I ../config cd .. cd zlib aclocal -I ../config autoreconf -I ../config cd .. before I run configure. I have worked out a similar patch for configure.ac in libjava which I will test next on a build with the java language included. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26814
[Bug bootstrap/26814] Bootstrapping with a non default ABI (-m64 on ppc-darwin or on ppc-linux with a compiler defaulting to 32 and now defaulting to 64)
--- Comment #16 from howarth at nitro dot med dot uc dot edu 2006-11-03 03:36 --- After patching configure.ac and regenerating configure in zlib with... aclocal -I ../config autoreconf -I ../config I find that I don't get a zlib subdirectory in the powerpc-apple-darwin8 build directory anymore. I am assuming that the patch has freed the gcc build to use the system zlib instead. Interestingly, if I compare what I see on i386 linux, I don't see a zlib build subdirectory created for a stock gcc 4.2 build there. However if I look at a build on x86_64, I see a zlib build subdirectory which suggests I may have fixed a bug in the build of zlib on multilib systems with this zlib patch. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26814
[Bug bootstrap/26814] Bootstrapping with a non default ABI (-m64 on ppc-darwin or on ppc-linux with a compiler defaulting to 32 and now defaulting to 64)
--- Comment #13 from howarth at nitro dot med dot uc dot edu 2006-10-27 12:33 --- The use of... cd gfortran aclocal -I ../config autoconf eliminated the build problems on a G4 for libgfortran. However it moved the problems on to boehm-gc. I suspect we need to regenerate the aclocal.m4 and configure for the libgfortran, boehm-gc, libffi and libjava subdirectories. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26814
[Bug bootstrap/26814] Bootstrapping with a non default ABI (-m64 on ppc-darwin or on ppc-linux with a compiler defaulting to 32 and now defaulting to 64)
--- Comment #14 from fang at csl dot cornell dot edu 2006-10-27 18:14 --- Perhaps other directories need regen., according to Mike, the following are outdated (as of 4.2-20061024): http://gcc.gnu.org/ml/gcc/2006-10/msg00578.html libdecnumber/aclocal.m4 zlib/aclocal.m4 intl/aclocal.m4 libgfortran/configure libgfortran/config.h.in libgfortran/aclocal.m4 libmudflap/configure libmudflap/aclocal.m4 boehm-gc/configure boehm-gc/aclocal.m4 libffi/aclocal.m4 libjava/configure BTW, this report is against 4.1, but we've been discussing 4.2. Should this be addressed in a new report? -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26814
[Bug bootstrap/26814] Bootstrapping with a non default ABI (-m64 on ppc-darwin or on ppc-linux with a compiler defaulting to 32 and now defaulting to 64)
--- Comment #8 from howarth at nitro dot med dot uc dot edu 2006-10-26 13:38 --- Geoff, I thought this issue was supposed to be fixed by your changes in r117741, however I am still seeing a failure when building without --disable-multilib on a G4... checking for powerpc-apple-darwin8-gcc... /sw/src/fink.build/gcc4-4.1.-20061024/darwin_objdir/./gcc/xgcc -B/sw/src/fink.build/gcc4-4.1.-20061024/darwin_objdir/./gcc/ -B/sw/lib/gcc4/powerpc-apple-darwin8/bin/ -B/sw/lib/gcc4/powerpc-apple-darwin8/lib/ -isystem /sw/lib/gcc4/powerpc-apple-darwin8/include -isystem /sw/lib/gcc4/powerpc-apple-darwin8/sys-include -m64 checking for C compiler default output file name... a.out checking whether the C compiler works... configure: error: cannot run C compiled programs. If you meant to cross compile, use `--host'. See `config.log' for more details. This is with the 20061024 gcc 4.2 snapshot using Xcode 2.4 and the matching odcctools release from Xcode 2.4. No such problems on a G5. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26814
[Bug bootstrap/26814] Bootstrapping with a non default ABI (-m64 on ppc-darwin or on ppc-linux with a compiler defaulting to 32 and now defaulting to 64)
--- Comment #9 from howarth at nitro dot med dot uc dot edu 2006-10-26 14:07 --- Geoff, To clarify my previous remarks, it appears that this configure failure happens in libgfortran so it maybe that the changes in r117741 needs to extended to include libgfortran. The build is in stage3 when the configure failure occurs of course. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26814
[Bug bootstrap/26814] Bootstrapping with a non default ABI (-m64 on ppc-darwin or on ppc-linux with a compiler defaulting to 32 and now defaulting to 64)
--- Comment #10 from fang at csl dot cornell dot edu 2006-10-26 16:57 --- This is also exactly what I see happening on a G4 build of the same 4.2 snapshot. It tries to build a multilib for fortran. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26814
[Bug bootstrap/26814] Bootstrapping with a non default ABI (-m64 on ppc-darwin or on ppc-linux with a compiler defaulting to 32 and now defaulting to 64)
--- Comment #11 from howarth at nitro dot med dot uc dot edu 2006-10-26 21:37 --- Running... aclocal autoconf ...in libgfortran is insufficient to solve the multilib problem. The resulting conflg.log from the resulting build in the libgfortran directory is attached to this bug report. The log shows... configure: exit 258 ...at the end. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26814
[Bug bootstrap/26814] Bootstrapping with a non default ABI (-m64 on ppc-darwin or on ppc-linux with a compiler defaulting to 32 and now defaulting to 64)
--- Comment #12 from howarth at nitro dot med dot uc dot edu 2006-10-26 21:38 --- Created an attachment (id=12498) -- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=12498action=view) config.log from libgfortran build directory after aclocal/autoconf -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26814
[Bug bootstrap/26814] Bootstrapping with a non default ABI (-m64 on ppc-darwin or on ppc-linux with a compiler defaulting to 32 and now defaulting to 64)
--- Comment #3 from pinskia at gcc dot gnu dot org 2006-03-22 23:26 --- Actually this is talked about in the thread I pointed to, since the addition of toplevel bootstrap, GCC should be able to do this without any troubles. -- pinskia at gcc dot gnu dot org changed: What|Removed |Added Status|WAITING |UNCONFIRMED http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26814
[Bug bootstrap/26814] Bootstrapping with a non default ABI (-m64 on ppc-darwin or on ppc-linux with a compiler defaulting to 32 and now defaulting to 64)
--- Comment #4 from ebotcazou at gcc dot gnu dot org 2006-03-22 23:29 --- CC=gcc -m64 $srcdir/configure --prefix=/pkgs/gcc-4.1.0 --with-gmp=/sw/ --with-mpfr=/sw/ --with-as=/usr/local/odcctools-20060123/bin/as --with-ld=/usr/local/odcctools-20060123/bin/ld --enable-languages=c Well, you'd probably also need to pass powerpc64-apple-darwin8.5.0 to configure. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26814
[Bug bootstrap/26814] Bootstrapping with a non default ABI (-m64 on ppc-darwin or on ppc-linux with a compiler defaulting to 32 and now defaulting to 64)
--- Comment #5 from ebotcazou at gcc dot gnu dot org 2006-03-22 23:30 --- Actually this is talked about in the thread I pointed to, since the addition of toplevel bootstrap, GCC should be able to do this without any troubles. Note that the PR is reported against 4.1.0. And this works flawlessly on SPARC. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26814
[Bug bootstrap/26814] Bootstrapping with a non default ABI (-m64 on ppc-darwin or on ppc-linux with a compiler defaulting to 32 and now defaulting to 64)
--- Comment #6 from lucier at math dot purdue dot edu 2006-03-23 02:53 --- Subject: Re: Bootstrapping with a non default ABI (-m64 on ppc-darwin or on ppc-linux with a compiler defaulting to 32 and now defaulting to 64) On Mar 22, 2006, at 5:29 PM, ebotcazou at gcc dot gnu dot org wrote: --- Comment #4 from ebotcazou at gcc dot gnu dot org 2006-03-22 23:29 --- CC=gcc -m64 $srcdir/configure --prefix=/pkgs/gcc-4.1.0 --with- gmp=/sw/ --with-mpfr=/sw/ --with-as=/usr/local/odcctools-20060123/bin/as --with-ld=/usr/local/odcctools-20060123/bin/ld --enable-languages=c Well, you'd probably also need to pass powerpc64-apple-darwin8.5.0 to configure. Actually, I want the compiler to generate 32-bit binaries by default, and your earlier instructions work well. I just want cc1 to be compiled with -m64 so that it can allocate 2.4GB of storage when it's compiling some computer-generated C files. (I don't really think it should take 17 minutes and 2.4GB of storage to compile a 6.5MB .i file.) -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26814
[Bug bootstrap/26814] Bootstrapping with a non default ABI (-m64 on ppc-darwin or on ppc-linux with a compiler defaulting to 32 and now defaulting to 64)
--- Comment #7 from lucier at math dot purdue dot edu 2006-03-23 03:16 --- Subject: Re: Bootstrapping with a non default ABI (-m64 on ppc-darwin or on ppc-linux with a compiler defaulting to 32 and now defaulting to 64) By the way, the last thing the bootstrap does is build libiberty again with BOOT_CFLAGS; it would seem reasonable to me to build it earlier with BOOT_CFLAGS, so I don't have to build the stage1 compiler with CC='gcc -m64' -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26814