[LinuxBIOS] Linking issues in v3...

Corey Osgood corey.osgood at gmail.com
Tue Oct 30 21:06:50 CET 2007

I'm having just a little problem building some code v3, an error with
multiple definitions of printk. A patch is attached (minus the cn700
stuff, to keep the size down) and the error log is inline below. I've
tried to follow the geodelx/cs5536 as much as possible, to try to avoid
errors like this. If anyone can point me in the right direction of where
to look, it'd be great (I have the feeling it's in a make file).


amp at ampmobile:~/LinuxBIOSv3$ make clean;make
  CLEAN   build
  CLEAN   doxygen
  CLEAN   doc/design/newboot.pdf
  CP      build/config.h
  GEN     build/build.h
  CC      build/lib/uart8250.o
  CC      build/lib/mem.o
  CC      build/lib/elfboot.o
  CC      build/lib/lar.o
  CC      build/lib/delay.o
  CC      build/lib/vtxprintf.o
  CC      build/lib/vsprintf.o
  CC      build/lib/console.o
  CC      build/lib/lzma.o
  CC      build/arch/x86/stage1.o
/home/amp/LinuxBIOSv3/arch/x86/stage1.c:71:5: warning: "DCACHE_RAM_SIZE"
is not defined
  CC      build/arch/x86/serial.o
  CC      build/arch/x86/archelfboot.o
  CC      build/arch/x86/speaker.o
  CC      build/arch/x86/udelay_io.o
  CC      build/arch/x86/mc146818rtc.o
  CC      build/arch/x86/post_code.o
  CC      build/arch/x86/stage0_i586.o
  AS      build/arch/x86/stage0_i586.o
  CC      build/mainboard/jetway/j7f2we/stage1.o
  HOSTCC  build/util/dtc/dtc.o
  HOSTCC  build/util/dtc/livetree.o
  HOSTCC  build/util/dtc/flattree.o
  HOSTCC  build/util/dtc/data.o
  HOSTCC  build/util/dtc/treesource.o
  HOSTCC  build/util/dtc/fstree.o
  BISON   build/util/dtc/dtc-parser.tab.c
  HOSTCC  build/util/dtc/dtc-parser.tab.o
  HOSTCC  build/util/dtc/dtc
  DTC     build/statictree.h
  DTC     mainboard/jetway/j7f2we/dts (dts->lbh)
  CC      build/southbridge/via/vt8237r/stage1.o
  CC      build/superio/fintek/f71805f/stage1.o
  CC      build/device/pnp_raw.o
  CC      build/stage0.init
  OBJCOPY build/stage0.init
  OBJCOPY build/stage0.init (prefixing stage0)
  TEST    build/stage0.init
  NM      build/stage0.init
  BUILD   build/linuxbios.bootblock
  HOSTCC  build/util/lar/lar.o
  HOSTCC  build/util/lar/stream.o
  HOSTCC  build/util/lar/lib.o
  HOSTCXX build/util/lzma/LZMAEncoder.o
  HOSTCXX build/util/lzma/LZInWindow.o
  HOSTCXX build/util/lzma/RangeCoderBit.o
  HOSTCXX build/util/lzma/StreamUtils.o
  HOSTCXX build/util/lzma/OutBuffer.o
  HOSTCXX build/util/lzma/Alloc.o
  HOSTCXX build/util/lzma/CRC.o
  HOSTCC  build/util/nrv2b/nrv2b-compress.o
  HOSTCXX build/util/lar/lar
  HOSTCXX build/util/lzma/minilzma.o
  LD      build/linuxbios.initram
multiple definition of `printk'
first defined here
make: *** [/home/amp/LinuxBIOSv3/build/linuxbios.initram] Error 1

More information about the coreboot mailing list