[Scratchbox-users] Scratchbox 2 problem and question

Lauri Leukkunen lle at rahina.org
Fri Jul 18 10:47:56 EEST 2008


On Jul 18, 2008, at 10:31 AM, sfora dim wrote:

> Hi all,
>
> I'm trying to work with sb2 in order to cross compile packages for  
> ARM.
> I only need to build source packages (i.e. configure, make, make
> install), no more.
> I downloaded CodeSourcery toolchain and setup sb2 using:
> mkdir $HOME/buildroot
> cd $HOME/buildroot
> [copy a rootfs to here]
> sb2-init mytarget /path/to/arm-2007q1/bin/arm-none-linux-gnueabi-gcc
>
> But, when I try to compile stuff I get the following error:
> /path/to/arm-2007q1/bin/arm-none-linux-gnueabi-ld: crt1.o: No such
> file: No such file or directory
> collect2: ld returned 1 exit status
>
> So I guess my toolchain can't find itself (the crt1.o is part of the
> libc in the toolchain).
> So maybe I had to put the toolchain inside the rootfs ?
>

SB2 drives gcc so that it would find everything from the target  
rootfs (or buildroot, whatever you want to call it), so you need to  
copy the c-library + headers there.

> I really don't know..
> Is there anywhere an example for a rootfs suitable for sb2 ?

There's the "rootstrap" from the Maemo SDK+ project.

> I'd be very happy to see one...
>
> Another question - what version of sb2 should I use ?
> Ubuntu has 1.99.0.19, freedesktop.org has a tarball of 1.99.0.23 and
> its git has 1.99.0.25, so I'm a little puzzled here what version is
> better for me. I am compiling on x86_64 (Ubuntu 8.04 AMD64) for ARM..
>

Git version is the best one to use at the moment, if there are issues  
with it, I'd be happy to hear about them. :)

/lauri


More information about the Scratchbox-users mailing list