ltib
[Top][All Lists]
Advanced

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

Re: [Ltib] imx21ads default build


From: Stuart Hughes
Subject: Re: [Ltib] imx21ads default build
Date: Tue, 27 Mar 2012 09:03:45 +0100
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.27) Gecko/20120216 Lightning/1.0b2 Thunderbird/3.1.19

Hi George,

I'm afraid to say that this platform is ancient and so unlikely to have been testing on a modern distribution. I'm not sure if this can be (easily) made to work, so unless you really need this platform I'd recommend trying something else. If you do need it, it might be worth digging out a Linux host box from about 2003 and trying that (it probably worked back then).

Looking at the issue you have, the problem seems to be with the configure option in your output:

--with-linux-prefix=/home/mx21/linux/linux


In the .spec dist/lfs-5.1/blob/blob-imx21ads.spec it says:

./configure \
  --with-linux-prefix=$DEV_IMAGE/usr/src/linux \
  --with-board=$BLOB_BOARD \

So unless you modified this .spec file, or you have a different version, it is pointing to the wrong place. The path: $DEV_IMAGE/usr/src/linux should point to the kernel source previously build by LTIB.

As I said before, be prepared to spend time on this to get it to work, it's pretty ancient and I'd hate to thing you would waste too much time on this. Unfortunately as I've said before I've almost no time to help.

Regards, Stuart



On 27/03/12 04:43, George McBay wrote:
I'm very new to ltib and attempting to make a default imx21ads build
on a Ubuntu 10.10 host.

The build seems to work well until it gets to the blob-imx21ads step,
wherein it fails complaining that /home/mx21/linux/linux isn't a sane
kernel source tree.  I'm not sure why it is even looking in that
directory for kernel source? (Again, I'm currently just trying to
build the default 2.4 based default kernel as a starting point here,
so I'm not doing anything to configure my own kernel or anything like
that).

Any pointers as to what is happening here (end of log below)?

Thanks in advance.

--------------------


Processing: blob-imx21ads
===========================
Build path taken because: directory build, no prebuilt rpm,
scbuild/scdeploy already unpacked package

Processing: blob-imx21ads
===========================
Build path taken because: directory build, build key set, no prebuilt rpm,

rpmbuild --dbpath /home/gfm/ltib/rootfs//var/lib/rpm --target arm
--define '_unpackaged_files_terminate_build 0' --define '_target_cpu
arm' --define '__strip strip' --define '_topdir /home/gfm/ltib/rpm'
--define '_prefix /usr' --define '_tmppath /home/gfm/ltib/tmp'
--define '_rpmdir /home/gfm/ltib/rpm/RPMS'  --define '_mandir
/usr/share/man' --define '_sysconfdir /etc' --define '_localstatedir
/var' -bc --short-circuit
/home/gfm/ltib/dist/lfs-5.1/blob/blob-imx21ads.spec
Building target platforms: arm
Building for target arm
Executing(%build): /bin/sh -e /home/gfm/ltib/tmp/rpm-tmp.24481
+ umask 022
+ cd /home/gfm/ltib/rpm/BUILD
+ cd blob-2.0.5-pre2
+ make
/bin/sh ./config.status --recheck
running /bin/sh ./configure
--with-linux-prefix=/home/mx21/linux/linux
--with-board=m9328mx21ads_TO2 --enable-maintainer-mode --enable-md5
--enable-net --host=i386 arm-unknown-linux-gnu CC=arm-linux-gcc
build_alias=arm-unknown-linux-gnu host_alias=i386
target_alias=arm-unknown-linux-gnu  --no-create --no-recursion
configure: WARNING: you should use --build, --host, --target
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
/home/gfm/ltib/rpm/BUILD/blob-2.0.5-pre2/tools/missing: Unknown `--run' option
Try `/home/gfm/ltib/rpm/BUILD/blob-2.0.5-pre2/tools/missing --help'
for more information
configure: WARNING: `missing' script is too old or missing
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for i386-strip... no
checking for strip... strip
checking whether to enable maintainer-specific portions of Makefiles... yes
checking build system type... arm-unknown-linux-gnu
checking host system type... i386-pc-none
checking for arm-linux-gcc... arm-linux-gcc
checking for arm-linux-objcopy... arm-linux-objcopy
checking for arm-linux-ranlib... arm-linux-ranlib
checking for arm-linux-ar... arm-linux-ar
checking for i386-gcc... (cached) arm-linux-gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... yes
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether arm-linux-gcc accepts -g... yes
checking for arm-linux-gcc option to accept ANSI C... none needed
checking for style of include used by make... GNU
checking dependency style of arm-linux-gcc... gcc3
checking for i386-ranlib... (cached) arm-linux-ranlib
checking for a BSD-compatible install... /usr/bin/install -c
checking whether ln -s works... yes
checking target board... "Freescale M9328MX21ADS i.MX21 TO2/TO3
Application Development System"
checking if the Linux source tree in /home/mx21/linux/linux is sane... no
configure: error: /home/mx21/linux/linux doesn't look like a
configured Linux source tree.
make: *** [config.status] Error 1
error: Bad exit status from /home/gfm/ltib/tmp/rpm-tmp.24481 (%build)


RPM build errors:
     Bad exit status from /home/gfm/ltib/tmp/rpm-tmp.24481 (%build)
Build time for blob-imx21ads: 2 seconds

Failed building blob-imx21ads


f_buildrpms() returned an error, exiting
traceback:
  main:580


Started: Mon Mar 26 20:31:53 2012
Ended:   Mon Mar 26 20:33:46 2012
Elapsed: 113 seconds

VERSION          : 11.4.1
CVS_VERSION      : $Revision: 1.85 $ (Savannah)
PLATFORM         : imx21ads
GNUTARCH         : arm
TOOLCHAIN        : tc-mtwk-lnx-arm-3.3.2-1.i686.rpm
TOOLCHAIN_CFLAGS : -O2 -fsigned-char

These packages failed to build:
blob-imx21ads

Build Failed

Exiting on error or interrupt
address@hidden:~/ltib$

_______________________________________________
LTIB home page: http://ltib.org

Ltib mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/ltib




reply via email to

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