Debian Bug report logs - #845690
binutils: creates unbootable kernel on x86-64

version graph

Package: binutils; Maintainer for binutils is Matthias Klose <doko@debian.org>; Source for binutils is src:binutils (PTS, buildd, popcon).

Reported by: Meelis Roos <mroos@linux.ee>

Date: Fri, 25 Nov 2016 21:30:02 UTC

Severity: important

Tags: help, moreinfo

Found in version binutils/2.27.51.20161124-1

Fixed in version binutils/2.27.51.20161201-1

Done: Matthias Klose <doko@debian.org>

Bug is archived. No further changes may be made.

Toggle useless messages

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to debian-bugs-dist@lists.debian.org, mroos@linux.ee, Debian GCC Maintainers <debian-gcc@lists.debian.org>:
Bug#845690; Package gcc-6. (Fri, 25 Nov 2016 21:30:04 GMT) (full text, mbox, link).


Acknowledgement sent to Meelis Roos <mroos@linux.ee>:
New Bug report received and forwarded. Copy sent to mroos@linux.ee, Debian GCC Maintainers <debian-gcc@lists.debian.org>. (Fri, 25 Nov 2016 21:30:05 GMT) (full text, mbox, link).


Message #5 received at submit@bugs.debian.org (full text, mbox, reply):

From: Meelis Roos <mroos@linux.ee>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: gcc-6: gcc creates unbootable kernel on x86-64
Date: Fri, 25 Nov 2016 23:27:55 +0200
Package: gcc-6
Version: 6.2.1-5
Severity: normal

Dear Maintainer,

while testing latest 4.9-rc6+ git kernels, I noticed that the kernel
failed to boot very early (only Booting the kernel was displayed) on
multiple machines.

Not that this is not about passing the pie flags to gcc or stack
protector options breaking compilation. That one was worked around in
current development version of the kernel, and for bisecting I had to
patch the kernel by hand.

The patterns so far:

6.2.0-9 is creating working kernels on all computers.

6.2.1-3 and 6.2.1-5 are OK on at least two 32-bit x86 machines tested so
far (Pentium 4 and Athlon MP).

6.2.1-4 and 6.2.1-5 create nonbootable kernels on all x86-64 machines
tested so far (P4 era 64-bit Xeons, 51xx era Xeons, Opteron 2xx, i5 660
at least). Kernel configurations vary - they are available when I go to
the machines physically to restart them to working kernels (maybe
Monday) but differ a lot between the machines (all are optimized for
specific CPU and hardware set for test coverage) so the configuration
does nto seem to be too important.

-- System Information:
Debian Release: stretch/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)

Kernel: Linux 4.9.0-rc6-00157-g16ae16c (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: sysvinit (via /sbin/init)

Versions of packages gcc-6 depends on:
ii  binutils      2.27.51.20161124-1
ii  cpp-6         6.2.1-5
ii  gcc-6-base    6.2.1-5
ii  libc6         2.24-6
ii  libcc1-0      6.2.1-5
ii  libgcc-6-dev  6.2.1-5
ii  libgcc1       1:6.2.1-5
ii  libgmp10      2:6.1.1+dfsg-1
ii  libisl15      0.17.1-1
ii  libmpc3       1.0.3-1
ii  libmpfr4      3.1.5-1
ii  libstdc++6    6.2.1-5
ii  zlib1g        1:1.2.8.dfsg-2+b3

Versions of packages gcc-6 recommends:
ii  libc6-dev  2.24-6

Versions of packages gcc-6 suggests:
pn  gcc-6-doc         <none>
pn  gcc-6-locales     <none>
pn  gcc-6-multilib    <none>
pn  libasan3-dbg      <none>
pn  libatomic1-dbg    <none>
pn  libcilkrts5-dbg   <none>
pn  libgcc1-dbg       <none>
pn  libgomp1-dbg      <none>
pn  libitm1-dbg       <none>
pn  liblsan0-dbg      <none>
pn  libmpx2-dbg       <none>
pn  libquadmath0-dbg  <none>
pn  libtsan0-dbg      <none>
pn  libubsan0-dbg     <none>

-- no debconf information



Information forwarded to debian-bugs-dist@lists.debian.org, Debian GCC Maintainers <debian-gcc@lists.debian.org>:
Bug#845690; Package gcc-6. (Sat, 26 Nov 2016 07:57:02 GMT) (full text, mbox, link).


Acknowledgement sent to Damien Wyart <damien.wyart@gmail.com>:
Extra info received and forwarded to list. Copy sent to Debian GCC Maintainers <debian-gcc@lists.debian.org>. (Sat, 26 Nov 2016 07:57:02 GMT) (full text, mbox, link).


Message #10 received at 845690@bugs.debian.org (full text, mbox, reply):

From: Damien Wyart <damien.wyart@gmail.com>
To: 845690@bugs.debian.org
Subject: Re: gcc-6: gcc creates unbootable kernel on x86-64
Date: Sat, 26 Nov 2016 08:52:23 +0100
Hi,

The problem is discussed here:
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78512

In the meantime, a workaround is to add

-fno-printf-return-value to CFLAGS.

Best regards

Damien



Information forwarded to debian-bugs-dist@lists.debian.org, Debian GCC Maintainers <debian-gcc@lists.debian.org>:
Bug#845690; Package gcc-6. (Sat, 26 Nov 2016 08:39:03 GMT) (full text, mbox, link).


Acknowledgement sent to Damien Wyart <damien.wyart@gmail.com>:
Extra info received and forwarded to list. Copy sent to Debian GCC Maintainers <debian-gcc@lists.debian.org>. (Sat, 26 Nov 2016 08:39:03 GMT) (full text, mbox, link).


Message #15 received at 845690@bugs.debian.org (full text, mbox, reply):

From: Damien Wyart <damien.wyart@gmail.com>
To: 845690@bugs.debian.org
Subject: Re: gcc-6: gcc creates unbootable kernel on x86-64
Date: Sat, 26 Nov 2016 09:35:57 +0100
Replying to myself: sorry for the false lead, this is not the same
problem. The one from gcc bugtracker is not related to the stable
gcc-6 branch used in Debian unstable, so the problem must be somewhere
else. The -fno-printf-return-value is not recognized with gcc 6 from
Sid.

Best regards

Damien



Information forwarded to debian-bugs-dist@lists.debian.org, Debian GCC Maintainers <debian-gcc@lists.debian.org>:
Bug#845690; Package gcc-6. (Sat, 26 Nov 2016 14:15:02 GMT) (full text, mbox, link).


Acknowledgement sent to Damien Wyart <damien.wyart@gmail.com>:
Extra info received and forwarded to list. Copy sent to Debian GCC Maintainers <debian-gcc@lists.debian.org>. (Sat, 26 Nov 2016 14:15:02 GMT) (full text, mbox, link).


Message #20 received at 845690@bugs.debian.org (full text, mbox, reply):

From: Damien Wyart <damien.wyart@gmail.com>
To: 845690@bugs.debian.org
Subject: Re: gcc-6: gcc creates unbootable kernel on x86-64
Date: Sat, 26 Nov 2016 15:13:29 +0100
After running further tests today, I think this is in fact *not*
related to gcc but to the kernel itself.

I tested all 6.2.1-X versions as well as gcc-5 (5.4.1-3) and all the
kernels fail to boot (balck screen just after grub and nothing in the
logs).

A few days ago (beginning of this week, I was able to compile the
4.9-rc6+ kernel fine (with gcc-6 6.2.1-4) so something must have
changed in the kernel itself (or elsewhere on the system?). I am not
able to bisect now, but at least this seems to clear gcc from being
the main culprit.

Best regards

Damien



Information forwarded to debian-bugs-dist@lists.debian.org, Debian GCC Maintainers <debian-gcc@lists.debian.org>:
Bug#845690; Package gcc-6. (Sat, 26 Nov 2016 20:54:06 GMT) (full text, mbox, link).


Acknowledgement sent to eric.valette@free.fr:
Extra info received and forwarded to list. Copy sent to Debian GCC Maintainers <debian-gcc@lists.debian.org>. (Sat, 26 Nov 2016 20:54:06 GMT) (full text, mbox, link).


Message #25 received at 845690@bugs.debian.org (full text, mbox, reply):

From: Eric Valette <eric.valette@free.fr>
To: 845690@bugs.debian.org
Subject: Same problem here!
Date: Sat, 26 Nov 2016 21:50:37 +0100
Screwed up my NAS updating the kernel. Kernel panic just after init. gcc 
: 6.2.1-1  kernel = upstream 4.4.35

reverting to my own compiled 4.4.33 fixed the problem.

--eric



Information forwarded to debian-bugs-dist@lists.debian.org, Debian GCC Maintainers <debian-gcc@lists.debian.org>:
Bug#845690; Package gcc-6. (Sat, 26 Nov 2016 21:06:02 GMT) (full text, mbox, link).


Acknowledgement sent to eric.valette@free.fr:
Extra info received and forwarded to list. Copy sent to Debian GCC Maintainers <debian-gcc@lists.debian.org>. (Sat, 26 Nov 2016 21:06:03 GMT) (full text, mbox, link).


Message #30 received at 845690@bugs.debian.org (full text, mbox, reply):

From: Eric Valette <eric.valette@free.fr>
To: 845690@bugs.debian.org
Subject: Re: Same problem here!
Date: Sat, 26 Nov 2016 22:02:22 +0100
On Sat, 26 Nov 2016 21:50:37 +0100 Eric Valette <eric.valette@free.fr> 
wrote:
> Screwed up my NAS updating the kernel. Kernel panic just after init. gcc
> : 6.2.1-1  kernel = upstream 4.4.35
>
> reverting to my own compiled 4.4.33 fixed the problem.


Ooops gcc= 6.2.1-5 and kernel is x86-64

-- eric




Information forwarded to debian-bugs-dist@lists.debian.org, Debian GCC Maintainers <debian-gcc@lists.debian.org>:
Bug#845690; Package gcc-6. (Sun, 27 Nov 2016 02:15:02 GMT) (full text, mbox, link).


Acknowledgement sent to Руслан <cerebellum@ukr.net>:
Extra info received and forwarded to list. Copy sent to Debian GCC Maintainers <debian-gcc@lists.debian.org>. (Sun, 27 Nov 2016 02:15:02 GMT) (full text, mbox, link).


Message #35 received at 845690@bugs.debian.org (full text, mbox, reply):

From: Руслан <cerebellum@ukr.net>
To: 845690@bugs.debian.org
Subject: binutils 2.27.51.20161124
Date: Sun, 27 Nov 2016 03:44:18 +0200
on ubuntu same problem, after update binutils to 2.27.51.20161124-1ubuntu1 and gcc-6 to 6.2.1-5ubuntu1

gcc-6 6.2.1-4ubuntu1 and binutils 2.27.51.20161118-2ubuntu1 no problem.
 
 



Information forwarded to debian-bugs-dist@lists.debian.org, Debian GCC Maintainers <debian-gcc@lists.debian.org>:
Bug#845690; Package gcc-6. (Sun, 27 Nov 2016 07:42:02 GMT) (full text, mbox, link).


Acknowledgement sent to Sven Joachim <svenjoac@gmx.de>:
Extra info received and forwarded to list. Copy sent to Debian GCC Maintainers <debian-gcc@lists.debian.org>. (Sun, 27 Nov 2016 07:42:02 GMT) (full text, mbox, link).


Message #40 received at 845690@bugs.debian.org (full text, mbox, reply):

From: Sven Joachim <svenjoac@gmx.de>
To: Damien Wyart <damien.wyart@gmail.com>
Cc: 845690@bugs.debian.org
Subject: Re: Bug#845690: gcc-6: gcc creates unbootable kernel on x86-64
Date: Sun, 27 Nov 2016 08:38:54 +0100
Control: reassign -1 binutils 2.27.51.20161124-1
Control: retitle -1 binutils: creates unbootable kernel on x86-64
Control: severity -1 grave

On 2016-11-26 15:13 +0100, Damien Wyart wrote:

> After running further tests today, I think this is in fact *not*
> related to gcc but to the kernel itself.
>
> I tested all 6.2.1-X versions as well as gcc-5 (5.4.1-3) and all the
> kernels fail to boot (balck screen just after grub and nothing in the
> logs).

Same here, downgrading binutils to 2.27.51.20161118-2 helped.  I'm
reassigning the bug and bumping the severity, since several people have
observed the problem.

Cheers,
       Sven



Bug reassigned from package 'gcc-6' to 'binutils'. Request was from Sven Joachim <svenjoac@gmx.de> to 845690-submit@bugs.debian.org. (Sun, 27 Nov 2016 07:42:03 GMT) (full text, mbox, link).


No longer marked as found in versions gcc-6/6.2.1-5. Request was from Sven Joachim <svenjoac@gmx.de> to 845690-submit@bugs.debian.org. (Sun, 27 Nov 2016 07:42:03 GMT) (full text, mbox, link).


Marked as found in versions binutils/2.27.51.20161124-1. Request was from Sven Joachim <svenjoac@gmx.de> to 845690-submit@bugs.debian.org. (Sun, 27 Nov 2016 07:42:04 GMT) (full text, mbox, link).


Changed Bug title to 'binutils: creates unbootable kernel on x86-64' from 'gcc-6: gcc creates unbootable kernel on x86-64'. Request was from Sven Joachim <svenjoac@gmx.de> to 845690-submit@bugs.debian.org. (Sun, 27 Nov 2016 07:42:05 GMT) (full text, mbox, link).


Severity set to 'grave' from 'normal' Request was from Sven Joachim <svenjoac@gmx.de> to 845690-submit@bugs.debian.org. (Sun, 27 Nov 2016 07:42:05 GMT) (full text, mbox, link).


Information forwarded to debian-bugs-dist@lists.debian.org:
Bug#845690; Package binutils. (Sun, 27 Nov 2016 12:42:02 GMT) (full text, mbox, link).


Acknowledgement sent to Matthias Klose <doko@debian.org>:
Extra info received and forwarded to list. (Sun, 27 Nov 2016 12:42:03 GMT) (full text, mbox, link).


Message #55 received at 845690@bugs.debian.org (full text, mbox, reply):

From: Matthias Klose <doko@debian.org>
To: Sven Joachim <svenjoac@gmx.de>, 845690@bugs.debian.org, Damien Wyart <damien.wyart@gmail.com>, linux@packages.debian.org
Subject: Re: Bug#845690: gcc-6: gcc creates unbootable kernel on x86-64
Date: Sun, 27 Nov 2016 13:39:58 +0100
Control: tags -1 + help moreinfo
Control: severity -1 important

On 27.11.2016 08:38, Sven Joachim wrote:
> Control: reassign -1 binutils 2.27.51.20161124-1
> Control: retitle -1 binutils: creates unbootable kernel on x86-64
> Control: severity -1 grave
> 
> On 2016-11-26 15:13 +0100, Damien Wyart wrote:
> 
>> After running further tests today, I think this is in fact *not*
>> related to gcc but to the kernel itself.
>>
>> I tested all 6.2.1-X versions as well as gcc-5 (5.4.1-3) and all the
>> kernels fail to boot (balck screen just after grub and nothing in the
>> logs).
> 
> Same here, downgrading binutils to 2.27.51.20161118-2 helped.  I'm
> reassigning the bug and bumping the severity, since several people have
> observed the problem.

The original report talks about a 4.4 problem on , which afaik is superseded in
unstable by newever versions released after the GCC 6 release.  This is now made
a binutils RC issue for building a kernel which is not in the archive anymore.
Please could you validate that the issue exists with the linux package in
unstable as well?




Added tag(s) moreinfo and help. Request was from Matthias Klose <doko@debian.org> to 845690-submit@bugs.debian.org. (Sun, 27 Nov 2016 12:42:03 GMT) (full text, mbox, link).


Severity set to 'important' from 'grave' Request was from Matthias Klose <doko@debian.org> to 845690-submit@bugs.debian.org. (Sun, 27 Nov 2016 12:42:03 GMT) (full text, mbox, link).


Information forwarded to debian-bugs-dist@lists.debian.org, Matthias Klose <doko@debian.org>:
Bug#845690; Package binutils. (Sun, 27 Nov 2016 15:54:07 GMT) (full text, mbox, link).


Acknowledgement sent to Sven Joachim <svenjoac@gmx.de>:
Extra info received and forwarded to list. Copy sent to Matthias Klose <doko@debian.org>. (Sun, 27 Nov 2016 15:54:07 GMT) (full text, mbox, link).


Message #64 received at 845690@bugs.debian.org (full text, mbox, reply):

From: Sven Joachim <svenjoac@gmx.de>
To: Matthias Klose <doko@debian.org>
Cc: 845690@bugs.debian.org, Damien Wyart <damien.wyart@gmail.com>, linux@packages.debian.org
Subject: Re: Bug#845690: gcc-6: gcc creates unbootable kernel on x86-64
Date: Sun, 27 Nov 2016 16:51:16 +0100
On 2016-11-27 13:39 +0100, Matthias Klose wrote:

> Control: tags -1 + help moreinfo
> Control: severity -1 important
>
> On 27.11.2016 08:38, Sven Joachim wrote:
>> Control: reassign -1 binutils 2.27.51.20161124-1
>> Control: retitle -1 binutils: creates unbootable kernel on x86-64
>> Control: severity -1 grave
>> 
>> On 2016-11-26 15:13 +0100, Damien Wyart wrote:
>> 
>>> After running further tests today, I think this is in fact *not*
>>> related to gcc but to the kernel itself.
>>>
>>> I tested all 6.2.1-X versions as well as gcc-5 (5.4.1-3) and all the
>>> kernels fail to boot (balck screen just after grub and nothing in the
>>> logs).
>> 
>> Same here, downgrading binutils to 2.27.51.20161118-2 helped.  I'm
>> reassigning the bug and bumping the severity, since several people have
>> observed the problem.
>
> The original report talks about a 4.4 problem on , which afaik is superseded in
> unstable by newever versions released after the GCC 6 release.  This is now made
> a binutils RC issue for building a kernel which is not in the archive anymore.
> Please could you validate that the issue exists with the linux package in
> unstable as well?

I have noticed the problem with vanilla Linux 4.8.11 from kernel.org, so
I suspect the Debian kernel is affected as well.  There is no console
output at all, the system freezes right when uncompressing the kernel.

It should be noted that I haven't noticed the problem on my desktop
(which has a 32-bit userland but a 64-bit kernel) where I have
CONFIG_KERNEL_GZIP=y, but on my laptop which uses the default
CONFIG_KERNEL_XZ=y it is reproducible.

Cheers,
       Sven



Information forwarded to debian-bugs-dist@lists.debian.org, Matthias Klose <doko@debian.org>:
Bug#845690; Package binutils. (Sun, 27 Nov 2016 16:21:03 GMT) (full text, mbox, link).


Acknowledgement sent to eric.valette@free.fr:
Extra info received and forwarded to list. Copy sent to Matthias Klose <doko@debian.org>. (Sun, 27 Nov 2016 16:21:03 GMT) (full text, mbox, link).


Message #69 received at 845690@bugs.debian.org (full text, mbox, reply):

From: Eric Valette <eric.valette@free.fr>
To: 845690@bugs.debian.org
Subject: Re: Bug#845690: gcc-6: gcc creates unbootable kernel on x86-64
Date: Sun, 27 Nov 2016 17:17:41 +0100
On Sun, 27 Nov 2016 13:39:58 +0100 Matthias Klose <doko@debian.org> wrote:

> The original report talks about a 4.4 problem on , which afaik is superseded in
> unstable by newever versions released after the GCC 6 release.  This is now made
> a binutils RC issue for building a kernel which is not in the archive anymore.
> Please could you validate that the issue exists with the linux package in
> unstable as well?

No, the original report talks about 4.9, and I added the version I 
experimented the problem whith. It probable that any kernel netween 4.4 
and 4.9 will exibit the problem. If it depend on a specific kernel 
option, given the number of reports already, it's a common one.

Grave would be more appropriate : when you screw a kernel, the whole 
system is not working. On headless servers this is kinda problematic.

-- eric





Information forwarded to debian-bugs-dist@lists.debian.org:
Bug#845690; Package binutils. (Sun, 27 Nov 2016 17:39:03 GMT) (full text, mbox, link).


Acknowledgement sent to Matthias Klose <doko@debian.org>:
Extra info received and forwarded to list. (Sun, 27 Nov 2016 17:39:03 GMT) (full text, mbox, link).


Message #74 received at 845690@bugs.debian.org (full text, mbox, reply):

From: Matthias Klose <doko@debian.org>
To: Sven Joachim <svenjoac@gmx.de>
Cc: 845690@bugs.debian.org, Damien Wyart <damien.wyart@gmail.com>, linux@packages.debian.org
Subject: Re: Bug#845690: gcc-6: gcc creates unbootable kernel on x86-64
Date: Sun, 27 Nov 2016 18:34:38 +0100
On 27.11.2016 16:51, Sven Joachim wrote:
> On 2016-11-27 13:39 +0100, Matthias Klose wrote:
> 
>> Control: tags -1 + help moreinfo
>> Control: severity -1 important
>>
>> On 27.11.2016 08:38, Sven Joachim wrote:
>>> Control: reassign -1 binutils 2.27.51.20161124-1
>>> Control: retitle -1 binutils: creates unbootable kernel on x86-64
>>> Control: severity -1 grave
>>>
>>> On 2016-11-26 15:13 +0100, Damien Wyart wrote:
>>>
>>>> After running further tests today, I think this is in fact *not*
>>>> related to gcc but to the kernel itself.
>>>>
>>>> I tested all 6.2.1-X versions as well as gcc-5 (5.4.1-3) and all the
>>>> kernels fail to boot (balck screen just after grub and nothing in the
>>>> logs).
>>>
>>> Same here, downgrading binutils to 2.27.51.20161118-2 helped.  I'm
>>> reassigning the bug and bumping the severity, since several people have
>>> observed the problem.
>>
>> The original report talks about a 4.4 problem on , which afaik is superseded in
>> unstable by newever versions released after the GCC 6 release.  This is now made
>> a binutils RC issue for building a kernel which is not in the archive anymore.
>> Please could you validate that the issue exists with the linux package in
>> unstable as well?
> 
> I have noticed the problem with vanilla Linux 4.8.11 from kernel.org, so
> I suspect the Debian kernel is affected as well.  There is no console
> output at all, the system freezes right when uncompressing the kernel.
> 
> It should be noted that I haven't noticed the problem on my desktop
> (which has a 32-bit userland but a 64-bit kernel) where I have
> CONFIG_KERNEL_GZIP=y, but on my laptop which uses the default
> CONFIG_KERNEL_XZ=y it is reproducible.

if it's really binutils, I prepared a package reverting the fix for PR ld/20815.
Would be nice if somebody could check that out:
https://people.debian.org/~doko/tmp/binutils_2.27.51.20161124-1.1_amd64.deb




Information forwarded to debian-bugs-dist@lists.debian.org, Matthias Klose <doko@debian.org>:
Bug#845690; Package binutils. (Sun, 27 Nov 2016 18:30:02 GMT) (full text, mbox, link).


Acknowledgement sent to Sven Joachim <svenjoac@gmx.de>:
Extra info received and forwarded to list. Copy sent to Matthias Klose <doko@debian.org>. (Sun, 27 Nov 2016 18:30:02 GMT) (full text, mbox, link).


Message #79 received at 845690@bugs.debian.org (full text, mbox, reply):

From: Sven Joachim <svenjoac@gmx.de>
To: Matthias Klose <doko@debian.org>
Cc: 845690@bugs.debian.org, Damien Wyart <damien.wyart@gmail.com>, linux@packages.debian.org
Subject: Re: Bug#845690: gcc-6: gcc creates unbootable kernel on x86-64
Date: Sun, 27 Nov 2016 19:27:45 +0100
On 2016-11-27 18:34 +0100, Matthias Klose wrote:

> On 27.11.2016 16:51, Sven Joachim wrote:
>> On 2016-11-27 13:39 +0100, Matthias Klose wrote:
>> 
>>> Control: tags -1 + help moreinfo
>>> Control: severity -1 important
>>>
>>> On 27.11.2016 08:38, Sven Joachim wrote:
>>>> Control: reassign -1 binutils 2.27.51.20161124-1
>>>> Control: retitle -1 binutils: creates unbootable kernel on x86-64
>>>> Control: severity -1 grave
>>>>
>>>> On 2016-11-26 15:13 +0100, Damien Wyart wrote:
>>>>
>>>>> After running further tests today, I think this is in fact *not*
>>>>> related to gcc but to the kernel itself.
>>>>>
>>>>> I tested all 6.2.1-X versions as well as gcc-5 (5.4.1-3) and all the
>>>>> kernels fail to boot (balck screen just after grub and nothing in the
>>>>> logs).
>>>>
>>>> Same here, downgrading binutils to 2.27.51.20161118-2 helped.  I'm
>>>> reassigning the bug and bumping the severity, since several people have
>>>> observed the problem.
>>>
>>> The original report talks about a 4.4 problem on , which afaik is superseded in
>>> unstable by newever versions released after the GCC 6 release.  This is now made
>>> a binutils RC issue for building a kernel which is not in the archive anymore.
>>> Please could you validate that the issue exists with the linux package in
>>> unstable as well?
>> 
>> I have noticed the problem with vanilla Linux 4.8.11 from kernel.org, so
>> I suspect the Debian kernel is affected as well.  There is no console
>> output at all, the system freezes right when uncompressing the kernel.
>> 
>> It should be noted that I haven't noticed the problem on my desktop
>> (which has a 32-bit userland but a 64-bit kernel) where I have
>> CONFIG_KERNEL_GZIP=y, but on my laptop which uses the default
>> CONFIG_KERNEL_XZ=y it is reproducible.
>
> if it's really binutils, I prepared a package reverting the fix for PR ld/20815.
> Would be nice if somebody could check that out:
> https://people.debian.org/~doko/tmp/binutils_2.27.51.20161124-1.1_amd64.deb

Thanks, that binutils package produces a working kernel here.

Cheers,
       Sven



Information forwarded to debian-bugs-dist@lists.debian.org, Matthias Klose <doko@debian.org>:
Bug#845690; Package binutils. (Sun, 27 Nov 2016 19:30:03 GMT) (full text, mbox, link).


Acknowledgement sent to Peter Keel <bugzilla@discordia.ch>:
Extra info received and forwarded to list. Copy sent to Matthias Klose <doko@debian.org>. (Sun, 27 Nov 2016 19:30:03 GMT) (full text, mbox, link).


Message #84 received at 845690@bugs.debian.org (full text, mbox, reply):

From: Peter Keel <bugzilla@discordia.ch>
To: 845690@bugs.debian.org
Subject: binutils: creates unbootable kernel on x86-64
Date: Sun, 27 Nov 2016 20:17:08 +0100
Hi

Matthias Klose <doko@debian.org> wrote:
> if it's really binutils, I prepared a package reverting the fix for 
> PR ld/20815.
> Would be nice if somebody could check that out:
> https://people.debian.org/~doko/tmp/binutils_2.27.51.20161124-1.1_amd64.deb

Confirm. This indeed works.

Kind Regards
Peter
-- 
"Those who give up essential liberties for temporary safety deserve 
neither liberty nor safety." -- Benjamin Franklin
"It's also true that those who would give up privacy for security are 
likely to end up with neither." -- Bruce Schneier



Information forwarded to debian-bugs-dist@lists.debian.org, Matthias Klose <doko@debian.org>:
Bug#845690; Package binutils. (Mon, 28 Nov 2016 10:30:14 GMT) (full text, mbox, link).


Acknowledgement sent to Meelis Roos <mroos@ut.ee>:
Extra info received and forwarded to list. Copy sent to Matthias Klose <doko@debian.org>. (Mon, 28 Nov 2016 10:30:14 GMT) (full text, mbox, link).


Message #89 received at 845690@bugs.debian.org (full text, mbox, reply):

From: Meelis Roos <mroos@ut.ee>
To: 845690@bugs.debian.org
Subject: Re: Bug#845690: gcc-6: gcc creates unbootable kernel on x86-64
Date: Mon, 28 Nov 2016 14:00:59 +0200 (EET)
binutils 2.27.51.20161127 fixes it for me too.

-- 
Meelis Roos (mroos@ut.ee)      http://www.cs.ut.ee/~mroos/



Information forwarded to debian-bugs-dist@lists.debian.org:
Bug#845690; Package binutils. (Mon, 28 Nov 2016 13:54:14 GMT) (full text, mbox, link).


Acknowledgement sent to Matthias Klose <doko@debian.org>:
Extra info received and forwarded to list. (Mon, 28 Nov 2016 13:54:14 GMT) (full text, mbox, link).


Message #94 received at 845690@bugs.debian.org (full text, mbox, reply):

From: Matthias Klose <doko@debian.org>
To: Sven Joachim <svenjoac@gmx.de>
Cc: 845690@bugs.debian.org, Damien Wyart <damien.wyart@gmail.com>, linux@packages.debian.org
Subject: Re: Bug#845690: gcc-6: gcc creates unbootable kernel on x86-64
Date: Mon, 28 Nov 2016 14:50:38 +0100
On 27.11.2016 19:27, Sven Joachim wrote:
> On 2016-11-27 18:34 +0100, Matthias Klose wrote:
> 
>> On 27.11.2016 16:51, Sven Joachim wrote:
>>> On 2016-11-27 13:39 +0100, Matthias Klose wrote:
>>>
>>>> Control: tags -1 + help moreinfo
>>>> Control: severity -1 important
>>>>
>>>> On 27.11.2016 08:38, Sven Joachim wrote:
>>>>> Control: reassign -1 binutils 2.27.51.20161124-1
>>>>> Control: retitle -1 binutils: creates unbootable kernel on x86-64
>>>>> Control: severity -1 grave
>>>>>
>>>>> On 2016-11-26 15:13 +0100, Damien Wyart wrote:
>>>>>
>>>>>> After running further tests today, I think this is in fact *not*
>>>>>> related to gcc but to the kernel itself.
>>>>>>
>>>>>> I tested all 6.2.1-X versions as well as gcc-5 (5.4.1-3) and all the
>>>>>> kernels fail to boot (balck screen just after grub and nothing in the
>>>>>> logs).
>>>>>
>>>>> Same here, downgrading binutils to 2.27.51.20161118-2 helped.  I'm
>>>>> reassigning the bug and bumping the severity, since several people have
>>>>> observed the problem.
>>>>
>>>> The original report talks about a 4.4 problem on , which afaik is superseded in
>>>> unstable by newever versions released after the GCC 6 release.  This is now made
>>>> a binutils RC issue for building a kernel which is not in the archive anymore.
>>>> Please could you validate that the issue exists with the linux package in
>>>> unstable as well?
>>>
>>> I have noticed the problem with vanilla Linux 4.8.11 from kernel.org, so
>>> I suspect the Debian kernel is affected as well.  There is no console
>>> output at all, the system freezes right when uncompressing the kernel.
>>>
>>> It should be noted that I haven't noticed the problem on my desktop
>>> (which has a 32-bit userland but a 64-bit kernel) where I have
>>> CONFIG_KERNEL_GZIP=y, but on my laptop which uses the default
>>> CONFIG_KERNEL_XZ=y it is reproducible.
>>
>> if it's really binutils, I prepared a package reverting the fix for PR ld/20815.
>> Would be nice if somebody could check that out:
>> https://people.debian.org/~doko/tmp/binutils_2.27.51.20161124-1.1_amd64.deb
> 
> Thanks, that binutils package produces a working kernel here.

please could you check again with
https://people.debian.org/~doko/tmp/binutils_2.27.51.20161127-1.1_amd64.deb
having the suggested fix proposed at
https://sourceware.org/ml/binutils/2016-11/msg00348.html




Information forwarded to debian-bugs-dist@lists.debian.org, Matthias Klose <doko@debian.org>:
Bug#845690; Package binutils. (Mon, 28 Nov 2016 16:39:03 GMT) (full text, mbox, link).


Acknowledgement sent to Sven Joachim <svenjoac@gmx.de>:
Extra info received and forwarded to list. Copy sent to Matthias Klose <doko@debian.org>. (Mon, 28 Nov 2016 16:39:03 GMT) (full text, mbox, link).


Message #99 received at 845690@bugs.debian.org (full text, mbox, reply):

From: Sven Joachim <svenjoac@gmx.de>
To: Matthias Klose <doko@debian.org>
Cc: 845690@bugs.debian.org, Damien Wyart <damien.wyart@gmail.com>, linux@packages.debian.org
Subject: Re: Bug#845690: gcc-6: gcc creates unbootable kernel on x86-64
Date: Mon, 28 Nov 2016 17:36:03 +0100
On 2016-11-28 14:50 +0100, Matthias Klose wrote:

> please could you check again with
> https://people.debian.org/~doko/tmp/binutils_2.27.51.20161127-1.1_amd64.deb
> having the suggested fix proposed at
> https://sourceware.org/ml/binutils/2016-11/msg00348.html

Works for me, thanks. :-)

Cheers,
       Sven



Information forwarded to debian-bugs-dist@lists.debian.org, Matthias Klose <doko@debian.org>:
Bug#845690; Package binutils. (Mon, 28 Nov 2016 17:57:06 GMT) (full text, mbox, link).


Acknowledgement sent to eric.valette@free.fr:
Extra info received and forwarded to list. Copy sent to Matthias Klose <doko@debian.org>. (Mon, 28 Nov 2016 17:57:06 GMT) (full text, mbox, link).


Message #104 received at 845690@bugs.debian.org (full text, mbox, reply):

From: Eric Valette <eric.valette@free.fr>
To: 845690@bugs.debian.org
Subject: Re: Bug#845690: gcc-6: gcc creates unbootable kernel on x86-64
Date: Mon, 28 Nov 2016 18:56:33 +0100
On Mon, 28 Nov 2016 14:00:59 +0200 (EET) Meelis Roos <mroos@ut.ee> wrote:
>
> binutils 2.27.51.20161127 fixes it for me too.

Works for me too. Did not try -1.1 but at least same cause so probably 
same fix.

--eric



Information forwarded to debian-bugs-dist@lists.debian.org, Matthias Klose <doko@debian.org>:
Bug#845690; Package binutils. (Tue, 29 Nov 2016 05:57:04 GMT) (full text, mbox, link).


Acknowledgement sent to Jacek Kawa <jacek.kawa@gmail.com>:
Extra info received and forwarded to list. Copy sent to Matthias Klose <doko@debian.org>. (Tue, 29 Nov 2016 05:57:04 GMT) (full text, mbox, link).


Message #109 received at 845690@bugs.debian.org (full text, mbox, reply):

From: Jacek Kawa <jacek.kawa@gmail.com>
To: 845690@bugs.debian.org
Subject: Re: Bug#845690: gcc-6: gcc creates unbootable kernel on x86-64
Date: Tue, 29 Nov 2016 06:53:43 +0100
Eric Valette wrote:

> On Mon, 28 Nov 2016 14:00:59 +0200 (EET) Meelis Roos <mroos@ut.ee> wrote:
> > 
> > binutils 2.27.51.20161127 fixes it for me too.
> 
> Works for me too. Did not try -1.1 but at least same cause so probably same
> fix.

For what is worth I can confirm the -1.1 version fixes my problem with 
compiling 4.8.x kernels using gcc 5.4.1-3.

Earlier, in a series of compilations I was able to pinpoint the bug to the 
binutils_2.27.51.20161124-1_amd64.deb and found the binutils_2.27.51.20161118-2_amd64.deb 
as the latest working.

Thanks!

-- 
Jacek Kawa



Reply sent to Matthias Klose <doko@debian.org>:
You have taken responsibility. (Thu, 01 Dec 2016 15:51:06 GMT) (full text, mbox, link).


Notification sent to Meelis Roos <mroos@linux.ee>:
Bug acknowledged by developer. (Thu, 01 Dec 2016 15:51:07 GMT) (full text, mbox, link).


Message #114 received at 845690-close@bugs.debian.org (full text, mbox, reply):

From: Matthias Klose <doko@debian.org>
To: 845690-close@bugs.debian.org
Subject: Bug#845690: fixed in binutils 2.27.51.20161201-1
Date: Thu, 01 Dec 2016 15:48:57 +0000
Source: binutils
Source-Version: 2.27.51.20161201-1

We believe that the bug you reported is fixed in the latest version of
binutils, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 845690@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Matthias Klose <doko@debian.org> (supplier of updated binutils package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@ftp-master.debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Format: 1.8
Date: Thu, 01 Dec 2016 15:55:10 +0100
Source: binutils
Binary: binutils binutils-dev binutils-multiarch binutils-multiarch-dev binutils-hppa64-linux-gnu binutils-doc binutils-source binutils-s390x-linux-gnu binutils-powerpc64le-linux-gnu binutils-powerpc-linux-gnu binutils-aarch64-linux-gnu binutils-arm-linux-gnueabihf binutils-arm-linux-gnueabi binutils-mips-linux-gnu binutils-mipsel-linux-gnu binutils-alpha-linux-gnu binutils-hppa-linux-gnu binutils-m68k-linux-gnu binutils-mips64-linux-gnuabi64 binutils-mips64el-linux-gnuabi64 binutils-powerpc-linux-gnuspe binutils-powerpc64-linux-gnu binutils-sh4-linux-gnu binutils-sparc64-linux-gnu binutils-mips64-linux-gnuabin32 binutils-mips64el-linux-gnuabin32
Architecture: source
Version: 2.27.51.20161201-1
Distribution: unstable
Urgency: medium
Maintainer: Matthias Klose <doko@debian.org>
Changed-By: Matthias Klose <doko@debian.org>
Description:
 binutils   - GNU assembler, linker and binary utilities
 binutils-aarch64-linux-gnu - GNU binary utilities, for aarch64-linux-gnu target
 binutils-alpha-linux-gnu - GNU binary utilities, for alpha-linux-gnu target
 binutils-arm-linux-gnueabi - GNU binary utilities, for arm-linux-gnueabi target
 binutils-arm-linux-gnueabihf - GNU binary utilities, for arm-linux-gnueabihf target
 binutils-dev - GNU binary utilities (BFD development files)
 binutils-doc - Documentation for the GNU assembler, linker and binary utilities
 binutils-hppa-linux-gnu - GNU binary utilities, for hppa-linux-gnu target
 binutils-hppa64-linux-gnu - GNU assembler, linker and binary utilities targeted for hppa64-li
 binutils-m68k-linux-gnu - GNU binary utilities, for m68k-linux-gnu target
 binutils-mips-linux-gnu - GNU binary utilities, for mips-linux-gnu target
 binutils-mips64-linux-gnuabi64 - GNU binary utilities, for mips64-linux-gnuabi64 target
 binutils-mips64-linux-gnuabin32 - GNU binary utilities, for mips64-linux-gnuabin32 target
 binutils-mips64el-linux-gnuabi64 - GNU binary utilities, for mips64el-linux-gnuabi64 target
 binutils-mips64el-linux-gnuabin32 - GNU binary utilities, for mips64el-linux-gnuabin32 target
 binutils-mipsel-linux-gnu - GNU binary utilities, for mipsel-linux-gnu target
 binutils-multiarch - Binary utilities that support multi-arch targets
 binutils-multiarch-dev - GNU binary utilities that support multi-arch targets (BFD develop
 binutils-powerpc-linux-gnu - GNU binary utilities, for powerpc-linux-gnu target
 binutils-powerpc-linux-gnuspe - GNU binary utilities, for powerpc-linux-gnuspe target
 binutils-powerpc64-linux-gnu - GNU binary utilities, for powerpc64-linux-gnu target
 binutils-powerpc64le-linux-gnu - GNU binary utilities, for powerpc64le-linux-gnu target
 binutils-s390x-linux-gnu - GNU binary utilities, for s390x-linux-gnu target
 binutils-sh4-linux-gnu - GNU binary utilities, for sh4-linux-gnu target
 binutils-source - GNU assembler, linker and binary utilities (source)
 binutils-sparc64-linux-gnu - GNU binary utilities, for sparc64-linux-gnu target
Closes: 845690
Changes:
 binutils (2.27.51.20161201-1) unstable; urgency=medium
 .
   * New upstream snapshot, taken from the trunk.
     - Update PR ld/20815 (closes: #845690).
     - Fix PR ld/20868 (AArch64), PR ld/16720 (mips), PR binutils/20891,
       PR binutils/20892, PR ld/20886 (PPC64), PR gas/20895, PR binutils/20637,
       PR binutils/20893.
Checksums-Sha1:
 fcb5d41e5db6b97f3ae6827c7b52e7ae605cf13e 4406 binutils_2.27.51.20161201-1.dsc
 bef1ba297829bc1428fc7835b3da42b369b258a9 32979543 binutils_2.27.51.20161201.orig.tar.gz
 589f98480eee2c47ff21a7150ca04df448668e6f 89049 binutils_2.27.51.20161201-1.diff.gz
Checksums-Sha256:
 7a61b451f10ea7b2c28627fad625269bd0bd664300cc1e9a88218b25f1bdc003 4406 binutils_2.27.51.20161201-1.dsc
 917428442e8ed6b81f16f452ba7309e1cc460575928a367bef4b88a8fbcc1b8d 32979543 binutils_2.27.51.20161201.orig.tar.gz
 f7a921f123ee0fda8743dc40aaa05b17dd9fb6bdd26c1acda528feb85376315b 89049 binutils_2.27.51.20161201-1.diff.gz
Files:
 1ed8df016c874755d614ccbbcffbaebb 4406 devel optional binutils_2.27.51.20161201-1.dsc
 f3beaf582241378a412b3ebe59279ac8 32979543 devel optional binutils_2.27.51.20161201.orig.tar.gz
 b5631da2017ef0ac9f46c413e9378d64 89049 devel optional binutils_2.27.51.20161201-1.diff.gz

-----BEGIN PGP SIGNATURE-----

iQJEBAEBCAAuFiEE1WVxuIqLuvFAv2PWvX6qYHePpvUFAlhAO4AQHGRva29AZGVi
aWFuLm9yZwAKCRC9fqpgd4+m9RG1EADRP3T9sxTXnE+mQb7s+bURX6weXky/aPlg
RM4NzGX6wwcl9PMN9fmPuQ3y3C8wKL8dz/d3orqaPwUrn73QeF7DoYuuYe1dMyHq
Xq4ymBliU2VIY5Z4UhwxcJBvlEBGbutPjkgq6lEvkrJ3Lz4geZmlKYJmxH2qEgsa
hAjRpt3gG520KSZYxZruHnU3sBc1oYEi3vwtcq5eQCbB3a3qCm3cdCp1henPGFVd
9fKD68sxsscejtHXqNiOyKTDKyPvnrDo+GABX9F5Egacok0h5TmJLq/JJbJYMcMf
0rLcAU3Kq9UvwXwCPufLvU13lUtDliM5B9cTECerFA2oSb/oYC/pIgzdtS2ruzZr
ExW+FJIsf6AH95q91n10BZJ3fe+X4VVQPfDYnNWCjh+NcUgSgOcBdQlL/cfoBg42
5rR7Uhp78Itfe9ZsJ86Ds1isw4pOxUBmS7K4Fo93WYMU0y92z/gt8S+MB07YOC2R
RRoeJ5+tl8yOe1oEpmuAiVJ7bYFYT3HQ3SgGJQYMAsUEdDG+3BXzwmyw92xbbz+U
MtJNdoMSf0VVVQ/Gn0zHVFsxNE/nQFzB7+hjFonzjWLZEiM7rrGp+eV4YERSSNPP
j1B5pzHphoD7l+XY1GmCYbVQeZjk/3WVQXVL35i+Jj8ZhAwrsJ0Vgh9MM6za11qy
85FwUtK/ZA==
=kPrl
-----END PGP SIGNATURE-----




Bug archived. Request was from Debbugs Internal Request <owner@bugs.debian.org> to internal_control@bugs.debian.org. (Fri, 27 Jan 2017 11:48:30 GMT) (full text, mbox, link).


Send a report that this bug log contains spam.


Debian bug tracking system administrator <owner@bugs.debian.org>. Last modified: Sat Jan 6 18:40:12 2018; Machine Name: beach

Debian Bug tracking system

Debbugs is free software and licensed under the terms of the GNU Public License version 2. The current version can be obtained from https://bugs.debian.org/debbugs-source/.

Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.