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

Re: Kernel 2.0.33 compilation



On Fri, 16 Jan 1998, Alex wrote:

> Hi,
> 
> I'm trying to compile Kernel 2.0.33 + Wanpipe 2.0.1 patch.
> It perfectly compiles on one Linux machine running 2.0.27
> or running 2.0.33 + Wanpipe 2.0.1 patch.
> 
> Problem
> -------
> It doesn't compile on another Linux machine running 2.0.29 +
> Wanpipe 1 patch.
> Both machines use gcc -v 2.7.2.1 .
> Both machines use the same .config file.
> Also I noticed that arch/i386/boot/compressed/Makefile is
> different in both computers.
> 
> Compilation output attached (Failing Section).
> 
> Any ideas?
> 
> 
> -----------8<---- Failing Section ------8<---------------
> make[2]: Entering directory
> `/usr/src/linux-2.0.33-wan-2.0.1/arch/i386/boot/compressed'
> tmppiggy=/tmp/$$piggy; \ rm -f $tmppiggy $tmppiggy.gz $tmppiggy.lnk; \
> if hash encaps 2> /dev/null; then \
^^^^^^^^^^^^^^^^^


rm /usr/bin/encaps 


--Ariel

> objdump -k -q  -o 0x100000 /usr/src/linux-2.0.33-wan-2.0.1/vmlinux >
> $tmppiggy; \
> else \
> objcopy -O binary -R .note -R .comment -R .stab -R .stabstr
> /usr/src/linux-2.0.33-wan-2.0.1/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
> gcc -D__KERNEL__ -I/usr/src/linux-2.0.33-wan-2.0.1/include -D__SMP__
> -traditional -c head.S gcc -D__KERNEL__
> -I/usr/src/linux-2.0.33-wan-2.0.1/include -O2 -DSTDC_HEADERS -D__SMP__
> -c misc.c -o misc.o gcc -I/usr/src/linux-2.0.33-wan-2.0.1/include
> -O2 -fomit-frame-pointer -D__BFD__ -D__SMP__ -D__BIG_KERNEL__ -o
> tools/bbuild tools/build.c -I/usr/src/linux-2.0.33-wan-2.0.1/include
> as86 -0 -a -o bbootsect.o bbootsect.s as86 -0 -a -o setup.o setup.s
> ld86 -0 -s -o bbootsect bbootsect.o ld86 -0 -s -o setup setup.o
> objdump: illegal option -- k Usage: objdump [-ahifdDprRtTxsSlw] [-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] [--show-raw-insn] [-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 ld -m elf_i386 -Ttext 0x100000
> -e startup_32  -o bvmlinux head.o misc.o piggy.o make[2]: Leaving
> directory `/usr/src/linux-2.0.33-wan-2.0.1/arch/i386/boot/compressed'
> if hash encaps 2> /dev/null; then \
> objdump -k -q  -o 0x100000 compressed/bvmlinux >
> compressed/bvmlinux.out; \
> else \
> objcopy -O binary -R .note -R .comment -R .stab -R .stabstr
> compressed/bvmlinux compressed/bvmlinux.out; \
> fi
> objdump: illegal option -- k
> Usage: objdump [-ahifdDprRtTxsSlw] [-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] [--show-raw-insn] [-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 make[1]: *** [bzImage] Error 1
> make[1]: Leaving directory
> `/usr/src/linux-2.0.33-wan-2.0.1/arch/i386/boot' make: *** [bzImage]
> Error 2 
> --------------------------------------------------------------------
> 
> 
> Alexander Rier                     |
> Breakthrough Ltd.                  |  Tel:     972-3-5340807
> e-mail:  alexr@gezernet.co.il      |           972-52-442549
> WWW:     http://www.breakt.co.il   |  ICQ:     2462621
> 

   +---------------------------------------------------------------+
   | Ariel Biener                                                  |
   | e-mail: ariel@post.tau.ac.il        Work ph: 03-6406086       |
   | fingerprint = 07 D1 E5 3E EF 6D E5 82 0B E9 21 D4 3C 7D 8B BC |
   +---------------------------------------------------------------+