ppc64 gcc-3.4.2 lk-2.6.10-rc1-mm4 link errors

Doug Maxey dwm at austin.ibm.com
Wed Nov 10 12:40:32 EST 2004


Same compiler (3.4.2) with updated binutils, but this time with
mainline kernel, gets link errors on final kernel zImage.

'make vmlinux' does complete _without_ errors.

Have I created a monster by missing some flags?

BTW, ld apparently does not return error, so the make just blasts on
by.

++doug

cmd=={make -j4 O=/build/dwm/build/lk-2.6.10-rc1-mm4.edit/ppc64 zImage}
  Using /build/dwm/linux/lk-2.6.10-rc1-mm4.edit as source for kernel
  CHK     include/linux/version.h
  GEN    /build/dwm/build/lk-2.6.10-rc1-mm4.edit/ppc64/Makefile
  SYMLINK include/asm -> include/asm-ppc64
  UPD     include/linux/version.h
...
  STRIP vmlinux.strip
  BOOTAS  arch/ppc64/boot/crt0.o
  BOOTAS  arch/ppc64/boot/string.o
  BOOTCC  arch/ppc64/boot/prom.o
  BOOTCC  arch/ppc64/boot/main.o
  BOOTCC  arch/ppc64/boot/zlib.o
  BOOTAS  arch/ppc64/boot/div64.o
  HOSTCC  arch/ppc64/boot/addnote
  GZIP    arch/ppc64/boot/kernel-vmlinux.strip.gz
Generating arch/ppc64/boot/imagesize.c
ls -l vmlinux.strip | \
awk '{printf "/* generated -- do not edit! */\n" \
	"unsigned long vmlinux_filesize = %d;\n", $5}' > arch/ppc64/boot/imagesize.c
nm -n vmlinux | tail -n 1 | \
awk '{printf "unsigned long vmlinux_memsize = 0x%s;\n", substr($1,8)}' \
	>> arch/ppc64/boot/imagesize.c
  BOOTCC  arch/ppc64/boot/imagesize.o
touch arch/ppc64/boot/kernel-vmlinux.strip.c
  BOOTCC  arch/ppc64/boot/kernel-vmlinux.strip.o
objcopy  arch/ppc64/boot/kernel-vmlinux.strip.o --add-section=.kernel:vmlinux.strip=arch/ppc64/boot/kernel-vmlinux.strip.gz --set-section-flags=.kernel:vmlinux.strip=contents,alloc,load,readonly,data
  ADDNOTE arch/ppc64/boot/zImage
ld: warning: powerpc:common64 architecture of input file `arch/ppc64/boot/crt0.o' is incompatible with powerpc:common output
ld: warning: powerpc:common64 architecture of input file `arch/ppc64/boot/string.o' is incompatible with powerpc:common output
ld: warning: powerpc:common64 architecture of input file `arch/ppc64/boot/prom.o' is incompatible with powerpc:common output
ld: warning: powerpc:common64 architecture of input file `arch/ppc64/boot/main.o' is incompatible with powerpc:common output
ld: warning: powerpc:common64 architecture of input file `arch/ppc64/boot/zlib.o' is incompatible with powerpc:common output
ld: warning: powerpc:common64 architecture of input file `arch/ppc64/boot/imagesize.o' is incompatible with powerpc:common output
ld: warning: powerpc:common64 architecture of input file `arch/ppc64/boot/div64.o' is incompatible with powerpc:common output
ld: warning: powerpc:common64 architecture of input file `arch/ppc64/boot/kernel-vmlinux.strip.o' is incompatible with powerpc:common output
arch/ppc64/boot/prom.o(.text+0x3d0): In function `.fputs':
: undefined reference to `.strlen'
arch/ppc64/boot/main.o(.text+0x5c0): In function `.start':
: undefined reference to `.memmove'
arch/ppc64/boot/main.o(.text+0x688): In function `.start':
: undefined reference to `.flush_cache'
arch/ppc64/boot/main.o(.text+0x7b0): In function `.start':
: undefined reference to `.memmove'
arch/ppc64/boot/zlib.o(.text+0x934): In function `.inflateIncomp':
: undefined reference to `.memcpy'
arch/ppc64/boot/zlib.o(.text+0x9c4): In function `.inflateIncomp':
: undefined reference to `.memcpy'
arch/ppc64/boot/zlib.o(.text+0xb38): In function `.inflate_flush':
: undefined reference to `.memcpy'
arch/ppc64/boot/zlib.o(.text+0xbc0): In function `.inflate_flush':
: undefined reference to `.memcpy'
arch/ppc64/boot/zlib.o(.text+0xc64): In function `.inflate_flush':
: undefined reference to `.memcpy'
arch/ppc64/boot/zlib.o(.text+0x1e30): more undefined references to `.memcpy' follow






More information about the Linuxppc64-dev mailing list