[Bug bootstrap/37632] Darwin bootstrap failure, ld: bl out of range
--- Comment #11 from lucier at math dot purdue dot edu 2010-04-21 01:17 --- Thank you for your way to build a 64-bit gcc, it has now worked for me using Apple's gcc-4.0.1 as you say, so I'll close this bug as WORKSFORME. Brad -- lucier at math dot purdue dot edu changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution||WORKSFORME http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37632
[Bug bootstrap/37632] Darwin bootstrap failure, ld: bl out of range
--- Comment #10 from lucier at math dot purdue dot edu 2010-04-12 13:17 --- Subject: Re: Darwin bootstrap failure, ld: bl out of range On Sun, 2010-04-11 at 10:29 +, iains at gcc dot gnu dot org wrote: 2. As a matter of curiosity - do you see a big improvement in performance from building gcc 64bit? I normally build ppc-apple-darwin9 - since this is quite capable of generating m64 code should I have an app that requires it. I build a 64-bit gcc so that I can compile codes that require gcc to use more than 4GB of memory. It will take me a day or two before I can get back to your other comments. Brad -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37632
[Bug bootstrap/37632] Darwin bootstrap failure, ld: bl out of range
--- Comment #9 from iains at gcc dot gnu dot org 2010-04-11 10:29 --- (In reply to comment #6) I wrote which means using gcc-4.0.1; I used *exactly* your configure line. Did you have the gmp and mpfr sources in the gcc-4_4-branch source directory? 1. I re-tried with the current gmp/mpfr symlinked to the dirs I shared with current trunk and 4.5 GNU C (GCC) version 4.4.4 20100410 (prerelease) [gcc-4_4-branch revision 158195] (powerpc64-apple-darwin9) compiled by GNU C version 4.4.4 20100410 (prerelease) [gcc-4_4-branch revision 158195], GMP version 4.3.2, MPFR version 2.4.2. no problem. $ autoconf --version autoconf (GNU Autoconf) 2.61 $ automake --version automake (GNU automake) 1.10 $ m4 --version GNU M4 1.4.6 I do use gawk3-1-6 on Geoff Keating's advice - but I tried with the stock install of awk on Darwin9 and that also works... $ awk --version GNU Awk 3.1.6 2. As a matter of curiosity - do you see a big improvement in performance from building gcc 64bit? I normally build ppc-apple-darwin9 - since this is quite capable of generating m64 code should I have an app that requires it. 3. note that those tools *do* need to be updated for 4.5 and current trunk. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37632
[Bug bootstrap/37632] Darwin bootstrap failure, ld: bl out of range
--- Comment #4 from lucier at math dot purdue dot edu 2010-04-10 20:43 --- I can't get it to bootstrap with the following: [monster-mac:~/programs/gcc/gcc-4_4-branch] lucier% cat build-gcc #!/bin/tcsh /bin/rm -rf *; ../../gcc-4_4-branch/configure CC='/pkgs/gcc-4.3.2-64/bin/gcc -mcpu=970 -m64' --build=powerpc64-apple-darwin9.8.0 --host=powerpc64-apple-darwin9.8.0 --target=powerpc64-apple-darwin9.8.0 --prefix=/pkgs/gcc-4.4.4-64 --with-libiconv-prefix=/usr --with-system-zlib; make bootstrap 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) The error is checking for flex... flex checking lex output file root... configure: error: cannot find output from flex; giving up make[2]: *** [configure-stage1-gmp] Error 1 make[1]: *** [stage1-bubble] Error 2 make: *** [bootstrap] Error 2 And I get the same error if I use your configure line. So I can't reproduce this working with [monster-mac:~/programs/gcc/gcc-4_4-branch] lucier% head LAST_UPDATED gcc/BASE-VER == LAST_UPDATED == Sat Apr 10 16:26:49 EDT 2010 Sat Apr 10 20:26:49 UTC 2010 (revision 158195) == gcc/BASE-VER == 4.4.4 and with in-source gmp, mpfr, and mpc directories. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37632
[Bug bootstrap/37632] Darwin bootstrap failure, ld: bl out of range
--- Comment #5 from iains at gcc dot gnu dot org 2010-04-10 21:15 --- (In reply to comment #4) I can't get it to bootstrap with the following: /bin/rm -rf *; ../../gcc-4_4-branch/configure CC='/pkgs/gcc-4.3.2-64/bin/gcc As you pointed out in comment #2 and as I say in comment #3, 4.4.x can be bootstrapped from apple 4.0.1 (and 4.2, FWIW). Therefore, the problem lies in 4.3.2, I would guess. The 4.3 branch is up to 4.3.4 - so - at minimum I guess you should try 4.3.4 (on the grounds that whatever bug you are seeing might have been fixed). -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37632
[Bug bootstrap/37632] Darwin bootstrap failure, ld: bl out of range
--- Comment #6 from lucier at math dot purdue dot edu 2010-04-10 21:18 --- I wrote And I get the same error if I use your configure line. which means using gcc-4.0.1; I used *exactly* your configure line. Did you have the gmp and mpfr sources in the gcc-4_4-branch source directory? -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37632
[Bug bootstrap/37632] Darwin bootstrap failure, ld: bl out of range
--- Comment #7 from iains at gcc dot gnu dot org 2010-04-10 22:13 --- (In reply to comment #6) I wrote And I get the same error if I use your configure line. which means using gcc-4.0.1; I used *exactly* your configure line. Did you have the gmp and mpfr sources in the gcc-4_4-branch source directory? GNU C (GCC) version 4.4.4 20100409 (prerelease) [gcc-4_4-branch revision 158160] (powerpc64-apple-darwin9) compiled by GNU C version 4.4.4 20100409 (prerelease) [gcc-4_4-branch revision 158160], GMP version 4.2.4, MPFR version 2.3.2. gmp and mpfr built in tree - although I usually symlink them, in this case they are copied trees. One thing I have found is that if there's an incomplete or unsuccessful configuration in the gmp or mpfr dirs it messes stuff up (I haven't attempted to figure out why). It might be worth trying a make distclean in the gmp of mpfr dirs and/or deleting and putting them back from a fresh install. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37632
[Bug bootstrap/37632] Darwin bootstrap failure, ld: bl out of range
--- Comment #8 from iains at gcc dot gnu dot org 2010-04-10 22:32 --- (In reply to comment #6) And I get the same error if I use your configure line. $ ./config.status --version config.status configured by ../gcc-4-4-branch/configure, generated by GNU Autoconf 2.59, with options '--target=powerpc64-apple-darwin9' '--build=powerpc64-apple-darwin9' '--host=powerpc64-apple-darwin9' '--with-libiconv-prefix=/usr' '--with-system-zlib' '--enable-version-specific-runtime-libs' '--enable-threads' '--enable-checking=yes' 'build_alias=powerpc64-apple-darwin9' 'host_alias=powerpc64-apple-darwin9' 'target_alias=powerpc64-apple-darwin9' '--enable-languages=c,c++,fortran,objc,obj-c++' -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37632
[Bug bootstrap/37632] Darwin bootstrap failure, ld: bl out of range
--- Comment #3 from iains at gcc dot gnu dot org 2010-04-09 14:02 --- as of 10-04-09 bootstrapping w/apple 4.0.1. thor:gcc-4-4-branch-build $ ./gcc/xgcc -v Using built-in specs. Target: powerpc64-apple-darwin9 Configured with: ../gcc-4-4-branch/configure --target=powerpc64-apple-darwin9 --build=powerpc64-apple-darwin9 --host=powerpc64-apple-darwin9 --with-libiconv-prefix=/usr --with-system-zlib --enable-languages=c,objc,c++,obj-c++,fortran --enable-version-specific-runtime-libs --enable-threads --enable-checking=yes Thread model: posix gcc version 4.4.4 20100409 (prerelease) [gcc-4_4-branch revision 158160] (GCC) presumably we can close this as WONTFIX/WORKSFORME? -- iains at gcc dot gnu dot org changed: What|Removed |Added CC||iains at gcc dot gnu dot org http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37632
[Bug bootstrap/37632] Darwin bootstrap failure, ld: bl out of range
--- Comment #1 from lucier at math dot purdue dot edu 2008-09-24 00:53 --- I forgot to mention the linker version: [descartes:objdirs/mainline/gcc] lucier% ld -v @(#)PROGRAM:ld PROJECT:ld64-85.2.1 -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37632
[Bug bootstrap/37632] Darwin bootstrap failure, ld: bl out of range
--- Comment #2 from lucier at math dot purdue dot edu 2008-09-24 01:34 --- And it doesn't happen if I use Apple's builtin gcc-4.0.1. Blah. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37632