Author Topic: gcc-cross-sa1100 compiler problem  (Read 1687 times)

Tyris

  • Newbie
  • *
  • Posts: 38
    • View Profile
    • http://
gcc-cross-sa1100 compiler problem
« 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

lardman

  • Hero Member
  • *****
  • Posts: 4512
    • View Profile
    • http://people.bath.ac.uk/enpsgp/Zaurus/
gcc-cross-sa1100 compiler problem
« Reply #1 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
C750 OZ3.5.4 (GPE, 2.6.x kernel)
SL5500 OZ3.5.4 (Opie)
Nokia 770
Serial GPS, WCF-12, Socket Ethernet & BT, Ratoc USB
WinXP, Mandriva