[U-Boot] Heads-up: Compilation error with arm-none-eabi-gcc version 7.1

Kernel Hacker kernel.hacker8 at gmail.com
Wed May 24 04:31:17 UTC 2017


Hi,

I just upgraded my Arch Linux system to the latest arm-none-eabi-gcc 
version which is "7.1.0-1" (from 6.3.1-1). After I did this I ran into 
two issues. First, u-boot no longer links. I get several linker errors 
[1]. Secondly, if I build a Linux kernel v4.10 image with this compiler 
it won't boot. It hangs at "Starting kernel...". Reverting back to v6.3 
of gcc fixes both issues. Don't know if this is an issue with gcc or 
with the gcc package (from community. I did not build it myself) that is 
built for Arch Linux.

[1]

fs/built-in.o: In function `read_symbol':
/uboot/u-boot-marvell.git/fs/jffs2/mini_inflate.c:129: undefined 
reference to `pull_bit'
fs/built-in.o: In function `decompress_huffman':
/uboot/u-boot-marvell.git/fs/jffs2/mini_inflate.c:159: undefined 
reference to `pull_bits'
/uboot/u-boot-marvell.git/fs/jffs2/mini_inflate.c:170: undefined 
reference to `pull_bits'
fs/built-in.o: In function `init_code_tables':
/uboot/u-boot-marvell.git/fs/jffs2/mini_inflate.c:208: undefined 
reference to `cramfs_memset'
/uboot/u-boot-marvell.git/fs/jffs2/mini_inflate.c:209: undefined 
reference to `cramfs_memset'
/uboot/u-boot-marvell.git/fs/jffs2/mini_inflate.c:210: undefined 
reference to `cramfs_memset'
fs/built-in.o: In function `decompress_block':
/uboot/u-boot-marvell.git/fs/jffs2/mini_inflate.c:360: undefined 
reference to `pull_bit'
/uboot/u-boot-marvell.git/fs/jffs2/mini_inflate.c:361: undefined 
reference to `pull_bits'
fs/built-in.o: In function `decompress_none':
/uboot/u-boot-marvell.git/fs/jffs2/mini_inflate.c:115: undefined 
reference to `pull_bits'
fs/built-in.o: In function `decompress_dynamic':
/uboot/u-boot-marvell.git/fs/jffs2/mini_inflate.c:230: undefined 
reference to `pull_bits'
/uboot/u-boot-marvell.git/fs/jffs2/mini_inflate.c:231: undefined 
reference to `pull_bits'
/uboot/u-boot-marvell.git/fs/jffs2/mini_inflate.c:232: undefined 
reference to `pull_bits'
fs/built-in.o:/uboot/u-boot-marvell.git/fs/jffs2/mini_inflate.c:244: 
more undefined references to `pull_bits' follow
fs/built-in.o: In function `decompress_fixed':
/uboot/u-boot-marvell.git/fs/jffs2/mini_inflate.c:326: undefined 
reference to `cramfs_memset'
/uboot/u-boot-marvell.git/fs/jffs2/mini_inflate.c:327: undefined 
reference to `cramfs_memset'
/uboot/u-boot-marvell.git/fs/jffs2/mini_inflate.c:328: undefined 
reference to `cramfs_memset'
/uboot/u-boot-marvell.git/fs/jffs2/mini_inflate.c:329: undefined 
reference to `cramfs_memset'
/uboot/u-boot-marvell.git/fs/jffs2/mini_inflate.c:330: undefined 
reference to `cramfs_memset'
fs/built-in.o:/uboot/u-boot-marvell.git/fs/jffs2/mini_inflate.c:331: 
more undefined references to `cramfs_memset' follow
arm-none-eabi-ld.bfd: BFD (GNU Binutils) 2.28 assertion fail 
elf32-arm.c:9512
arm-none-eabi-ld.bfd: BFD (GNU Binutils) 2.28 assertion fail 
elf32-arm.c:9512
arm-none-eabi-ld.bfd: BFD (GNU Binutils) 2.28 assertion fail 
elf32-arm.c:9512
make: *** [Makefile:1207: u-boot] Error 1

/



More information about the U-Boot mailing list