Kernel 2.0.36, compile fails on objdump program

Kernel 2.0.36, compile fails on objdump program

Post by Philip Wall / Wild Car » Thu, 25 Feb 1999 04:00:00



Hello,
 I'm having a bit of a problem getting kernel 2.0.36 to compile. I'll
paste in the error at the bottom of this message.
 Current kernel is 2.0.33. Libc is 5.4.46, GCC is 2.7.2.3, binutils is
2.9.1.0.19a, autoconf is installed version 2.13, flex version is 2.5.4a
and yacc is 1.9.1, make is version 3.77.
 Everything looks to compile fine except right at the end when it
decides to either run objdump or objcopy. My version of objdump doesn't
like any of the flags that are sent to it.
 I thought it was a out of date software thing so I updated everything I
could think of.
 Ah well enough rambling, here's the output from make:

tmppiggy=/tmp/$$piggy; \
rm -f $tmppiggy $tmppiggy.gz $tmppiggy.lnk; \
if hash encaps 2> /dev/null; then \
  objdump -k -q  -o 0x100000 /usr/src/linux-2.0.36/vmlinux > $tmppiggy;
\
else \
  objcopy -O binary -R .note -R .comment -R .stab -R .stabstr
/usr/src/linux-2.0
.36/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) in
put_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 b inary ihex trad-core ld -m elf_i386 -Ttext 0x1000 -e startup_32
-o vmlinux head.o misc.o piggy.o make[2]: Leaving directory
`/usr/src/linux-2.0.36/arch/i386/boot/compressed' if hash encaps 2>
/dev/null; then \
  objdump -k -q  -o 0x1000 compressed/vmlinux > compressed/vmlinux.out;
\
else \
  objcopy -O binary -R .note -R .comment -R .stab -R .stabstr
compressed/vmlinux
 compressed/vmlinux.out; \
fi
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 b inary ihex trad-core make[1]: *** [zImage] Error 1 make[1]:
Leaving directory `/usr/src/linux-2.0.36/arch/i386/boot' make: ***
[zImage] Error 2 pisan:/usr/src/linux$

--
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Name: Philip Wall
Handle: Wild Card

Thought of the day:
"I'd love to go out with you, but I'm attending the opening of my
garage door."

 
 
 

Kernel 2.0.36, compile fails on objdump program

Post by Johan Kullsta » Fri, 26 Feb 1999 04:00:00



Quote:> Hello,
>  I'm having a bit of a problem getting kernel 2.0.36 to compile. I'll
> paste in the error at the bottom of this message.

i'll bet you upgraded your binutils.  i know because this happened to
me and i tore my hair out for a day or two until i figured it out.

follow the advice in the release notes and

rm /usr/bin/encaps

really.  

the kernel makefile uses (rather stupidly since it is far from
foolproof as you've just discovered) the presense of encaps to
determine the binutils version.  get rid of encaps and the makefile
will call the appropriate program with the right options.

hope this helps.

--
johan kullstam

 
 
 

Kernel 2.0.36, compile fails on objdump program

Post by Philip Wall / Wild Car » Fri, 26 Feb 1999 04:00:00




> > Hello,
> >  I'm having a bit of a problem getting kernel 2.0.36 to compile. I'll
> > paste in the error at the bottom of this message.

> i'll bet you upgraded your binutils.  i know because this happened to
> me and i tore my hair out for a day or two until i figured it out.

> follow the advice in the release notes and

> rm /usr/bin/encaps

> really.

> the kernel makefile uses (rather stupidly since it is far from
> foolproof as you've just discovered) the presense of encaps to
> determine the binutils version.  get rid of encaps and the makefile
> will call the appropriate program with the right options.

> hope this helps.

> --
> johan kullstam

  That did the trick, thanks. And yes I updated binutils for another
reason.
  But I don't remember seeing that in the release notes for binutils but
hey you never know, I probably missed it. :) Thanks again.
--
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Name: Philip Wall
Handle: Wild Card

Thought of the day:
When does summertime come to Minnesota, you ask?  Well, last year, I
think it was a Tuesday.
 
 
 

1. Fail to compile glibc2.1.2 on kernel 2.0.36 with gcc 2.95.2

Hi,

    I have troubles to compile glibc 2.1.2 on kernel 2.0.36.

    I get glibc-2.1.2.tar.gz file and untar it.
    After that, I run the next command for configuration.

        ./configure i486-pc-linux-gnu --prefix=/usr/i486-glibc21
--with-headers=/usr/src/linux-2.2.12

    it works fine.

    However, after I type 'make', I got

    Makeconfig:84: sysdeps/../config.make: No such file or directory
    Makerules:558: no file name for `include'
    The GNU C library has not been configured.
    Run `configure' to configure it before building.
    Try `configure --help' for more details.
    make: *** [sysdeps/../config.status] Error 1

    Can anyone tell me what's going on?
    I have tried to find all available information about compiling glibc
and
    FAQ. I never saw this kind of problem.

    Thanks & regards,
    Chi-sheng Shih

2. Software protection schemes

3. Problems compiling 2.2.11 kernel (kernel upgrade fro 2.0.36)

4. need some general idea of practicing zone and nameservers

5. binutils, missing objdump options and linux 2.0.36+

6. wireless routing issue

7. Help with BSD

8. Compile 2.0.36 fails as86 bootsect.o...

9. kernel 2.0.36 / AWE64 / dsp reset failed

10. Opera 5 on Suse 6.0, Kernel 2.0.36, KDE 1.0 - failed dependencies

11. Kernel 2.0.36 / AWE64 / dsp reset failed

12. Can't compile 2.0.36 kernel