https://www.open-mesh.org/https://www.open-mesh.org/favicon.ico?16699090422016-10-31T05:40:57ZOpen Meshbatman-adv - Bug #304: gcc6: "error: code model kernel does not support PIC mode"https://www.open-mesh.org/issues/304?journal_id=9262016-10-31T05:40:57ZLinus Lüssinglinus.luessing@c0d3.blue
<ul><li><strong>Description</strong> updated (<a title="View differences" href="/journals/926/diff?detail_id=488">diff</a>)</li></ul> batman-adv - Bug #304: gcc6: "error: code model kernel does not support PIC mode"https://www.open-mesh.org/issues/304?journal_id=9272016-10-31T06:28:21ZSven Eckelmann
<ul><li><strong>Status</strong> changed from <i>New</i> to <i>Rejected</i></li></ul><p>Problem of Debian: <a class="external" href="https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=841420">https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=841420</a></p> batman-adv - Bug #304: gcc6: "error: code model kernel does not support PIC mode"https://www.open-mesh.org/issues/304?journal_id=9622016-11-07T21:36:13ZSven Eckelmann
<ul></ul><p>Seems that Ben gave up and included following patch in his kernel tree: <a class="external" href="https://anonscm.debian.org/cgit/kernel/linux.git/tree/debian/patches/bugfix/all/kbuild-add-fno-pie.patch?id=25e532ff97db2fb2990e8b6e0fb74a9313255656">https://anonscm.debian.org/cgit/kernel/linux.git/tree/debian/patches/bugfix/all/kbuild-add-fno-pie.patch?id=25e532ff97db2fb2990e8b6e0fb74a9313255656</a></p>
<p>But it seems not to be enough. At least when I read following correctly: <a class="external" href="https://www.spinics.net/lists/linux-kbuild/msg13620.html">https://www.spinics.net/lists/linux-kbuild/msg13620.html</a></p>
<p>So I would still say that it is not a flag we should include but which should be included in the kernel. And hopefully in a way which doesn't break older GCC versions (which simply including this flag by us will do).</p> batman-adv - Bug #304: gcc6: "error: code model kernel does not support PIC mode"https://www.open-mesh.org/issues/304?journal_id=9652016-11-13T11:00:47ZSven Eckelmann
<ul></ul><p>The upstream kernel fixes (hm, maybe we should call them workarounds) are:</p>
<ul>
<li><a class="external" href="https://git.kernel.org/cgit/linux/kernel/git/mmarek/kbuild.git/commit/?id=8ae94224c9d72fc4d9aaac93b2d7833cf46d7141">https://git.kernel.org/cgit/linux/kernel/git/mmarek/kbuild.git/commit/?id=8ae94224c9d72fc4d9aaac93b2d7833cf46d7141</a></li>
<li><a class="external" href="https://git.kernel.org/cgit/linux/kernel/git/mmarek/kbuild.git/commit/?id=82031ea29e454b574bc6f49a33683a693ca5d907">https://git.kernel.org/cgit/linux/kernel/git/mmarek/kbuild.git/commit/?id=82031ea29e454b574bc6f49a33683a693ca5d907</a></li>
<li><a class="external" href="https://git.kernel.org/cgit/linux/kernel/git/mmarek/kbuild.git/commit/?id=90944e40ba1838de4b2a9290cf273f9d76bd3bdd">https://git.kernel.org/cgit/linux/kernel/git/mmarek/kbuild.git/commit/?id=90944e40ba1838de4b2a9290cf273f9d76bd3bdd</a></li>
</ul>
<p>I will have a lot of fun later when porting them to 3.2-4.9 for the build_test.git repository.</p>