This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

cannot compute sizeof (int), 77 on G5


Hi. Regardless of what cflags I use, making gcc seems to always die during the configuration of libiberty. I get this error:

checking size of int... configure: error: cannot compute sizeof (int), 77
See `config.log' for more details.
make[1]: *** [configure-target-libiberty] Error 1

There doesn't appear to be anything particularly unusual in config.log:

This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

configure:600: checking host system type
configure:621: checking target system type
configure:639: checking build system type
configure:694: checking for a BSD compatible install
configure:747: checking whether ln works
configure:771: checking whether ln -s works
configure:1825: checking for gcc
configure:1938: checking whether the C compiler (gcc -O2 ) works
configure:1954: gcc -o conftest -O2 conftest.c 1>&5
configure:1980: checking whether the C compiler (gcc -O2 ) is a cross-compiler
configure:1985: checking whether we are using GNU C
configure:2013: checking whether gcc accepts -g
configure:2080: checking for gnatbind
configure:2145: checking whether compiler driver understands Ada
configure:2177: checking how to compare bootstrapped objects
configure:2275: checking for correct version of gmp.h
configure:2288: gcc -c -O2 -I/seis/local/macPPC/include -I/seis/local/macPPC/include conftest.c 1>&5
configure:2301: checking for MPFR
configure:2314: gcc -o conftest -O2 -I/seis/local/macPPC/include -I/seis/local/macPPC/include conftest.c -L/seis/local/macPPC/lib -L/seis/local/macPPC/lib -lmpfr -lgmp 1>&5
configure:3313: checking for bison
configure:3353: checking for bison
configure:3392: checking for gm4
configure:3431: checking for flex
configure:3471: checking for flex
configure:3510: checking for makeinfo
configure:3563: checking for expect
configure:3604: checking for runtest
configure:3652: checking for powerpc-apple-darwin-ar
configure:3727: checking for powerpc-apple-darwin-as
configure:3802: checking for powerpc-apple-darwin-dlltool
configure:3833: checking for dlltool
configure:3877: checking for powerpc-apple-darwin-ld
configure:3952: checking for powerpc-apple-darwin-lipo
configure:4027: checking for powerpc-apple-darwin-nm
configure:4102: checking for powerpc-apple-darwin-ranlib
configure:4172: checking for powerpc-apple-darwin-strip
configure:4242: checking for powerpc-apple-darwin-windres
configure:4273: checking for windres
configure:4317: checking for powerpc-apple-darwin-objcopy
configure:4348: checking for objcopy
configure:4392: checking for powerpc-apple-darwin-objdump
configure:4423: checking for objdump
configure:4474: checking for powerpc-apple-darwin-ar
configure:4549: checking for powerpc-apple-darwin-as
configure:4624: checking for powerpc-apple-darwin-cc
configure:4699: checking for powerpc-apple-darwin-c++
configure:4774: checking for powerpc-apple-darwin-dlltool
configure:4805: checking for dlltool
configure:4849: checking for powerpc-apple-darwin-gcc
configure:4919: checking for powerpc-apple-darwin-gcj
configure:4950: checking for gcj
configure:4994: checking for powerpc-apple-darwin-gfortran
configure:5025: checking for gfortran
configure:5069: checking for powerpc-apple-darwin-ld
configure:5144: checking for powerpc-apple-darwin-lipo
configure:5219: checking for powerpc-apple-darwin-nm
configure:5294: checking for powerpc-apple-darwin-objdump
configure:5325: checking for objdump
configure:5369: checking for powerpc-apple-darwin-ranlib
configure:5439: checking for powerpc-apple-darwin-strip
configure:5514: checking for powerpc-apple-darwin-windres
configure:5545: checking for windres
configure:5588: checking where to find the target ar
configure:5613: checking where to find the target as
configure:5638: checking where to find the target cc
configure:5663: checking where to find the target c++
configure:5691: checking where to find the target c++ for libstdc++
configure:5719: checking where to find the target dlltool
configure:5744: checking where to find the target gcc
configure:5769: checking where to find the target gcj
configure:5797: checking where to find the target gfortran
configure:5825: checking where to find the target ld
configure:5850: checking where to find the target lipo
configure:5865: checking where to find the target nm
configure:5890: checking where to find the target objdump
configure:5915: checking where to find the target ranlib
configure:5940: checking where to find the target strip
configure:5965: checking where to find the target windres
configure:6018: checking whether to enable maintainer-specific portions of Makefiles
configure:6065: checking if symbolic links between directories work


it should be noted that what I'm attempting to do is build a bunch of utilities (gcc with fortran in this instance) that will be shared among all of our powerpc macs. It'll be shared via nfs on the desktops (mostly G5s and maybe one or two G4s) and rsynced onto the laptops (all G4s). I'm doing the building on a dual G5 with OSX Tiger and GCC 4.0.0 (that came with the apple's developer tools).

I suspect that this problem has something to do with building for a powerpc32 on a powerpc64, but alas, I've been tasked with this and would like to be able to do it if possible.

I've been running configure with these options:
--prefix="/seis/local/macPPC" --host="powerpc-apple-darwin" --with-mpfr="/seis/local
/macPPC" --with-gmp="/seis/local/macPPC"


CFLAGS that I have used with this configuration in various attempts have been -O3, -O2, -ftree-vectorize, and -no-cpp-precomp.

Thanks,
Philip


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]