public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
* objdump and linux
@ 1997-11-24 11:45 Paul Koning
  1997-11-24 18:07 ` H.J. Lu
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Paul Koning @ 1997-11-24 11:45 UTC (permalink / raw)
  To: egcs

I tried to build a Linux kernel with the latest snapshot.  Ran into
several problems, but one is peripherally related to EGCS.

I installed a recent Binutils because the instructions said that's
needed for egcs.  But that version (970731) has an objdump that no
longer understands the -k switch -- which the 2.7 version does
understand.  The linux kernel build needs that switch.

It's not a good thing for egcs to be dependent on something that
breaks the ability to build kernels...

	paul

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: objdump and linux
  1997-11-24 11:45 objdump and linux Paul Koning
  1997-11-24 18:07 ` H.J. Lu
@ 1997-11-24 18:07 ` Richard Henderson
  1997-11-25 11:44   ` Jeffrey A Law
  1997-11-24 21:47 ` Ian Lance Taylor
  2 siblings, 1 reply; 6+ messages in thread
From: Richard Henderson @ 1997-11-24 18:07 UTC (permalink / raw)
  To: Paul Koning; +Cc: egcs

> I installed a recent Binutils because the instructions said that's
> needed for egcs.  But that version (970731) has an objdump that no
> longer understands the -k switch -- which the 2.7 version does
> understand.  The linux kernel build needs that switch.

This is very FAQ by now, but you need to remove /usr/bin/encaps.


r~

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: objdump and linux
  1997-11-24 11:45 objdump and linux Paul Koning
@ 1997-11-24 18:07 ` H.J. Lu
  1997-11-24 18:07 ` Richard Henderson
  1997-11-24 21:47 ` Ian Lance Taylor
  2 siblings, 0 replies; 6+ messages in thread
From: H.J. Lu @ 1997-11-24 18:07 UTC (permalink / raw)
  To: Paul Koning; +Cc: egcs

> 
> I tried to build a Linux kernel with the latest snapshot.  Ran into
> several problems, but one is peripherally related to EGCS.
> 
> I installed a recent Binutils because the instructions said that's
> needed for egcs.  But that version (970731) has an objdump that no
> longer understands the -k switch -- which the 2.7 version does
> understand.  The linux kernel build needs that switch.
> 
> It's not a good thing for egcs to be dependent on something that
> breaks the ability to build kernels...

# rm /usr/bin/encaps

-- 
H.J. Lu (hjl@gnu.org)

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: objdump and linux
  1997-11-24 11:45 objdump and linux Paul Koning
  1997-11-24 18:07 ` H.J. Lu
  1997-11-24 18:07 ` Richard Henderson
@ 1997-11-24 21:47 ` Ian Lance Taylor
  2 siblings, 0 replies; 6+ messages in thread
From: Ian Lance Taylor @ 1997-11-24 21:47 UTC (permalink / raw)
  To: pkoning; +Cc: egcs

   Date: Mon, 24 Nov 1997 14:26:31 -0500
   From: Paul Koning <pkoning@xedia.com>
   Sender: owner-egcs@cygnus.com

   I installed a recent Binutils because the instructions said that's
   needed for egcs.  But that version (970731) has an objdump that no
   longer understands the -k switch -- which the 2.7 version does
   understand.  The linux kernel build needs that switch.

   It's not a good thing for egcs to be dependent on something that
   breaks the ability to build kernels...

The Linux kernel build procedure works in one of two ways.  If you
have encaps in your PATH, it uses a hacked version of objdump that was
never in the GNU binutils.  If you do not have encaps in your PATH,
then it uses a procedure that works correctly with the GNU binutils.

So the fix is to remove your copy of encaps.

Ian

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: objdump and linux
  1997-11-24 18:07 ` Richard Henderson
@ 1997-11-25 11:44   ` Jeffrey A Law
  0 siblings, 0 replies; 6+ messages in thread
From: Jeffrey A Law @ 1997-11-25 11:44 UTC (permalink / raw)
  To: Richard Henderson; +Cc: Paul Koning, egcs

  In message < 19971124180900.06464@dot.cygnus.com >you write:
  > > I installed a recent Binutils because the instructions said that's
  > > needed for egcs.  But that version (970731) has an objdump that no
  > > longer understands the -k switch -- which the 2.7 version does
  > > understand.  The linux kernel build needs that switch.
  > 
  > This is very FAQ by now, but you need to remove /usr/bin/encaps.
Just an FYI -- I've added this to the egcs faq.  Now if my network would
just come up I could install the updated faq!

jeff

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re:  objdump and linux
@ 1997-11-24 18:58 meissner
  0 siblings, 0 replies; 6+ messages in thread
From: meissner @ 1997-11-24 18:58 UTC (permalink / raw)
  To: egcs, pkoning

| I tried to build a Linux kernel with the latest snapshot.  Ran into
| several problems, but one is peripherally related to EGCS.
| 
| I installed a recent Binutils because the instructions said that's
| needed for egcs.  But that version (970731) has an objdump that no
| longer understands the -k switch -- which the 2.7 version does
| understand.  The linux kernel build needs that switch.

First of all, the -k option was never part of the offical binutils package, but
instead it was a Linux specific hack.

No it doesn't, at least newer kernels.  What you have to do is delete the
encaps program (I'm not kidding -- that's how the kernel build determines
whether the new binutils has been instralled, or the musty old 2.6 version of
binutils with Linux specific hacks was installed).

| It's not a good thing for egcs to be dependent on something that
| breaks the ability to build kernels...
| 
| 	paul
| 

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~1997-11-25 11:44 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1997-11-24 11:45 objdump and linux Paul Koning
1997-11-24 18:07 ` H.J. Lu
1997-11-24 18:07 ` Richard Henderson
1997-11-25 11:44   ` Jeffrey A Law
1997-11-24 21:47 ` Ian Lance Taylor
1997-11-24 18:58 meissner

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).