AnsweredAssumed Answered

kernel build issues

Question asked by dlh on Jun 26, 2012
Latest reply on Jun 27, 2012 by Aaronwu

Hi,

 

I am having some issues trying to compile the kernel.. I have tried several different sources and approaches, but each with their own issues. My target for now is the BF533 ezkit and I am currently just trying to build with defaults and then make customizations once this is working.

 

I am using the toolchain from the apt repository (after having issues building them from source) and they are on the path.

 

Any help would be appreciated.

 

 

From GIT sources, they are compiling against the GIT kernel which I have symbolically linked to with linux-2.6.x:

 

#

# configuration written to .config

#

make[2]: Leaving directory `/home/dan/git/uclinux-dist/config'

make[1]: Leaving directory `/home/dan/git/uclinux-dist'

dan@laptop:~/git/uclinux-dist$ make

/home/dan/git/uclinux-dist/vendors/config/bfin/config.arch:117:

/home/dan/git/uclinux-dist/vendors/config/bfin/config.arch:118: The Blackfin Silicon Revision you are targetting is not known.

/home/dan/git/uclinux-dist/vendors/config/bfin/config.arch:119: Please file a bug report about this.

/home/dan/git/uclinux-dist/vendors/config/bfin/config.arch:120:

/home/dan/git/uclinux-dist/vendors/config/bfin/config.arch:125:

/home/dan/git/uclinux-dist/vendors/config/bfin/config.arch:126: The Blackfin CPU you are targetting is not known.

/home/dan/git/uclinux-dist/vendors/config/bfin/config.arch:127: Please file a bug report about this.

/home/dan/git/uclinux-dist/vendors/config/bfin/config.arch:128:

make -C tools/sg-cksum

make[1]: Entering directory `/home/dan/git/uclinux-dist/tools/sg-cksum'

make[1]: `cksum' is up to date.

make[1]: Leaving directory `/home/dan/git/uclinux-dist/tools/sg-cksum'

ln -sf /home/dan/git/uclinux-dist/tools/sg-cksum/cksum tools/cksum

make -f tools/autotools.mk autotools-cache

make[1]: Entering directory `/home/dan/git/uclinux-dist'

set -e; \

        mkdir -p /home/dan/git/uclinux-dist/tools/autotools-cache/build//$$; \

        cd /home/dan/git/uclinux-dist/tools/autotools-cache/build//$$; \

        CONFIG_SITE="" ../../configure -C; \

        mv config.cache /home/dan/git/uclinux-dist/tools/autotools-cache/build/config.cache

configure: creating cache config.cache

checking for a BSD-compatible install... /usr/bin/install -c

checking whether build environment is sane... yes

checking for a thread-safe mkdir -p... /bin/mkdir -p

checking for gawk... gawk

checking whether make sets $(MAKE)... yes

checking build system type... configure: error: cannot guess build type; you must specify one

make[1]: *** [/home/dan/git/uclinux-dist/tools/autotools-cache/build/config.cache] Error 1

make[1]: Leaving directory `/home/dan/git/uclinux-dist'

make: *** [autotools-cache] Error 2

 

Then I tried "make distclean" to see if previous build attempts were causing issues, but since doings this I can't even configure the makefile:

 

dan@laptop:~/git/uclinux-dist$ make menuconfig

find vendors -mindepth 2 '(' -name .svn -prune ')' -o -type f -name Kconfig -print | sed 's:^:source ../:' > vendors/Kconfig

config/mkconfig > Kconfig

CC=cc CXX=c++ make -C /home/dan/git/uclinux-dist/config/kconfig conf

make[1]: Entering directory `/home/dan/git/uclinux-dist/config/kconfig'

cc -DCURSES_LOC="<ncurses.h>" -DKBUILD_NO_NLS  -c -o conf.o conf.c

as: unrecognised option '-Qy'

make[1]: *** [conf.o] Error 1

make[1]: Leaving directory `/home/dan/git/uclinux-dist/config/kconfig'

make: *** [/home/dan/git/uclinux-dist/config/kconfig/conf] Error 2

dan@laptop:~/git/uclinux-dist$

 

 

From tar'd sources, it fails on the lzotest part of the build:

 

Making install in lzotest

make[5]: Entering directory `/home/dan/build/uclinux/blackfin-linux-dist/lib/lzo/build-lzo-2.03/lzotest'

bfin-uclinux-gcc -DHAVE_CONFIG_H -I. -I/home/dan/build/uclinux/blackfin-linux-dist/lib/lzo/lzo-2.03/lzotest -I.. -I/home/dan/build/uclinux/blackfin-linux-dist/lib/lzo/lzo-2.03/include -I/home/dan/build/uclinux/blackfin-linux-dist/lib/lzo/lzo-2.03  -DEMBED -D__uClinux__ -I/home/dan/build/uclinux/blackfin-linux-dist  -mcpu=bf533-0.3 -DLZO_HAVE_CONFIG_H  -pipe -Wall -g -O2      -mcpu=bf533-0.3 -c /home/dan/build/uclinux/blackfin-linux-dist/lib/lzo/lzo-2.03/lzotest/lzotest.c

/bin/bash ../libtool --tag=CC --mode=link bfin-uclinux-gcc  -pipe -Wall -g -O2      -mcpu=bf533-0.3  -Wl,-elf2flt    -mcpu=bf533-0.3 -o lzotest  lzotest.o ../src/liblzo2.la

mkdir .libs

bfin-uclinux-gcc -pipe -Wall -g -O2 -mcpu=bf533-0.3 -Wl,-elf2flt -mcpu=bf533-0.3 -o lzotest lzotest.o  ../src/.libs/liblzo2.a

lzotest.o: In function `memchecker_check':

/home/dan/build/uclinux/blackfin-linux-dist/lib/lzo/lzo-2.03/lzotest/lzotest.c:663: undefined reference to `___assert_fail'

lzotest.o: In function `memchecker_init':

/home/dan/build/uclinux/blackfin-linux-dist/lib/lzo/lzo-2.03/lzotest/lzotest.c:637: undefined reference to `___assert_fail'

lzotest.o: In function `process_file':

/home/dan/build/uclinux/blackfin-linux-dist/lib/lzo/lzo-2.03/lzotest/lzotest.c:1051: undefined reference to `___assert_fail'

/home/dan/build/uclinux/blackfin-linux-dist/lib/lzo/lzo-2.03/lzotest/lzotest.c:1050: undefined reference to `___assert_fail'

lzotest.o: In function `main':

/home/dan/build/uclinux/blackfin-linux-dist/lib/lzo/lzo-2.03/lzotest/lzotest.c:1989: undefined reference to `___assert_fail'

lzotest.o:/home/dan/build/uclinux/blackfin-linux-dist/lib/lzo/lzo-2.03/lzotest/lzotest.c:2035: more undefined references to `___assert_fail' follow

collect2: ld returned 1 exit status

make[5]: *** [lzotest] Error 1

make[5]: Leaving directory `/home/dan/build/uclinux/blackfin-linux-dist/lib/lzo/build-lzo-2.03/lzotest'

make[4]: *** [install-recursive] Error 1

make[4]: Leaving directory `/home/dan/build/uclinux/blackfin-linux-dist/lib/lzo/build-lzo-2.03'

make[3]: *** [all] Error 2

make[3]: Leaving directory `/home/dan/build/uclinux/blackfin-linux-dist/lib/lzo'

make[2]: *** [lzo] Error 2

make[2]: Leaving directory `/home/dan/build/uclinux/blackfin-linux-dist/lib'

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

make[1]: Leaving directory `/home/dan/build/uclinux/blackfin-linux-dist/lib'

make: *** [subdirs] Error 1

Outcomes