ltib
[Top][All Lists]
Advanced

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

Re: [Ltib] ltib not installing the cross compiler.


From: Stuart Hughes
Subject: Re: [Ltib] ltib not installing the cross compiler.
Date: Sat, 02 Oct 2010 12:02:50 +0100
User-agent: Thunderbird 2.0.0.16 (X11/20080707)

Hi Glenn,

>From the output it looks as though a cross compiler got install.
However maybe there's a problem with the referencing paths.

First of all, I've not been involve with this particular BSP, nor is it
even part of the public LTIB project.  However here's some things to
look at:

* check the cross compiler got installed:

/opt/freescale/ltib/usr/bin/rpm -qi gcc-4.3.3-glibc-2.8-cs2009q1-203-1

This may have an entry called Relocations: which will show the install
path.

* check the actually files installed (you could grep for
arm-none-linux-gnueabi-gcc)

/opt/freescale/ltib/usr/bin/rpm -ql gcc-4.3.3-glibc-2.8-cs2009q1-203-1


If this looks okay, what is supposed to tie-up is the entry in the
defconfig for that platform and these paths (or the .config once you're
run it).

To find out you BSP run:

$ cat .config | grep CONFIG_PLATFORM_DIR

and then grep for the toolchain entries:

grep ^CONFIG_TOOLCHAIN <config_dir>/.config

mine shows (for a different platform):

CONFIG_TOOLCHAIN_E300_GLIBC2=y
CONFIG_TOOLCHAIN="freescale-powerpc-linux-gnu-4.3-74.i686.rpm"
CONFIG_TOOLCHAIN_PATH="/opt/freescale/usr/local/gcc-4.3.74-eglibc-2.8.74/powerpc-linux-gnu"
CONFIG_TOOLCHAIN_PREFIX="powerpc-linux-gnu-"
CONFIG_TOOLCHAIN_CFLAGS=""


What the ltib script does to test the toolchain installation is to look for:

$CONFIG_TOOLCHAIN_PATH/bin/${CONFIG_TOOLCHAIN_PREFIX}-gcc

So in my example:

/opt/freescale/usr/local/gcc-4.3.74-eglibc-2.8.74/powerpc-linux-gnu/bin/powerpc-linux-gnu-gcc


If there's a mismatch then it seems like there's a BSP packaging error.
     At that point ask the BSP vendor to provide a fix.  To fix it
yourself would mean editing config/userspace/toolchain.lkc, which
unfortunately is a bit hard to understand.  In my case you'd look in
that file for
TOOLCHAIN_E300_GLIBC2 (e.g. remove the CONFIG_) and find the places
where the path/prefix are set and correct them.

Regards, Stuart


Glenn R Heard Jr wrote:
> Hello.
> 
> I've been attempting to install ltib for use with the Topaz iMX cpu
> module from Device Solutions. My development platform is Ubuntu 10.04
> x64 server edition. I have been following the instructions at
> http://www.imxdev.org/wiki/index.php?title=ALL_Boards_ltib_config_ubuntu
> for ltib and http://trygtech.com/products/Topaz_Release_Notes_2_6_31_1_8.pdf
> for the bsp files specific to the Topaz.
> 
> After executing ltib some time passes and I am greeted with the
> familiar ncurses config screens. After the configuration step this
> takes place:
> 
> Installing: gcc-4.3.3-glibc-2.8-cs2009q1-203-1.i386.rpm
> sudo /opt/freescale/ltib/usr/bin/rpm --dbpath
> /opt/freescale/ltib/var/lib/rpm -ivh --force --ignorearch
> /opt/freescale/pkgs/gcc-4.3.3-glibc-2.8-cs2009q1-203-1.i386.rpm
> Preparing...                ########################################### [100%]
>    1:gcc-4.3.3-glibc-2.8-cs2########################################### [100%]
> sh: 
> /opt/freescale/usr/local/gcc-4.3.3-glibc-2.8-cs2009q1-203/arm-none-linux-gnueabi/bin/arm-none-linux-gnueabi-gcc:
> not found
> 
> As you can see, the cross compiler doesn't actually get installed.
> 
> Any help would be greatly appreciated.
> 
> I apologize ahead of time if this has been covered before. I did try
> to search the mailing list without success.
> 
> Thanks.
> 
> --
> Glenn R Heard Jr
> 
> _______________________________________________
> LTIB home page: http://ltib.org
> 
> Ltib mailing list
> address@hidden
> http://lists.nongnu.org/mailman/listinfo/ltib
> 



reply via email to

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