Debian Bug report logs - #835148
gcc-6: please enable PIE hardening flags by default on amd64 ppc64el and s390x

version graph

Package: gcc-6; Maintainer for gcc-6 is (unknown);

Reported by: Balint Reczey <balint@balintreczey.hu>

Date: Mon, 22 Aug 2016 22:27:07 UTC

Severity: wishlist

Tags: patch

Found in version gcc-6/6.1.1-12

Fixed in version gcc-6/6.2.0-7

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, Debian GCC Maintainers <debian-gcc@lists.debian.org>:
Bug#835148; Package gcc-6. (Mon, 22 Aug 2016 22:27:11 GMT) (full text, mbox, link).


Acknowledgement sent to Balint Reczey <balint@balintreczey.hu>:
New Bug report received and forwarded. Copy sent to Debian GCC Maintainers <debian-gcc@lists.debian.org>. (Mon, 22 Aug 2016 22:27:11 GMT) (full text, mbox, link).


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

From: Balint Reczey <balint@balintreczey.hu>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: gcc-6: please enable PIE hardening flags by default on amd64 ppc64el and s390x
Date: Tue, 23 Aug 2016 00:25:30 +0200
[Message part 1 (text/plain, inline)]
Package: gcc-6
Version: 6.1.1-12
Severity: wishlist
Tags: patch

Dear Matthias,

As a continuation of the discussions [1][2] on debian-devel I'm
attaching the simple patch that implements enabling the PIE
hardening flags for a subset of the architectures.

I'm open to changing the subset, it matches the set selected in Ubuntu
as a start, but porters may have different preferences [2].

I'm continuing with a full archive rebuild to see the amount of packages
to be updated for the change in the default flags.

The same patch applies to gcc-5, too, if it does not get removed
from the archive before the patch is accepted for gcc-6.

Cheers,
Balint

[1] https://lists.debian.org/debian-devel/2016/05/msg00228.html
[2] https://lists.debian.org/debian-devel/2016/08/msg00324.html

[0001-Enable-PIE-on-Debian-for-amd64-ppc64el-and-s390x.patch (text/x-patch, attachment)]

Added indication that bug 835148 blocks 835149 Request was from Bálint Réczey <balint@balintreczey.hu> to control@bugs.debian.org. (Mon, 22 Aug 2016 22:42:04 GMT) (full text, mbox, link).


Reply sent to Alastair McKinstry <mckinstry@debian.org>:
You have taken responsibility. (Fri, 16 Sep 2016 10:21:17 GMT) (full text, mbox, link).


Notification sent to Balint Reczey <balint@balintreczey.hu>:
Bug acknowledged by developer. (Fri, 16 Sep 2016 10:21:17 GMT) (full text, mbox, link).


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

From: Alastair McKinstry <mckinstry@debian.org>
To: 835148-close@bugs.debian.org
Subject: Bug#835148: fixed in open-coarrays 1.7.0-2
Date: Fri, 16 Sep 2016 10:16:42 +0000
Source: open-coarrays
Source-Version: 1.7.0-2

We believe that the bug you reported is fixed in the latest version of
open-coarrays, 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 835148@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Alastair McKinstry <mckinstry@debian.org> (supplier of updated open-coarrays 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: Wed, 14 Sep 2016 16:04:04 +0100
Source: open-coarrays
Binary: libcoarrays-dev libcoarrays0d open-coarrays-bin
Architecture: source amd64
Version: 1.7.0-2
Distribution: unstable
Urgency: medium
Maintainer: Alastair McKinstry <mckinstry@debian.org>
Changed-By: Alastair McKinstry <mckinstry@debian.org>
Description:
 libcoarrays-dev - Co-Array Fortran libraries for gfortran - development files
 libcoarrays0d - Co-Array Fortran libraries for gfortran
 open-coarrays-bin - Executables for running Co-Array Fortran programs
Closes: 835148
Changes:
 open-coarrays (1.7.0-2) unstable; urgency=medium
 .
   * Set debhelper dependency to >= 10.
   * Don't link against static lib in navier_stokes test, breaks -fPIE,
     bindow. Closes: #835148
   * disable alpha, powerpc tests again. Still buggy.
Checksums-Sha1:
 c9c3da8177b6ecf292fb249395accace75bba37b 1939 open-coarrays_1.7.0-2.dsc
 72b830ba55cc25429cf8b0f405f800c876afc71a 6404 open-coarrays_1.7.0-2.debian.tar.xz
 b962f42c575d249f6cce9f6796c77bd728321ce6 44484 libcoarrays-dev_1.7.0-2_amd64.deb
 9a5f8a4fc79cff8fb80444502585586efaa140ce 47002 libcoarrays0d-dbgsym_1.7.0-2_amd64.deb
 4959895910a5bce9eea40b7909a3413b3efa18a7 22214 libcoarrays0d_1.7.0-2_amd64.deb
 f997d387cfa5e9bd2153e425bfab08b0c30d10b4 7408 open-coarrays-bin_1.7.0-2_amd64.deb
Checksums-Sha256:
 9bedfe7a692a4ca2864ab2d1e4d08cc3c49bc8f64ed58d9d2f1be1ba1cfca763 1939 open-coarrays_1.7.0-2.dsc
 0ca9ab622346ba0c8c1d6ed04a9624dfc21fcd5d5639c1219812acda79a99ae6 6404 open-coarrays_1.7.0-2.debian.tar.xz
 ae4728377807e1953e86a5eafd36b538c9f6af0075f541b750eb3ce437b58c75 44484 libcoarrays-dev_1.7.0-2_amd64.deb
 408895a8228e83b1e19e87ec1c9a6d82fae88fba27000a37eab575cc78327f6c 47002 libcoarrays0d-dbgsym_1.7.0-2_amd64.deb
 fc7e787e12ca6eb0697bd1e269efef3bbf177264ed8fce522b58b3735fd35d29 22214 libcoarrays0d_1.7.0-2_amd64.deb
 3ff1c1e3751320ef343439a8a385561b66878f818c44a992181aa99a222fa9a0 7408 open-coarrays-bin_1.7.0-2_amd64.deb
Files:
 8cb9eadfcba33a4c52b73f14194e9863 1939 utils optional open-coarrays_1.7.0-2.dsc
 d3b5298aa144dccb93b869bdb80497b3 6404 utils optional open-coarrays_1.7.0-2.debian.tar.xz
 bcb19180d0b65289b50a5b42cab45df6 44484 libdevel optional libcoarrays-dev_1.7.0-2_amd64.deb
 e629408ece072f88cc94a363d7f01edb 47002 debug extra libcoarrays0d-dbgsym_1.7.0-2_amd64.deb
 1591af1bc661de9c661a54ab637e8a1e 22214 libs optional libcoarrays0d_1.7.0-2_amd64.deb
 294329fdcbd1c40ef27f5127eb56d1aa 7408 utils optional open-coarrays-bin_1.7.0-2_amd64.deb

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

iQIcBAEBCAAGBQJX2XPYAAoJEMvmu05dmtOlrq0P/RVkM8kXgEgF/NsoV9W7zeLE
8JmG5SoeioV13bLau+SitHxjQ5gO15uQBh6/LxG8fMmAaePA4+mjZdAHEPQ2Qcg/
3sU0HNdcHSlIL2gzGQX+5UCrbin8Qphshe0DAs7tCFL+WDweJPFzbq9HqoSL5f50
DOV8wnmpxSvJgkHGCs8TZxkpELEekgjoKhUaeK5rKXLS7tbtyxS8qN+a8KpqHEaW
kpWi6Z7LiDeMBeOWm1ruTys/RN0LJ3d9PAtJ+Z8nmB27Qt30RrN0eFvEc227ZjS3
bMr8k0wVzLeRzkDS9+/GOgjdSSQdD/8pA0kVPDc4UW/MHSeTHZDigLUtNL4A4tDX
CIBT4VOu6owlueWnZWJOKhNANmAxXIQN/AAij/lGRxr0ygJNt0yt+oUzsn9WKitT
ef50bhq8uNQUtr47D5KLtjJsvurRArVe/dWhvGxG2v9gzOnDvixCJgAUXqLW1/Cz
ddheskrYV8mEijEvak1MghOoKnwxu0BQ/8yiXB9gh7b71vSa9Snj9PEd6Rk/JVaV
S1JhMw+Ndy3nC1Mb2nPm9w/iMFIF+70nBl6Nzvk6zPRBJQZAEN/8rP2El/0ns3R0
KZHMa3JOBGOQ2DNaaDCf0XAc64TCuCv1dK3K3n8I047p2trC2Gsw8Ub5Yq1EylDu
g3QlVCeDPocrsuVN8Z2x
=uUvx
-----END PGP SIGNATURE-----




No longer marked as fixed in versions open-coarrays/1.7.0-2. Request was from Bálint Réczey <balint@balintreczey.hu> to control@bugs.debian.org. (Fri, 16 Sep 2016 13:03:18 GMT) (full text, mbox, link).


Bug reopened Request was from Bálint Réczey <balint@balintreczey.hu> to control@bugs.debian.org. (Fri, 16 Sep 2016 13:21:03 GMT) (full text, mbox, link).


Information forwarded to debian-bugs-dist@lists.debian.org, Debian GCC Maintainers <debian-gcc@lists.debian.org>:
Bug#835148; Package gcc-6. (Mon, 10 Oct 2016 05:51:03 GMT) (full text, mbox, link).


Acknowledgement sent to Niels Thykier <niels@thykier.net>:
Extra info received and forwarded to list. Copy sent to Debian GCC Maintainers <debian-gcc@lists.debian.org>. (Mon, 10 Oct 2016 05:51:03 GMT) (full text, mbox, link).


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

From: Niels Thykier <niels@thykier.net>
To: 835148@bugs.debian.org
Cc: Balint Reczey <balint@balintreczey.hu>, debian-release <debian-release@lists.debian.org>
Subject: Re: gcc-6: please enable PIE hardening flags by default on amd64 ppc64el and s390x
Date: Mon, 10 Oct 2016 05:49:00 +0000
On Tue, 23 Aug 2016 00:25:30 +0200 Balint Reczey
<balint@balintreczey.hu> wrote:
> Package: gcc-6
> Version: 6.1.1-12
> Severity: wishlist
> Tags: patch
> 
> Dear Matthias,
> 
> As a continuation of the discussions [1][2] on debian-devel I'm
> attaching the simple patch that implements enabling the PIE
> hardening flags for a subset of the architectures.
> 
> I'm open to changing the subset, it matches the set selected in Ubuntu
> as a start, but porters may have different preferences [2].
> 
> I'm continuing with a full archive rebuild to see the amount of packages
> to be updated for the change in the default flags.
> 
> The same patch applies to gcc-5, too, if it does not get removed
> from the archive before the patch is accepted for gcc-6.
> 
> Cheers,
> Balint
> 
> [1] https://lists.debian.org/debian-devel/2016/05/msg00228.html
> [2] https://lists.debian.org/debian-devel/2016/08/msg00324.html
> 

Hi,

As per [1], please enable PIE by default on the following architectures:


 * amd64
 * arm64
 * armel
 * armhf
 * i386
 * mips
 * mips64el
 * mipsel
 * ppc64el
 * s390x

All of these architectures (except amd64+i386 with porter waivers) had
at least 2 porters supporting PIE.

Thanks,
~Niels

[1]
https://lists.debian.org/<2c67a60f-2bbb-2f4e-2ad3-cd9978fb5af0@thykier.net>



Added indication that bug 835148 blocks 837658 Request was from Graham Inggs <ginggs@debian.org> to control@bugs.debian.org. (Tue, 11 Oct 2016 08:09:09 GMT) (full text, mbox, link).


Reply sent to Matthias Klose <doko@debian.org>:
You have taken responsibility. (Tue, 18 Oct 2016 13:27:03 GMT) (full text, mbox, link).


Notification sent to Balint Reczey <balint@balintreczey.hu>:
Bug acknowledged by developer. (Tue, 18 Oct 2016 13:27:03 GMT) (full text, mbox, link).


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

From: Matthias Klose <doko@debian.org>
To: 835148-close@bugs.debian.org
Subject: Bug#835148: fixed in gcc-6 6.2.0-7
Date: Tue, 18 Oct 2016 13:24:16 +0000
Source: gcc-6
Source-Version: 6.2.0-7

We believe that the bug you reported is fixed in the latest version of
gcc-6, 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 835148@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 gcc-6 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: Tue, 18 Oct 2016 13:53:00 +0200
Source: gcc-6
Binary: gcc-6-base libgcc1 libgcc1-dbg libgcc2 libgcc2-dbg libgcc-6-dev libgcc4 libgcc4-dbg lib64gcc1 lib64gcc1-dbg lib64gcc-6-dev lib32gcc1 lib32gcc1-dbg lib32gcc-6-dev libn32gcc1 libn32gcc1-dbg libn32gcc-6-dev libx32gcc1 libx32gcc1-dbg libx32gcc-6-dev gcc-6 gcc-6-multilib gcc-6-test-results gcc-6-plugin-dev gcc-6-hppa64-linux-gnu cpp-6 gcc-6-locales g++-6 g++-6-multilib libgomp1 libgomp1-dbg lib32gomp1 lib32gomp1-dbg lib64gomp1 lib64gomp1-dbg libn32gomp1 libn32gomp1-dbg libx32gomp1 libx32gomp1-dbg libitm1 libitm1-dbg lib32itm1 lib32itm1-dbg lib64itm1 lib64itm1-dbg libx32itm1 libx32itm1-dbg libatomic1 libatomic1-dbg lib32atomic1 lib32atomic1-dbg lib64atomic1 lib64atomic1-dbg libn32atomic1 libn32atomic1-dbg libx32atomic1 libx32atomic1-dbg libasan3 libasan3-dbg lib32asan3 lib32asan3-dbg lib64asan3 lib64asan3-dbg libx32asan3 libx32asan3-dbg liblsan0 liblsan0-dbg lib32lsan0 lib32lsan0-dbg libx32lsan0 libx32lsan0-dbg libtsan0 libtsan0-dbg libubsan0 libubsan0-dbg lib32ubsan0
 lib32ubsan0-dbg lib64ubsan0 lib64ubsan0-dbg libx32ubsan0 libx32ubsan0-dbg libcilkrts5 libcilkrts5-dbg lib32cilkrts5 lib32cilkrts5-dbg lib64cilkrts5 lib64cilkrts5-dbg libx32cilkrts5 libx32cilkrts5-dbg libmpx2 libmpx2-dbg lib32mpx2 lib32mpx2-dbg lib64mpx2 lib64mpx2-dbg libquadmath0 libquadmath0-dbg lib32quadmath0 lib32quadmath0-dbg lib64quadmath0 lib64quadmath0-dbg libx32quadmath0 libx32quadmath0-dbg libcc1-0 libgccjit0 libgccjit0-dbg libgccjit-6-doc libgccjit-6-dev gobjc++-6 gobjc++-6-multilib gobjc-6 gobjc-6-multilib libobjc-6-dev lib64objc-6-dev lib32objc-6-dev libn32objc-6-dev libx32objc-6-dev libobjc4 libobjc4-dbg lib64objc4 lib64objc4-dbg lib32objc4 lib32objc4-dbg libn32objc4 libn32objc4-dbg libx32objc4 libx32objc4-dbg gfortran-6 gfortran-6-multilib libgfortran-6-dev lib64gfortran-6-dev lib32gfortran-6-dev libn32gfortran-6-dev libx32gfortran-6-dev libgfortran3 libgfortran3-dbg lib64gfortran3 lib64gfortran3-dbg lib32gfortran3 lib32gfortran3-dbg libn32gfortran3
 libn32gfortran3-dbg libx32gfortran3 libx32gfortran3-dbg gccgo-6 gccgo-6-multilib libgo9 libgo9-dbg lib64go9 lib64go9-dbg lib32go9 lib32go9-dbg libn32go9 libn32go9-dbg libx32go9 libx32go9-dbg gcj-6 gcj-6-jdk gcj-6-jre-headless gcj-6-jre libgcj17 gcj-6-jre-lib libgcj17-awt libgcj17-dev libgcj17-dbg gcj-6-source libgcj-doc libstdc++6 lib32stdc++6 lib64stdc++6 libn32stdc++6 libx32stdc++6 libstdc++-6-dev libstdc++-6-pic libstdc++6-6-dbg lib32stdc++-6-dev lib32stdc++6-6-dbg lib64stdc++-6-dev lib64stdc++6-6-dbg libn32stdc++-6-dev libn32stdc++6-6-dbg libx32stdc++-6-dev libx32stdc++6-6-dbg libstdc++-6-doc gnat-6 gnat-6-sjlj libgnat-6 libgnat-6-dbg libgnatvsn6-dev libgnatvsn6 libgnatvsn6-dbg libgnatprj6-dev libgnatprj6 libgnatprj6-dbg gdc-6 gdc-6-multilib libphobos-6-dev lib64phobos-6-dev lib32phobos-6-dev libx32phobos-6-dev fixincludes
 gcc-6-source
Architecture: source
Version: 6.2.0-7
Distribution: unstable
Urgency: medium
Maintainer: Debian GCC Maintainers <debian-gcc@lists.debian.org>
Changed-By: Matthias Klose <doko@debian.org>
Description:
 cpp-6      - GNU C preprocessor
 fixincludes - Fix non-ANSI header files
 g++-6      - GNU C++ compiler
 g++-6-multilib - GNU C++ compiler (multilib support)
 gcc-6      - GNU C compiler
 gcc-6-base - GCC, the GNU Compiler Collection (base package)
 gcc-6-hppa64-linux-gnu - GNU C compiler (cross compiler for hppa64)
 gcc-6-locales - GCC, the GNU compiler collection (native language support files)
 gcc-6-multilib - GNU C compiler (multilib support)
 gcc-6-plugin-dev - Files for GNU GCC plugin development.
 gcc-6-source - Source of the GNU Compiler Collection
 gcc-6-test-results - Test results for the GCC test suite
 gccgo-6    - GNU Go compiler
 gccgo-6-multilib - GNU Go compiler (multilib support)
 gcj-6      - GCJ byte code and native compiler for Java(TM)
 gcj-6-jdk  - GCJ and Classpath development tools for Java(TM)
 gcj-6-jre  - Java runtime environment using GIJ/Classpath
 gcj-6-jre-headless - Java runtime environment using GIJ/Classpath (headless version)
 gcj-6-jre-lib - Java runtime library for use with gcj (jar files)
 gcj-6-source - GCJ java sources for use in IDEs like eclipse and netbeans
 gdc-6      - GNU D compiler (version 2)
 gdc-6-multilib - GNU D compiler (version 2, multilib support)
 gfortran-6 - GNU Fortran compiler
 gfortran-6-multilib - GNU Fortran compiler (multilib support)
 gnat-6     - GNU Ada compiler
 gnat-6-sjlj - GNU Ada compiler (setjump/longjump runtime library)
 gobjc++-6  - GNU Objective-C++ compiler
 gobjc++-6-multilib - GNU Objective-C++ compiler (multilib support)
 gobjc-6    - GNU Objective-C compiler
 gobjc-6-multilib - GNU Objective-C compiler (multilib support)
 lib32asan3 - AddressSanitizer -- a fast memory error detector (32bit)
 lib32asan3-dbg - AddressSanitizer -- a fast memory error detector (32 bit debug sy
 lib32atomic1 - support library providing __atomic built-in functions (32bit)
 lib32atomic1-dbg - support library providing __atomic built-in functions (32 bit deb
 lib32cilkrts5 - Intel Cilk Plus language extensions (32bit)
 lib32cilkrts5-dbg - Intel Cilk Plus language extensions (32 bit debug symbols)
 lib32gcc-6-dev - GCC support library (32 bit development files)
 lib32gcc1  - GCC support library (32 bit Version)
 lib32gcc1-dbg - GCC support library (debug symbols)
 lib32gfortran-6-dev - Runtime library for GNU Fortran applications (32bit development f
 lib32gfortran3 - Runtime library for GNU Fortran applications (32bit)
 lib32gfortran3-dbg - Runtime library for GNU Fortran applications (32 bit debug symbol
 lib32go9   - Runtime library for GNU Go applications (32bit)
 lib32go9-dbg - Runtime library for GNU Go applications (32 bit debug symbols)
 lib32gomp1 - GCC OpenMP (GOMP) support library (32bit)
 lib32gomp1-dbg - GCC OpenMP (GOMP) support library (32 bit debug symbols)
 lib32itm1  - GNU Transactional Memory Library (32bit)
 lib32itm1-dbg - GNU Transactional Memory Library (32 bit debug symbols)
 lib32lsan0 - LeakSanitizer -- a memory leak detector (32bit)
 lib32lsan0-dbg - LeakSanitizer -- a memory leak detector (32 bit debug symbols)
 lib32mpx2  - Intel memory protection extensions (32bit)
 lib32mpx2-dbg - Intel memory protection extensions (32 bit debug symbols)
 lib32objc-6-dev - Runtime library for GNU Objective-C applications (32bit developme
 lib32objc4 - Runtime library for GNU Objective-C applications (32bit)
 lib32objc4-dbg - Runtime library for GNU Objective-C applications (32 bit debug sy
 lib32phobos-6-dev - Phobos D standard library (64bit development files)
 lib32quadmath0 - GCC Quad-Precision Math Library (32bit)
 lib32quadmath0-dbg - GCC Quad-Precision Math Library (32 bit debug symbols)
 lib32stdc++-6-dev - GNU Standard C++ Library v3 (development files)
 lib32stdc++6 - GNU Standard C++ Library v3 (32 bit Version)
 lib32stdc++6-6-dbg - GNU Standard C++ Library v3 (debugging files)
 lib32ubsan0 - UBSan -- undefined behaviour sanitizer (32bit)
 lib32ubsan0-dbg - UBSan -- undefined behaviour sanitizer (32 bit debug symbols)
 lib64asan3 - AddressSanitizer -- a fast memory error detector (64bit)
 lib64asan3-dbg - AddressSanitizer -- a fast memory error detector (64bit debug sym
 lib64atomic1 - support library providing __atomic built-in functions (64bit)
 lib64atomic1-dbg - support library providing __atomic built-in functions (64bit debu
 lib64cilkrts5 - Intel Cilk Plus language extensions (64bit)
 lib64cilkrts5-dbg - Intel Cilk Plus language extensions (64bit debug symbols)
 lib64gcc-6-dev - GCC support library (64bit development files)
 lib64gcc1  - GCC support library (64bit)
 lib64gcc1-dbg - GCC support library (debug symbols)
 lib64gfortran-6-dev - Runtime library for GNU Fortran applications (64bit development f
 lib64gfortran3 - Runtime library for GNU Fortran applications (64bit)
 lib64gfortran3-dbg - Runtime library for GNU Fortran applications (64bit debug symbols
 lib64go9   - Runtime library for GNU Go applications (64bit)
 lib64go9-dbg - Runtime library for GNU Go applications (64bit debug symbols)
 lib64gomp1 - GCC OpenMP (GOMP) support library (64bit)
 lib64gomp1-dbg - GCC OpenMP (GOMP) support library (64bit debug symbols)
 lib64itm1  - GNU Transactional Memory Library (64bit)
 lib64itm1-dbg - GNU Transactional Memory Library (64bit debug symbols)
 lib64mpx2  - Intel memory protection extensions (64bit)
 lib64mpx2-dbg - Intel memory protection extensions (64bit debug symbols)
 lib64objc-6-dev - Runtime library for GNU Objective-C applications (64bit developme
 lib64objc4 - Runtime library for GNU Objective-C applications (64bit)
 lib64objc4-dbg - Runtime library for GNU Objective-C applications (64 bit debug sy
 lib64phobos-6-dev - Phobos D standard library (64bit development files)
 lib64quadmath0 - GCC Quad-Precision Math Library  (64bit)
 lib64quadmath0-dbg - GCC Quad-Precision Math Library  (64bit debug symbols)
 lib64stdc++-6-dev - GNU Standard C++ Library v3 (development files)
 lib64stdc++6 - GNU Standard C++ Library v3 (64bit)
 lib64stdc++6-6-dbg - GNU Standard C++ Library v3 (debugging files)
 lib64ubsan0 - UBSan -- undefined behaviour sanitizer (64bit)
 lib64ubsan0-dbg - UBSan -- undefined behaviour sanitizer (64bit debug symbols)
 libasan3   - AddressSanitizer -- a fast memory error detector
 libasan3-dbg - AddressSanitizer -- a fast memory error detector (debug symbols)
 libatomic1 - support library providing __atomic built-in functions
 libatomic1-dbg - support library providing __atomic built-in functions (debug symb
 libcc1-0   - GCC cc1 plugin for GDB
 libcilkrts5 - Intel Cilk Plus language extensions (runtime)
 libcilkrts5-dbg - Intel Cilk Plus language extensions (debug symbols)
 libgcc-6-dev - GCC support library (development files)
 libgcc1    - GCC support library
 libgcc1-dbg - GCC support library (debug symbols)
 libgcc2    - GCC support library
 libgcc2-dbg - GCC support library (debug symbols)
 libgcc4    - GCC support library
 libgcc4-dbg - GCC support library (debug symbols)
 libgccjit-6-dev - GCC just-in-time compilation (development files)
 libgccjit-6-doc - GCC just-in-time compilation (documentation)
 libgccjit0 - GCC just-in-time compilation (shared library)
 libgccjit0-dbg - GCC just-in-time compilation (debug information)
 libgcj-doc - libgcj API documentation and example programs
 libgcj17   - Java runtime library for use with gcj
 libgcj17-awt - AWT peer runtime libraries for use with gcj
 libgcj17-dbg - Debugging symbols for libraries provided in libgcj17-dev
 libgcj17-dev - Java development headers for use with gcj
 libgfortran-6-dev - Runtime library for GNU Fortran applications (development files)
 libgfortran3 - Runtime library for GNU Fortran applications
 libgfortran3-dbg - Runtime library for GNU Fortran applications (debug symbols)
 libgnat-6  - runtime for applications compiled with GNAT (shared library)
 libgnat-6-dbg - runtime for applications compiled with GNAT (debugging symbols)
 libgnatprj6 - GNU Ada compiler Project Manager (shared library)
 libgnatprj6-dbg - GNU Ada compiler Project Manager (debugging symbols)
 libgnatprj6-dev - GNU Ada compiler Project Manager (development files)
 libgnatvsn6 - GNU Ada compiler selected components (shared library)
 libgnatvsn6-dbg - GNU Ada compiler selected components (debugging symbols)
 libgnatvsn6-dev - GNU Ada compiler selected components (development files)
 libgo9     - Runtime library for GNU Go applications
 libgo9-dbg - Runtime library for GNU Go applications (debug symbols)
 libgomp1   - GCC OpenMP (GOMP) support library
 libgomp1-dbg - GCC OpenMP (GOMP) support library (debug symbols)
 libitm1    - GNU Transactional Memory Library
 libitm1-dbg - GNU Transactional Memory Library (debug symbols)
 liblsan0   - LeakSanitizer -- a memory leak detector (runtime)
 liblsan0-dbg - LeakSanitizer -- a memory leak detector (debug symbols)
 libmpx2    - Intel memory protection extensions (runtime)
 libmpx2-dbg - Intel memory protection extensions (debug symbols)
 libn32atomic1 - support library providing __atomic built-in functions (n32)
 libn32atomic1-dbg - support library providing __atomic built-in functions (n32 debug
 libn32gcc-6-dev - GCC support library (n32 development files)
 libn32gcc1 - GCC support library (n32)
 libn32gcc1-dbg - GCC support library (debug symbols)
 libn32gfortran-6-dev - Runtime library for GNU Fortran applications (n32 development fil
 libn32gfortran3 - Runtime library for GNU Fortran applications (n32)
 libn32gfortran3-dbg - Runtime library for GNU Fortran applications (n32 debug symbols)
 libn32go9  - Runtime library for GNU Go applications (n32)
 libn32go9-dbg - Runtime library for GNU Go applications (n32 debug symbols)
 libn32gomp1 - GCC OpenMP (GOMP) support library (n32)
 libn32gomp1-dbg - GCC OpenMP (GOMP) support library (n32 debug symbols)
 libn32objc-6-dev - Runtime library for GNU Objective-C applications (n32 development
 libn32objc4 - Runtime library for GNU Objective-C applications (n32)
 libn32objc4-dbg - Runtime library for GNU Objective-C applications (n32 debug symbo
 libn32stdc++-6-dev - GNU Standard C++ Library v3 (development files)
 libn32stdc++6 - GNU Standard C++ Library v3 (n32)
 libn32stdc++6-6-dbg - GNU Standard C++ Library v3 (debugging files)
 libobjc-6-dev - Runtime library for GNU Objective-C applications (development fil
 libobjc4   - Runtime library for GNU Objective-C applications
 libobjc4-dbg - Runtime library for GNU Objective-C applications (debug symbols)
 libphobos-6-dev - Phobos D standard library
 libquadmath0 - GCC Quad-Precision Math Library
 libquadmath0-dbg - GCC Quad-Precision Math Library (debug symbols)
 libstdc++-6-dev - GNU Standard C++ Library v3 (development files)
 libstdc++-6-doc - GNU Standard C++ Library v3 (documentation files)
 libstdc++-6-pic - GNU Standard C++ Library v3 (shared library subset kit)
 libstdc++6 - GNU Standard C++ Library v3
 libstdc++6-6-dbg - GNU Standard C++ Library v3 (debugging files)
 libtsan0   - ThreadSanitizer -- a Valgrind-based detector of data races (runti
 libtsan0-dbg - ThreadSanitizer -- a Valgrind-based detector of data races (debug
 libubsan0  - UBSan -- undefined behaviour sanitizer (runtime)
 libubsan0-dbg - UBSan -- undefined behaviour sanitizer (debug symbols)
 libx32asan3 - AddressSanitizer -- a fast memory error detector (x32)
 libx32asan3-dbg - AddressSanitizer -- a fast memory error detector (x32 debug symbo
 libx32atomic1 - support library providing __atomic built-in functions (x32)
 libx32atomic1-dbg - support library providing __atomic built-in functions (x32 debug
 libx32cilkrts5 - Intel Cilk Plus language extensions (x32)
 libx32cilkrts5-dbg - Intel Cilk Plus language extensions (x32 debug symbols)
 libx32gcc-6-dev - GCC support library (x32 development files)
 libx32gcc1 - GCC support library (x32)
 libx32gcc1-dbg - GCC support library (debug symbols)
 libx32gfortran-6-dev - Runtime library for GNU Fortran applications (x32 development fil
 libx32gfortran3 - Runtime library for GNU Fortran applications (x32)
 libx32gfortran3-dbg - Runtime library for GNU Fortran applications (x32 debug symbols)
 libx32go9  - Runtime library for GNU Go applications (x32)
 libx32go9-dbg - Runtime library for GNU Go applications (x32 debug symbols)
 libx32gomp1 - GCC OpenMP (GOMP) support library (x32)
 libx32gomp1-dbg - GCC OpenMP (GOMP) support library (x32 debug symbols)
 libx32itm1 - GNU Transactional Memory Library (x32)
 libx32itm1-dbg - GNU Transactional Memory Library (x32 debug symbols)
 libx32lsan0 - LeakSanitizer -- a memory leak detector (x32)
 libx32lsan0-dbg - LeakSanitizer -- a memory leak detector (x32 debug symbols)
 libx32objc-6-dev - Runtime library for GNU Objective-C applications (x32 development
 libx32objc4 - Runtime library for GNU Objective-C applications (x32)
 libx32objc4-dbg - Runtime library for GNU Objective-C applications (x32 debug symbo
 libx32phobos-6-dev - Phobos D standard library (x32 development files)
 libx32quadmath0 - GCC Quad-Precision Math Library (x32)
 libx32quadmath0-dbg - GCC Quad-Precision Math Library (x32 debug symbols)
 libx32stdc++-6-dev - GNU Standard C++ Library v3 (development files)
 libx32stdc++6 - GNU Standard C++ Library v3 (x32)
 libx32stdc++6-6-dbg - GNU Standard C++ Library v3 (debugging files)
 libx32ubsan0 - UBSan -- undefined behaviour sanitizer (x32)
 libx32ubsan0-dbg - UBSan -- undefined behaviour sanitizer (x32 debug symbols)
Closes: 835148 839132
Changes:
 gcc-6 (6.2.0-7) unstable; urgency=medium
 .
   * Update to SVN 20161018 (r241301, 6.2.1) from the gcc-6-branch.
     - Fix PR libstdc++/77987, PR libstdc++/77322, PR libstdc++/72820,
       PR libstdc++/77994, PR tree-optimization/77937, PR c++/71912,
       PR tree-optimization/77937, PR tree-optimization/77943,
       PR bootstrap/77995, PR fortran/77978, PR fortran/77915, PR fortran/77942.
 .
   [ Matthias Klose ]
   * Backport Mips go closure support, taken from libffi. Closes: #839132.
   * Configure with --enable-default-pie and pass -z now when pie is enabled;
     on amd64 arm64 armel armhf i386 mips mipsel mips64el ppc64el s390x.
     Closes: #835148.
   * Update the Linaro support to the 6-2016.10 snapshot.
 .
   [ Aurelien Jarno ]
   * Enable logwatch on mips64el.
Checksums-Sha1:
 c9aa71e1e3c45da59ee709cf2a60e5578d62f2f9 26154 gcc-6_6.2.0-7.dsc
 3a63f8287f6e1f8e18109e901ae5fa29d5fc4d40 4581724 gcc-6_6.2.0-7.diff.gz
Checksums-Sha256:
 e74843b66f5bdd9576972a0e39222aabbe98c73098d90e6cb21a4a6b239713ec 26154 gcc-6_6.2.0-7.dsc
 0206686b35206f03cee323e5ddc2fd0e44b2481a86dc248f13bb48e3056801ce 4581724 gcc-6_6.2.0-7.diff.gz
Files:
 8d2def2a1a58c4b0685142438e76f599 26154 devel optional gcc-6_6.2.0-7.dsc
 b27532e61ee6e11f3c81bf5da03e71b9 4581724 devel optional gcc-6_6.2.0-7.diff.gz

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

iQItBAEBCAAXBQJYBg9nEBxkb2tvQGRlYmlhbi5vcmcACgkQvX6qYHePpvVKWRAA
iTUaU7BbbI/aZdmVAtT7dCTL43GIUdJ+MvFbn8vkUY7chN1HEFD0swmstOyxLCsg
mt6KfkwYSrjG7SshiFWetz/bwcxcuBwJB4scHqxVZnkRSq5PMUrxd4frHyVuluo+
YZ39K7FMLVg8v6mz6uzEbGeHqZ7NnCqWxbDGQdl5ZfkhwQpjM02shpqgpZl6J+tv
PM9kJE2BP6SWj97NAsRqqy4H48C+/IfbeVXuU/fdBBKm0j7KSh6UXD7MosACmrbt
DsME1dUQEM42rs5MSm3tRFGzGEGCJ2fdkLsYL4LTXyWnBjUN2Xmf4GREK9FxwYKA
oVpr9krOyUt8SDX08O9IbROSwoubLcKFsQVrJdKEW0fuMQs1HEoJANhk0fFratr0
obuOQLzGPa0qj82q0U7GOrl4BkRy87u6AGUTEiFObZlq0Mp2XdeJCuLi5Ko41FYd
2PMQKmfwENvrD2HtBVNRsx7pDyP/wTUJrcDOs2R/Bs6JzxAqrXJrZWYbsq6/wFdy
V9OCtBLInW5s6blTAAyZ2oTfnDRALlPwfWUgE/XIiDq8WLYLkKug9hr3/0RvtgML
Ox1Qwrx1kANldNm3nBOo3X2sqpJNeei0ALRfB97CI+5MeErW3klTwzQlqHVudCQF
4LR4WG54cPd4wOW5P2u+EHEL8u8cHo9zo7mEwYwPNts=
=Mpaf
-----END PGP SIGNATURE-----




Added indication that bug 835148 blocks 840394 Request was from Adrian Bunk <bunk@stusta.de> to control@bugs.debian.org. (Thu, 20 Oct 2016 15:21:09 GMT) (full text, mbox, link).


Added indication that bug 835148 blocks 841394 Request was from Adrian Bunk <bunk@stusta.de> to control@bugs.debian.org. (Thu, 20 Oct 2016 15:21:11 GMT) (full text, mbox, link).


Information forwarded to debian-bugs-dist@lists.debian.org, Debian GCC Maintainers <debian-gcc@lists.debian.org>:
Bug#835148; Package gcc-6. (Fri, 21 Oct 2016 17:21:02 GMT) (full text, mbox, link).


Acknowledgement sent to Thorsten Glaser <tg@mirbsd.de>:
Extra info received and forwarded to list. Copy sent to Debian GCC Maintainers <debian-gcc@lists.debian.org>. (Fri, 21 Oct 2016 17:21:02 GMT) (full text, mbox, link).


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

From: Thorsten Glaser <tg@mirbsd.de>
To: Matthias Klose <doko@debian.org>, 837420@bugs.debian.org, 835148@bugs.debian.org
Cc: zumbi@debian.org, Adrian Bunk <bunk@stusta.de>, Christian Seiler <christian@iwakd.de>
Subject: please do not make GCC incompatible, we have dpkg-buildflags for this! (was Re: Bug#837420: Processed: PIE FTBFS are now RC)
Date: Fri, 21 Oct 2016 17:11:55 +0000 (UTC)
Adrian Bunk dixit:

>gcc-6 6.2.0-7 uploaded to unstable on Tue 18 Oct 2016 defaults to PIE,
>see #835148 for details.

Oh, thanks.

This is *so* *totally* the wrong approach, especially as we
have dpkg-buildflags, which was introduced *precisely* for
this purpose, and to make Debian’s GCC not incompatible even
more with the rest of the world.

Matthias, please do revert this.

Thanks,
//mirabilos
-- 
Solange man keine schmutzigen Tricks macht, und ich meine *wirklich*
schmutzige Tricks, wie bei einer doppelt verketteten Liste beide
Pointer XORen und in nur einem Word speichern, funktioniert Boehm ganz
hervorragend.		-- Andreas Bogk über boehm-gc in d.a.s.r



Information forwarded to debian-bugs-dist@lists.debian.org, Debian GCC Maintainers <debian-gcc@lists.debian.org>:
Bug#835148; Package gcc-6. (Fri, 21 Oct 2016 17:57:05 GMT) (full text, mbox, link).


Acknowledgement sent to balint@balintreczey.hu:
Extra info received and forwarded to list. Copy sent to Debian GCC Maintainers <debian-gcc@lists.debian.org>. (Fri, 21 Oct 2016 17:57:05 GMT) (full text, mbox, link).


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

From: Bálint Réczey <balint@balintreczey.hu>
To: Thorsten Glaser <tg@mirbsd.de>, 835148@bugs.debian.org
Cc: Matthias Klose <doko@debian.org>, 837420@bugs.debian.org, zumbi@debian.org, Adrian Bunk <bunk@stusta.de>, Christian Seiler <christian@iwakd.de>
Subject: Re: Bug#835148: please do not make GCC incompatible, we have dpkg-buildflags for this! (was Re: Bug#837420: Processed: PIE FTBFS are now RC)
Date: Fri, 21 Oct 2016 19:55:24 +0200
Hi Thorsten

2016-10-21 19:11 GMT+02:00 Thorsten Glaser <tg@mirbsd.de>:
> Adrian Bunk dixit:
>
>>gcc-6 6.2.0-7 uploaded to unstable on Tue 18 Oct 2016 defaults to PIE,
>>see #835148 for details.
>
> Oh, thanks.
>
> This is *so* *totally* the wrong approach, especially as we
> have dpkg-buildflags, which was introduced *precisely* for
> this purpose, and to make Debian’s GCC not incompatible even
> more with the rest of the world.

You may have missed them, but there was several lengthy threads [1]
on debian-devel discussing the possible solutions including the
inapplicability of dpkg-buildflags for this problem.

However, if you do have a better _working_ solution for enabling PIE
archive-wide, please share that.

I'm exploring possible options like patching (upstream) GCC to disable
PIE for kernel or patching (upstream) kernel to disable PIE when it can
be disabled.

AFAIK the linux package is the only problematic package were the
maintainer refused to disable PIE from packaging scripts.

Cheers,
Balint

[1] https://lists.debian.org/debian-devel/2016/05/msg00229.html



Information forwarded to debian-bugs-dist@lists.debian.org, Debian GCC Maintainers <debian-gcc@lists.debian.org>:
Bug#835148; Package gcc-6. (Fri, 21 Oct 2016 23:09:05 GMT) (full text, mbox, link).


Acknowledgement sent to Thorsten Glaser <tg@mirbsd.de>:
Extra info received and forwarded to list. Copy sent to Debian GCC Maintainers <debian-gcc@lists.debian.org>. (Fri, 21 Oct 2016 23:09:05 GMT) (full text, mbox, link).


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

From: Thorsten Glaser <tg@mirbsd.de>
To: balint@balintreczey.hu, 837420@bugs.debian.org
Cc: 835148@bugs.debian.org, Matthias Klose <doko@debian.org>, zumbi@debian.org, Adrian Bunk <bunk@stusta.de>, Christian Seiler <christian@iwakd.de>
Subject: Re: Bug#837420: Bug#835148: please do not make GCC incompatible, we have dpkg-buildflags for this! (was Re: Bug#837420: Processed: PIE FTBFS are now RC)
Date: Fri, 21 Oct 2016 23:00:17 +0000 (UTC)
Bálint Réczey dixit:

>AFAIK the linux package is the only problematic package were the
>maintainer refused to disable PIE from packaging scripts.

So, how are you supposed to do that now, instead of filtering
-fPIE from CFLAGS and -pie from LDFLAGS?

Christian/zumbi: do you take care of dietlibc, or should I?

Thanks,
//mirabilos
-- 
Stéphane, I actually don’t block Googlemail, they’re just too utterly
stupid to successfully deliver to me (or anyone else using Greylisting
and not whitelisting their ranges). Same for a few other providers such
as Hotmail. Some spammers (Yahoo) I do block.



Information forwarded to debian-bugs-dist@lists.debian.org, Debian GCC Maintainers <debian-gcc@lists.debian.org>:
Bug#835148; Package gcc-6. (Fri, 21 Oct 2016 23:21:04 GMT) (full text, mbox, link).


Acknowledgement sent to balint@balintreczey.hu:
Extra info received and forwarded to list. Copy sent to Debian GCC Maintainers <debian-gcc@lists.debian.org>. (Fri, 21 Oct 2016 23:21:04 GMT) (full text, mbox, link).


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

From: Bálint Réczey <balint@balintreczey.hu>
To: Thorsten Glaser <tg@mirbsd.de>
Cc: 837420@bugs.debian.org, 835148@bugs.debian.org, Matthias Klose <doko@debian.org>, zumbi@debian.org, Adrian Bunk <bunk@stusta.de>, Christian Seiler <christian@iwakd.de>
Subject: Re: Bug#837420: Bug#835148: please do not make GCC incompatible, we have dpkg-buildflags for this! (was Re: Bug#837420: Processed: PIE FTBFS are now RC)
Date: Sat, 22 Oct 2016 01:19:18 +0200
Hi,

2016-10-22 1:00 GMT+02:00 Thorsten Glaser <tg@mirbsd.de>:
> Bálint Réczey dixit:
>
>>AFAIK the linux package is the only problematic package were the
>>maintainer refused to disable PIE from packaging scripts.
>
> So, how are you supposed to do that now, instead of filtering
> -fPIE from CFLAGS and -pie from LDFLAGS?

This reverts defaulting to no-PIE:
CC = $(CC) -no-pie
LD = $(LD) -no-pie

Very often appending -no-pie works, too, but not when compiling shared
libraries.
See:  https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77464

If you show the FTBFS you are facing I can help more.

Cheers,
Balint

>
> Christian/zumbi: do you take care of dietlibc, or should I?
>
> Thanks,
> //mirabilos
> --
> Stéphane, I actually don’t block Googlemail, they’re just too utterly
> stupid to successfully deliver to me (or anyone else using Greylisting
> and not whitelisting their ranges). Same for a few other providers such
> as Hotmail. Some spammers (Yahoo) I do block.



Information forwarded to debian-bugs-dist@lists.debian.org, Debian GCC Maintainers <debian-gcc@lists.debian.org>:
Bug#835148; Package gcc-6. (Sat, 22 Oct 2016 04:48:02 GMT) (full text, mbox, link).


Acknowledgement sent to Christian Seiler <christian@iwakd.de>:
Extra info received and forwarded to list. Copy sent to Debian GCC Maintainers <debian-gcc@lists.debian.org>. (Sat, 22 Oct 2016 04:48:02 GMT) (full text, mbox, link).


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

From: Christian Seiler <christian@iwakd.de>
To: Thorsten Glaser <tg@mirbsd.de>, balint@balintreczey.hu, 837420@bugs.debian.org
Cc: 835148@bugs.debian.org, Matthias Klose <doko@debian.org>, zumbi@debian.org, Adrian Bunk <bunk@stusta.de>
Subject: Re: Bug#837420: Bug#835148: please do not make GCC incompatible, we have dpkg-buildflags for this! (was Re: Bug#837420: Processed: PIE FTBFS are now RC)
Date: Sat, 22 Oct 2016 06:44:47 +0200
On 10/22/2016 01:00 AM, Thorsten Glaser wrote:
> Bálint Réczey dixit:
> 
>> AFAIK the linux package is the only problematic package were the
>> maintainer refused to disable PIE from packaging scripts.
> 
> So, how are you supposed to do that now, instead of filtering
> -fPIE from CFLAGS and -pie from LDFLAGS?
> 
> Christian/zumbi: do you take care of dietlibc, or should I?

Yes, I fully intend to fix that - which is why I tagged the bug
report "confirmed" when it was first reported, even while it
was still of lower severity. I just had a lot of other stuff
come up and didn't get to it yet. I had actually planned to
take some time on Sunday for this, even before the severity of
this bug was bumped.

Also, I'd really appreciate it if you talked to me and zumbi
first before escalating the bug report and asking for a revert
of archive-wide changes in the name of the dietlibc package.
Because from my perspective I'm in favor of the change (hence
the "confirmed" on the bug when it was first reported, and I
did follow the threads on debian-devel related to this) and we
could have had this discussion amongst ourselves without
involving the gcc maintainers, who probably have to deal with
enough things already. Many thanks.

Regards,
Christian



Information forwarded to debian-bugs-dist@lists.debian.org, Debian GCC Maintainers <debian-gcc@lists.debian.org>:
Bug#835148; Package gcc-6. (Sat, 22 Oct 2016 06:09:03 GMT) (full text, mbox, link).


Acknowledgement sent to Philipp Matthias Hahn <pmhahn@debian.org>:
Extra info received and forwarded to list. Copy sent to Debian GCC Maintainers <debian-gcc@lists.debian.org>. (Sat, 22 Oct 2016 06:09:03 GMT) (full text, mbox, link).


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

From: Philipp Matthias Hahn <pmhahn@debian.org>
To: Debian Bug Tracking System <835148@bugs.debian.org>
Subject: Re: gcc-6: please enable PIE hardening flags by default on amd64 ppc64el and s390x
Date: Sat, 22 Oct 2016 08:05:00 +0200
Package: gcc-6
Followup-For: Bug #835148

FYI: Enabling PIE by default has a drastic impact on the Linux kernel,                                        
which needs to be compiled with PIE disabled.

After upgrading to the new gcc-6 package today dkms failed to build the 
nvidia kernel module with the following error message:
> error: code model kernel does not support PIC mode

The very evil thing is that compiling the linux kernel fails because
most those "cc-option" checks fail (silently, because the error message
is redirected to /dev/null), and thus a lot of options are missing:

$ grep cc-option Makefile
KBUILD_CFLAGS   += $(call cc-option,-fno-delete-null-pointer-checks,)
KBUILD_CFLAGS   += $(call cc-option,--param=allow-store-data-races=0)
KBUILD_CFLAGS += $(call cc-option,-fno-reorder-blocks,) \
                 $(call cc-option,-fno-ipa-cp-clone,) \
                 $(call cc-option,-fno-partial-inlining)
KBUILD_CFLAGS += $(call cc-option,-Wframe-larger-than=${CONFIG_FRAME_WARN})
  ifeq ($(call cc-option, $(stackp-flag)),)
  ifeq ($(call cc-option, $(stackp-flag)),)
  stackp-flag := $(call cc-option, -fno-stack-protector)
  ifeq ($(call cc-option, $(CFLAGS_KCOV)),)
KBUILD_CPPFLAGS += $(call cc-option,-Qunused-arguments,)
KBUILD_CPPFLAGS += $(call cc-option,-Wno-unknown-warning-option,)
KBUILD_CFLAGS += $(call cc-option, -mno-global-merge,)
KBUILD_CFLAGS += $(call cc-option, -fcatch-undefined-behavior)
KBUILD_CFLAGS   += $(call cc-option, -fno-var-tracking-assignments)
KBUILD_CFLAGS   += $(call cc-option, -gsplit-dwarf, -g) 
KBUILD_CFLAGS   += $(call cc-option, -gdwarf-4,)
KBUILD_CFLAGS   += $(call cc-option, -femit-struct-debug-baseonly) \
                   $(call cc-option,-fno-var-tracking)
CC_USING_FENTRY := $(call cc-option, -mfentry -DCC_USING_FENTRY)
KBUILD_CFLAGS += $(call cc-option, -fno-inline-functions-called-once)
KBUILD_CFLAGS += $(call cc-option,-Wdeclaration-after-statement,)
KBUILD_CFLAGS   += $(call cc-option,-fno-strict-overflow)
KBUILD_CFLAGS   += $(call cc-option,-fconserve-stack)
KBUILD_CFLAGS   += $(call cc-option,-Werror=implicit-int)
KBUILD_CFLAGS   += $(call cc-option,-Werror=strict-prototypes)
KBUILD_CFLAGS   += $(call cc-option,-Werror=date-time)
KBUILD_CFLAGS   += $(call cc-option,-Werror=incompatible-pointer-types)

The mentioned patch below at least fixed the kernel.

Links:
- <https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1574982?comments/17>
- <http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.8-rc2/0002-UBUNTU-SAUCE-no-up-disable-pie-when-gcc-has-it-enabl.patch>

Debugging this issue cost me ~2h, so just consider this FYI to save others from
having to do the same bug hunt again.

-- System Information:
Debian Release: stretch/sid
  APT prefers unstable
  APT policy: (990, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.7.9 (SMP w/2 CPU cores; PREEMPT)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages gcc-6 depends on:
ii  binutils      2.27-9
ii  cpp-6         6.2.0-9
ii  gcc-6-base    6.2.0-9
ii  libc6         2.24-5
ii  libcc1-0      6.2.0-9
ii  libgcc-6-dev  6.2.0-9
ii  libgcc1       1:6.2.0-9
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.0-9
ii  zlib1g        1:1.2.8.dfsg-2+b1

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

Versions of packages gcc-6 suggests:
pn  gcc-6-doc         <none>
pn  gcc-6-locales     <none>
ii  gcc-6-multilib    6.2.0-9
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



Added indication that bug 835148 blocks 841360 Request was from Graham Inggs <ginggs@debian.org> to control@bugs.debian.org. (Sat, 22 Oct 2016 09:36:05 GMT) (full text, mbox, link).


Bug archived. Request was from Debbugs Internal Request <owner@bugs.debian.org> to internal_control@bugs.debian.org. (Mon, 05 Dec 2016 09:33:21 GMT) (full text, mbox, link).


Bug unarchived. Request was from Don Armstrong <don@debian.org> to control@bugs.debian.org. (Wed, 07 Dec 2016 01:53:48 GMT) (full text, mbox, link).


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


Bug unarchived. Request was from Steven Chamberlain <steven@pyro.eu.org> to control@bugs.debian.org. (Fri, 03 Feb 2017 16:15:08 GMT) (full text, mbox, link).


Bug 835148 cloned as bug 854069 Request was from Steven Chamberlain <steven@pyro.eu.org> to control@bugs.debian.org. (Fri, 03 Feb 2017 16:15:09 GMT) (full text, mbox, link).


Bug 835148 cloned as bug 854070 Request was from Steven Chamberlain <steven@pyro.eu.org> to control@bugs.debian.org. (Fri, 03 Feb 2017 16:21:03 GMT) (full text, mbox, link).


Bug 835148 cloned as bug 854071 Request was from Steven Chamberlain <steven@pyro.eu.org> to control@bugs.debian.org. (Fri, 03 Feb 2017 16:30:02 GMT) (full text, mbox, link).


Bug 835148 cloned as bug 854074 Request was from Steven Chamberlain <steven@pyro.eu.org> to control@bugs.debian.org. (Fri, 03 Feb 2017 18:42:03 GMT) (full text, mbox, link).


Bug archived. Request was from Debbugs Internal Request <owner@bugs.debian.org> to internal_control@bugs.debian.org. (Sat, 04 Mar 2017 07:31:55 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: Tue Jan 30 05:16:58 2024; Machine Name: bembo

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.