FAQ:[#6263] building arch/blackfin/kernel/bfin_gpio.c fails for some parts(2010)

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

[#6263] building arch/blackfin/kernel/bfin_gpio.c fails for some parts

Submitted By: angelia wu

Open Date

2010-09-19 22:25:46     Close Date

2010-10-11 03:53:23

Priority:

Medium     Assignee:

steven miao

Status:

Closed     Fixed In Release:

N/A

Found In Release:

2010R1     Release:

Blackfin Linux:2010R1

Category:

N/A     Board:

N/A

Processor:

BF548     Silicon Revision:

Is this bug repeatable?:

Yes     Resolution:

Fixed

Uboot version or rev.:

    Toolchain version or rev.:

2010R1-RC2

App binary format:

N/A     

Summary: building arch/blackfin/kernel/bfin_gpio.c fails for some parts

Details:

 

compile fail in microwin testing on BF548-ezkit, while compile on bf537-stamp is ok.

 

the error as follow.

test@uclinux41:~/work/cruise/checkouts/uclinux-dist/testsuites/microwin>/build_microwin_kernel.exp BF548-EZKIT

 

...

 

STEP 3: Make

 

 

spawn 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-linux-uclibc`; \

    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-linux-uclibc

Using inc dir for bfin-linux-uclibc (bfin-unknown-linux-uclibc):

    /opt/uClinux/bfin-linux-uclibc/bfin-linux-uclibc/runtime/usr/include

    /opt/uClinux/bfin-linux-uclibc/lib/gcc/bfin-linux-uclibc/4.3.5/include

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

ln -sf staging-compiler tools/bfin-linux-uclibc-gcc

ln -sf staging-compiler tools/bfin-linux-uclibc-g++

ln -sf staging-compiler tools/bfin-linux-uclibc-cpp

ln -sf staging-compiler tools/bfin-linux-uclibc-ld

ln -sf cross-pkg-config tools/bfin-linux-uclibc-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; \

    fi

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

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

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

  CHK     include/linux/version.h

  CHK     include/generated/utsrelease.h

  HOSTCC  scripts/kallsyms

  CC      scripts/mod/empty.o

  HOSTCC  scripts/mod/mk_elfconfig

  HOSTCC  scripts/pnmtologo

  HOSTCC  scripts/conmakehash

  MKELF   scripts/mod/elfconfig.h

  HOSTCC  scripts/mod/file2alias.o

  HOSTCC  scripts/bin2c

  HOSTCC  scripts/mod/modpost.o

  HOSTCC  scripts/mod/sumversion.o

  HOSTLD  scripts/mod/modpost

  CC      kernel/bounds.s

  GEN     include/generated/bounds.h

  CC      arch/blackfin/kernel/asm-offsets.s

  GEN     include/generated/asm-offsets.h

  CALL    scripts/checksyscalls.sh

  CHK     include/generated/compile.h

  CC      init/main.o

  CC      init/do_mounts.o

  HOSTCC  usr/gen_init_cpio

  AS      arch/blackfin/kernel/entry.o

  CC      arch/blackfin/kernel/process.o

  GEN     usr/initramfs_data.cpio

  CC      init/do_mounts_rd.o

  AS      usr/initramfs_data.o

arch/blackfin/kernel/process.c: In function ‘_access_ok’:

arch/blackfin/kernel/process.c:462: warning: comparison between pointer and integer

arch/blackfin/kernel/process.c:462: warning: suggest explicit braces to avoid ambiguous ‘else’

arch/blackfin/kernel/process.c:487: warning: comparison between pointer and integer

arch/blackfin/kernel/process.c:487: warning: suggest explicit braces to avoid ambiguous ‘else’

  LD      usr/built-in.o

  CC      arch/blackfin/kernel/bfin_ksyms.o

  CC      arch/blackfin/kernel/ptrace.o

  CC      arch/blackfin/mm/sram-alloc.o

  CC      init/do_mounts_initrd.o

  AS      arch/blackfin/mach-common/cache.o

  CC      arch/blackfin/mach-common/cache-c.o

  AS      arch/blackfin/mach-common/entry.o

  CC      arch/blackfin/kernel/setup.o

  AS      arch/blackfin/mach-common/head.o

  CC      arch/blackfin/mm/isram-driver.o

  CC      init/initramfs.o

  AS      arch/blackfin/mach-common/interrupt.o

  CC      arch/blackfin/mach-common/arch_checks.o

  CC      arch/blackfin/mm/init.o

  CC      arch/blackfin/mach-common/ints-priority.o

  CC      arch/blackfin/mm/maccess.o

  CC      init/calibrate.o

  CC      arch/blackfin/kernel/signal.o

  LD      arch/blackfin/mach-common/built-in.o

  CC      init/version.o

  LD      arch/blackfin/mm/built-in.o

  CC      arch/blackfin/kernel/sys_bfin.o

  CC      arch/blackfin/mach-bf548/ints-priority.o

  LD      init/mounts.o

  LD      init/built-in.o

  CC      arch/blackfin/mach-bf548/dma.o

  CC      arch/blackfin/kernel/traps.o

  CC      arch/blackfin/mach-bf548/boards/ezkit.o

  LD      arch/blackfin/mach-bf548/built-in.o

  CC      arch/blackfin/kernel/irqchip.o

  CC      arch/blackfin/kernel/dma-mapping.o

  CC      arch/blackfin/kernel/flat.o

  LD      arch/blackfin/mach-bf548/boards/built-in.o

  AS      arch/blackfin/kernel/fixed_code.o

  CC      arch/blackfin/kernel/cplb-nompu/cplbinit.o

  CC      arch/blackfin/kernel/reboot.o

  CC      arch/blackfin/kernel/cplb-nompu/cplbmgr.o

  CC      arch/blackfin/kernel/bfin_gpio.o

  CC      arch/blackfin/kernel/bfin_dma_5xx.o

  LD      arch/blackfin/kernel/cplb-nompu/built-in.o

  CC      kernel/sched.o

  CC      arch/blackfin/kernel/exception.o

arch/blackfin/kernel/bfin_gpio.c: In function ‘peripheral_request’:

arch/blackfin/kernel/bfin_gpio.c:797: error: implicit declaration of function ‘portmuxgroup_check’

make[2]: *** [arch/blackfin/kernel/bfin_gpio.o] Error 1

make[2]: *** Waiting for unfinished jobs....

  CC      kernel/fork.o

  CC      kernel/exec_domain.o

make[1]: *** [arch/blackfin/kernel] Error 2

make[1]: *** Waiting for unfinished jobs....

  CC      kernel/panic.o

  CC      kernel/printk.o

  CC      kernel/cpu.o

  CC      kernel/exit.o

  CC      kernel/itimer.o

  TIMEC   kernel/timeconst.h

  CC      kernel/softirq.o

  CC      kernel/resource.o

  CC      kernel/sysctl.o

  CC      kernel/sysctl_binary.o

  CC      kernel/capability.o

  CC      kernel/ptrace.o

  CC      kernel/timer.o

  CC      kernel/user.o

  CC      kernel/signal.o

  CC      kernel/sys.o

  CC      kernel/kmod.o

  CC      kernel/workqueue.o

  CC      kernel/pid.o

  CC      kernel/rcupdate.o

  CC      kernel/extable.o

  CC      kernel/params.o

  CC      kernel/posix-timers.o

  CC      kernel/kthread.o

  CC      kernel/wait.o

  CC      kernel/kfifo.o

  CC      kernel/sys_ni.o

  CC      kernel/posix-cpu-timers.o

  CC      kernel/mutex.o

  CC      kernel/hrtimer.o

  CC      kernel/rwsem.o

  CC      kernel/nsproxy.o

  CC      kernel/srcu.o

  CC      kernel/semaphore.o

  CC      kernel/notifier.o

  CC      kernel/ksysfs.o

  CC      kernel/pm_qos_params.o

  CC      kernel/sched_clock.o

  CC      kernel/cred.o

  CC      kernel/async.o

  CC      kernel/range.o

  CC      kernel/groups.o

  CC      kernel/irq/handle.o

  CC      kernel/time/timekeeping.o

  CC      kernel/rtmutex.o

  CC      kernel/irq/manage.o

  CC      kernel/up.o

  CC      kernel/time/ntp.o

  CC      kernel/time/clocksource.o

  CC      kernel/irq/spurious.o

  CC      kernel/irq/resend.o

  CC      kernel/irq/chip.o

  CC      kernel/irq/devres.o

  CC      kernel/irq/autoprobe.o

  CC      kernel/time/jiffies.o

  CC      kernel/irq/proc.o

  CC      kernel/time/timer_list.o

  CC      kernel/time/timecompare.o

  CC      kernel/time/timeconv.o

  LD      kernel/irq/built-in.o

  CC      kernel/time/clockevents.o

  CC      kernel/time/tick-common.o

  CC      kernel/uid16.o

  CC      kernel/module.o

  CC      kernel/kallsyms.o

  LD      kernel/time/built-in.o

  GZIP    kernel/config_data.gz

  CC      kernel/softlockup.o

  CC      kernel/hung_task.o

  CC      kernel/rcutree.o

  CC      kernel/utsname_sysctl.o

  CC      kernel/elfcore.o

  CC      kernel/slow-work.o

  CC      kernel/time.o

  IKCFG   kernel/config_data.h

  CC      kernel/configs.o

  LD      kernel/built-in.o

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

make: *** [linux] Error 1

ERROR: Error somewhere during make

 

Follow-ups

 

--- Mike Frysinger                                           2010-09-19 23:05:52

this is due to bob's commit in svn rev 9147.  i highlighted it on the commits

list already, but i guess he hasnt had a chance to fix it yet.

 

--- Bob Liu                                                  2010-09-19 23:28:45

hmm, it's steven's commit rev 9147 not mine.

 

--- Mike Frysinger                                           2010-09-19 23:45:15

err, yeah, sorry about that.  i confused the names when looking through my inbox

as you made a commit right after him.

 

--- steven miao                                              2010-09-20 02:43:46

sorry, portmuxgroup_check() is not defined for bf548, it caused this build

error.

 

--- angelia wu                                               2010-10-11 03:53:23

ok , now this bug can't disappear again and compile is well.

so i closed the bug 6263.

 

 

 

    Files

    Changes

    Commits

    Dependencies

    Duplicates

    Associations

    Tags

 

File Name     File Type     File Size     Posted By

build_microwin_kernel_log    application/octet-stream    324870    angelia wu

Outcomes