[kaffe] Porting kaffe - Make error - relocation overflow

2008-03-19 Thread Sivaramakrishnan KC
Hi,

I am porting kaffe to a research architecture abacus( 32 bit RISC). I
am using gcc 2.95.3. I tried porting kaffe-1.1.8 and kaffe-1.0.7 and
encountered the same error during make.
..
/bin/sh ../../libtool --mode=compile
/usr/abacus/bin/abacus-anurag-linux-gcc -DHAVE_CONFIG_H -I. -I.
-I../../config -I../../include
-I../../kaffe/kaffevm/systems/unix-jthreads -Iintrp -I./intrp
-I../../libltdl -DINTERPRETER -I../../kaffe/xprof  -DKVER='1.0.7'
-I/home/jvm/kaffe-1.0.7_abacus/./kaffe/kaffevm
-I/home/jvm/kaffe-1.0.7_abacus/./kaffe/kaffevm/systems/unix-jthreads
-I../../config -I../../include  -I/usr/abacus/zlib/include
-I/usr/abacus/include  -D__abacus__ -Wall -Wstrict-prototypes -c
code-analyse.c

/usr/abacus/bin/abacus-anurag-linux-gcc -DHAVE_CONFIG_H -I. -I.
-I../../config -I../../include
-I../../kaffe/kaffevm/systems/unix-jthreads -Iintrp -I./intrp
-I../../libltdl -DINTERPRETER -I../../kaffe/xprof -DKVER=\1.0.7\
-I/home/jvm/kaffe-1.0.7_abacus/./kaffe/kaffevm
-I/home/jvm/kaffe-1.0.7_abacus/./kaffe/kaffevm/systems/unix-jthreads
-I../../config -I../../include -I/usr/abacus/zlib/include
-I/usr/abacus/include -D__abacus__ -Wall -Wstrict-prototypes -c
code-analyse.c -o code-analyse.o

/tmp/cc4O2KKc.s: Assembler messages:
/tmp/cc4O2KKc.s:14622: Error: relocation overflow
make[3]: *** [code-analyse.lo] Error 1
make[3]: Leaving directory `/home/jvm/kaffe-1.0.7_abacus/kaffe/kaffevm'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/jvm/kaffe-1.0.7_abacus/kaffe/kaffevm'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/jvm/kaffe-1.0.7_abacus/kaffe'
make: *** [all-recursive] Error 1
-
I am configuring with the options:

KAFFEH=/home/jvm/kaffe-1.0.7_native/kaffe/kaffeh/kaffeh
CFLAGS=-D__abacus__
CC=/usr/abacus/bin/abacus-anurag-linux-gcc
STRIP=/usr/abacus/bin/abacus-anurag-linux-strip
NM=/usr/abacus/bin/abacus-anurag-linux-nm
AR=/usr/abacus/bin/abacus-anurag-linux-ar
AS=/usr/abacus/bin/abacus-anurag-linux-as
RANLIB=/usr/abacus/bin/abacus-anurag-linux-ranlib
LD=/usr/abacus/bin/abacus-anurag-linux-ld
./configure --with-engine=intrp --disable-gtk-peer
--disable-gconf-peer --with-jikes --disable-plugins
--prefix=/home/jvm/kaffe-abacus --exec-prefix=/home/jvm/kaffe-abacus
--host=abacus-unknown-linux --build=i386-linux
--with-includes=/usr/abacus/zlib/include /usr/abacus/include
--with-libraries=/usr/abacus/zlib/lib /usr/abacus/lib
--disable-native-awt --disable-shared --with-threads=unix-jthreads
--with-staticvm --with-staticbin

What might be the problem?

___
kaffe mailing list
kaffe@kaffe.org
http://kaffe.org/cgi-bin/mailman/listinfo/kaffe


Re: [kaffe] Porting kaffe - Make error - relocation overflow

2008-03-19 Thread Dalibor Topic

Sivaramakrishnan KC wrote:

Hi,

I am porting kaffe to a research architecture abacus( 32 bit RISC). I
am using gcc 2.95.3. I tried porting kaffe-1.1.8 and kaffe-1.0.7 and
encountered the same error during make.
  
/tmp/cc4O2KKc.s: Assembler messages:

/tmp/cc4O2KKc.s:14622: Error: relocation overflow
  

That sounds like a problem in the assembler or the code produced by gcc.

You could try building kaffe using gcc with -Os to optimize the 
generated assembler code for size, in case the file is too big for the 
assembler. Alternatievely, you could try splitting the C file

into smaller files, and compiling them separately.

cheers,
dalibor topic

___
kaffe mailing list
kaffe@kaffe.org
http://kaffe.org/cgi-bin/mailman/listinfo/kaffe