2011-05-01 11:49:28     compile uclinux error

Document created by Aaronwu Employee on Aug 26, 2013
Version 1Show Document
  • View in full screen mode

2011-05-01 11:49:28     compile uclinux error

Yves Zhang (CHINA)

Message: 100327   

 

Hello,

 

When compiling the uClinux distribution, i got the following error:

 

make[1]: entry  directory “/home/ZCY-XWG/Blackfin_uClinux/bf548-uclinux/blackfin-linux-dist/linux-2.6.x”

  CHK     include/linux/version.h

  CHK     include/generated/utsrelease.h

  CALL    scripts/checksyscalls.sh

  Building modules, stage 2.

  MODPOST 44 modules

make[1]: leave directory“/home/ZCY-XWG/Blackfin_uClinux/bf548-uclinux/blackfin-linux-dist/linux-2.6.x”

for dir in lib user ; do [ ! -d $dir ] || make ARCH=blackfin   -C $dir || exit 1 ; done

make[1]: entry  directory“/home/ZCY-XWG/Blackfin_uClinux/bf548-uclinux/blackfin-linux-dist/lib”

mkdir -p /home/ZCY-XWG/Blackfin_uClinux/bf548-uclinux/blackfin-linux-dist/staging

[ -z "" ] || make -j1  || exit $?

[ -z "" ] || /home/ZCY-XWG/Blackfin_uClinux/bf548-uclinux/blackfin-linux-dist/tools/cross-fix-root

[ -z "" ] || make -j1  || exit $?

[ -z "" ] || /home/ZCY-XWG/Blackfin_uClinux/bf548-uclinux/blackfin-linux-dist/tools/cross-fix-root

[ -z "libg zlib libjpeg lzo ncurses" ] || make -j1 libg libjpeg lzo ncurses zlib || exit $?

make[2]: entry  directory“/home/ZCY-XWG/Blackfin_uClinux/bf548-uclinux/blackfin-linux-dist/lib”

[ ! -d "libg" ] || ( touch libg/.sgbuilt_lib && make -C libg ) || exit $?

make[3]: entry  directory“/home/ZCY-XWG/Blackfin_uClinux/bf548-uclinux/blackfin-linux-dist/lib/libg”

for i in gtermcap ; do make -C $i || exit gtermcap ; done

make[4]:entry  directory“/home/ZCY-XWG/Blackfin_uClinux/bf548-uclinux/blackfin-linux-dist/lib/libg/gtermcap”

make[4]: ***没有规则可以创建“all”需要的目标“../libg.a(termcap.o”(No rule to make target“../libg.a(termcap.o”)。stop。

make[4]: leave directory“/home/ZCY-XWG/Blackfin_uClinux/bf548-uclinux/blackfin-linux-dist/lib/libg/gtermcap”

/bin/sh: line 0: exit: gtermcap: numeric argument required

make[3]: *** [all] error 255

make[3]: leave directory“/home/ZCY-XWG/Blackfin_uClinux/bf548-uclinux/blackfin-linux-dist/lib/libg”

make[2]: *** [libg] error 2

make[2]: leave directory“/home/ZCY-XWG/Blackfin_uClinux/bf548-uclinux/blackfin-linux-dist/lib”

make[1]: *** [all]error 2

make[1]: leave directory“/home/ZCY-XWG/Blackfin_uClinux/bf548-uclinux/blackfin-linux-dist/lib”

make: *** [subdirs] error 1

 

The version of bfin-uclinux-gcc is: gcc version 4.3.5(ADI-2010R1-RC4)

The Linux kernal I downloaded from blackfin.uclinux.org is: blackfin-linux-dist-2010R1-RC5.tar.bz2

The command I used during compile:

(1)tar –xvf blackfin-linux-dist-2010R1-RC5.tar.bz2  //decompress

(2)cd blackfin-linux-dist   //enter blackfin-linux-dist created by decompression

(3)make distclean

(4)make menuconfig  //select AnalogDevices & BF548-STAMP  and  Select Customize kernel Settings & Customize Application/Library settings

(5)make

Host: Vmware + Fedora14

Thanks a lot.

 

TranslateQuoteReplyEditDelete

 

 

2011-05-01 21:14:33     Re: compile uclinux error

Mike Frysinger (UNITED STATES)

Message: 100329   

 

probably a bug with newer make.  what does `make --version` say ?

 

run:

cd lib/libg

make clean

make

QuoteReplyEditDelete

 

 

2011-05-03 10:44:38     Re: compile uclinux error

Yves Zhang (CHINA)

Message: 100386   

 

Thanks a lot, Mike.

 

make --version:

 

GNU Make 3.82

 

Built for i386-redhat-linux-gnu

 

Copyright (C) 2010  Free Software Foundation, Inc.

 

License GPLv3+: GNU GPL version 3 or later <  gnu.org/licenses/gpl.html>

 

This is free software: you are free to change and redistribute it.

 

There is NO WARRANTY, to the extent permitted by law.

 

 

 

make clean

 

make

 

still get the error.

Attachments

    Outcomes