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: Tue, 04 May 2010 11:59:07 +0100
User-agent: Thunderbird 2.0.0.16 (X11/20080707)

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]