Author Topic: arm-elf-gcc Compiling error  (Read 25413 times)

0 Members and 2 Guests are viewing this topic.

Offline yoshi13

  • LV2 Member (Next: 40)
  • **
  • Posts: 36
  • Rating: +0/-0
    • View Profile
arm-elf-gcc Compiling error
« on: May 08, 2010, 08:54:53 pm »
I have been trying to compile the demo program in the ndless directory as per the instructions in Dev.txt but I can't get it to work

When I navigate msys to the directory and type make it gives the error:

Code: [Select]
arm-elf-gcc -mcpu=arm7dtmi - Os -Wall -W -fpic -fno-merge-constants -c -I../headers -D NON_CAS demo.c
make: arm-elf-gcc: Command not found
make: *** [demo.o] Error 127

I have installed the yagarto toolchain and
Code: [Select]
G:/Program Files/yagarto/bin and
Code: [Select]
G:/Program Files/yagarto/ is in the Path variable as well as this I also downloaded devkitARM and have put that into the Path variable as well.

How do i fix this?
What happens when no one is listening on #omnimaga:
http://netham45.org/irc/EfNet/view.php?log=omnimaga.20100513

Never use /beep 9999 1000 on irc..

Offline bwang

  • LV7 Elite (Next: 700)
  • *******
  • Posts: 634
  • Rating: +30/-11
    • View Profile
Re: arm-elf-gcc Compiling error
« Reply #1 on: May 08, 2010, 09:29:13 pm »
Go to a command prompt and run arm-elf-gcc. Does it give you a Command Not Found error?

Offline yoshi13

  • LV2 Member (Next: 40)
  • **
  • Posts: 36
  • Rating: +0/-0
    • View Profile
Re: arm-elf-gcc Compiling error
« Reply #2 on: May 08, 2010, 09:38:40 pm »
It doesn't work. it gives the command not found error

Edit: After some experimenting I found that yagarto no longer contains arm-elf-gcc but has arm-none-eabi-gcc-4.5.0 which works instead and arm-none-eabi-objcopy which works instead of arm-elf-objcopy.

Now I just need to get it to read MakeTNS as it says it isn't found
« Last Edit: May 08, 2010, 10:23:57 pm by yoshi13 »
What happens when no one is listening on #omnimaga:
http://netham45.org/irc/EfNet/view.php?log=omnimaga.20100513

Never use /beep 9999 1000 on irc..

Offline yoshi13

  • LV2 Member (Next: 40)
  • **
  • Posts: 36
  • Rating: +0/-0
    • View Profile
Re: arm-elf-gcc Compiling error
« Reply #3 on: May 08, 2010, 10:38:49 pm »
Alright.. I've finally got it to read all the files it needs to compile it but now it says

Code: [Select]
$ make
arm-none-eabi-gcc-4.5.0 -mcpu=arm7tdmi - Os -Wall -W -fpic -fno-merge-constants
-T ../system/ldscript ../system/crt0.s test.o syscalls.o utils.o -o test.elf
arm-none-eabi-objcopy -O binary test.elf test.bin
mkdri -p ../../res/CAS
../../tools/MakeTNS test.bin ../../res/CAS/test.tns
Failed !
rm -f test.bin test.elf


How do I fix this??
« Last Edit: May 08, 2010, 10:39:15 pm by yoshi13 »
What happens when no one is listening on #omnimaga:
http://netham45.org/irc/EfNet/view.php?log=omnimaga.20100513

Never use /beep 9999 1000 on irc..

Offline bwang

  • LV7 Elite (Next: 700)
  • *******
  • Posts: 634
  • Rating: +30/-11
    • View Profile
Re: arm-elf-gcc Compiling error
« Reply #4 on: May 08, 2010, 10:42:11 pm »
You need arm-elf-gcc. Try downloading an older version of Yagarto (the version I have installed under WINE says 23.12.2009).
« Last Edit: May 08, 2010, 10:44:29 pm by bwang »

Offline yoshi13

  • LV2 Member (Next: 40)
  • **
  • Posts: 36
  • Rating: +0/-0
    • View Profile
Re: arm-elf-gcc Compiling error
« Reply #5 on: May 09, 2010, 08:38:06 am »
I installed the 23.12.2009 version but it returns alot of errors about the EABI version and other things.

Do I need to change yagarto versions and if so to what one?

The full message is this:

Code: [Select]
$ make
arm-elf-gcc -mcpu=arm7tdmi -Os -Wall -W -fpic -fno-merge-constants  -T ../system/ldscript ../system/crt0.s test.o syscalls.o utils.o -o test.elf
g:/program files/yagarto/bin/../lib/gcc/arm-elf/4.4.2/../../../../arm-elf/bin/ld.exe: error: Source object g:/program files/yagarto/bin/../lib/gcc/arm-elf/4.4.2\libgcc.a(_arm_addsubsf3.o) has EABI version 0, but target test.elf has EABI version 5
g:/program files/yagarto/bin/../lib/gcc/arm-elf/4.4.2/../../../../arm-elf/bin/ld.exe: failed to merge target specific data of file g:/program files/yagarto/bin/../lib/gcc/arm-elf/4.4.2\libgcc.a(_arm_addsubsf3.o)
g:/program files/yagarto/bin/../lib/gcc/arm-elf/4.4.2/../../../../arm-elf/bin/ld.exe: error: Source object g:/program files/yagarto/bin/../lib/gcc/arm-elf/4.4.2\libgcc.a(_arm_muldivsf3.o) has EABI version 0, but target test.elf has EABI version 5
g:/program files/yagarto/bin/../lib/gcc/arm-elf/4.4.2/../../../../arm-elf/bin/ld.exe: failed to merge target specific data of file g:/program files/yagarto/bin/../lib/gcc/arm-elf/4.4.2\libgcc.a(_arm_muldivsf3.o)
g:/program files/yagarto/bin/../lib/gcc/arm-elf/4.4.2/../../../../arm-elf/bin/ld.exe: error: Source object g:/program files/yagarto/bin/../lib/gcc/arm-elf/4.4.2\libgcc.a(_arm_cmpsf2.o) has EABI version 0, but target test.elf has EABI version 5
g:/program files/yagarto/bin/../lib/gcc/arm-elf/4.4.2/../../../../arm-elf/bin/ld.exe: failed to merge target specific data of file g:/program files/yagarto/bin/../lib/gcc/arm-elf/4.4.2\libgcc.a(_arm_cmpsf2.o)
g:/program files/yagarto/bin/../lib/gcc/arm-elf/4.4.2/../../../../arm-elf/bin/ld.exe: error: Source object g:/program files/yagarto/bin/../lib/gcc/arm-elf/4.4.2/../../../../arm-elf/lib\libc.a(lib_a-atexit.o) has EABI version 0, but target test.elf has EABI version 5
g:/program files/yagarto/bin/../lib/gcc/arm-elf/4.4.2/../../../../arm-elf/bin/ld.exe: failed to merge target specific data of file g:/program files/yagarto/bin/../lib/gcc/arm-elf/4.4.2/../../../../arm-elf/lib\libc.a(lib_a-atexit.o)
g:/program files/yagarto/bin/../lib/gcc/arm-elf/4.4.2/../../../../arm-elf/bin/ld.exe: error: Source object g:/program files/yagarto/bin/../lib/gcc/arm-elf/4.4.2/../../../../arm-elf/lib\libc.a(lib_a-exit.o) has EABI version 0, but target test.elf has EABI version 5
g:/program files/yagarto/bin/../lib/gcc/arm-elf/4.4.2/../../../../arm-elf/bin/ld.exe: failed to merge target specific data of file g:/program files/yagarto/bin/../lib/gcc/arm-elf/4.4.2/../../../../arm-elf/lib\libc.a(lib_a-exit.o)
g:/program files/yagarto/bin/../lib/gcc/arm-elf/4.4.2/../../../../arm-elf/bin/ld.exe: error: Source object g:/program files/yagarto/bin/../lib/gcc/arm-elf/4.4.2/../../../../arm-elf/lib\libc.a(lib_a-impure.o) has EABI version 0, but target test.elf has EABI version 5
g:/program files/yagarto/bin/../lib/gcc/arm-elf/4.4.2/../../../../arm-elf/bin/ld.exe: failed to merge target specific data of file g:/program files/yagarto/bin/../lib/gcc/arm-elf/4.4.2/../../../../arm-elf/lib\libc.a(lib_a-impure.o)
g:/program files/yagarto/bin/../lib/gcc/arm-elf/4.4.2/../../../../arm-elf/bin/ld.exe: error: Source object g:/program files/yagarto/bin/../lib/gcc/arm-elf/4.4.2/../../../../arm-elf/lib\libc.a(lib_a-init.o) has EABI version 0, but target test.elf has EABI version 5
g:/program files/yagarto/bin/../lib/gcc/arm-elf/4.4.2/../../../../arm-elf/bin/ld.exe: failed to merge target specific data of file g:/program files/yagarto/bin/../lib/gcc/arm-elf/4.4.2/../../../../arm-elf/lib\libc.a(lib_a-init.o)
g:/program files/yagarto/bin/../lib/gcc/arm-elf/4.4.2/../../../../arm-elf/bin/ld.exe: error: Source object g:/program files/yagarto/bin/../lib/gcc/arm-elf/4.4.2/../../../../arm-elf/lib\libc.a(lib_a-memset.o) has EABI version 0, but target test.elf has EABI version 5
g:/program files/yagarto/bin/../lib/gcc/arm-elf/4.4.2/../../../../arm-elf/bin/ld.exe: failed to merge target specific data of file g:/program files/yagarto/bin/../lib/gcc/arm-elf/4.4.2/../../../../arm-elf/lib\libc.a(lib_a-memset.o)
g:/program files/yagarto/bin/../lib/gcc/arm-elf/4.4.2/../../../../arm-elf/bin/ld.exe: error: Source object g:/program files/yagarto/bin/../lib/gcc/arm-elf/4.4.2/../../../../arm-elf/lib\libc.a(lib_a-__atexit.o) has EABI version 0, but target test.elf has EABI version 5
g:/program files/yagarto/bin/../lib/gcc/arm-elf/4.4.2/../../../../arm-elf/bin/ld.exe: failed to merge target specific data of file g:/program files/yagarto/bin/../lib/gcc/arm-elf/4.4.2/../../../../arm-elf/lib\libc.a(lib_a-__atexit.o)
g:/program files/yagarto/bin/../lib/gcc/arm-elf/4.4.2/../../../../arm-elf/bin/ld.exe: error: Source object g:/program files/yagarto/bin/../lib/gcc/arm-elf/4.4.2/../../../../arm-elf/lib\libc.a(lib_a-__call_atexit.o) has EABI version 0, but target test.elf has EABI version 5
g:/program files/yagarto/bin/../lib/gcc/arm-elf/4.4.2/../../../../arm-elf/bin/ld.exe: failed to merge target specific data of file g:/program files/yagarto/bin/../lib/gcc/arm-elf/4.4.2/../../../../arm-elf/lib\libc.a(lib_a-__call_atexit.o)
g:/program files/yagarto/bin/../lib/gcc/arm-elf/4.4.2/../../../../arm-elf/bin/ld.exe: error: Source object g:/program files/yagarto/bin/../lib/gcc/arm-elf/4.4.2/crtend.o has EABI version 0, but target test.elf has EABI version 5
g:/program files/yagarto/bin/../lib/gcc/arm-elf/4.4.2/../../../../arm-elf/bin/ld.exe: failed to merge target specific data of file g:/program files/yagarto/bin/../lib/gcc/arm-elf/4.4.2/crtend.o
g:/program files/yagarto/bin/../lib/gcc/arm-elf/4.4.2/../../../../arm-elf/bin/ld.exe: error: Source object g:/program files/yagarto/bin/../lib/gcc/arm-elf/4.4.2/crtn.o has EABI version 0, but target test.elf has EABI version 5
g:/program files/yagarto/bin/../lib/gcc/arm-elf/4.4.2/../../../../arm-elf/bin/ld.exe: failed to merge target specific data of file g:/program files/yagarto/bin/../lib/gcc/arm-elf/4.4.2/crtn.o
collect2: ld returned 1 exit status
make: *** [test] Error 1
« Last Edit: May 09, 2010, 05:50:33 pm by yoshi13 »
What happens when no one is listening on #omnimaga:
http://netham45.org/irc/EfNet/view.php?log=omnimaga.20100513

Never use /beep 9999 1000 on irc..

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: arm-elf-gcc Compiling error
« Reply #6 on: May 11, 2010, 03:39:58 am »
btw when there are over 6 hours since your last post, I recommend posting a new reply when you have more info to add, more problems or solved the issue, else, during days of high activity (especially when several topics get replied to), your post edit may get easily missed, since it won't bump the topic on top of the list.

Unfortunately, I cannot help, though, since I only did TI-83 Plus BASIC and Axe programming

Offline yoshi13

  • LV2 Member (Next: 40)
  • **
  • Posts: 36
  • Rating: +0/-0
    • View Profile
Re: arm-elf-gcc Compiling error
« Reply #7 on: May 11, 2010, 07:31:39 am »
Ok. Thanks for the reply... I have had no further luck getting it to work as I spent most of my time trying to get it to work on Monday and have spent all of tonight installing ubuntu and trying to get that to work with it but it gives a CreateProcess error which I am gonna ignore and just continue to try and get it to work on Windows

I just tried on Windows and after some tinkering I now get the same error as on Ubuntu

Code: [Select]
arm-elf-gcc -mcpu=arm7tdmi -Os -Wall -W -fpic -fno-merge-constants  -T ../system/ldscript ../system/crt0.s main.o syscalls.o utils.o vector.o particle.o particle_system.o -o demo.elf
arm-elf-gcc.exe: CreateProcess: No such file or directory
make: *** [demo] Error 1

Edit: Just tried again after some tinkering........ the CreateProcess error is gone but in its place is the old EABI version error
« Last Edit: May 11, 2010, 07:44:28 am by yoshi13 »
What happens when no one is listening on #omnimaga:
http://netham45.org/irc/EfNet/view.php?log=omnimaga.20100513

Never use /beep 9999 1000 on irc..

Offline bwang

  • LV7 Elite (Next: 700)
  • *******
  • Posts: 634
  • Rating: +30/-11
    • View Profile
Re: arm-elf-gcc Compiling error
« Reply #8 on: May 11, 2010, 03:53:43 pm »
Do you still have Ubuntu installed? I used this page http://blog.nutaksas.com/2009/05/installing-gnuarm-arm-toolchain-on.html to install arm-elf-gcc. Then there is a workaround for a possible bug here: http://www.unitedti.org/forum/index.php?showtopic=9289.

Offline yoshi13

  • LV2 Member (Next: 40)
  • **
  • Posts: 36
  • Rating: +0/-0
    • View Profile
Re: arm-elf-gcc Compiling error
« Reply #9 on: May 12, 2010, 02:18:56 am »
I looked at the bug fix but it doesn't help my current error. I tried again on Ubuntu and I now recieve this error:
Code: [Select]
arm-elf-gcc -mcpu=arm7tdmi -Os -Wall -W -fpic -fno-merge-constants  -T ../system/ldscript ../system/crt0.s main.o syscalls.o utils.o vector.o particle.o particle_system.o -o demo.elf
/media/Programs/gnuarm-4.0.2/bin/arm-elf-gcc: 1: cannot create �@@د@8: Invalid or incomplete multibyte or wide character
/media/Programs/gnuarm-4.0.2/bin/arm-elf-gcc: 1: ELF: not found
/media/Programs/gnuarm-4.0.2/bin/arm-elf-gcc: 2: Syntax error: "&" unexpected (expecting ")")
make: *** [demo] Error 2

I don't have time tonight to try install arm-elf-gcc from the link you got but if I can't find a fix for the current error I will try that maybe tomorrow
What happens when no one is listening on #omnimaga:
http://netham45.org/irc/EfNet/view.php?log=omnimaga.20100513

Never use /beep 9999 1000 on irc..

Offline bwang

  • LV7 Elite (Next: 700)
  • *******
  • Posts: 634
  • Rating: +30/-11
    • View Profile
Re: arm-elf-gcc Compiling error
« Reply #10 on: May 12, 2010, 02:51:45 am »
I see several characters in the codebox show up on Firefox 3.6.3 on Ubuntu 8.04 as little boxes. Does anyone else see this?

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: arm-elf-gcc Compiling error
« Reply #11 on: May 12, 2010, 02:55:13 am »
me (I use Opera 10.52 on Windows 7 64-bit)
« Last Edit: May 12, 2010, 02:55:37 am by DJ Omnimaga »

Offline yoshi13

  • LV2 Member (Next: 40)
  • **
  • Posts: 36
  • Rating: +0/-0
    • View Profile
Re: arm-elf-gcc Compiling error
« Reply #12 on: May 12, 2010, 03:12:16 am »
I see it too... in the terminal they show up as things that look like  this little box containing  00  and other random numbers and letters inside boxes
                                                                                                                             AE
« Last Edit: May 12, 2010, 03:24:45 am by yoshi13 »
What happens when no one is listening on #omnimaga:
http://netham45.org/irc/EfNet/view.php?log=omnimaga.20100513

Never use /beep 9999 1000 on irc..

Offline TIfanx1999

  • ಠ_ಠ ( ͡° ͜ʖ ͡°)
  • CoT Emeritus
  • LV13 Extreme Addict (Next: 9001)
  • *
  • Posts: 6173
  • Rating: +191/-9
    • View Profile
Re: arm-elf-gcc Compiling error
« Reply #13 on: May 12, 2010, 06:07:07 am »
Yepp, same here. Firefox 3.6.3 Win 7.

Offline yoshi13

  • LV2 Member (Next: 40)
  • **
  • Posts: 36
  • Rating: +0/-0
    • View Profile
Re: arm-elf-gcc Compiling error
« Reply #14 on: May 12, 2010, 08:33:56 am »
I just installed it from the link you gave bwang but it stil gives the same error with the same weird symbols
What happens when no one is listening on #omnimaga:
http://netham45.org/irc/EfNet/view.php?log=omnimaga.20100513

Never use /beep 9999 1000 on irc..