GP32 Building Gp32 Toolchain


slubman

Certified Guru
Joined
Feb 6, 2003
Messages
217
Age
39
Hi

I download gcc 3.4.2, i succeed in compile it with Mr.Mirko settings, but, now i've got errors using th gpsdk file, and all sdk i've found have failed to link :(

So i just have three question:

1°/ What are the settings (CFLAGS) i should use to build the gcc ?
2°/ What gp32 sdk (should i use with those settings ?
3°/ Anything special to add to the makefile ?

N.B: it's a linux gp32 toolchain
 
slubman posted on Oct 27 2004 at 12:42 AM said:
Hi

I download gcc 3.4.2, i succeed in compile it with Mr.Mirko settings, but, now i've got errors using th gpsdk file, and all sdk i've found have failed to link :(

So i just have three question:

1°/ What are the settings (CFLAGS) i should use to build the gcc ?
2°/ What gp32 sdk (should i use with those settings ?
3°/ Anything special to add to the makefile ?

N.B: it's a linux gp32 toolchain

Please post your linking errors, you get.

To 1:
CFLAGS and CXXFLAGS must be empty. If you want to crosscompile a new gcc. It makes no sense to optimize the gcc build. It will not result in faster compiled programms later :)

To2:
gp32.mirkoroller.de of couse :)

To3:
Only RUN the script, do not copy and paste it to the bash

If you cant compile any example, please post the error, after you typed make, in one example dir.
 
Last edited by a moderator:
Using Rob's tuto with gcc 3.4.2 i've got the following errors:

/home/slubman/Applications/gp32/3.4.2/gcc-3.4.2/build/gcc/xgcc -B/home/slubman/Applications/gp32/3.4.2/gcc-3.4.2/build/gcc/ -nostdinc -B/home/slubman/Applications/gp32/3.4.2/gcc-3.4.2/build/arm-elf/newlib/ -isystem /home/slubman/Applications/gp32/3.4.2/gcc-3.4.2/build/arm-elf/newlib/targ-include -isystem /home/slubman/Applications/gp32/3.4.2/gcc-3.4.2/newlib/libc/include -B/usr/arm-elf/bin/ -B/usr/arm-elf/lib/ -isystem /usr/arm-elf/include -isystem /usr/arm-elf/sys-include -O2 -DIN_GCC -DCROSS_COMPILE -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -isystem ./include -Dinhibit_libc -fno-inline -g -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED -Dinhibit_libc -I. -I. -I../../gcc -I../../gcc/. -I../../gcc/../include -DL_udivsi3 -xassembler-with-cpp -c ../../gcc/config/arm/lib1funcs.asm -o libgcc/./_udivsi3.o
../../gcc/config/arm/lib1funcs.asm: Assembler messages:
../../gcc/config/arm/lib1funcs.asm:1: Warning: rest of line ignored; first ignored character is `@'
../../gcc/config/arm/lib1funcs.asm:2: Warning: rest of line ignored; first ignored character is `@'
../../gcc/config/arm/lib1funcs.asm:65: Warning: rest of line ignored; first ignored character is `@'
../../gcc/config/arm/lib1funcs.asm:591: Error: too many memory references for `sub'
../../gcc/config/arm/lib1funcs.asm:592: Error: no such instruction: `bxeq lr'
../../gcc/config/arm/lib1funcs.asm:593: Error: no such instruction: `bcc .Ldiv0'
../../gcc/config/arm/lib1funcs.asm:594: Error: too many memory references for `cmp'
../../gcc/config/arm/lib1funcs.asm:595: Error: no such instruction: `bls 11f'
../../gcc/config/arm/lib1funcs.asm:596: Error: no such instruction: `tst r1,r2'
../../gcc/config/arm/lib1funcs.asm:597: Error: no such instruction: `beq 12f'
../../gcc/config/arm/lib1funcs.asm:256: Warning: rest of line ignored; first ignored character is `@'
../../gcc/config/arm/lib1funcs.asm:256: Warning: rest of line ignored; first ignored character is `@'
../../gcc/config/arm/lib1funcs.asm:256: Warning: rest of line ignored; first ignored character is `@'
../../gcc/config/arm/lib1funcs.asm:256: Warning: rest of line ignored; first ignored character is `@'
../../gcc/config/arm/lib1funcs.asm:256: Error: no such instruction: `tst r1,'
../../gcc/config/arm/lib1funcs.asm:256: Error: no such instruction: `moveq r1,r1,lsl'
../../gcc/config/arm/lib1funcs.asm:256: Error: no such instruction: `moveq r3,'
../../gcc/config/arm/lib1funcs.asm:256: Error: no such instruction: `movne r3,'
../../gcc/config/arm/lib1funcs.asm:256: Warning: rest of line ignored; first ignored character is `@'
../../gcc/config/arm/lib1funcs.asm:256: Warning: rest of line ignored; first ignored character is `@'
../../gcc/config/arm/lib1funcs.asm:256: Warning: rest of line ignored; first ignored character is `@'
../../gcc/config/arm/lib1funcs.asm:256: Warning: rest of line ignored; first ignored character is `@'
../../gcc/config/arm/lib1funcs.asm:256: Error: expecting operand after ','; got nothing
../../gcc/config/arm/lib1funcs.asm:256: Error: no such instruction: `cmplo r1,r0'
../../gcc/config/arm/lib1funcs.asm:256: Error: no such instruction: `movlo r1,r1,lsl'
../../gcc/config/arm/lib1funcs.asm:256: Error: no such instruction: `movlo r3,r3,lsl'
../../gcc/config/arm/lib1funcs.asm:256: Error: no such instruction: `blo 1b'
../../gcc/config/arm/lib1funcs.asm:256: Warning: rest of line ignored; first ignored character is `@'
../../gcc/config/arm/lib1funcs.asm:256: Warning: rest of line ignored; first ignored character is `@'
../../gcc/config/arm/lib1funcs.asm:256: Error: expecting operand after ','; got nothing
../../gcc/config/arm/lib1funcs.asm:256: Error: no such instruction: `cmplo r1,r0'
../../gcc/config/arm/lib1funcs.asm:256: Error: no such instruction: `movlo r1,r1,lsl'
../../gcc/config/arm/lib1funcs.asm:256: Error: no such instruction: `movlo r3,r3,lsl'
../../gcc/config/arm/lib1funcs.asm:256: Error: no such instruction: `blo 1b'
../../gcc/config/arm/lib1funcs.asm:256: Error: expecting operand after ','; got nothing
../../gcc/config/arm/lib1funcs.asm:256: Warning: rest of line ignored; first ignored character is `@'
../../gcc/config/arm/lib1funcs.asm:256: Error: too many memory references for `cmp'
../../gcc/config/arm/lib1funcs.asm:256: Error: no such instruction: `subhs r0,r0,r1'
../../gcc/config/arm/lib1funcs.asm:256: Error: no such instruction: `orrhs r2,r2,r3'
../../gcc/config/arm/lib1funcs.asm:256: Error: too many memory references for `cmp'
../../gcc/config/arm/lib1funcs.asm:256: Error: no such instruction: `subhs r0,r0,r1,lsr'
../../gcc/config/arm/lib1funcs.asm:256: Error: no such instruction: `orrhs r2,r2,r3,lsr'
../../gcc/config/arm/lib1funcs.asm:256: Error: too many memory references for `cmp'
../../gcc/config/arm/lib1funcs.asm:256: Error: no such instruction: `subhs r0,r0,r1,lsr'
../../gcc/config/arm/lib1funcs.asm:256: Error: no such instruction: `orrhs r2,r2,r3,lsr'
../../gcc/config/arm/lib1funcs.asm:256: Error: too many memory references for `cmp'
../../gcc/config/arm/lib1funcs.asm:256: Error: no such instruction: `subhs r0,r0,r1,lsr'
../../gcc/config/arm/lib1funcs.asm:256: Error: no such instruction: `orrhs r2,r2,r3,lsr'
../../gcc/config/arm/lib1funcs.asm:256: Error: expecting operand after ','; got nothing
../../gcc/config/arm/lib1funcs.asm:256: Error: no such instruction: `movnes r3,r3,lsr'
../../gcc/config/arm/lib1funcs.asm:256: Error: no such instruction: `movne r1,r1,lsr'
../../gcc/config/arm/lib1funcs.asm:256: Error: no such instruction: `bne 1b'
../../gcc/config/arm/lib1funcs.asm:601: Error: too many memory references for `mov'
../../gcc/config/arm/lib1funcs.asm:602: Error: no such instruction: `bx lr'
../../gcc/config/arm/lib1funcs.asm:604: Error: no such instruction: `moveq r0,'
../../gcc/config/arm/lib1funcs.asm:605: Error: no such instruction: `movne r0,'
../../gcc/config/arm/lib1funcs.asm:606: Error: no such instruction: `bx lr'
../../gcc/config/arm/lib1funcs.asm:316: Error: expecting operand after ','; got nothing
../../gcc/config/arm/lib1funcs.asm:316: Error: no such instruction: `movhs r1,r1,lsr'
../../gcc/config/arm/lib1funcs.asm:316: Error: no such instruction: `movhs r2,'
../../gcc/config/arm/lib1funcs.asm:316: Error: no such instruction: `movlo r2,'
../../gcc/config/arm/lib1funcs.asm:316: Error: expecting operand after ','; got nothing
../../gcc/config/arm/lib1funcs.asm:316: Error: no such instruction: `movhs r1,r1,lsr'
../../gcc/config/arm/lib1funcs.asm:316: Error: no such instruction: `addhs r2,r2,'
../../gcc/config/arm/lib1funcs.asm:316: Error: expecting operand after ','; got nothing
../../gcc/config/arm/lib1funcs.asm:316: Error: no such instruction: `movhs r1,r1,lsr'
../../gcc/config/arm/lib1funcs.asm:316: Error: no such instruction: `addhs r2,r2,'
../../gcc/config/arm/lib1funcs.asm:316: Error: expecting operand after ','; got nothing
../../gcc/config/arm/lib1funcs.asm:316: Error: no such instruction: `addhi r2,r2,'
../../gcc/config/arm/lib1funcs.asm:316: Error: no such instruction: `addls r2,r2,r1,lsr'
../../gcc/config/arm/lib1funcs.asm:610: Error: too many memory references for `mov'
../../gcc/config/arm/lib1funcs.asm:611: Error: no such instruction: `bx lr'
../../gcc/config/arm/lib1funcs.asm:615: Error: invalid char '[' beginning operand 2 `[sp'
../../gcc/config/arm/lib1funcs.asm:615: Error: no such instruction: `bl __div0 (PLT)'
../../gcc/config/arm/lib1funcs.asm:615: Error: expecting operand after ','; got nothing
../../gcc/config/arm/lib1funcs.asm:121: Error: no such instruction: `ldr pc,[sp],'
../../gcc/config/arm/ieee754-df.S:44: Warning: rest of line ignored; first ignored character is `@'
../../gcc/config/arm/ieee754-df.S:45: Warning: rest of line ignored; first ignored character is `@'
make[2]: *** [libgcc/./_udivsi3.o] Erreur 1
make[2]: Leaving directory `/home/slubman/Applications/gp32/3.4.2/gcc-3.4.2/build/gcc'
make[1]: *** [stmp-multilib] Erreur 2
make[1]: Leaving directory `/home/slubman/Applications/gp32/3.4.2/gcc-3.4.2/build/gcc'
make: *** [install-gcc] Erreur 2
 
About mr.mirko automated tool:
1°/ I don't have a DSL connection so i download everything from scho, then simplyn change the scrit in order that i mustn't download.
2°/ I run it as root
3°/ I've got error using the gpsdk :(
 
3°/ I've got error using the gpsdk

Please post this error


btw, what kind of linux are you using ?
make[2]: *** [libgcc/./_udivsi3.o] Erreur 1
Erreur ??

I think your Linux is a lot (badly) patched ...
 
Linux Mandrake 10 community :S

I'll go to re-compile gcc with your setings, to show you the errors.
 
I've succeed in build-it with rob settings, and all thinks work fine now.
It's seem that I was forgetting to export a shell variable :S
 
Back
Top