ltib
[Top][All Lists]
Advanced

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

Re: [Ltib] Failed building dtc


From: Stuart Hughes
Subject: Re: [Ltib] Failed building dtc
Date: Thu, 06 May 2010 09:23:35 +0100
User-agent: Thunderbird 2.0.0.16 (X11/20080707)

Hi Hias,

What seems to be happening is that for some reason your BSP is setting
spoofing for the host component builds.  This is likely a bug introduced
by Freescale on that BSP, but it's very hard to tell (I don't have it).

What you can do is make a few checks (type exit to get out of the shell).

 $ ./ltib --hostcf -m shell
+ cd /data/seh/Src/ltib_bsps/savannah_ltib/config/platform/host
+ '[' '!' -f .config ']'
+ '[' 0 = 1 ']'
+ '[' -f .config ']'
+ cp .config host.config
Entering ltib shell mode, type 'exit' to quit
LTIB> env | grep TOOLCHAIN
TOOLCHAIN_CFLAGS=
TOOLCHAIN_PATH=/usr
TOOLCHAIN_PREFIX=
TOOLCHAIN=
TOOLCHAIN_TYPE=

If you see any other values, then that would cause the problem (in
particular TOOLCHAIN_PREFIX=).  If that is the issue, check
config/platform/host/.config and check the values of TOOLCHAIN_*
this is seeded (normally) from config/platform/host/ltib.preconfig, you
can get a "normal" one from the Savannah CVS area I sent you a link from
previously.

You need to be cautious with all this though as I'm not sure what's in
the BSP you have and there's danger of creating a Frankenstein LTIB.  So
if it's not obvious that this is the issue, then probably better
reporting it to Freescale.

Regards, Stuart

address@hidden wrote:
> Hi Stuart,
> 
> thanks a lot for your help!
> 
> The second choice didn't work, about the first choice I don't know yet.
> At the moment I try the same thing with other distributions like debian. 
> According to the FAQ it should work (but it should also work with my current 
> version of ubuntu ;P ).
> I will see... 
> I'm glad to know that I have no problems using LTIB on an old suse9.0. But 
> I'd prefer using another and more up to date distribution.
> 
> Thanks and Greets,
> Hias
> 
> 
> On Tue, May 4, 2010 at 12:59 PM, Stuart Hughes <address@hidden> wrote:
> 
>     Hi Hias,
> 
>     It looks like the new distribution you're running has a compiler with
>     some tighter checks.
> 
>     This seems to be a problem with the Freescale BSP.  The Savannah copy
>     seems okay.  It look like their .spec file is hard wiring CC/Make etc,
>     which seems odd.
> 
>     When I for that host component to build using Savannah (the public
>     LTIB), I see this (I added the V=1 flag in the .spec file to get more
>     output):
> 
> 
>     > + STATUS=0
>     > + '[' 0 -ne 0 ']'
>     > + cd dtc-1.2.0
>     > + echo 'Patch #0 (dtc-v1.2.0-804fed8.patch):'
>     > Patch #0 (dtc-v1.2.0-804fed8.patch):
>     > + patch -p1 -s
>     > + exit 0
>     > Executing(%build): /bin/sh -e 
> /data/seh/Src/ltib_bsps/savannah_ltib/tmp/rpm-tmp.14148
>     > + umask 022
>     > + cd /opt/ltib/usr/src/rpm/BUILD
>     > + cd dtc-1.2.0
>     > + make V=1 -C /opt/ltib/usr/src/rpm/BUILD/dtc-1.2.0
>     > make: Entering directory `/data/opt/ltib/usr/src/rpm/BUILD/dtc-1.2.0'
>     > gcc -I libfdt -MM -MG -MT "tests/dumptrees.o tests/dumptrees.d" 
> tests/dumptrees.c > tests/dumptrees.d
>     > gcc -I libfdt -MM -MG -MT "tests/trees.o tests/trees.d" tests/trees.S > 
> tests/trees.d
> 
> 
>     Your choices are:
> 
>     1/ Contact Freescale and ask them for a fix.
> 
>     2/ You could try replacing you dist/lfs-5.1/dtc/* files with the ones
>     from Savannah.  (You'd need to remove the failed build in
>     opt/freescale/ltib/usr/src/rpm/BUILD/dtc-1.2.0 first though).
>     The Savannah dtc spec files are here:
>     http://cvs.savannah.gnu.org/viewvc/ltib/dist/lfs-5.1/dtc/?root=ltib
> 
>     Regards, Stuart
> 
> 
>     address@hidden wrote:
>     > Hi,
>     >
>     > today I tried to build the Kernel for a QorIQ-Board using ltib, but got 
> errors.
>     > Since today I use the new Ubuntu 10.04LTS. I had no probs using ltib 
> with SUSE 9.
>     >
>     > With Ubuntu I get following errors after installing ltib and executing 
> it with ./ltib :
>     >
>     >
>     > -----------------------------------------------------------------------
>     > + /usr/bin/make CC=/usr/bin/gcc -mcpu=host -msoft-float -idirafter 
> //usr/include AS=/usr/bin/gcc -mcpu=host -msoft-float -idirafter 
> //usr/include LD=/usr/bin/gcc -mcpu=host -msoft-float -C 
> /opt/freescale/ltib/usr/src/rpm/BUILD/dtc-1.2.0
>     > make: Entering directory 
> `/opt/freescale/ltib/usr/src/rpm/BUILD/dtc-1.2.0'
>     >        DEP tests/dumptrees.c
>     > `-mcpu=' is deprecated. Use `-mtune=' or '-march=' instead.
>     > cc1: error: bad value (host) for -mtune= switch
>     >
>     .....
> 
>     > `-mcpu=' is deprecated. Use `-mtune=' or '-march=' instead.
>     > srcpos.c:1: error: bad value (host) for -mtune= switch
>     > make: *** [srcpos.o] Error 1
>     > make: Leaving directory 
> `/opt/freescale/ltib/usr/src/rpm/BUILD/dtc-1.2.0'
>     > error: Bad exit status from 
> /home/mbussjaeger/LTIB/ltib-e500mc-20091218/tmp/rpm-tmp.67336 (%build)
>     >
>     >
>     > RPM build errors:
>     >     Bad exit status from 
> /home/xxx/LTIB/ltib-e500mc-20091218/tmp/rpm-tmp.67336 (%build)
>     > Build time for dtc: 3 seconds
>     >
>     > Failed building dtc
>     > Died at ./ltib line 1380.
>     > traceback:
>     >  main::build_host_rpms:1380
>     >   main::host_checks:1435
>     >    main:542
>     >
>     >
> 




reply via email to

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