On Tue, 2016-12-20 at 10:12 +0200, Adrian Bunk wrote:
> On Tue, Dec 20, 2016 at 08:57:55AM +0100, Salvatore Bonaccorso wrote:
> > Source: linux
> > Version: 4.8.15-1
> > Severity: serious
> > Justification: FTBFS
> > 
> > Hi
> > 
> > src:linux 4.8.15-1 FTBFS on ppc64el.
> > 
> > Log: 
> > https://buildd.debian.org/status/fetch.php?pkg=linux&arch=ppc64el&ver=4.8.15-1&stamp=1482184049
> > 
> > [...]
> >   CC      crypto/af_alg.mod.o
> >   CC      crypto/algif_aead.mod.o
> > ld: arch/powerpc/boot/zImage.pseries: Not enough room for program headers, 
> > try linking with -N
> > ld: final link failed: Bad value
> > /«PKGBUILDDIR»/arch/powerpc/boot/Makefile:323: recipe for target 
> > 'arch/powerpc/boot/zImage.pseries' failed
> > make[6]: *** [arch/powerpc/boot/zImage.pseries] Error 1
> > make[6]: *** Waiting for unfinished jobs....
> >   CC      crypto/algif_hash.mod.o
> > arch/powerpc/Makefile:285: recipe for target 'zImage' failed
> > make[5]: *** [zImage] Error 2
> > make[5]: *** Waiting for unfinished jobs....
> >   CC      crypto/algif_skcipher.mod.o
> > [...]
> 
> I'd assume this is also a duplicate of #848798, but I am less sure about 
> that than for #848850 (which I already merged with the binutils bug).

With KBUILD_VERBOSE=1 I see:

    ...
      /bin/bash /home/benh/linux-4.8.15/arch/powerpc/boot/wrapper -c -o 
arch/powerpc/boot/zImage.pseries -p pseries   vmlinux
    ld: arch/powerpc/boot/zImage.pseries: Not enough room for program headers, 
try linking with -N
    ld: final link failed: Bad value

and then with tracing enabled for that shell script:

    ...
    + ld -m elf64lppc -T arch/powerpc/boot/zImage.lds -pie -o 
arch/powerpc/boot/zImage.pseries arch/powerpc/boot/pseries-head.o 
arch/powerpc/boot/of.o arch/powerpc/boot/epapr.o ./zImage.15656.o 
arch/powerpc/boot/wrapper.a
    ld: arch/powerpc/boot/zImage.pseries: Not enough room for program headers, 
try linking with -N
    ld: final link failed: Bad value

Let's try without that -pie:

    $ ld -m elf64lppc -T arch/powerpc/boot/zImage.lds -o 
arch/powerpc/boot/zImage.pseries arch/powerpc/boot/pseries-head.o 
arch/powerpc/boot/of.o arch/powerpc/boot/epapr.o ./zImage.15656.o 
arch/powerpc/boot/wrapper.a
    $

Surprise, it works!  So we need to filter out -pie here as well.  (Or
disable building these wrappers, since we don't actually package them. 
But that doesn't seem to be a kconfig option)

Ben.

-- 
Ben Hutchings
Q.  Which is the greater problem in the world today, ignorance or
apathy?
A.  I don't know and I couldn't care less.

Attachment: signature.asc
Description: This is a digitally signed message part

Reply via email to