[#7336] build uboot to test early printk fails for undefined reference

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

[#7336] build uboot to test early printk fails for undefined reference

Submitted By: Mingquan Pan

Open Date

2012-09-18 06:06:23     Close Date

2012-09-27 05:19:39

Priority:

Medium     Assignee:

Bob Liu

Category:

N/A     Fixed In Release:

2012R2-RC3

Found In Release:

2012R2-RC3     Status:

Closed

Board:

N/A     Processor:

BF609

Silicon Revision:

    Resolution:

Not reproducible

Is the bug repeatable?:

N/A     

Summary: build uboot to test early printk fails for undefined reference

Details:

 

build uboot to test early printk fails for undefined reference.

 

make[2]: Leaving directory `/home/test/workspace/uboot_test_bf609-ezkit/label/UBOOT_BF609-EZKIT/board/bf609-ezkit'^M

make -C /home/test/workspace/uboot_test_bf609-ezkit/label/UBOOT_BF609-EZKIT/arch/blackfin/cpu/ u-boot.lds^M

make[2]: Entering directory `/home/test/workspace/uboot_test_bf609-ezkit/label/UBOOT_BF609-EZKIT/arch/blackfin/cpu'^M

make[2]: Nothing to be done for `u-boot.lds'.^M

make[2]: Leaving directory `/home/test/workspace/uboot_test_bf609-ezkit/label/UBOOT_BF609-EZKIT/arch/blackfin/cpu'^M

bfin-uclinux-gcc -E -g  -Os   -ffixed-P3 -fomit-frame-pointer -mno-fdpic -ffunction-sections -fdata-sections -mcpu=bf609-0.0 -D__KERNEL__ -I/home/test/workspace/uboot_test_bf609-ezkit/label/UBOOT_BF609-EZKIT/include -fno-builtin -ffreestanding -nostdinc -isystem /opt/uClinux/bfin-uclinux/lib/gcc/bfin-uclinux/4.3.5/include -pipe  -DCONFIG_BLACKFIN -include /home/test/workspace/uboot_test_bf609-ezkit/label/UBOOT_BF609-EZKIT/include/u-boot/u-boot.lds.h -DCPUDIR=arch/blackfin/cpu  -ansi -D__ASSEMBLY__ -P - </home/test/workspace/uboot_test_bf609-ezkit/label/UBOOT_BF609-EZKIT/arch/blackfin/cpu/u-boot.lds >u-boot.lds^M

UNDEF_SYM=`bfin-uclinux-objdump -x board/bf609-ezkit/libbf609-ezkit.o api/libapi.o arch/blackfin/cpu/libblackfin.o arch/blackfin/lib/libblackfin.o common/libcommon.o disk/libdisk.o drivers/bios_emulator/libatibiosemu.o drivers/block/libblock.o drivers/dma/libdma.o drivers/fpga/libfpga.o drivers/gpio/libgpio.o drivers/hwmon/libhwmon.o drivers/i2c/libi2c.o drivers/input/libinput.o drivers/misc/libmisc.o drivers/mmc/libmmc.o drivers/mtd/libmtd.o drivers/mtd/nand/libnand.o drivers/mtd/onenand/libonenand.o drivers/mtd/spi/libspi_flash.o drivers/mtd/ubi/libubi.o drivers/net/libnet.o drivers/net/phy/libphy.o drivers/pci/libpci.o drivers/pcmcia/libpcmcia.o drivers/power/libpower.o drivers/rtc/librtc.o drivers/serial/libserial.o drivers/spi/libspi.o drivers/twserial/libtws.o drivers/usb/eth/libusb_eth.o drivers/usb/gadget/libusb_gadget.o drivers/usb/host/libusb_host.o drivers/usb/musb/libusb_musb.o drivers/usb/phy/libusb_phy.o drivers/usb/ulpi/libusb_ulpi.o drivers/video/libvideo.o drivers/watchdog/libwatchdog.o fs/cramfs/libcramfs.o fs/ext2/libext2fs.o fs/fat/libfat.o fs/fdos/libfdos.o fs/jffs2/libjffs2.o fs/reiserfs/libreiserfs.o fs/ubifs/libubifs.o fs/yaffs2/libyaffs2.o lib/libfdt/libfdt.o lib/libgeneric.o lib/lzma/liblzma.o lib/lzo/liblzo.o lib/zlib/libz.o net/libnet.o post/libpost.o | sed  -n -e 's/.*\(___u_boot_cmd_.*\)/-u\1/p'|sort|uniq`; cd /home/test/workspace/uboot_test_bf609-ezkit/label/UBOOT_BF609-EZKIT && bfin-uclinux-ld -m elf32bfin  -T u-boot.lds --gc-sections -Bstatic $UNDEF_SYM arch/blackfin/cpu/start.o --start-group api/libapi.o arch/blackfin/cpu/libblackfin.o arch/blackfin/lib/libblackfin.o common/libcommon.o disk/libdisk.o drivers/bios_emulator/libatibiosemu.o drivers/block/libblock.o drivers/dma/libdma.o drivers/fpga/libfpga.o drivers/gpio/libgpio.o drivers/hwmon/libhwmon.o drivers/i2c/libi2c.o drivers/input/libinput.o drivers/misc/libmisc.o drivers/mmc/libmmc.o drivers/mtd/libmtd.o drivers/mtd/nand/libnand.o drivers/mtd/onenand/libonenand.o drivers/mtd/spi/libspi_flash.o drivers/mtd/ubi/libubi.o drivers/net/libnet.o drivers/net/phy/libphy.o drivers/pci/libpci.o drivers/pcmcia/libpcmcia.o drivers/power/libpower.o drivers/rtc/librtc.o drivers/serial/libserial.o drivers/spi/libspi.o drivers/twserial/libtws.o drivers/usb/eth/libusb_eth.o drivers/usb/gadget/libusb_gadget.o drivers/usb/host/libusb_host.o drivers/usb/musb/libusb_musb.o drivers/usb/phy/libusb_phy.o drivers/usb/ulpi/libusb_ulpi.o drivers/video/libvideo.o drivers/watchdog/libwatchdog.o fs/cramfs/libcramfs.o fs/ext2/libext2fs.o fs/fat/libfat.o fs/fdos/libfdos.o fs/jffs2/libjffs2.o fs/reiserfs/libreiserfs.o fs/ubifs/libubifs.o fs/yaffs2/libyaffs2.o lib/libfdt/libfdt.o lib/libgeneric.o lib/lzma/liblzma.o lib/lzo/liblzo.o lib/zlib/libz.o net/libnet.o post/libpost.o board/bf609-ezkit/libbf609-ezkit.o --end-group -L /opt/uClinux/bfin-uclinux/lib/gcc/bfin-uclinux/4.3.5 -lgcc -Map u-boot.map -o u-boot^M

arch/blackfin/cpu/start.o: In function `start':^M

/home/test/workspace/uboot_test_bf609-ezkit/label/UBOOT_BF609-EZKIT/arch/blackfin/cpu/start.S:86: undefined reference to `serial_set_baud'^M

/home/test/workspace/uboot_test_bf609-ezkit/label/UBOOT_BF609-EZKIT/arch/blackfin/cpu/start.S:86: relocation truncated to fit: R_BFIN_PCREL24 against undefined symbol `serial_set_baud'^M

/home/test/workspace/uboot_test_bf609-ezkit/label/UBOOT_BF609-EZKIT/arch/blackfin/cpu/start.S:183: undefined reference to `serial_set_baud'^M

/home/test/workspace/uboot_test_bf609-ezkit/label/UBOOT_BF609-EZKIT/arch/blackfin/cpu/start.S:183: relocation truncated to fit: R_BFIN_PCREL24 against undefined symbol `serial_set_baud'^M

make[1]: *** [u-boot] Error 1^M

make[1]: Leaving directory `/home/test/workspace/uboot_test_bf609-ezkit/label/UBOOT_BF609-EZKIT'^M

make: *** [bf609-ezkit] Error 2^M

^[[0m^[[01;34mapi^[[0m              COPYING   ^[[01;34minclude^[[0m           ^[[01;34mnand_spl^[[0m         ^[[01;34mtest_script^[[0m^M

^[[01;34march^[[0m             CREDITS   ^[[01;34mlib^[[0m               ^[[01;34mnet^[[0m              ^[[01;34mtools^[[0m^M

^[[01;34mboard^[[0m            ^[[01;34mdisk^[[0m      localversion-adi  ^[[01;34monenand_ipl^[[0m      u-boot.lds^M

boards.cfg       ^[[01;34mdoc^[[0m       ^[[01;34mlogs^[[0m              ^[[01;34mpost^[[0m             u-boot.map^M

^[[01;32mBUILD-RELEASE^[[0m    ^[[01;34mdrivers^[[0m   MAINTAINERS       README^M

change_conf_log  ^[[01;34mdts^[[0m       ^[[01;32mMAKEALL^[[0m           rules.mk^M

^[[01;34mcommon^[[0m           ^[[01;34mexamples^[[0m  Makefile          snapshot.commit^M

config.mk        ^[[01;34mfs^[[0m        ^[[01;32mmkconfig^[[0m          ^[[01;34mspl^[[0m^M

test@test-OptiPlex-390:UBOOT_BF609-EZKIT$make fail

Starting reset_board_test.exp

test@test-OptiPlex-390:~$ /opt/uClinux/bfin-uclinux/bin/bfin-uclinux-gcc -v

Using built-in specs.

Target: bfin-uclinux

Configured with: /usr/src/packages/BUILD/blackfin-toolchain-2012R1/gcc-4.3/configure --build=i686-pc-linux-gnu --host=i686-pc-linux-gnu --target=bfin-uclinux --prefix=/opt/uClinux/bfin-uclinux --disable-libstdcxx-pch --with-sysroot=/opt/uClinux/bfin-uclinux/bfin-uclinux/runtime --enable-threads=posix --enable-clocale=generic --disable-symvers --disable-libssp --disable-libffi --disable-libgcj --enable-version-specific-runtime-libs --enable-__cxa_atexit --with-bugurl=URL:http://blackfin.uclinux.org/gf/project/toolchain/tracker --with-pkgversion=ADI-2012R1-RC2

Thread model: posix

gcc version 4.3.5 (ADI-2012R1-RC2)

 

 

 

Follow-ups

 

--- Bob Liu                                                  2012-09-26 23:20:26

can't repeat

 

--- Mingquan Pan                                             2012-09-27 06:20:49

Move the define line before include head file in script. Close.

 

 

 

    Files

    Changes

    Commits

    Dependencies

    Duplicates

    Associations

    Tags

 

File Name     File Type     File Size     Posted By

No Files Were Found

Attachments

    Outcomes