Author Topic: Fully working compile environment  (Read 6540 times)

0 Members and 1 Guest are viewing this topic.

Offline sbingner

  • Administrator
  • Veteran.
  • *****
  • Posts: 1301
Fully working compile environment
« on: June 21, 2005, 08:08:47 am »
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

Offline bushing

  • Senior Member
  • Needs to get outside.
  • *****
  • Posts: 119
  • props to my peeps
Re: Fully working compile environment
« Reply #1 on: June 21, 2005, 10:46:18 am »
Quote
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



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

Offline sbingner

  • Administrator
  • Veteran.
  • *****
  • Posts: 1301
Re: Fully working compile environment
« Reply #2 on: June 21, 2005, 07:39:23 pm »
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

Offline Oaf

  • Newbie
  • Posts: 11
Re: Fully working compile environment
« Reply #3 on: June 21, 2005, 09:42:11 pm »
Yes, I can confirm that the diet libc and crosstool combo detailed on the wiki page works well. :-)

Offline sbingner

  • Administrator
  • Veteran.
  • *****
  • Posts: 1301
Re: Fully working compile environment
« Reply #4 on: June 21, 2005, 10:25:58 pm »
Quote
Yes, 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

Offline bushing

  • Senior Member
  • Needs to get outside.
  • *****
  • Posts: 119
  • props to my peeps
Re: Fully working compile environment
« Reply #5 on: June 21, 2005, 10:44:28 pm »
Quote

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


Hmmm... why not?

-b

Offline sbingner

  • Administrator
  • Veteran.
  • *****
  • Posts: 1301
Re: Fully working compile environment
« Reply #6 on: June 22, 2005, 02:14:06 am »
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

Offline Oaf

  • Newbie
  • Posts: 11
Re: Fully working compile environment
« Reply #7 on: June 22, 2005, 07:53:27 am »
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

Offline sbingner

  • Administrator
  • Veteran.
  • *****
  • Posts: 1301
Re: Fully working compile environment
« Reply #8 on: June 22, 2005, 08:59:13 am »
I plan on it, soon as I'm done testing crosstool with a few different opts

Offline sbingner

  • Administrator
  • Veteran.
  • *****
  • Posts: 1301
Re: Fully working compile environment
« Reply #9 on: June 22, 2005, 09:20:16 am »
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