View Single Post
Posts: 3,074 | Thanked: 12,964 times | Joined on Mar 2010 @ Sofia,Bulgaria
#1062
Originally Posted by ketmar View Post

first, seems that 'sb-conf in -edL' should be 'sb-conf in -edLF' to avoid installing libfakeroot manually.
I skipped that part ('F') on purpose, for some reason installing libfakeroot as part of sb-conf parameters didn't work for me.

then everything went smooth (except that i can't understand why i should do 'rm -rf /targets/FREMANTLE_ARMEL_GCC472/opt' -- i ommited that step, there were only some perl crap which shouldn't hurt anything).
this comes from SB install instructions, read them carefully

another thing i stepped in is alot of messages about duplicate functions (on a real project, not on 'hello_world.c'). some googling, and i found that i can add '-fgnu89-inline' to CFLAGS. i did that and then i was able to build my projects with this shiny new gcc 4.7!
yep, some projects require that, it depends on configure scripts, i.e. it detects c99 compatible compiler and passes -std=c99, gcc tries to use inlines, but they are not supported in current glibc. Hopefully this will be solved when new (well, the same version but with fixed ppoll()/pselect() and support for inlines) glibc comes in CSSU.

See, the difference between gcc 4.2.1 and 4.7.2 is big, there are lots of changes and usually one needs to play a bit with compiler flags.

the other VERY useful flag is -mword-relocations, use that if linker aborts with some cryptic error message.

Every project is different, I don't think there is a way to write on wiki a full set of instructions. However, feel free to edit the page if you feel something should go there
__________________
Never fear. I is here.

720p video support on N900,SmartReflex on N900,Keyboard and mouse support on N900
Nothing is impossible - Stable thumb2 on n900

Community SSU developer
kernel-power developer and maintainer

 

The Following 7 Users Say Thank You to freemangordon For This Useful Post: