OESF Portables Forum

General Forums => General Discussion => Topic started by: Tyris on June 14, 2004, 02:49:42 am

Title: gcc-cross-sa1100 compiler problem
Post by: Tyris on June 14, 2004, 02:49:42 am
Hi guys,

I\'ve been trying to cross compile Speakfreely7.6a to run on my 6000.
Unfortunately I\'ve run into what seems to be a compiler bug:

Code: [Select]
/opt/Embedix/tools/bin/arm-linux-gcc -Wall  -DAUDIO_BLOCKING -DLINUX -DNEEDED_LINEAR -DLINUX_DSP_SMALL_BUFFER -DHAVE_DEV_RANDOM -O3 -DHEXDUMP -c -O -DSASR -DNDEBUG   -DAUTO_SPARC_HACK  -I./inc src/code.c

/home/user/tmp/ccKHIiAS.s: Assembler messages:

/home/user/tmp/ccKHIiAS.s:87: Error: Cannot represent OFFSET_IMM8 relocation in this object file format


This happens when compiling the GSM package. Im going to try it w/o GSM, but from my past experience shows that really hurts sound quality.

I searched around to see exactly what \"OFFSET_IMM8\" means, and it seems to be a true compiler bug for 2.95.2, and there was no apparent fix in 2.95.3

Has anyone else encountered this? and is there a fix/work around available?

-T
Title: gcc-cross-sa1100 compiler problem
Post by: lardman on June 14, 2004, 06:04:53 am
You could try reducing -O3 to something less (like -O2, -O1?)

Probably won\'t work, but worth a go.


Si