regehr

problems building on 32-bit host

Discussion created by regehr on Jan 1, 2010
Latest reply on Feb 23, 2010 by dgilmore
can't compile x86_open64-4.2.3 on i686 Ubuntu 9.10 box

Hi folks,

I'm having trouble building x86_open64-4.2.3 on an Ubuntu 9.10 box running in 32-bit mode.  I believe that I have followed all instructions in the INSTALL file and have looked over the existing messages on this board.

The problem comes during the gcc-4.2.0 build and seems to be an attempt to assemble 64-bit code with 32-bit tools.

Any help would be appreciated.  Thanks,

John Regehr

 

/bin/sh ../../gcc/mkconfig.sh tconfig.h
/home/regehr/z/x86_open64-4.2.3/osprey-gcc-4.2.0/targia32_x8664/./gcc/xgcc -B/home/regehr/z/x86_open64-4.2.3/osprey-gcc-4.2.0/targia32_x8664/./gcc/ -B/open64-gcc-4.2.0/x86_64-redhat-linux/bin/ -B/open64-gcc-4.2.0/x86_64-redhat-linux/lib/ -isystem /open64-gcc-4.2.0/x86_64-redhat-linux/include -isystem /open64-gcc-4.2.0/x86_64-redhat-linux/sys-include -O2 -O2 -O2 -DIN_GCC -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -isystem ./include -I. -I. -I../../gcc -I../../gcc/. -I../../gcc/../include -I../../gcc/../../libspin -I../../gcc/../libcpp/include -I../../gcc/../libdecnumber -I../libdecnumber -g0 -finhibit-size-directive -fno-inline-functions -fno-exceptions -fno-zero-initialized-in-bss -fno-toplevel-reorder -fno-omit-frame-pointer -fno-asynchronous-unwind-tables \
-c ../../gcc/crtstuff.c -DCRT_BEGIN \
-o crtbegin.o
/tmp/cc3A9IO6.s: Assembler messages:
/tmp/cc3A9IO6.s:27: Error: bad register name `%rip)'
/tmp/cc3A9IO6.s:28: Error: bad register name `%rbp'
/tmp/cc3A9IO6.s:29: Error: bad register name `%rsp'
/tmp/cc3A9IO6.s:34: Error: bad register name `%rax'
/tmp/cc3A9IO6.s:35: Error: bad register name `%rax'
/tmp/cc3A9IO6.s:36: Error: bad register name `%rdx'
/tmp/cc3A9IO6.s:38: Error: bad register name `%rip)'
/tmp/cc3A9IO6.s:39: Error: bad register name `%rax)'
/tmp/cc3A9IO6.s:40: Error: bad register name `%rdx'
/tmp/cc3A9IO6.s:42: Error: bad register name `%rip)'
/tmp/cc3A9IO6.s:54: Error: bad register name `%rbp'
/tmp/cc3A9IO6.s:55: Error: bad register name `%rip)'
/tmp/cc3A9IO6.s:56: Error: bad register name `%rsp'
/tmp/cc3A9IO6.s:59: Error: bad register name `%rax'
/tmp/cc3A9IO6.s:62: Error: bad register name `%rax'
/tmp/cc3A9IO6.s:64: Error: bad register name `%r11'
make[4]: *** [crtbegin.o] Error 1
make[4]: Leaving directory `/home/regehr/z/x86_open64-4.2.3/osprey-gcc-4.2.0/targia32_x8664/gcc'
make[3]: *** [all-gcc] Error 2
make[3]: Leaving directory `/home/regehr/z/x86_open64-4.2.3/osprey-gcc-4.2.0/targia32_x8664'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/home/regehr/z/x86_open64-4.2.3/osprey-gcc-4.2.0/targia32_x8664'
make[1]: *** [osprey-gcc-4.2.0/targia32_x8664/gcc/cc1] Error 2
make[1]: Leaving directory `/home/regehr/z/x86_open64-4.2.3'
make: *** [build] Error 2

Outcomes