Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 28 Feb 2013 20:07:14 +0800
From:      XiaoQI Ge <ghw@7axu.com>
To:        freebsd-arm@freebsd.org
Subject:   I u-boot fails to compile
Message-ID:  <CAKrd9eUVGuU=NuKfCP5d1uaTPC4XoMkjzn_AzcAqeh%2Bu2E9STw@mail.gmail.com>

next in thread | raw e-mail | index | archive | help
I tried to compile U-BOOT (https://github.com/linux-sunxi/u-boot-sunxi),
but failed, suggesting:

gmake [1]: *** [u-boot] Segmentation fault: 11

I do not know how to solve.
===

cat /dev/null .depend.board >.depend
gmake[2]: Leaving directory
`/home/ghw/CNPROJ/CubieBoard/u-boot-sunxi/board/allwinner/a10-evb'
gmake[2]: Entering directory
`/home/ghw/CNPROJ/CubieBoard/u-boot-sunxi/board/allwinner/a10-evb'
arm-freebsd-gcc  -g  -Os   -fno-common -ffixed-r8 -msoft-float
 -D__KERNEL__ -DCONFIG_SYS_TEXT_BASE=0x4A000000 -DCONFIG_SPL_TEXT_BASE=0x30
-I/home/ghw/CNPROJ/CubieBoard/u-boot-sunxi/include -fno-builtin
-ffreestanding -nostdinc -isystem /usr/arm-freebsd/usr/include -pipe
 -DCONFIG_ARM -D__ARM__ -marm -mno-thumb-interwork -mabi=aapcs-linux
-march=armv5  -Wall -Wstrict-prototypes -fno-stack-protector
-Wno-format-nonliteral -Wno-format-security      -o board.o board.c -c
In file included from
/home/ghw/CNPROJ/CubieBoard/u-boot-sunxi/include/common.h:840,
                 from board.c:27:
/home/ghw/CNPROJ/CubieBoard/u-boot-sunxi/include/net.h:359: warning:
declaration does not declare anything
arm-freebsd-ld  -r -o liba10-evb.o  board.o
gmake[2]: Leaving directory
`/home/ghw/CNPROJ/CubieBoard/u-boot-sunxi/board/allwinner/a10-evb'
gmake -C /home/ghw/CNPROJ/CubieBoard/u-boot-sunxi/arch/arm/cpu/ u-boot.lds
gmake[2]: Entering directory
`/home/ghw/CNPROJ/CubieBoard/u-boot-sunxi/arch/arm/cpu'
gmake[2]: Nothing to be done for `u-boot.lds'.
gmake[2]: Leaving directory
`/home/ghw/CNPROJ/CubieBoard/u-boot-sunxi/arch/arm/cpu'
arm-freebsd-gcc -E -g  -Os   -fno-common -ffixed-r8 -msoft-float
 -D__KERNEL__ -DCONFIG_SYS_TEXT_BASE=0x4A000000 -DCONFIG_SPL_TEXT_BASE=0x30
-I/home/ghw/CNPROJ/CubieBoard/u-boot-sunxi/include -fno-builtin
-ffreestanding -nostdinc -isystem /usr/arm-freebsd/usr/include -pipe
 -DCONFIG_ARM -D__ARM__ -marm -mno-thumb-interwork -mabi=aapcs-linux
-march=armv5  -include
/home/ghw/CNPROJ/CubieBoard/u-boot-sunxi/include/u-boot/u-boot.lds.h
-DCPUDIR=arch/arm/cpu/armv7  -ansi -D__ASSEMBLY__ -P -
</home/ghw/CNPROJ/CubieBoard/u-boot-sunxi/arch/arm/cpu/u-boot.lds
>u-boot.lds
UNDEF_SYM=`arm-freebsd-objdump -x board/allwinner/a10-evb/liba10-evb.o
api/libapi.o arch/arm/cpu/armv7/libarmv7.o
arch/arm/cpu/armv7/sunxi/libsunxi.o arch/arm/lib/libarm.o
board/allwinner/common/liballwinner.o common/libcommon.o disk/libdisk.o
drivers/bios_emulator/libatibiosemu.o drivers/block/libblock.o
drivers/dfu/libdfu.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/ext4/libext4fs.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
fs/zfs/libzfs.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 test/libtest.o
| sed  -n -e 's/.*\(__u_boot_cmd_.*\)/-u\1/p'|sort|uniq`; cd
/home/ghw/CNPROJ/CubieBoard/u-boot-sunxi && arm-freebsd-ld  -pie -T
u-boot.lds -Bstatic -Ttext 0x4A000000 $UNDEF_SYM arch/arm/cpu/armv7/start.o
--start-group api/libapi.o arch/arm/cpu/armv7/libarmv7.o
arch/arm/cpu/armv7/sunxi/libsunxi.o arch/arm/lib/libarm.o
board/allwinner/common/liballwinner.o common/libcommon.o disk/libdisk.o
drivers/bios_emulator/libatibiosemu.o drivers/block/libblock.o
drivers/dfu/libdfu.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/ext4/libext4fs.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
fs/zfs/libzfs.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 test/libtest.o
board/allwinner/a10-evb/liba10-evb.o --end-group
/home/ghw/CNPROJ/CubieBoard/u-boot-sunxi/arch/arm/lib/eabi_compat.o -L
/usr/arm-freebsd/usr/lib -lgcc -L /usr/arm-freebsd/usr/lib -lgcc -Map
u-boot.map -o u-boot
arch/arm/cpu/armv7/sunxi/libsunxi.o: In function `get_timer_masked':
/home/ghw/CNPROJ/CubieBoard/u-boot-sunxi/arch/arm/cpu/armv7/sunxi/timer.c:70:
undefined reference to `__udivsi3'
arch/arm/cpu/armv7/sunxi/libsunxi.o: In function `__udelay':
/home/ghw/CNPROJ/CubieBoard/u-boot-sunxi/arch/arm/cpu/armv7/sunxi/timer.c:83:
undefined reference to `__udivsi3'
arch/arm/cpu/armv7/sunxi/libsunxi.o: In function `mctl_setup_dram_clock':
/home/ghw/CNPROJ/CubieBoard/u-boot-sunxi/arch/arm/cpu/armv7/sunxi/dram.c:279:
undefined reference to `__udivsi3'
common/libcommon.o: In function `do_mem_md':
/home/ghw/CNPROJ/CubieBoard/u-boot-sunxi/common/cmd_mem.c:139: undefined
reference to `__divsi3'
common/libcommon.o: In function `memalign':
/home/ghw/CNPROJ/CubieBoard/u-boot-sunxi/common/dlmalloc.c:2805: undefined
reference to `__umodsi3'
common/libcommon.o: In function `read_env':
/home/ghw/CNPROJ/CubieBoard/u-boot-sunxi/common/env_mmc.c:163: undefined
reference to `__udivsi3'
/home/ghw/CNPROJ/CubieBoard/u-boot-sunxi/common/env_mmc.c:165: undefined
reference to `__udivsi3'
common/libcommon.o: In function `write_env':
/home/ghw/CNPROJ/CubieBoard/u-boot-sunxi/common/env_mmc.c:107: undefined
reference to `__udivsi3'
/home/ghw/CNPROJ/CubieBoard/u-boot-sunxi/common/env_mmc.c:109: undefined
reference to `__udivsi3'
disk/libdisk.o: In function `dev_print':
/home/ghw/CNPROJ/CubieBoard/u-boot-sunxi/disk/part.c:213: undefined
reference to `__udivsi3'
disk/libdisk.o:/home/ghw/CNPROJ/CubieBoard/u-boot-sunxi/disk/part.c:217:
more undefined references to `__udivsi3' follow
drivers/mmc/libmmc.o: In function `mmc_berase':
/home/ghw/CNPROJ/CubieBoard/u-boot-sunxi/drivers/mmc/mmc.c:337: undefined
reference to `__umodsi3'
/home/ghw/CNPROJ/CubieBoard/u-boot-sunxi/drivers/mmc/mmc.c:337: undefined
reference to `__umodsi3'
drivers/mmc/libmmc.o: In function `mmc_config_clock':
/home/ghw/CNPROJ/CubieBoard/u-boot-sunxi/drivers/mmc/sunxi_mmc.c:282:
undefined reference to `__udivsi3'
drivers/mmc/libmmc.o: In function `mmc_clk_io_on':
/home/ghw/CNPROJ/CubieBoard/u-boot-sunxi/drivers/mmc/sunxi_mmc.c:236:
undefined reference to `__udivsi3'
/home/ghw/CNPROJ/CubieBoard/u-boot-sunxi/drivers/mmc/sunxi_mmc.c:242:
undefined reference to `__udivsi3'
drivers/power/libpower.o: In function `axp209_set_ldo3':
/home/ghw/CNPROJ/CubieBoard/u-boot-sunxi/drivers/power/axp209.c:107:
undefined reference to `__divsi3'
drivers/power/libpower.o: In function `axp209_set_ldo2':
/home/ghw/CNPROJ/CubieBoard/u-boot-sunxi/drivers/power/axp209.c:87:
undefined reference to `__divsi3'
drivers/power/libpower.o: In function `axp209_set_dcdc3':
/home/ghw/CNPROJ/CubieBoard/u-boot-sunxi/drivers/power/axp209.c:72:
undefined reference to `__divsi3'
drivers/power/libpower.o: In function `axp209_set_dcdc2':
/home/ghw/CNPROJ/CubieBoard/u-boot-sunxi/drivers/power/axp209.c:48:
undefined reference to `__divsi3'
drivers/serial/libserial.o: In function `calc_divisor':
/home/ghw/CNPROJ/CubieBoard/u-boot-sunxi/drivers/serial/serial.c:149:
undefined reference to `__udivsi3'
fs/ext4/libext4fs.o: In function `ext4fs_read_file':
/home/ghw/CNPROJ/CubieBoard/u-boot-sunxi/fs/ext4/ext4fs.c:84: undefined
reference to `__udivsi3'
/home/ghw/CNPROJ/CubieBoard/u-boot-sunxi/fs/ext4/ext4fs.c:86: undefined
reference to `__divsi3'
/home/ghw/CNPROJ/CubieBoard/u-boot-sunxi/fs/ext4/ext4fs.c:99: undefined
reference to `__umodsi3'
/home/ghw/CNPROJ/CubieBoard/u-boot-sunxi/fs/ext4/ext4fs.c:88: undefined
reference to `__modsi3'
fs/ext4/libext4fs.o: In function `ext4fs_read_inode':
/home/ghw/CNPROJ/CubieBoard/u-boot-sunxi/fs/ext4/ext4_common.c:1482:
undefined reference to `__udivsi3'
fs/ext4/libext4fs.o: In function `ext4fs_blockgroup':
/home/ghw/CNPROJ/CubieBoard/u-boot-sunxi/fs/ext4/ext4_common.c:1466:
undefined reference to `__udivsi3'
/home/ghw/CNPROJ/CubieBoard/u-boot-sunxi/fs/ext4/ext4_common.c:1466:
undefined reference to `__umodsi3'
fs/ext4/libext4fs.o: In function `ext4fs_read_inode':
/home/ghw/CNPROJ/CubieBoard/u-boot-sunxi/fs/ext4/ext4_common.c:1487:
undefined reference to `__udivsi3'
/home/ghw/CNPROJ/CubieBoard/u-boot-sunxi/fs/ext4/ext4_common.c:1492:
undefined reference to `__umodsi3'
/home/ghw/CNPROJ/CubieBoard/u-boot-sunxi/fs/ext4/ext4_common.c:1492:
undefined reference to `__udivsi3'
/home/ghw/CNPROJ/CubieBoard/u-boot-sunxi/fs/ext4/ext4_common.c:1492:
undefined reference to `__modsi3'
fs/ext4/libext4fs.o: In function `read_allocated_block':
/home/ghw/CNPROJ/CubieBoard/u-boot-sunxi/fs/ext4/ext4_common.c:1676:
undefined reference to `__divsi3'
/home/ghw/CNPROJ/CubieBoard/u-boot-sunxi/fs/ext4/ext4_common.c:1695:
undefined reference to `__modsi3'
/home/ghw/CNPROJ/CubieBoard/u-boot-sunxi/fs/ext4/ext4_common.c:1766:
undefined reference to `__divsi3'
/home/ghw/CNPROJ/CubieBoard/u-boot-sunxi/fs/ext4/ext4_common.c:1810:
undefined reference to `__divsi3'
/home/ghw/CNPROJ/CubieBoard/u-boot-sunxi/fs/ext4/ext4_common.c:1814:
undefined reference to `__modsi3'
/home/ghw/CNPROJ/CubieBoard/u-boot-sunxi/fs/ext4/ext4_common.c:1833:
undefined reference to `__modsi3'
fs/fat/libfat.o: In function `get_fatent':
/home/ghw/CNPROJ/CubieBoard/u-boot-sunxi/fs/fat/fat.c:191: undefined
reference to `__udivsi3'
fs/fat/libfat.o: In function `check_overflow':
/home/ghw/CNPROJ/CubieBoard/u-boot-sunxi/fs/fat/fat_write.c:792: undefined
reference to `__udivsi3'
/home/ghw/CNPROJ/CubieBoard/u-boot-sunxi/fs/fat/fat_write.c:793: undefined
reference to `__umodsi3'
fs/fat/libfat.o: In function `set_fatent_value':
/home/ghw/CNPROJ/CubieBoard/u-boot-sunxi/fs/fat/fat_write.c:486: undefined
reference to `__udivsi3'
fs/fat/libfat.o: In function `get_fatent_value':
/home/ghw/CNPROJ/CubieBoard/u-boot-sunxi/fs/fat/fat_write.c:168: undefined
reference to `__udivsi3'
fs/fat/libfat.o: In function `set_cluster':
/home/ghw/CNPROJ/CubieBoard/u-boot-sunxi/fs/fat/fat_write.c:574: undefined
reference to `__udivsi3'
/home/ghw/CNPROJ/CubieBoard/u-boot-sunxi/fs/fat/fat_write.c:579: undefined
reference to `__umodsi3'
/home/ghw/CNPROJ/CubieBoard/u-boot-sunxi/fs/fat/fat_write.c:582: undefined
reference to `__udivsi3'
fs/fat/libfat.o: In function `get_cluster':
/home/ghw/CNPROJ/CubieBoard/u-boot-sunxi/fs/fat/fat.c:304: undefined
reference to `__udivsi3'
fs/fat/libfat.o: In function `do_fat_write':
/home/ghw/CNPROJ/CubieBoard/u-boot-sunxi/fs/fat/fat_write.c:968: undefined
reference to `__udivsi3'
fs/fat/libfat.o: In function `find_directory_entry':
/home/ghw/CNPROJ/CubieBoard/u-boot-sunxi/fs/fat/fat_write.c:826: undefined
reference to `__divsi3'
fs/fat/libfat.o: In function `do_fat_read_at':
/home/ghw/CNPROJ/CubieBoard/u-boot-sunxi/fs/fat/fat.c:873: undefined
reference to `__udivsi3'
fs/zfs/libzfs.o: In function `fzap_iterate':
/home/ghw/CNPROJ/CubieBoard/u-boot-sunxi/fs/zfs/zfs.c:1004: undefined
reference to `__divsi3'
fs/zfs/libzfs.o: In function `zap_leaf_lookup':
/home/ghw/CNPROJ/CubieBoard/u-boot-sunxi/fs/zfs/zfs.c:850: undefined
reference to `__divsi3'
fs/zfs/libzfs.o: In function `zfs_read':
/home/ghw/CNPROJ/CubieBoard/u-boot-sunxi/fs/zfs/zfs.c:2163: undefined
reference to `__umodsi3'
lib/libgeneric.o: In function `print_buffer':
/home/ghw/CNPROJ/CubieBoard/u-boot-sunxi/lib/display_options.c:112:
undefined reference to `__udivsi3'
/home/ghw/CNPROJ/CubieBoard/u-boot-sunxi/lib/display_options.c:114:
undefined reference to `__udivsi3'
lib/libgeneric.o: In function `__div64_32':
/home/ghw/CNPROJ/CubieBoard/u-boot-sunxi/lib/div64.c:31: undefined
reference to `__udivsi3'
lib/libgeneric.o: In function `isprime':
/home/ghw/CNPROJ/CubieBoard/u-boot-sunxi/lib/hashtable.c:91: undefined
reference to `__umodsi3'
lib/libgeneric.o: In function `hcreate_r':
/home/ghw/CNPROJ/CubieBoard/u-boot-sunxi/lib/hashtable.c:120: undefined
reference to `__umodsi3'
lib/libgeneric.o: In function `hsearch_r':
/home/ghw/CNPROJ/CubieBoard/u-boot-sunxi/lib/hashtable.c:274: undefined
reference to `__umodsi3'
/home/ghw/CNPROJ/CubieBoard/u-boot-sunxi/lib/hashtable.c:314: undefined
reference to `__umodsi3'
lib/libgeneric.o: In function `ldiv':
/home/ghw/CNPROJ/CubieBoard/u-boot-sunxi/lib/ldiv.c:29: undefined reference
to `__divsi3'
/home/ghw/CNPROJ/CubieBoard/u-boot-sunxi/lib/ldiv.c:30: undefined reference
to `__modsi3'
lib/libgeneric.o: In function `qsort':
/home/ghw/CNPROJ/CubieBoard/u-boot-sunxi/lib/qsort.c:35: undefined
reference to `__udivsi3'
/home/ghw/CNPROJ/CubieBoard/u-boot-sunxi/lib/qsort.c:63: undefined
reference to `__udivsi3'
lib/libgeneric.o: In function `strmhz':
/home/ghw/CNPROJ/CubieBoard/u-boot-sunxi/lib/strmhz.c:30: undefined
reference to `__udivsi3'
/home/ghw/CNPROJ/CubieBoard/u-boot-sunxi/lib/strmhz.c:34: undefined
reference to `__udivsi3'
lib/libgeneric.o: In function `simple_itoa':
/home/ghw/CNPROJ/CubieBoard/u-boot-sunxi/lib/vsprintf.c:813: undefined
reference to `__umodsi3'
/home/ghw/CNPROJ/CubieBoard/u-boot-sunxi/lib/vsprintf.c:814: undefined
reference to `__udivsi3'
lib/libgeneric.o: In function `put_dec':
/home/ghw/CNPROJ/CubieBoard/u-boot-sunxi/lib/vsprintf.c:258: undefined
reference to `__umodsi3'
/home/ghw/CNPROJ/CubieBoard/u-boot-sunxi/lib/vsprintf.c:258: undefined
reference to `__udivsi3'
lib/zlib/libz.o: In function `adler32':
/home/ghw/CNPROJ/CubieBoard/u-boot-sunxi/lib/zlib/adler32.c:93: undefined
reference to `__umodsi3'
/home/ghw/CNPROJ/CubieBoard/u-boot-sunxi/lib/zlib/adler32.c:104: undefined
reference to `__umodsi3'
/home/ghw/CNPROJ/CubieBoard/u-boot-sunxi/lib/zlib/adler32.c:105: undefined
reference to `__umodsi3'
/home/ghw/CNPROJ/CubieBoard/u-boot-sunxi/lib/zlib/adler32.c:119: undefined
reference to `__umodsi3'
/home/ghw/CNPROJ/CubieBoard/u-boot-sunxi/lib/zlib/adler32.c:120: undefined
reference to `__umodsi3'
lib/zlib/libz.o:/home/ghw/CNPROJ/CubieBoard/u-boot-sunxi/lib/zlib/inflate.c:390:
more undefined references to `__umodsi3' follow
arm-freebsd-ld: BFD 2.17.50 [FreeBSD] 2007-07-03 assertion fail
/home/freebsd-head/gnu/usr.bin/binutils/libbfd/../../../../contrib/binutils/bfd/elf32-arm.c:8911
arm-freebsd-ld: BFD 2.17.50 [FreeBSD] 2007-07-03 assertion fail
/home/freebsd-head/gnu/usr.bin/binutils/libbfd/../../../../contrib/binutils/bfd/elf32-arm.c:8911
arm-freebsd-ld: BFD 2.17.50 [FreeBSD] 2007-07-03 assertion fail
/home/freebsd-head/gnu/usr.bin/binutils/libbfd/../../../../contrib/binutils/bfd/elf32-arm.c:8911
arm-freebsd-ld: BFD 2.17.50 [FreeBSD] 2007-07-03 assertion fail
/home/freebsd-head/gnu/usr.bin/binutils/libbfd/../../../../contrib/binutils/bfd/elf32-arm.c:8911
arm-freebsd-ld: BFD 2.17.50 [FreeBSD] 2007-07-03 assertion fail
/home/freebsd-head/gnu/usr.bin/binutils/libbfd/../../../../contrib/binutils/bfd/elf32-arm.c:9138
gmake[1]: *** [u-boot] Segmentation fault: 11
gmake[1]: *** Deleting file `u-boot'
gmake[1]: Leaving directory `/home/ghw/CNPROJ/CubieBoard/u-boot-sunxi'
gmake: *** [sun4i] Error 2
[ghw@7axu.pts/5] ~/CNPROJ/CubieBoard/u-boot-sunxi %


Thanks

===
Welcome to Ge, XiaoQI's Homepage! <https://www.7axu.com>;
Gtalk/E-Mail <ghw@7axu.com>:ghw@7axu.com



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAKrd9eUVGuU=NuKfCP5d1uaTPC4XoMkjzn_AzcAqeh%2Bu2E9STw>