Skip to contentSkip to conversation

gcc 3.3 release x86->hppa64 failure?

parisc-linux Carlos O'Donell 2 participants 3 messages Jul 16, 2003

lore
Share & tools
lore
#0 lore raw

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.

#1 lore raw
Quoted 4 lines

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 bootstrap'? There is no way stage2 can work in a cross.

Dave

Signature · 2 lines
J. David Anglin                                  [email protected]
National Research Council of Canada              (613) 990-0752 (FAX: 952-6602)
#2 lore raw
Quoted 6 lines
Quoted 4 lines

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 bootstrap'? There is no way stage2 can work in a cross.

Erm. My mistake. I inadvertantly used 'make boostrap' in my build script. Obviously not thinking since stage2 would not be able to build a stage3 since it can't run the executable it builds.

c.