IRC logs for #openrisc Friday, 2012-02-10

-!- Netsplit *.net <-> *.split quits: olofk08:52
-!- Netsplit over, joins: olofk08:52
-!- Netsplit *.net <-> *.split quits: jonmasters, orsoc109:02
LampusHello09:36
Lampusjonibo_: jonibo: What version of gcc is up-to-date on http://openrisc.southpole.se/cgit.cgi/ ?09:41
LampusToo 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
Lampus110:57
Lampus211:14
olofk3?11:30
Lampus_/usr/lib/gcc//../../or32-elf/newlib/crt0.o: In function `_start': (.text+0x1e4): undefined reference to `init'13:05
LampusStrange...13:05
Lampus113: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
LampusI can't understand... WTF?15:43
LampusWhere I should search symbol init?15:44
LampusHehe =) I have added function void init(); to hello.c, and now it compiled sucessfully15:48
LampusAnd seems works in or1ksim15:49
LampusBut it's strange15:49
Lampusjonibo: juliusb: Any ideas?15:51
joniborun gcc with -v to see linking order15:54
jonibocan't recall where init is defined but I think it's in libc (i.e. newlib)15:54
jonibopass -mnewlib on the command line and see what happens15:54
joniboor rather pass -mboard=or1ksim15:55
joniboare you on 4.5.3 or 4.5.1 branch?15:55
jonibowith 4.5.3 branch you need newlib from git because I reworked handling of libgloss board files to make gcc relocatable15:56
jonibonot sure where you got your newlib from15:56
Lampusfrom downloads section on site. Maybe too old?15:57
joniboyeah, probably too old15:57
joniboI don't know about the status of that opencores stuff... it's usually out of date15:57
LampusWhere I can find latest versions of binutils, gcc and newlib?16:00
jonibogit.openrisc.net16:01
joniboI think those are up to date16:01
joniboor check with pgavin16:01
jonibojuliusb's repo at github has a work-in-progress binutils, if you're feeling adventurous16:01
LampusI have built gcc from this repo: git://openrisc.net/jonas/gcc-svn16:01
jonibook, yeah, that should be ok16:02
joniboi can't be of much more help right now but I might have some time to look into this stuff this weekend...16:20
joniboif so, I can give you some more information about what/how to build this stuff then16:20
Lampusjonibo: thank you for the hints, after rebuilding newlib from git all works fine =)16:23
jonibook, cool16:24
jonibojust 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 packages16:25
jonibootherwise, just back up one commit in newlib and everything should work fine with most of the other gcc versions16:25
jonibophew, what a mess16:25
jonibowill need to get this all sorted out16:25
joniboit's not that bad... just a lot of work in progress that hasn't been rounded off in a nice way16:26
LampusYeah, so many problems for newbie =)16:26
jonibosorry about that :)16:26
LampusThank you again, and bye16:27

Generated by irclog2html.py 2.15.2 by Marius Gedminas - find it at mg.pov.lt!