Dear All,

I want to use scratchbox2 with arm-linux-gcc-4.3.2.tgz tool chain for my
cross compiling requirement.

I have done the following steps.

QEMU

git clone git://git.savannah.nongnu.org/qemu.git
cd qemu
git checkout -b stable v0.10.5
./configure --prefix=/opt/qemu --target-list=arm-linux-user
make install
sbox2

Compile and install like this:
git clone git://anongit.freedesktop.org/git/sbox2
cd sbox2
./configure --prefix=/opt/sb2
make install

Add sb2 to the PATH:
export PATH=/opt/sb2/bin:$PATH
target

cd /usr/local/arm/4.3.2/arm-none-linux-gnueabi/libc/
sb2-init -c /opt/qemu/bin/qemu-arm armv4t
/usr/local/arm/4.3.2/bin/arm-none-linux-gnueabi-gcc

*I am getting the error below when I cross-compile.*

* sb2-init -c /opt/qemu/bin/qemu-arm armv4t
/usr/local/arm/4.3.2/bin/arm-none-linux-gnueabi-gcc
Info: Mapping mode not specified, using default (simple)
Using /usr/local/arm/4.3.2/bin/arm-none-linux-gnueabi-gcc to detect target
architecture:
Finished writing sb2.gcc.config
gcc configured.
sb2-init: Target architecture is 'arm'
sb2-init: Host architecture is 'i[3456]86'
Finished writing sb2.config
sb2-init: configuring libtool for this target:
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... configure: error: cannot run C
compiled programs.
If you meant to cross compile, use `--host'.
See `config.log' for more details.


Running /opt/sb2/bin/sb2-build-libtool failed
You can run this manually later, otherwise your
sb2 environment is correctly setup and ready to use*

Kindly help me fixing this issue.

Thanks & Regards,

Rathe
_______________________________________________
Scratchbox-users mailing list
Scratchbox-users@lists.scratchbox.org
http://lists.scratchbox.org/cgi-bin/mailman/listinfo/scratchbox-users

Reply via email to