ltib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Ltib] Re: NEW LTIB...and Full Toolchain build....


From: Peter Barada
Subject: Re: [Ltib] Re: NEW LTIB...and Full Toolchain build....
Date: Mon, 29 Jun 2009 11:46:27 -0400

On Tue, 2009-06-16 at 10:23 +0100, Steve Papacharalambous wrote:
Hi Peter,

You're right, the tc-fsl-x86lnx-armeabi-nptl-4.1.2-3 toolchain does not
have support for the ARM CORTEX-A8 so would need to be updated.

The source rpm, tc-fsl-x86lnx-armeabi-nptl-4.1.2-3.src.rpm, is probably
a good starting point, but it will need significant modifications which
will be dependant on the specification of the new toolchain.  There are
%define variables in the spec file for each of the toolchain components
that can be updated to the later revisions that you intend to use in the
new toolchain.

However the rest of the changes that will be needed to the spec file are
dependant on the configuration of the toolchain that you intend to
build.  For example tc-fsl-x86lnx-armeabi-nptl-4.1.2-3.src.rpm builds a
multilib hard/soft float toolchain with the hard float libraries
optimised for devices with the vfp floating point unit.

After some hacking, I've been able to build a toolchain based on binutils-2.19.1, gcc-4.4.0, and glibc-2.9, using the tc-fsl-x86lnx-armeabi-nptl-4.1.2-3.src.rpm (resultant SRPM attached).  I'm trying to use a i386 version build on Ubuntu 9.04, and running it on my x64 Ubuntu 9.04 (which has the 32-bit libraries installed and can run the 4.1.2 ARM toolchain to build up my ARM rootfs/kernel).

Unfortunately when I try to run the new toolchain on my x64 Ubuntu, it aborts with:

sudo /opt/ltib/usr/bin/rpm --dbpath /opt/ltib/var/lib/rpm -ivh --force --ignorearch /home/peter/work/logic/svn/LTIB/trunk/ltib-test/lpd-BASE-package-pool/tc-lpd-x86lnx-armeabi-nptl-4.4.0-1.i386.rpm
Preparing...                ########################################### [100%]
   1:tc-lpd-x86lnx-armeabi-n########################################### [100%]
/opt/ltib/usr/local/gcc-4.4.0-glibc-2.9-nptl-1/arm-none-linux-gnueabi/libexec/gcc/arm-none-linux-gnueabi/4.4.0/cc1: error while loading shared libraries: libmpfr.so.1: cannot open shared object file: No such file or directory

Error /opt/ltib/usr/local/gcc-4.4.0-glibc-2.9-nptl-1/arm-none-linux-gnueabi/bin/arm-none-linux-gnueabi-gcc can't compile a simple hello world test program:

echo '#include <stdio.h>
int main() { printf("hello world"); }' | /opt/ltib/usr/local/gcc-4.4.0-glibc-2.9-nptl-1/arm-none-linux-gnueabi/bin/arm-none-linux-gnueabi-gcc -x c - -c -o /dev/null


Any ideas where I can find a 32-bit verison of libmpfr I can load on my x64 verison?  I've hunted around and can find libmpfr, libmpfr-dev, but no lib32mpfr or lib32mpfr-dev components I can load with "apt-get install".

Any help is appreciated - thanks in advance!

--
Peter Barada <address@hidden>
Logic Product Development, Inc.

Attachment: tc-foo-x86lnx-armeabi-nptl-4.4.0-1.src.rpm
Description: application/rpm


reply via email to

[Prev in Thread] Current Thread [Next in Thread]