chicken-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Chicken-users] cross-chicken for m68k-elf


From: felix winkelmann
Subject: Re: [Chicken-users] cross-chicken for m68k-elf
Date: Wed, 30 May 2007 11:21:47 +0200

On 5/28/07, Lev Shamardin <address@hidden> wrote:
Hi all,

I'm trying to compile the cross-chicken for the m68k-elf platform (for a clone
of uCDimm if you bother) using the instructions from
http://chicken.wiki.br/cross%20compilation, but I get the following error trying
to build either 'native' or 'cross' versions:

[...skipped...]
m68k-elf-gcc -DHAVE_CONFIG_H -I. -I../chicken-2.613 -I. -DC_BUILDING_LIBCHICKEN
-Ipcre -DSUPPORT_UTF8 -DSUPPORT_UCP -DPCRE_STATIC -Os -g -fomit-frame-pointer
-m68000 -DCONFIG_LINEO -Dlinux -D__linux__ -Dunix -D__uClinux__ -DEMBED
-D__USE_BSD -I/home/sunpos/uClinux-dist/lib/uClibc/include
-I/home/sunpos/uClinux-dist/lib/libm
-I/home/sunpos/uClinux-dist/lib/libcrypt_old -I/home/sunpos/uClinux-dist
-I./include -I/home/sunpos/uClinux-dist/sunyard/include
-I/home/sunpos/uClinux-dist/linux-2.4.x/include -fno-builtin -msep-data
-DC_ENABLE_PTABLES -c ../chicken-2.613/runtime.c -o libchicken_la-runtime.o
In file included from ../chicken-2.613/runtime.c:134:
chicken-config.h:25: warning: `C_STACK_GROWS_DOWNWARD' redefined
../chicken-2.613/chicken.h:144: warning: this is the location of the previous
definition
/tmp/ccaTtfAl.s: Assembler messages:
/tmp/ccaTtfAl.s:44537: Fatal error: Tried to convert PC relative conditional
branch to absolute jump
gmake[1]: *** [libchicken_la-runtime.lo] Error 1
gmake[1]: Leaving directory `/home/sunpos/cross-chicken/build'
make: *** [all] Error 2

Any clues how to fix this?

No. I haven't had any success yet compiling for uClinux myself (but haven't
tried very hard and don't have much experience with it).

That the assembler aborts doesn't really look too good. Is there some
gcc option to emit "long" jumps (assuming there is some range problem)?
Try to remove the optimization flags (-Os -fomit-frame-pointer) from CFLAGS.
The STACK_GROWS_DOWNWARD warning can be ignored.


cheers,
felix




reply via email to

[Prev in Thread] Current Thread [Next in Thread]