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]

Re: cannot compute sizeof (int), 77 on G5


Actually, I just realized that I was looking at the config.log in the build root instead of the one in the directory created by make. Here's what looks to be the relevant information from the actual config.log.

configure:4169: checking size of int
configure:4481: /Volumes/oldheff/oliverpa/Build/gcc-4.1.1/host-powerpc-apple-darwin/gcc/xgcc -B/Volumes/oldheff/oliverpa/Build/gcc-4.1.1/host-powerpc-apple-darwin/gcc/ -B/seis/local/macPPC/powerpc-apple-darwin/bin/ -B/seis/local/macPPC/powerpc-apple-darwin/lib/ -isystem /seis/local/macPPC/powerpc-apple-darwin/include -isystem /seis/local/macPPC/powerpc-apple-darwin/sys-include -o conftest -O2 -no-cpp-precomp -O3 conftest.c >&5
xgcc: unrecognized option '-no-cpp-precomp'
/usr/bin/ld: Undefined symbols:
_fprintf$LDBLStub
collect2: ld returned 1 exit status
configure:4484: $? = 1
configure: program exited with status 1
configure: failed program was:
| /* confdefs.h. */
|
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define WORDS_BIGENDIAN 1
| #define HAVE_SYS_FILE_H 1
| #define HAVE_SYS_PARAM_H 1
| #define HAVE_LIMITS_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_SYS_TIME_H 1
| #define HAVE_TIME_H 1
| #define HAVE_SYS_RESOURCE_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_SYS_MMAN_H 1
| #define HAVE_FCNTL_H 1
| #define HAVE_ALLOCA_H 1
| #define HAVE_SYS_SYSCTL_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_SYS_WAIT_H 1
| #define TIME_WITH_SYS_TIME 1
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| /* end confdefs.h. */
| #include <stdio.h>
| #if HAVE_SYS_TYPES_H
| # include <sys/types.h>
| #endif
| #if HAVE_SYS_STAT_H
| # include <sys/stat.h>
| #endif
| #if STDC_HEADERS
| # include <stdlib.h>
| # include <stddef.h>
| #else
| # if HAVE_STDLIB_H
| # include <stdlib.h>
| # endif
| #endif
| #if HAVE_STRING_H
| # if !STDC_HEADERS && HAVE_MEMORY_H
| # include <memory.h>
| # endif
| # include <string.h>
| #endif
| #if HAVE_STRINGS_H
| # include <strings.h>
| #endif
| #if HAVE_INTTYPES_H
| # include <inttypes.h>
| #else
| # if HAVE_STDINT_H
| # include <stdint.h>
| # endif
| #endif
| #if HAVE_UNISTD_H
| # include <unistd.h>
| #endif
| long longval () { return (long) (sizeof (int)); }
| unsigned long ulongval () { return (long) (sizeof (int)); }
| #include <stdio.h>
| #include <stdlib.h>
| int
| main ()
| {
|
| FILE *f = fopen ("conftest.val", "w");
| if (! f)
| exit (1);
| if (((long) (sizeof (int))) < 0)
| {
| long i = longval ();
| if (i != ((long) (sizeof (int))))
| exit (1);
| fprintf (f, "%ld\n", i);
| }
| else
| {
| unsigned long i = ulongval ();
| if (i != ((long) (sizeof (int))))
| exit (1);
| fprintf (f, "%lu\n", i);
| }
| exit (ferror (f) || fclose (f) != 0);
|
| ;
| return 0;
| }
configure:4499: error: cannot compute sizeof (int), 77
See `config.log' for more details.




Philip Oliver-Paull wrote:
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

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]