build error with debian squeeze

Asked by Franz

Hi!

I am trying to build the toolchain according to the manual "How-to-build-toolchain.pdf". However I am running debian squeeze with native gcc (Debian 4.4.5-8) 4.4.5. The build crashes with the errors below. Does anyone know how to fix this?

Thanks,
Franz

/host-libs/zlib/lib -L/home/user/Desktop/gcc_embedded/gcc-arm-none-eabi-4_7-2013q1-20130313/build-native/host-libs/usr/lib -o sysinfo sysinfo.o syslex.o
syslex.o: In function `main':
syslex.c:(.text+0x0): multiple definition of `main'
sysinfo.o:sysinfo.c:(.text+0x0): first defined here
collect2: ld returned 1 exit status
make[2]: *** [sysinfo] Error 1
make[2]: Leaving directory `/home/user/Desktop/gcc_embedded/gcc-arm-none-eabi-4_7-2013q1-20130313/build-native/binutils/binutils'
make[1]: *** [all-binutils] Error 2
make[1]: *** Waiting for unfinished jobs....

Question information

Language:
English Edit question
Status:
Solved
For:
GNU Arm Embedded Toolchain Edit question
Assignee:
No assignee Edit question
Solved by:
Franz
Solved:
Last query:
Last reply:
Revision history for this message
Joey Ye (jinyun-ye) said :
#1

No idea. The build process is only verified on Ubuntu.

Revision history for this message
Franz (flash86) said :
#2

Hi thanks for the answer! Already solved, just a stupid mistake on my part. I had to install bison and flex. Now it works.

Kind regards,
Franz