Omnimaga: The Coders Of Tomorrow
Welcome, Guest. Please login or register.
 
Omnimaga: The Coders Of Tomorrow
19 May, 2013, 19:38:34 *
Welcome, Guest. Please login or register.

Login with username, password and session length
 
   home   news downloads projects tutorials misc forums rules new posts irc about Login Register  
+-OmnomIRC

You must Register, be logged in and have at least 40 posts to use this shout-box! If it still doesn't show up afterward, it might be that OmnomIRC is disabled for your group or under maintenance.

Note: You can also use an IRC client like mIRC, X-Chat or Mibbit to connect to an EFnet server and #omnimaga.

Pages: 1 [2]   Go Down
  Print  
Author Topic: arm-elf-gcc Compiling error -  (Read 9506 times) Bookmark and Share
0 Members and 1 Guest are viewing this topic.
yoshi13
LV2 Member (Next: 40)
**
Offline Offline

Gender: Male
Last Login: 24 January, 2011, 06:07:12
Date Registered: 03 May, 2010, 12:58:42
Location: The Cave of Light - L.O.S.T
Posts: 36

Topic starter
Total Post Ratings: 0

View Profile
« Reply #15 on: 13 May, 2010, 10:49:45 »
0

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:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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: 13 May, 2010, 10:53:01 by yoshi13 » Logged

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..
yoshi13
LV2 Member (Next: 40)
**
Offline Offline

Gender: Male
Last Login: 24 January, 2011, 06:07:12
Date Registered: 03 May, 2010, 12:58:42
Location: The Cave of Light - L.O.S.T
Posts: 36

Topic starter
Total Post Ratings: 0

View Profile
« Reply #16 on: 13 May, 2010, 11:33:38 »
0

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:

1
2
3
4
5
6
7
8
9
10
11
12
13
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
Logged

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..
yoshi13
LV2 Member (Next: 40)
**
Offline Offline

Gender: Male
Last Login: 24 January, 2011, 06:07:12
Date Registered: 03 May, 2010, 12:58:42
Location: The Cave of Light - L.O.S.T
Posts: 36

Topic starter
Total Post Ratings: 0

View Profile
« Reply #17 on: 13 May, 2010, 11:48:21 »
0

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:


1
2
3
4
5
6
7
8
9
10
11
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:

1
2
3
4
5
6
7
8
9

$ 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: 13 May, 2010, 12:32:59 by yoshi13 » Logged

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..
DJ Omnimaga
Retired Omnimaga founder (Site issues must be PM'ed to Netham45, Eeems, Shmibs, Deep Thought and AngelFish, not me.)
Editor
LV15 Omnimagician (Next: --)
*
Offline Offline

Gender: Male
Last Login: Today at 19:36:19
Date Registered: 25 August, 2008, 07:00:21
Location: Québec (Canada)
Posts: 50202


Total Post Ratings: +2611

View Profile WWW
« Reply #18 on: 13 May, 2010, 15:30:50 »
+2

Logged

Retired 83+ coder, Omnimaga/TIMGUL founder. Now doing power metal music (formerly did electronica)

Follow me on Bandcamp|Facebook|Reverbnation|Youtube|Twitter|Myspace
bwang
LV7 Elite (Next: 700)
*******
Offline Offline

Last Login: 11 August, 2012, 12:59:06
Date Registered: 20 June, 2009, 01:42:58
Posts: 632

Total Post Ratings: +19

View Profile
« Reply #19 on: 13 May, 2010, 22:07:55 »
0

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.
Logged
yoshi13
LV2 Member (Next: 40)
**
Offline Offline

Gender: Male
Last Login: 24 January, 2011, 06:07:12
Date Registered: 03 May, 2010, 12:58:42
Location: The Cave of Light - L.O.S.T
Posts: 36

Topic starter
Total Post Ratings: 0

View Profile
« Reply #20 on: 14 May, 2010, 10:23:56 »
0

I tried going to the MakeTNS directory and running

1
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

1
make: *** No rule to make target 'gravity_particles.o', needed by 'demo'. Stop
« Last Edit: 14 May, 2010, 10:46:04 by yoshi13 » Logged

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..
bwang
LV7 Elite (Next: 700)
*******
Offline Offline

Last Login: 11 August, 2012, 12:59:06
Date Registered: 20 June, 2009, 01:42:58
Posts: 632

Total Post Ratings: +19

View Profile
« Reply #21 on: 14 May, 2010, 21:02:02 »
0

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?
Logged
DJ Omnimaga
Retired Omnimaga founder (Site issues must be PM'ed to Netham45, Eeems, Shmibs, Deep Thought and AngelFish, not me.)
Editor
LV15 Omnimagician (Next: --)
*
Offline Offline

Gender: Male
Last Login: Today at 19:36:19
Date Registered: 25 August, 2008, 07:00:21
Location: Québec (Canada)
Posts: 50202


Total Post Ratings: +2611

View Profile WWW
« Reply #22 on: 14 May, 2010, 23:45:03 »
0

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
Logged

Retired 83+ coder, Omnimaga/TIMGUL founder. Now doing power metal music (formerly did electronica)

Follow me on Bandcamp|Facebook|Reverbnation|Youtube|Twitter|Myspace
yoshi13
LV2 Member (Next: 40)
**
Offline Offline

Gender: Male
Last Login: 24 January, 2011, 06:07:12
Date Registered: 03 May, 2010, 12:58:42
Location: The Cave of Light - L.O.S.T
Posts: 36

Topic starter
Total Post Ratings: 0

View Profile
« Reply #23 on: 15 May, 2010, 00:13:09 »
0

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,
Logged

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..
bwang
LV7 Elite (Next: 700)
*******
Offline Offline

Last Login: 11 August, 2012, 12:59:06
Date Registered: 20 June, 2009, 01:42:58
Posts: 632

Total Post Ratings: +19

View Profile
« Reply #24 on: 15 May, 2010, 01:10:35 »
0

So everything is working now? The demo compiles?
Logged
yoshi13
LV2 Member (Next: 40)
**
Offline Offline

Gender: Male
Last Login: 24 January, 2011, 06:07:12
Date Registered: 03 May, 2010, 12:58:42
Location: The Cave of Light - L.O.S.T
Posts: 36

Topic starter
Total Post Ratings: 0

View Profile
« Reply #25 on: 15 May, 2010, 01:14:14 »
0

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
Logged

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..
DJ Omnimaga
Retired Omnimaga founder (Site issues must be PM'ed to Netham45, Eeems, Shmibs, Deep Thought and AngelFish, not me.)
Editor
LV15 Omnimagician (Next: --)
*
Offline Offline

Gender: Male
Last Login: Today at 19:36:19
Date Registered: 25 August, 2008, 07:00:21
Location: Québec (Canada)
Posts: 50202


Total Post Ratings: +2611

View Profile WWW
« Reply #26 on: 15 May, 2010, 01:21:29 »
0

w00t! Glad it's fixed Smiley

Good luck programming
Logged

Retired 83+ coder, Omnimaga/TIMGUL founder. Now doing power metal music (formerly did electronica)

Follow me on Bandcamp|Facebook|Reverbnation|Youtube|Twitter|Myspace
bwang
LV7 Elite (Next: 700)
*******
Offline Offline

Last Login: 11 August, 2012, 12:59:06
Date Registered: 20 June, 2009, 01:42:58
Posts: 632

Total Post Ratings: +19

View Profile
« Reply #27 on: 15 May, 2010, 01:51:00 »
0

Yay! Another Nspire developer Smiley
Logged
yoshi13
LV2 Member (Next: 40)
**
Offline Offline

Gender: Male
Last Login: 24 January, 2011, 06:07:12
Date Registered: 03 May, 2010, 12:58:42
Location: The Cave of Light - L.O.S.T
Posts: 36

Topic starter
Total Post Ratings: 0

View Profile
« Reply #28 on: 16 May, 2010, 06:06:27 »
0

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.

Logged

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..
apcalc
The Game
Coder Of Tomorrow
LV10 31337 u53r (Next: 2000)
*
Offline Offline

Gender: Male
Last Login: Today at 16:59:33
Date Registered: 20 March, 2010, 16:31:47
Location: 2003 UB313
Posts: 1393


Total Post Ratings: +118

View Profile
« Reply #29 on: 04 July, 2010, 16:41:14 »
0

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: 05 July, 2010, 00:25:17 by apcalc » Logged


Pages: 1 [2]   Go Up
  Print  
 
Jump to:  

Powered by EzPortal
Powered by MySQL Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Powered by PHP
Page created in 0.262 seconds with 31 queries.
Skin by DJ Omnimaga edited from SMF default theme with the help of tr1p1ea.
All programs, games and songs avaliable on this website are property of their respective owners.
Best viewed in Opera, Firefox, Chrome and Safari with a resolution of 1024x768 or above.