-!- Netsplit *.net <-> *.split quits: olofk | 08:52 | |
-!- Netsplit over, joins: olofk | 08:52 | |
-!- Netsplit *.net <-> *.split quits: jonmasters, orsoc1 | 09:02 | |
Lampus | Hello | 09:36 |
---|---|---|
Lampus | jonibo_: jonibo: What version of gcc is up-to-date on http://openrisc.southpole.se/cgit.cgi/ ? | 09:41 |
Lampus | Too many repos. And I don't know what difference between them =\ | 09:47 |
-!- Netsplit *.net <-> *.split quits: pgavin` | 10:29 | |
-!- Netsplit over, joins: pgavin` | 10:32 | |
-!- Netsplit over, joins: orsoc1_ | 10:51 | |
Lampus | 1 | 10:57 |
Lampus | 2 | 11:14 |
olofk | 3? | 11:30 |
Lampus | _/usr/lib/gcc//../../or32-elf/newlib/crt0.o: In function `_start': (.text+0x1e4): undefined reference to `init' | 13:05 |
Lampus | Strange... | 13:05 |
Lampus | 1 | 13:11 |
Lampus | $ or32-elf-gcc -L./ hello.c -o hello /usr/lib/gcc//../../or32-elf/lib/crt0.o: In function `_start': (.text+0x1e4): undefined reference to `init' | 15:43 |
Lampus | I can't understand... WTF? | 15:43 |
Lampus | Where I should search symbol init? | 15:44 |
Lampus | Hehe =) I have added function void init(); to hello.c, and now it compiled sucessfully | 15:48 |
Lampus | And seems works in or1ksim | 15:49 |
Lampus | But it's strange | 15:49 |
Lampus | jonibo: juliusb: Any ideas? | 15:51 |
jonibo | run gcc with -v to see linking order | 15:54 |
jonibo | can't recall where init is defined but I think it's in libc (i.e. newlib) | 15:54 |
jonibo | pass -mnewlib on the command line and see what happens | 15:54 |
jonibo | or rather pass -mboard=or1ksim | 15:55 |
jonibo | are you on 4.5.3 or 4.5.1 branch? | 15:55 |
jonibo | with 4.5.3 branch you need newlib from git because I reworked handling of libgloss board files to make gcc relocatable | 15:56 |
jonibo | not sure where you got your newlib from | 15:56 |
Lampus | from downloads section on site. Maybe too old? | 15:57 |
jonibo | yeah, probably too old | 15:57 |
jonibo | I don't know about the status of that opencores stuff... it's usually out of date | 15:57 |
Lampus | Where I can find latest versions of binutils, gcc and newlib? | 16:00 |
jonibo | git.openrisc.net | 16:01 |
jonibo | I think those are up to date | 16:01 |
jonibo | or check with pgavin | 16:01 |
jonibo | juliusb's repo at github has a work-in-progress binutils, if you're feeling adventurous | 16:01 |
Lampus | I have built gcc from this repo: git://openrisc.net/jonas/gcc-svn | 16:01 |
jonibo | ok, yeah, that should be ok | 16:02 |
jonibo | i can't be of much more help right now but I might have some time to look into this stuff this weekend... | 16:20 |
jonibo | if so, I can give you some more information about what/how to build this stuff then | 16:20 |
Lampus | jonibo: thank you for the hints, after rebuilding newlib from git all works fine =) | 16:23 |
jonibo | ok, cool | 16:24 |
jonibo | just keep in mind that git://openrisc.net/jonas/newlib requires the or32-4.5.3 branch of gcc from git://openrisc.net/jonas/gcc as there's a fix to the board support bits that requires fixes to each of these packages | 16:25 |
jonibo | otherwise, just back up one commit in newlib and everything should work fine with most of the other gcc versions | 16:25 |
jonibo | phew, what a mess | 16:25 |
jonibo | will need to get this all sorted out | 16:25 |
jonibo | it's not that bad... just a lot of work in progress that hasn't been rounded off in a nice way | 16:26 |
Lampus | Yeah, so many problems for newbie =) | 16:26 |
jonibo | sorry about that :) | 16:26 |
Lampus | Thank you again, and bye | 16:27 |
Generated by irclog2html.py 2.15.2 by Marius Gedminas - find it at mg.pov.lt!