[#5694] build fails in bf548-ezkit for latest trunk

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

[#5694] build fails in bf548-ezkit for latest trunk

Submitted By: Vivi Li

Open Date

2009-11-18 01:45:52     Close Date

2009-11-25 04:59:42


Medium     Assignee:

Mike Frysinger


Closed     Fixed In Release:


Found In Release:

2010R1     Release:


Make Errors     Board:



BF548     Silicon Revision:

Is this bug repeatable?:

Yes     Resolution:

Assigned (Not Start)

Uboot version or rev.:

    Toolchain version or rev.:

svn trunk gcc4.3

App binary format:


Summary: build fails in bf548-ezkit for latest trunk



Build fails in bf548-ezkit for latest trunk.

Better to make distclean first.


Last passed version:


kernel:    Linux release, build #64 Tue Nov 17 01:30:06 CST 2009

toolchain: bfin-uclinux-gcc release gcc version 4.3.4 (ADI-trunk/svn-3679)

user-dist: release svn-9154, build #47 Tue Nov 17 01:28:59 CST 2009




test@uboot31-548ezkit:~/work/cruise/checkouts/uclinux-dist> make

make -C tools/sg-cksum

make[1]: Entering directory `/home/test/work/cruise/checkouts/uclinux-dist/tools/sg-cksum'

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

make[1]: Leaving directory `/home/test/work/cruise/checkouts/uclinux-dist/tools/sg-cksum'

ln -sf /home/test/work/cruise/checkouts/uclinux-dist/tools/sg-cksum/cksum tools/cksum

make -f tools/autotools.mk autotools-cache

make[1]: Entering directory `/home/test/work/cruise/checkouts/uclinux-dist'

set -e; \

        mkdir -p /home/test/work/cruise/checkouts/uclinux-dist/tools/autotools-cache/build//$$; \

        cd /home/test/work/cruise/checkouts/uclinux-dist/tools/autotools-cache/build//$$; \

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

        mv config.cache /home/test/work/cruise/checkouts/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... i686-pc-linux-gnu

checking for gawk... (cached) gawk

checking for grep that handles long lines and -e... /usr/bin/grep

checking for egrep... /usr/bin/grep -E

checking for fgrep... /usr/bin/grep -F

checking for a sed that does not truncate output... /usr/bin/sed

configure: updating cache config.cache

configure: creating ./config.status

config.status: creating Makefile

grep -v ^ac_cv_env_ /home/test/work/cruise/checkouts/uclinux-dist/tools/autotools-cache/build/config.cache > /home/test/work/cruise/checkouts/uclinux-dist/vendors/config/config.site.build.$$ && mv /home/test/work/cruise/checkouts/uclinux-dist/vendors/config/config.site.build.$$ /home/test/work/cruise/checkouts/uclinux-dist/vendors/config/config.site.build

set -e; \

        mkdir -p /home/test/work/cruise/checkouts/uclinux-dist/tools/autotools-cache/build//$$; \

        cd /home/test/work/cruise/checkouts/uclinux-dist/tools/autotools-cache/build//$$; \

        gt=`../../create-target-cache.sh bfin-uclinux`; \

        cp $gt /home/test/work/cruise/checkouts/uclinux-dist/vendors/config/$gt; \

        touch /home/test/work/cruise/checkouts/uclinux-dist/tools/autotools-cache/build/bfin-uclinux

Using inc dir for bfin-uclinux (bfin-unknown-uclinux):



make[1]: Leaving directory `/home/test/work/cruise/checkouts/uclinux-dist'

ln -sf staging-compiler tools/bfin-uclinux-gcc

ln -sf staging-compiler tools/bfin-uclinux-g++

ln -sf staging-compiler tools/bfin-uclinux-cpp

ln -sf staging-compiler tools/bfin-uclinux-ld

ln -sf cross-pkg-config tools/bfin-uclinux-pkg-config

chmod +x tools/romfs-inst.sh tools/modules-alias.sh tools/build-udev-perms.sh

. linux-2.6.x/.config; if [ "$CONFIG_INITRAMFS_SOURCE" != "" ]; then \

                mkdir -p `dirname $CONFIG_INITRAMFS_SOURCE`; \

                touch $CONFIG_INITRAMFS_SOURCE || exit 1; \


rm -f linux-2.6.x/usr/initramfs_data.cpio

make ARCH=blackfin   CROSS_COMPILE=bfin-uclinux- -j4 -C linux-2.6.x  || exit 1

make[1]: Entering directory `/home/test/work/cruise/checkouts/uclinux-dist/linux-2.6.x'

scripts/kconfig/conf -s arch/blackfin/Kconfig


*** Error during update of the kernel configuration.


make[3]: *** [silentoldconfig] Error 1

make[2]: *** [silentoldconfig] Error 2

make[1]: *** No rule to make target `include/config/auto.conf', needed by `include/config/kernel.release'.  Stop.

make[1]: Leaving directory `/home/test/work/cruise/checkouts/uclinux-dist/linux-2.6.x'

make: *** [linux] Error 1






--- Mike Frysinger                                           2009-11-18 10:17:00

this is currently expected behavior i think.  BF548 kconfig options changed

names and an automatic oldconfig will not be able to select the right processor.


--- Vivi Li                                                  2009-11-18 22:51:39

I think it's strange and ugly to change CONFIG_BF548 to CONFIG__BF548.


--- Mike Frysinger                                           2009-11-18 23:03:08

CONFIG_BF548 still exists, it just isnt the selected option.  it isnt strange if

you operate within the limitations of Kconfig.  feel free to reply to my commit

on the kernel scm list with a better idea of how to solve the problem.  you cant

have one choice select another.


--- Vivi Li                                                  2009-11-19 05:23:45

Sorry, i didn't get it when I see this in .config and thought it was only a



Since it always failed to config it in menuconfig, should I modify config file

by hand to make it work?


--- Mike Frysinger                                           2009-11-19 09:49:25

just regenerate the .config from the defconfig.  i'm not sure how you normally

go about generating .configs for each test ...


--- Vivi Li                                                  2009-11-19 21:56:53

I did the following but still get the same error message.



* make menuconfig (set config to bf548-ezkit default here)

* In linux-2.6.x, make BF548-EZKIT_defconfig



--- Mingquan Pan                                             2009-11-24 01:45:08

I see this issue on another regression machine. Seen from the error, I

investigate a little about linux-2.6.x/scripts/kconfig/confdata.c and find that

there is piece of code would replace "_" to "/" in config



int conf_split_config(void)


        /* Replace all '_' and append ".h" */

                s = sym->name;

                d = path;

                while ((c = *s++)) {

                        c = tolower(c);

                        *d++ = (c == '_') ? '/' : c;


                strcpy(d, ".h");



When insert some print info at:

  for_all_symbols(i, sym) {


fprintf(stderr, "#\n" "



we can see:








So I guess the prefix "_" before BF548 has confused the scipt to

interpret the directory which makes us see this error.


--- Mike Frysinger                                           2009-11-24 14:52:37

not sure why it wasnt failing for me originally.  i cleaned out the tree and now

i see the same issue as you.


i also added some error messages so it doesnt exit silently anymore:

    .config:1871:warning: sym '_BF548' with path '/bf548.h': Permission denied


--- Mingquan Pan                                             2009-11-25 04:59:43

It builds ok now on trunk for bf548 ezkit. So close.












File Name     File Type     File Size     Posted By

No Files Were Found