[parisc-linux] gcc 3.3 release x86->hppa64 failure?
Carlos O'Donell
carlos@baldric.uwo.ca
Wed, 16 Jul 2003 00:14:35 -0400
Has anyone recently tried to bootstrap an x86->hppa64 cross-compiler?
I'm going with cvs binutils, cvs gcc -rgcc_3_3_release.
'make boostrap'
---
make[2]: Entering directory
`/mnt/fatty/src/hppa-toolchain/gcc/build/gcc'
stage1/xgcc -Bstage1/
-B/mnt/fatty/src/hppa-toolchain/parisc/hppa64-linux/bin/ -c -g -O2
-DIN_GCC -DCROSS_COMPILE -W -Wall -Wwrite-strings -Wstrict-prototypes
-Wmissing-prototypes -Wtraditional -pedantic -Wno-long-long
-DHAVE_CONFIG_H -DGENERATOR_FILE -I. -I. -I../../gcc/gcc
-I../../gcc/gcc/. -I../../gcc/gcc/config -I../../gcc/gcc/../include
../../gcc/gcc/gengenrtl.c -o gengenrtl.o
In file included from ../../gcc/gcc/gengenrtl.c:29:
../../gcc/gcc/real.h:67: error: size of array `test_real_width' is
negative
make[2]: *** [gengenrtl.o] Error 1
make[2]: Leaving directory `/mnt/fatty/src/hppa-toolchain/gcc/build/gcc'
make[1]: *** [stage2_build] Error 2
make[1]: Leaving directory `/mnt/fatty/src/hppa-toolchain/gcc/build/gcc'
make: *** [bootstrap] Error 2
---
Refs: http://gcc.gnu.org/ml/gcc/2002-10/msg01471.html
gcc/real.h
---
65 /* Verify the guess. */
66 extern char test_real_width
67 [sizeof(REAL_VALUE_TYPE) <= REAL_WIDTH*sizeof(HOST_WIDE_INT) ? 1 : -1];
---
# 66 "../../gcc/gcc/real.h"
extern char test_real_width
[sizeof(struct real_value) <= (((128 + (8 * 4)) + 32)/(8 * 8) + (((128
+ (8 * 4)) + 32)%(8 * 8) ? 1 : 0))*sizeof(long long) ? 1 : -1];
---
Which under a normal gcc in x86 evaluates correclty, but under the
stage1 xgcc it doesn't. How can I, obviously without having a glibc in
64-bit userspace, analyze the value of 'sizeof(struct real_value)'?
c.