From: Josh Poimboeuf <jpoimboe@redhat.com>
To: Arnd Bergmann <arnd@arndb.de>
Cc: Steven Rostedt <rostedt@goodmis.org>,
LKML <linux-kernel@vger.kernel.org>,
Peter Zijlstra <peterz@infradead.org>
Subject: Re: libelf-0.175 breaks objtool
Date: Mon, 6 Apr 2020 17:16:14 -0500 [thread overview]
Message-ID: <20200406221614.ac2kl3vlagiaj5jf@treble> (raw)
In-Reply-To: <CAK8P3a1hsca02=jPQmBG68RTUAt-jDR-qo=UFwf13nZ0k-nDgA@mail.gmail.com>
On Mon, Apr 06, 2020 at 11:07:15PM +0200, Arnd Bergmann wrote:
> On Wed, Feb 6, 2019 at 7:32 PM Steven Rostedt <rostedt@goodmis.org> wrote:
> > On Tue, 5 Feb 2019 20:16:11 -0600 Josh Poimboeuf <jpoimboe@redhat.com> wrote:
> >
> > > On Tue, Feb 05, 2019 at 01:38:21PM -0500, Steven Rostedt wrote:
> > > > Just a FYI.
> > > >
> > > > After a recent upgrade in debian testing, I was not able to build the
> > > > kernel. I have a custom build of gcc, so I thought it was strange that
> > > > I was getting something like this (took this from the web, as I don't
> > > > have the error anymore with the work around, and currently doing a full
> > > > build):
> > > >
> > > > objdump: kernel/.tmp_signal.o: unable to initialize decompress status for section .debug_info
> > > > objdump: kernel/.tmp_signal.o: unable to initialize decompress status for section .debug_info
> > > > objdump: kernel/.tmp_signal.o: file format not recognized
> > > > CC arch/x86/kernel/platform-quirks.o
> > > > objdump: arch/x86/kernel/.tmp_ebda.o: unable to initialize decompress status for section .debug_info
> > > > objdump: arch/x86/kernel/.tmp_ebda.o: unable to initialize decompress status for section .debug_info
> > > > objdump: arch/x86/kernel/.tmp_ebda.o: file format not recognized
> > > > objdump: mm/.tmp_swap_slots.o: unable to initialize decompress status for section .debug_info
> > > > objdump: mm/.tmp_swap_slots.o: unable to initialize decompress status for section .debug_info
> > > > objdump: mm/.tmp_swap_slots.o: file format not recognized
> > >
> > > I installed debian testing on a VM, which has libelf 0.175-2, but I
> >
> > Hmm, I only have libelf-0.175 (no -2)
> >
> > > can't recreate. Can you share your config?
> > >
> >
> > It's just a distro config. Ah, I think it's because I'm compiling my
> > own home built gcc. There seems to be an incompatibility with the
> > binutils that I used and with libelf-0.175. If I build with just the
> > distro gcc, it works.
> >
> > Bah, this means I need to recreate my gcc that I use to build my
> > kernels with :-p As I like to control which gcc I use.
>
> I now see the same problem that you reported using the gcc-9
> toolchain I provide on https://kernel.org/pub/tools/crosstool/.
>
> Do you have any other information that might help me fix it?
This sounds like an issue I saw before where the toolchain wants to
compress debuginfo (DWARF debug_info sections). The "fix" was to add
'-gz=none' to KCFLAGS.
But if it's a desired feature then we could probably teach objtool to
deal with it. It ignores DWARF anyway.
--
Josh
next prev parent reply other threads:[~2020-04-06 22:16 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-02-05 18:38 Steven Rostedt
2019-02-06 2:16 ` Josh Poimboeuf
2019-02-06 17:16 ` Steven Rostedt
2020-04-06 21:07 ` Arnd Bergmann
2020-04-06 22:16 ` Josh Poimboeuf [this message]
2020-04-06 22:31 ` Arnd Bergmann
2020-04-07 15:46 ` Arnd Bergmann
2020-04-07 16:32 ` Josh Poimboeuf
2020-04-07 18:44 ` Arnd Bergmann
2020-04-07 19:30 ` Arnd Bergmann
2020-04-09 7:41 ` Christoph Hellwig
2020-04-09 8:25 ` Arnd Bergmann
2020-04-10 0:46 ` Dave Chinner
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20200406221614.ac2kl3vlagiaj5jf@treble \
--to=jpoimboe@redhat.com \
--cc=arnd@arndb.de \
--cc=linux-kernel@vger.kernel.org \
--cc=peterz@infradead.org \
--cc=rostedt@goodmis.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®