From: Ingo Molnar <mingo@elte.hu>
To: Sam Ravnborg <sam@ravnborg.org>
Cc: Kamalesh Babulal <kamalesh@linux.vnet.ibm.com>,
Stephen Rothwell <sfr@canb.auug.org.au>,
linux-next@vger.kernel.org, LKML <linux-kernel@vger.kernel.org>,
Jens Axboe <jens.axboe@oracle.com>,
Andy Whitcroft <apw@shadowen.org>,
Thomas Gleixner <tglx@linutronix.de>,
Ingo Molnar <mingo@redhat.com>, "H. Peter Anvin" <hpa@zytor.com>
Subject: Re: [BUILD-FAILURE] linux-next: Tree for June 30
Date: Mon, 30 Jun 2008 22:06:23 +0200 [thread overview]
Message-ID: <20080630200623.GE6584@elte.hu> (raw)
In-Reply-To: <20080630194727.GA26682@uranus.ravnborg.org>
* Sam Ravnborg <sam@ravnborg.org> wrote:
> On Mon, Jun 30, 2008 at 09:26:10PM +0200, Ingo Molnar wrote:
> >
> > * Sam Ravnborg <sam@ravnborg.org> wrote:
> >
> > > On Mon, Jun 30, 2008 at 10:13:40PM +0530, Kamalesh Babulal wrote:
> > > > Kamalesh Babulal wrote:
> > > > > Hi Stephen,
> > > > >
> > > > > next-20080630 kernel build fails x86 box
> > > > >
> > > > > fs/bio-integrity.c: In function `bio_integrity_add_page':
> > > > > include/linux/bio.h:368: sorry, unimplemented: inlining failed in call to 'bvec_nr_vecs': function body not available
> > > > > fs/bio-integrity.c:135: sorry, unimplemented: called from here
> > > > > make[1]: *** [fs/bio-integrity.o] Error 1
> > > > > make: *** [fs] Error 2
> > > > >
> > > > > # gcc -v
> > > > > Reading specs from /usr/lib/gcc/i386-redhat-linux/3.4.6/specs
> > > > > Configured with: ../configure --prefix=/usr --mandir=/usr/share/man
> > > > > --infodir=/usr/share/info --enable-shared --enable-threads=posix
> > > > > --disable-checking --with-system-zlib --enable-__cxa_atexit
> > > > > --disable-libunwind-exceptions --enable-java-awt=gtk
> > > > > --host=i386-redhat-linux
> > > > > Thread model: posix
> > > > > gcc version 3.4.6 20060404 (Red Hat 3.4.6-10)
> > > > >
> > > > >
> > > > Another build failure on the same box/config file
> > > >
> > > > make[2]: `scripts/unifdef' is up to date.
> > > > RELOCS arch/x86/boot/compressed/vmlinux.relocs
> > > > 101 section headers supported: 100
> > > > make[2]: *** [arch/x86/boot/compressed/vmlinux.relocs] Error 1
> > > > make[1]: *** [arch/x86/boot/compressed/vmlinux] Error 2
> > > > make: *** [bzImage] Error 2
> > >
> > > In a i386 specific part of the kernel - so let's cc x86 maintainers.
> >
> > that's an allyesconfig kernel and i cannot reproduce the failure with
> > linux-next v2.6.26-rc8-6206-gf1c7436:
> >
> > [...]
> > RELOCS arch/x86/boot/compressed/vmlinux.relocs
> > BUILD arch/x86/boot/compressed/vmlinux.bin.all
> > GZIP arch/x86/boot/compressed/vmlinux.bin.gz
> > LD arch/x86/boot/compressed/piggy.o
> > LD arch/x86/boot/compressed/vmlinux
> > OFFSETS arch/x86/boot/offsets.h
> > OBJCOPY arch/x86/boot/vmlinux.bin
> > AS arch/x86/boot/header.o
> > LD arch/x86/boot/setup.elf
> > OBJCOPY arch/x86/boot/setup.bin
> > BUILD arch/x86/boot/bzImage
> > Root device is (8, 17)
> > Setup is 12524 bytes (padded to 12800 bytes).
> > System is 17840 kB
> > CRC bccb6201
> > Kernel: arch/x86/boot/bzImage is ready (#10848)
> >
> > (nor has anything substantial change in that area changed in the x86
> > tree recently that sticks out at first sight.)
>
> Just to see the number of sections you hit could you try following stupid patch.
> It will casue relocs to terminate but will print out the section header count we have
> in your allyesconfig build.
>
> It is 'funny' that we just passed the limit in the error report.
>
> Sam
>
> diff --git a/arch/x86/boot/compressed/relocs.c b/arch/x86/boot/compressed/relocs.c
> index edaadea..88d27f6 100644
> --- a/arch/x86/boot/compressed/relocs.c
> +++ b/arch/x86/boot/compressed/relocs.c
> @@ -244,7 +244,7 @@ static void read_ehdr(FILE *fp)
> static void read_shdrs(FILE *fp)
> {
> int i;
> - if (ehdr.e_shnum > MAX_SHDRS) {
> + if (1 || ehdr.e_shnum > MAX_SHDRS) {
> die("%d section headers supported: %d\n",
> ehdr.e_shnum, MAX_SHDRS);
> }
ah, ok. So the patch below should solve this for now?
is there any particular reason why we are limited to 100 sections? (is
there some ELF limitation here perhaps?)
Ingo
---------------->
commit db71d27cc7c76e5ff8dd44c7c8c40d1e216658d6
Author: Ingo Molnar <mingo@elte.hu>
Date: Mon Jun 30 22:04:43 2008 +0200
x86: increase MAX_SHDRS from 100 to 200
Kamalesh Babulal reported this build failure:
> make[2]: `scripts/unifdef' is up to date.
> RELOCS arch/x86/boot/compressed/vmlinux.relocs
> 101 section headers supported: 100
Signed-off-by: Ingo Molnar <mingo@elte.hu>
diff --git a/arch/x86/boot/compressed/relocs.c b/arch/x86/boot/compressed/relocs.c
index edaadea..668a48b 100644
--- a/arch/x86/boot/compressed/relocs.c
+++ b/arch/x86/boot/compressed/relocs.c
@@ -10,7 +10,7 @@
#define USE_BSD
#include <endian.h>
-#define MAX_SHDRS 100
+#define MAX_SHDRS 200
#define ARRAY_SIZE(x) (sizeof(x) / sizeof((x)[0]))
static Elf32_Ehdr ehdr;
static Elf32_Shdr shdr[MAX_SHDRS];
next prev parent reply other threads:[~2008-06-30 20:08 UTC|newest]
Thread overview: 26+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-06-30 14:16 linux-next: Tree for June 30 Stephen Rothwell
2008-06-30 16:02 ` [BUILD-FAILURE] " Kamalesh Babulal
2008-06-30 16:43 ` Kamalesh Babulal
2008-06-30 18:59 ` Sam Ravnborg
2008-06-30 19:26 ` Ingo Molnar
2008-06-30 19:47 ` Sam Ravnborg
2008-06-30 20:06 ` Ingo Molnar [this message]
2008-06-30 20:11 ` Ingo Molnar
2008-06-30 20:25 ` Sam Ravnborg
2008-06-30 20:37 ` H. Peter Anvin
2008-06-30 20:42 ` H. Peter Anvin
2008-06-30 21:46 ` H. Peter Anvin
2008-07-01 2:10 ` Vivek Goyal
2008-07-01 6:56 ` Ingo Molnar
2008-07-01 8:15 ` Eric W. Biederman
2008-07-01 9:21 ` Kamalesh Babulal
2008-06-30 17:59 ` Jens Axboe
2008-06-30 18:21 ` Kamalesh Babulal
2008-06-30 18:25 ` [BUILD-FAILURE] linux-next: Tree for June 30 - powerpc - build failure at arch_add_memory() Kamalesh Babulal
2008-07-01 1:34 ` Tony Breeds
2008-07-01 8:04 ` Kamalesh Babulal
2008-06-30 18:43 ` linux-next: Tree for June 30 (USB: cdc-acm) Randy Dunlap
2008-06-30 19:01 ` Greg KH
2008-06-30 19:32 ` Alan Stern
2008-07-01 12:22 ` Oliver Neukum
2008-07-01 17:10 ` Oliver Neukum
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=20080630200623.GE6584@elte.hu \
--to=mingo@elte.hu \
--cc=apw@shadowen.org \
--cc=hpa@zytor.com \
--cc=jens.axboe@oracle.com \
--cc=kamalesh@linux.vnet.ibm.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-next@vger.kernel.org \
--cc=mingo@redhat.com \
--cc=sam@ravnborg.org \
--cc=sfr@canb.auug.org.au \
--cc=tglx@linutronix.de \
/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;
as well as URLs for NNTP newsgroup(s).