public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug bootstrap/26814] New: Can't build a 64-bit C compiler on darwin-ppc
@ 2006-03-22 23:18 lucier at math dot purdue dot edu
2006-03-22 23:23 ` [Bug bootstrap/26814] " pinskia at gcc dot gnu dot org
` (20 more replies)
0 siblings, 21 replies; 22+ messages in thread
From: lucier at math dot purdue dot edu @ 2006-03-22 23:18 UTC (permalink / raw)
To: gcc-bugs
Configured and built with
#!/bin/tcsh
/bin/rm -rf *; ../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; make -j 8
bootstrap BOOT_CFLAGS='-mcpu=970 -m64 -O2 -g' >& build.log
Bootstrap fails with
stage1/xgcc -Bstage1/ -B/pkgs/gcc-4.1.0/powerpc-apple-darwin8.5.0/bin/
-mcpu=970 -m64 -O2 -g -DIN_GCC -W -Wall -Wwrite-strings -Wstrict-prototypes
-Wmissing-prototypes -pedantic -Wno-long-long -Wno-variadic-macros
-Wold-style-definition -Wmissing-format-attribute -DHAVE_CONFIG_H
-DGENERATOR_FILE -o build/genmodes \
build/genmodes.o build/errors.o
../build-powerpc-apple-darwin8.5.0/libiberty/libiberty.a
ld64 failed: in
../build-powerpc-apple-darwin8.5.0/libiberty/libiberty.a(hashtab.o), not a
valid ppc64 mach-o file
which seems to be right:
gcc -c -DHAVE_CONFIG_H -g -O2 -I/sw//include -I/sw//include -I.
-I../../../libiberty/../include -W -Wall -pedantic -Wwrite-strings
-Wstrict-prototypes ../../../libiberty/hashtab.c -o hashtab.o
--
Summary: Can't build a 64-bit C compiler on darwin-ppc
Product: gcc
Version: 4.1.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: bootstrap
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: lucier at math dot purdue dot edu
GCC build triplet: powerpc-apple-darwin8.5.0
GCC host triplet: powerpc-apple-darwin8.5.0
GCC target triplet: powerpc-apple-darwin8.5.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26814
^ permalink raw reply [flat|nested] 22+ messages in thread
* [Bug bootstrap/26814] Can't build a 64-bit C compiler on darwin-ppc
2006-03-22 23:18 [Bug bootstrap/26814] New: Can't build a 64-bit C compiler on darwin-ppc lucier at math dot purdue dot edu
@ 2006-03-22 23:23 ` pinskia at gcc dot gnu dot org
2006-03-22 23:24 ` ebotcazou at gcc dot gnu dot org
` (19 subsequent siblings)
20 siblings, 0 replies; 22+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-03-22 23:23 UTC (permalink / raw)
To: gcc-bugs
------- Comment #1 from pinskia at gcc dot gnu dot org 2006-03-22 23:23 -------
This is the same issue as the follow patch tries to solve:
http://gcc.gnu.org/ml/gcc-patches/2006-02/msg01604.html
So it is not just PPC-darwin.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26814
^ permalink raw reply [flat|nested] 22+ messages in thread
* [Bug bootstrap/26814] Can't build a 64-bit C compiler on darwin-ppc
2006-03-22 23:18 [Bug bootstrap/26814] New: Can't build a 64-bit C compiler on darwin-ppc lucier at math dot purdue dot edu
2006-03-22 23:23 ` [Bug bootstrap/26814] " pinskia at gcc dot gnu dot org
@ 2006-03-22 23:24 ` ebotcazou at gcc dot gnu dot org
2006-03-22 23:26 ` [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) pinskia at gcc dot gnu dot org
` (18 subsequent siblings)
20 siblings, 0 replies; 22+ messages in thread
From: ebotcazou at gcc dot gnu dot org @ 2006-03-22 23:24 UTC (permalink / raw)
To: gcc-bugs
------- Comment #2 from ebotcazou at gcc dot gnu dot org 2006-03-22 23:24 -------
If you start with a 32-bit compiler, the correct sequence of operations is:
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
make bootstrap
--
ebotcazou at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |ebotcazou at gcc dot gnu dot
| |org
Status|UNCONFIRMED |WAITING
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26814
^ permalink raw reply [flat|nested] 22+ messages in thread
* [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)
2006-03-22 23:18 [Bug bootstrap/26814] New: Can't build a 64-bit C compiler on darwin-ppc lucier at math dot purdue dot edu
2006-03-22 23:23 ` [Bug bootstrap/26814] " pinskia at gcc dot gnu dot org
2006-03-22 23:24 ` ebotcazou at gcc dot gnu dot org
@ 2006-03-22 23:26 ` pinskia at gcc dot gnu dot org
2006-03-22 23:29 ` ebotcazou at gcc dot gnu dot org
` (17 subsequent siblings)
20 siblings, 0 replies; 22+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-03-22 23:26 UTC (permalink / raw)
To: gcc-bugs
------- 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
^ permalink raw reply [flat|nested] 22+ messages in thread
* [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)
2006-03-22 23:18 [Bug bootstrap/26814] New: Can't build a 64-bit C compiler on darwin-ppc lucier at math dot purdue dot edu
` (2 preceding siblings ...)
2006-03-22 23:26 ` [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) pinskia at gcc dot gnu dot org
@ 2006-03-22 23:29 ` ebotcazou at gcc dot gnu dot org
2006-03-22 23:30 ` ebotcazou at gcc dot gnu dot org
` (16 subsequent siblings)
20 siblings, 0 replies; 22+ messages in thread
From: ebotcazou at gcc dot gnu dot org @ 2006-03-22 23:29 UTC (permalink / raw)
To: gcc-bugs
------- 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
^ permalink raw reply [flat|nested] 22+ messages in thread
* [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)
2006-03-22 23:18 [Bug bootstrap/26814] New: Can't build a 64-bit C compiler on darwin-ppc lucier at math dot purdue dot edu
` (3 preceding siblings ...)
2006-03-22 23:29 ` ebotcazou at gcc dot gnu dot org
@ 2006-03-22 23:30 ` ebotcazou at gcc dot gnu dot org
2006-03-23 2:53 ` lucier at math dot purdue dot edu
` (15 subsequent siblings)
20 siblings, 0 replies; 22+ messages in thread
From: ebotcazou at gcc dot gnu dot org @ 2006-03-22 23:30 UTC (permalink / raw)
To: gcc-bugs
------- 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
^ permalink raw reply [flat|nested] 22+ messages in thread
* [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)
2006-03-22 23:18 [Bug bootstrap/26814] New: Can't build a 64-bit C compiler on darwin-ppc lucier at math dot purdue dot edu
` (4 preceding siblings ...)
2006-03-22 23:30 ` ebotcazou at gcc dot gnu dot org
@ 2006-03-23 2:53 ` lucier at math dot purdue dot edu
2006-03-23 3:16 ` lucier at math dot purdue dot edu
` (14 subsequent siblings)
20 siblings, 0 replies; 22+ messages in thread
From: lucier at math dot purdue dot edu @ 2006-03-23 2:53 UTC (permalink / raw)
To: gcc-bugs
------- 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
^ permalink raw reply [flat|nested] 22+ messages in thread
* [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)
2006-03-22 23:18 [Bug bootstrap/26814] New: Can't build a 64-bit C compiler on darwin-ppc lucier at math dot purdue dot edu
` (5 preceding siblings ...)
2006-03-23 2:53 ` lucier at math dot purdue dot edu
@ 2006-03-23 3:16 ` lucier at math dot purdue dot edu
2006-10-26 13:38 ` howarth at nitro dot med dot uc dot edu
` (13 subsequent siblings)
20 siblings, 0 replies; 22+ messages in thread
From: lucier at math dot purdue dot edu @ 2006-03-23 3:16 UTC (permalink / raw)
To: gcc-bugs
------- 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
^ permalink raw reply [flat|nested] 22+ messages in thread
* [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)
2006-03-22 23:18 [Bug bootstrap/26814] New: Can't build a 64-bit C compiler on darwin-ppc lucier at math dot purdue dot edu
` (6 preceding siblings ...)
2006-03-23 3:16 ` lucier at math dot purdue dot edu
@ 2006-10-26 13:38 ` howarth at nitro dot med dot uc dot edu
2006-10-26 14:07 ` howarth at nitro dot med dot uc dot edu
` (12 subsequent siblings)
20 siblings, 0 replies; 22+ messages in thread
From: howarth at nitro dot med dot uc dot edu @ 2006-10-26 13:38 UTC (permalink / raw)
To: gcc-bugs
------- 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.9999-20061024/darwin_objdir/./gcc/xgcc
-B/sw/src/fink.build/gcc4-4.1.9999-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
^ permalink raw reply [flat|nested] 22+ messages in thread
* [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)
2006-03-22 23:18 [Bug bootstrap/26814] New: Can't build a 64-bit C compiler on darwin-ppc lucier at math dot purdue dot edu
` (7 preceding siblings ...)
2006-10-26 13:38 ` howarth at nitro dot med dot uc dot edu
@ 2006-10-26 14:07 ` howarth at nitro dot med dot uc dot edu
2006-10-26 16:57 ` fang at csl dot cornell dot edu
` (11 subsequent siblings)
20 siblings, 0 replies; 22+ messages in thread
From: howarth at nitro dot med dot uc dot edu @ 2006-10-26 14:07 UTC (permalink / raw)
To: gcc-bugs
------- 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
^ permalink raw reply [flat|nested] 22+ messages in thread
* [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)
2006-03-22 23:18 [Bug bootstrap/26814] New: Can't build a 64-bit C compiler on darwin-ppc lucier at math dot purdue dot edu
` (8 preceding siblings ...)
2006-10-26 14:07 ` howarth at nitro dot med dot uc dot edu
@ 2006-10-26 16:57 ` fang at csl dot cornell dot edu
2006-10-26 21:37 ` howarth at nitro dot med dot uc dot edu
` (10 subsequent siblings)
20 siblings, 0 replies; 22+ messages in thread
From: fang at csl dot cornell dot edu @ 2006-10-26 16:57 UTC (permalink / raw)
To: gcc-bugs
------- 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
^ permalink raw reply [flat|nested] 22+ messages in thread
* [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)
2006-03-22 23:18 [Bug bootstrap/26814] New: Can't build a 64-bit C compiler on darwin-ppc lucier at math dot purdue dot edu
` (9 preceding siblings ...)
2006-10-26 16:57 ` fang at csl dot cornell dot edu
@ 2006-10-26 21:37 ` howarth at nitro dot med dot uc dot edu
2006-10-26 21:38 ` howarth at nitro dot med dot uc dot edu
` (9 subsequent siblings)
20 siblings, 0 replies; 22+ messages in thread
From: howarth at nitro dot med dot uc dot edu @ 2006-10-26 21:37 UTC (permalink / raw)
To: gcc-bugs
------- 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
^ permalink raw reply [flat|nested] 22+ messages in thread
* [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)
2006-03-22 23:18 [Bug bootstrap/26814] New: Can't build a 64-bit C compiler on darwin-ppc lucier at math dot purdue dot edu
` (10 preceding siblings ...)
2006-10-26 21:37 ` howarth at nitro dot med dot uc dot edu
@ 2006-10-26 21:38 ` howarth at nitro dot med dot uc dot edu
2006-10-27 12:33 ` howarth at nitro dot med dot uc dot edu
` (8 subsequent siblings)
20 siblings, 0 replies; 22+ messages in thread
From: howarth at nitro dot med dot uc dot edu @ 2006-10-26 21:38 UTC (permalink / raw)
To: gcc-bugs
------- 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=12498&action=view)
config.log from libgfortran build directory after aclocal/autoconf
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26814
^ permalink raw reply [flat|nested] 22+ messages in thread
* [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)
2006-03-22 23:18 [Bug bootstrap/26814] New: Can't build a 64-bit C compiler on darwin-ppc lucier at math dot purdue dot edu
` (11 preceding siblings ...)
2006-10-26 21:38 ` howarth at nitro dot med dot uc dot edu
@ 2006-10-27 12:33 ` howarth at nitro dot med dot uc dot edu
2006-10-27 18:14 ` fang at csl dot cornell dot edu
` (7 subsequent siblings)
20 siblings, 0 replies; 22+ messages in thread
From: howarth at nitro dot med dot uc dot edu @ 2006-10-27 12:33 UTC (permalink / raw)
To: gcc-bugs
------- 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
^ permalink raw reply [flat|nested] 22+ messages in thread
* [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)
2006-03-22 23:18 [Bug bootstrap/26814] New: Can't build a 64-bit C compiler on darwin-ppc lucier at math dot purdue dot edu
` (12 preceding siblings ...)
2006-10-27 12:33 ` howarth at nitro dot med dot uc dot edu
@ 2006-10-27 18:14 ` fang at csl dot cornell dot edu
2006-11-03 3:14 ` howarth at nitro dot med dot uc dot edu
` (6 subsequent siblings)
20 siblings, 0 replies; 22+ messages in thread
From: fang at csl dot cornell dot edu @ 2006-10-27 18:14 UTC (permalink / raw)
To: gcc-bugs
------- 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
^ permalink raw reply [flat|nested] 22+ messages in thread
* [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)
2006-03-22 23:18 [Bug bootstrap/26814] New: Can't build a 64-bit C compiler on darwin-ppc lucier at math dot purdue dot edu
` (13 preceding siblings ...)
2006-10-27 18:14 ` fang at csl dot cornell dot edu
@ 2006-11-03 3:14 ` howarth at nitro dot med dot uc dot edu
2006-11-03 3:36 ` howarth at nitro dot med dot uc dot edu
` (5 subsequent siblings)
20 siblings, 0 replies; 22+ messages in thread
From: howarth at nitro dot med dot uc dot edu @ 2006-11-03 3:14 UTC (permalink / raw)
To: gcc-bugs
------- 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.000000000
-0500
+++ gcc-4.2-20061031/zlib/configure.ac 2006-11-02 12:19:04.000000000 -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
^ permalink raw reply [flat|nested] 22+ messages in thread
* [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)
2006-03-22 23:18 [Bug bootstrap/26814] New: Can't build a 64-bit C compiler on darwin-ppc lucier at math dot purdue dot edu
` (14 preceding siblings ...)
2006-11-03 3:14 ` howarth at nitro dot med dot uc dot edu
@ 2006-11-03 3:36 ` howarth at nitro dot med dot uc dot edu
2006-11-10 2:49 ` howarth at nitro dot med dot uc dot edu
` (4 subsequent siblings)
20 siblings, 0 replies; 22+ messages in thread
From: howarth at nitro dot med dot uc dot edu @ 2006-11-03 3:36 UTC (permalink / raw)
To: gcc-bugs
------- 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
^ permalink raw reply [flat|nested] 22+ messages in thread
* [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)
2006-03-22 23:18 [Bug bootstrap/26814] New: Can't build a 64-bit C compiler on darwin-ppc lucier at math dot purdue dot edu
` (15 preceding siblings ...)
2006-11-03 3:36 ` howarth at nitro dot med dot uc dot edu
@ 2006-11-10 2:49 ` howarth at nitro dot med dot uc dot edu
2008-12-28 21:37 ` pinskia at gcc dot gnu dot org
` (3 subsequent siblings)
20 siblings, 0 replies; 22+ messages in thread
From: howarth at nitro dot med dot uc dot edu @ 2006-11-10 2:49 UTC (permalink / raw)
To: gcc-bugs
------- 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
^ permalink raw reply [flat|nested] 22+ messages in thread
* [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)
2006-03-22 23:18 [Bug bootstrap/26814] New: Can't build a 64-bit C compiler on darwin-ppc lucier at math dot purdue dot edu
` (16 preceding siblings ...)
2006-11-10 2:49 ` howarth at nitro dot med dot uc dot edu
@ 2008-12-28 21:37 ` pinskia at gcc dot gnu dot org
2008-12-29 1:31 ` lucier at math dot purdue dot edu
` (2 subsequent siblings)
20 siblings, 0 replies; 22+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2008-12-28 21:37 UTC (permalink / raw)
To: gcc-bugs
------- 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
^ permalink raw reply [flat|nested] 22+ messages in thread
* [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)
2006-03-22 23:18 [Bug bootstrap/26814] New: Can't build a 64-bit C compiler on darwin-ppc lucier at math dot purdue dot edu
` (17 preceding siblings ...)
2008-12-28 21:37 ` pinskia at gcc dot gnu dot org
@ 2008-12-29 1:31 ` lucier at math dot purdue dot edu
2008-12-29 2:43 ` pinskia at gcc dot gnu dot org
2008-12-29 3:07 ` lucier at math dot purdue dot edu
20 siblings, 0 replies; 22+ messages in thread
From: lucier at math dot purdue dot edu @ 2008-12-29 1:31 UTC (permalink / raw)
To: gcc-bugs
------- 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
^ permalink raw reply [flat|nested] 22+ messages in thread
* [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)
2006-03-22 23:18 [Bug bootstrap/26814] New: Can't build a 64-bit C compiler on darwin-ppc lucier at math dot purdue dot edu
` (18 preceding siblings ...)
2008-12-29 1:31 ` lucier at math dot purdue dot edu
@ 2008-12-29 2:43 ` pinskia at gcc dot gnu dot org
2008-12-29 3:07 ` lucier at math dot purdue dot edu
20 siblings, 0 replies; 22+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2008-12-29 2:43 UTC (permalink / raw)
To: gcc-bugs
------- 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
^ permalink raw reply [flat|nested] 22+ messages in thread
* [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)
2006-03-22 23:18 [Bug bootstrap/26814] New: Can't build a 64-bit C compiler on darwin-ppc lucier at math dot purdue dot edu
` (19 preceding siblings ...)
2008-12-29 2:43 ` pinskia at gcc dot gnu dot org
@ 2008-12-29 3:07 ` lucier at math dot purdue dot edu
20 siblings, 0 replies; 22+ messages in thread
From: lucier at math dot purdue dot edu @ 2008-12-29 3:07 UTC (permalink / raw)
To: gcc-bugs
------- 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
^ permalink raw reply [flat|nested] 22+ messages in thread
end of thread, other threads:[~2008-12-29 3:07 UTC | newest]
Thread overview: 22+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-03-22 23:18 [Bug bootstrap/26814] New: Can't build a 64-bit C compiler on darwin-ppc lucier at math dot purdue dot edu
2006-03-22 23:23 ` [Bug bootstrap/26814] " pinskia at gcc dot gnu dot org
2006-03-22 23:24 ` ebotcazou at gcc dot gnu dot org
2006-03-22 23:26 ` [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) pinskia at gcc dot gnu dot org
2006-03-22 23:29 ` ebotcazou at gcc dot gnu dot org
2006-03-22 23:30 ` ebotcazou at gcc dot gnu dot org
2006-03-23 2:53 ` lucier at math dot purdue dot edu
2006-03-23 3:16 ` lucier at math dot purdue dot edu
2006-10-26 13:38 ` howarth at nitro dot med dot uc dot edu
2006-10-26 14:07 ` howarth at nitro dot med dot uc dot edu
2006-10-26 16:57 ` fang at csl dot cornell dot edu
2006-10-26 21:37 ` howarth at nitro dot med dot uc dot edu
2006-10-26 21:38 ` howarth at nitro dot med dot uc dot edu
2006-10-27 12:33 ` howarth at nitro dot med dot uc dot edu
2006-10-27 18:14 ` fang at csl dot cornell dot edu
2006-11-03 3:14 ` howarth at nitro dot med dot uc dot edu
2006-11-03 3:36 ` howarth at nitro dot med dot uc dot edu
2006-11-10 2:49 ` howarth at nitro dot med dot uc dot edu
2008-12-28 21:37 ` pinskia at gcc dot gnu dot org
2008-12-29 1:31 ` lucier at math dot purdue dot edu
2008-12-29 2:43 ` pinskia at gcc dot gnu dot org
2008-12-29 3:07 ` lucier at math dot purdue dot edu
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).