News:

I have updated the spam detection on registrations, and as such I am enabling new users.  If we have spam, I will change it back to by approval.

Main Menu

Fully working compile environment

Started by sbingner, June 21, 2005, 09:08:47 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

sbingner

I got busybox compiled and running using the compile environment for a similar chip from http://www.opto22.com/products/linux/SNAPOEMIOLinuxREADME.aspx#Installation

Thx no more segfault....

Sam

bushing

QuoteI got busybox compiled and running using the compile environment for a similar chip from http://www.opto22.com/products/linux/SNAPOEMIOLinuxREADME.aspx#Installation

Thx no more segfault....

Sam


Congrats!  It looks like there's something wonky about glibc that causes segfaults -- I see that they're using uClibc.  I had good luck with diet libc.

See also http://wiki.phathack.com/Compile_for_the_PhatBox

-b

sbingner

Actually, there are 2 buildroots there... uclibc and glibc, both work fine... but the glibc version generates larger files so I compiled busybox as uclibc...  I tried both tho

Oaf

Yes, I can confirm that the diet libc and crosstool combo detailed on the wiki page works well. :-)

sbingner

QuoteYes, I can confirm that the diet libc and crosstool combo detailed on the wiki page works well. :-)

it works for some things, but it won't compile any larger programs such as busybox

bushing

Quote

it works for some things, but it won't compile any larger programs such as busybox

Hmmm... why not?

-b

sbingner

busybox compile blows up with diet, some functions not allowed or something... and if you compile w/o diet it segfaults...

with the ones I listed, it works fine as glibc or uclibc... and I've got a recompile of the crosstool for different settings running, hopefully that will give me a working cross-compile environment also

Oaf

Can you update the wiki page with your findings? I'd be interested to see a bit more detail on this and it would probably be useful for others too.
Thanks
Oaf

sbingner

I plan on it, soon as I'm done testing crosstool with a few different opts

sbingner

Wiki updated with how to build a crosstool that doesn't segfault... I don't want to link to the precompiled one because I don't really know how they compiled it etc.

Anybody who knows how to build uclibc for it, please update the wiki ;)

Sam