[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

kernel compile errors



  I just recently abandoned my own linux setup and installed debian (hamm).
  This is a pretty much stock setup -- the only thing un-debian I've done so
far is change /bin/sh to point to pdksh, but that *shouldn't* be the problem
because I've compiled many kernels with my old setup where I didn't even have
bash on the system.

  I've been having problems compiling a new kernel.  I downloaded the 2.0.35
source package, and configured it.  When I just make the kernel, it makes it
without errors, but when I try top generate a compressed kernel, it complains
about objdump (specifically "objdump: invalid option -- k"). 
  What am I missing?
This is the output of make:

# make zImage
[many messages deleted]

make[2]: Entering directory `/usr/src/kernel-source-2.0.35/arch/i386/lib'
if hash encaps 2> /dev/null; then \
  objdump -k -q  -o 0x100000 /usr/src/kernel-source-2.0.35/vmlinux > $tmppiggy; \
else \
  objcopy -O binary -R .note -R .comment -R .stab -R .stabstr /usr/src/kernel-source-2.0.35/vmlinux $tmppiggy; \
fi; \
gzip -f -9 < $tmppiggy > $tmppiggy.gz; \
if hash encaps 2> /dev/null; then \
  encaps --target elf32-i386 piggy.o $tmppiggy.gz input_data input_len; \
else \
  echo "SECTIONS { .data : { input_len = .; LONG(input_data_end - input_data) input_data = .; *(.data) input_data_end = .; }}" > $tmppiggy.lnk; \
  ld -m elf_i386 -m elf_i386 -r -o piggy.o -b binary $tmppiggy.gz -b elf32-i386 -T $tmppiggy.lnk; \
fi; \
rm -f $tmppiggy $tmppiggy.gz $tmppiggy.lnk
objdump: invalid option -- k
Usage: objdump [-ahifCdDprRtTxsSlw] [-b bfdname] [-m machine] [-j section-name]
       [--archive-headers] [--target=bfdname] [--debugging] [--disassemble]
       [--disassemble-all] [--disassemble-zeroes] [--file-headers]
       [--section-headers] [--headers]
       [--info] [--section=section-name] [--line-numbers] [--source]
       [--architecture=machine] [--reloc] [--full-contents] [--stabs]
       [--syms] [--all-headers] [--dynamic-syms] [--dynamic-reloc]
       [--wide] [--version] [--help] [--private-headers]
       [--start-address=addr] [--stop-address=addr]
       [--prefix-addresses] [--[no-]show-raw-insn] [--demangle]
       [--adjust-vma=offset] [-EB|-EL] [--endian={big|little}] objfile...
at least one option besides -l (--line-numbers) must be given
objdump: supported targets: elf32-i386 a.out-i386-linux srec symbolsrec tekhex binary ihex trad-core
/bin/sh: encaps: not found
ld -m elf_i386 -Ttext 0x1000 -e startup_32  -o vmlinux head.o misc.o piggy.o
ld: cannot open piggy.o: No such file or directory
make[2]: *** [vmlinux] Error 1
make[2]: Leaving directory `/usr/src/kernel-source-2.0.35/arch/i386/boot/compressed'
make[1]: *** [compressed/vmlinux] Error 2
make[1]: Leaving directory `/usr/src/kernel-source-2.0.35/arch/i386/boot'
make: *** [zImage] Error 2

-- 
 Chris Ulrich        cdulrich@ucdavis.edu        530 754 4355


--  
Unsubscribe?  mail -s unsubscribe debian-user-request@lists.debian.org < /dev/null


Reply to: