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

0 Members and 2 Guests are viewing this topic.

Offline yoshi13

  • LV2 Member (Next: 40)
  • **
  • Posts: 36
  • Rating: +0/-0
    • View Profile
Re: arm-elf-gcc Compiling error
« Reply #15 on: May 13, 2010, 04:49:45 am »
I just got rid of the old installs of it and installed it with the link you gave bwang but now it has gone back to EABI version errors. Did you modify the build script before using it?

Here is the complete compiling output:
Code: [Select]
root@Ubuntu-Josh:/media/Windows/Programming/src/arm/Test# 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
/usr/local/arm/lib/gcc/arm-elf/4.3.3/../../../../arm-elf/lib/libc.a(lib_a-syscalls.o): In function `do_AngelSWI':
/home/joshua/build/arm-elf/newlib/libc/sys/arm/../../../../../../newlib-1.17.0/newlib/libc/sys/arm/syscalls.c:103: multiple definition of `_exit'
/tmp/ccW3j5Mx.o:(.text+0x0): first defined here
/usr/local/arm/lib/gcc/arm-elf/4.3.3/../../../../arm-elf/bin/ld: ERROR: Source object test.o has EABI version 5, but target test.elf has EABI version 0
/usr/local/arm/lib/gcc/arm-elf/4.3.3/../../../../arm-elf/bin/ld: failed to merge target specific data of file test.o
/usr/local/arm/lib/gcc/arm-elf/4.3.3/../../../../arm-elf/bin/ld: ERROR: Source object syscalls.o has EABI version 5, but target test.elf has EABI version 0
/usr/local/arm/lib/gcc/arm-elf/4.3.3/../../../../arm-elf/bin/ld: failed to merge target specific data of file syscalls.o
/usr/local/arm/lib/gcc/arm-elf/4.3.3/../../../../arm-elf/bin/ld: ERROR: Source object utils.o has EABI version 5, but target test.elf has EABI version 0
/usr/local/arm/lib/gcc/arm-elf/4.3.3/../../../../arm-elf/bin/ld: failed to merge target specific data of file utils.o
/usr/local/arm/lib/gcc/arm-elf/4.3.3/../../../../arm-elf/lib/libc.a(lib_a-syscalls.o): In function `_sbrk':
syscalls.c:(.text+0x478): undefined reference to `end'
collect2: ld returned 1 exit status
make: *** [test] Error 1

Thanks for all the help so far

P.S I just noticed that the EABI version error is in reverse now
« Last Edit: May 13, 2010, 04:53:01 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 yoshi13

  • LV2 Member (Next: 40)
  • **
  • Posts: 36
  • Rating: +0/-0
    • View Profile
Re: arm-elf-gcc Compiling error
« Reply #16 on: May 13, 2010, 05:33:38 am »
I feel like such an idiot but this sort of thing always happens to me (especially when trying to get code to run) I just realized that i needed to delete the old test.o etc files so that it would recreate them to the right version.

There are no longer any EABI version errors, however i now receive errors from what seems to be the actual files needing to be compiled.

Here is the latest compiler output:
Code: [Select]
joshua@Ubuntu-Josh:/media/Windows/Programming/src/arm/Test$ make
arm-elf-gcc -mcpu=arm7tdmi -Os -Wall -W -fpic -fno-merge-constants -c -I../headers -D CAS test.c
arm-elf-gcc -mcpu=arm7tdmi -Os -Wall -W -fpic -fno-merge-constants -c -I../headers -D CAS syscalls.c
arm-elf-gcc -mcpu=arm7tdmi -Os -Wall -W -fpic -fno-merge-constants -c -I../headers -D CAS utils.c
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
/usr/local/arm/lib/gcc/arm-elf/4.3.3/../../../../arm-elf/lib/libc.a(lib_a-syscalls.o): In function `do_AngelSWI':
/home/joshua/build/arm-elf/newlib/libc/sys/arm/../../../../../../newlib-1.17.0/newlib/libc/sys/arm/syscalls.c:103: multiple definition of `_exit'
/tmp/ccs9eMe4.o:(.text+0x0): first defined here
/usr/local/arm/lib/gcc/arm-elf/4.3.3/../../../../arm-elf/lib/libc.a(lib_a-syscalls.o): In function `_sbrk':
syscalls.c:(.text+0x478): undefined reference to `end'
collect2: ld returned 1 exit status
make: *** [test] Error 1
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 #17 on: May 13, 2010, 05:48:21 am »
I found the fix to the above error and then changed MakeTNS to MakeTNS.exe so that it would find it but now I receive this error:

Code: [Select]
oshua@Ubuntu-Josh:/media/Windows/Programming/src/arm/Test$ make
arm-elf-gcc -mcpu=arm7tdmi -Os -Wall -W -fpic -fno-merge-constants -c -I../headers -D CAS test.c
arm-elf-gcc -mcpu=arm7tdmi -Os -Wall -W -fpic -fno-merge-constants -c -I../headers -D CAS syscalls.c
arm-elf-gcc -mcpu=arm7tdmi -Os -Wall -W -fpic -fno-merge-constants -c -I../headers -D CAS utils.c
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
arm-elf-objcopy -O binary test.elf test.bin
mkdir -p ../../res/CAS
../../tools/MakeTNS/MakeTNS.exe test.bin ../../res/CAS/test.tns
Failed !
rm -f test.bin test.elf

I am about to log off Ubuntu and try on Windows. I will update if anything happens.

Thanks,

Edit: I just tried on Windows and even after changing it back to MakeTNS instead of MakeTNS.exe it gives what appears to be the same error:
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
arm-elf-objcopy -O binary test.elf test.bin
mkdir -p ../../res/CAS
../../tools/MakeTNS/MakeTNS test.bin ../../res/CAS/test.tns
Failed !
rm -f test.bin test.elf
« Last Edit: May 13, 2010, 06:32:59 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 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 #18 on: May 13, 2010, 09:30:50 am »

Offline bwang

  • LV7 Elite (Next: 700)
  • *******
  • Posts: 634
  • Rating: +30/-11
    • View Profile
Re: arm-elf-gcc Compiling error
« Reply #19 on: May 13, 2010, 04:07:55 pm »
Try editing the Makefile to not delete test.bin after it finishes. Then try running ../../tools/MakeTNS/MakeTNS test.bin ../../res/CAS/test.tns and seeing what error message appears.

Offline yoshi13

  • LV2 Member (Next: 40)
  • **
  • Posts: 36
  • Rating: +0/-0
    • View Profile
Re: arm-elf-gcc Compiling error
« Reply #20 on: May 14, 2010, 04:23:56 am »
I tried going to the MakeTNS directory and running
Code: [Select]
MakeTNS test.bin test.tns it but it just returns Failed! like before.


P.S Sorry for not using the modify button... but I hate long posts especially when it has heaps of code in it. I will try to use modify more often now
P.P.S The demo gives the error
Code: [Select]
make: *** No rule to make target 'gravity_particles.o', needed by 'demo'. Stop
« Last Edit: May 14, 2010, 04:46:04 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 #21 on: May 14, 2010, 03:02:02 pm »
Is there a gravity_particles.c in the current directory?
Try with a fresh copy of Ndless.
Did you install arm-elf-gcc using the link I gave you?

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 #22 on: May 14, 2010, 05:45:03 pm »
but I hate long posts especially when it has heaps of code in it.
Usually what I do for large posts is separate each edits with colored characters like

Quote
Post 1
##############################

EDIT:

Post 2
That helps distinguishing edits a bit

Offline yoshi13

  • LV2 Member (Next: 40)
  • **
  • Posts: 36
  • Rating: +0/-0
    • View Profile
Re: arm-elf-gcc Compiling error
« Reply #23 on: May 14, 2010, 06:13:09 pm »
Thanks for the help bwang.... I just figured it out... I had never made MakeTNS i had always copied it from some other directory for some reason, so I did the makefile in the MakeTNS directory then ran the makefile in the demo directory and it works.

Thanks again for the continued help,
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 #24 on: May 14, 2010, 07:10:35 pm »
So everything is working now? The demo compiles?

Offline yoshi13

  • LV2 Member (Next: 40)
  • **
  • Posts: 36
  • Rating: +0/-0
    • View Profile
Re: arm-elf-gcc Compiling error
« Reply #25 on: May 14, 2010, 07:14:14 pm »
Yeah. It compiles for both NON_CAS and CAS and there are no errors or warnings in the compiling any more.

Thanks again, I can finally start developing something
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 #26 on: May 14, 2010, 07:21:29 pm »
w00t! Glad it's fixed :)

Good luck programming

Offline bwang

  • LV7 Elite (Next: 700)
  • *******
  • Posts: 634
  • Rating: +30/-11
    • View Profile
Re: arm-elf-gcc Compiling error
« Reply #27 on: May 14, 2010, 07:51:00 pm »
Yay! Another Nspire developer :)

Offline yoshi13

  • LV2 Member (Next: 40)
  • **
  • Posts: 36
  • Rating: +0/-0
    • View Profile
Re: arm-elf-gcc Compiling error
« Reply #28 on: May 16, 2010, 12:06:27 am »
Just a little addition:

I finally got it to work on windows by installing mingw then msys, if you don't install mingw first you get problems with MakeTNS.

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 apcalc

  • The Game
  • CoT Emeritus
  • LV10 31337 u53r (Next: 2000)
  • *
  • Posts: 1393
  • Rating: +120/-2
  • VGhlIEdhbWUh (Base 64 :))
    • View Profile
Re: arm-elf-gcc Compiling error
« Reply #29 on: July 04, 2010, 10:41:14 am »
You need arm-elf-gcc. Try downloading an older version of Yagarto (the version I have installed under WINE says 23.12.2009).

For all new Nspire developers, I do not think the old version of Yagarto (23.12.2009) is available on the website anymore.  To switch to the new version, download and then, In the Makefile, replace "arm-elf-" with "arm-none-eabi-".  This should let you use the new versio (it worked for me).
« Last Edit: July 04, 2010, 06:25:17 pm by apcalc »