<html>
<head>
<base href="https://bugs.freedesktop.org/">
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_NEW "
title="NEW - CONFIG_STACK_VALIDATION=y causes compilation from source of external drivers to fail"
href="https://bugs.freedesktop.org/show_bug.cgi?id=99277">99277</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>CONFIG_STACK_VALIDATION=y causes compilation from source of external drivers to fail
</td>
</tr>
<tr>
<th>Product</th>
<td>DRI
</td>
</tr>
<tr>
<th>Version</th>
<td>unspecified
</td>
</tr>
<tr>
<th>Hardware</th>
<td>x86-64 (AMD64)
</td>
</tr>
<tr>
<th>OS</th>
<td>Linux (All)
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>major
</td>
</tr>
<tr>
<th>Priority</th>
<td>medium
</td>
</tr>
<tr>
<th>Component</th>
<td>DRM/Intel
</td>
</tr>
<tr>
<th>Assignee</th>
<td>intel-gfx-bugs@lists.freedesktop.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>tomasjonnes@outlook.com
</td>
</tr>
<tr>
<th>QA Contact</th>
<td>intel-gfx-bugs@lists.freedesktop.org
</td>
</tr>
<tr>
<th>CC</th>
<td>intel-gfx-bugs@lists.freedesktop.org
</td>
</tr></table>
<p>
<div>
<pre>After building the linux branch intel-drm-nightly kernel (4.10) with the
default values, booting the new kernel and trying to compile an external driver
( tested with several nvidia drivers, rtl8812AU-4.3.22 and bbswitch-0.8 ) from
source, the compilation process will try to link the object files before even
creating them. This issue is also mentioned here:
<a href="https://devtalk.nvidia.com/default/topic/926824/linux/364-1-2-5-won-t-compile-against-latest-kernel-git-tree-patches-for-4-6-0-rc3-included-/post/4852927/#4852927">https://devtalk.nvidia.com/default/topic/926824/linux/364-1-2-5-won-t-compile-against-latest-kernel-git-tree-patches-for-4-6-0-rc3-included-/post/4852927/#4852927</a>
suggesting that it is still present, at least, since intel-drm-nightly kernel
4.6. I remember I experienced this bug since late intel-drm-nightly kernel 4.8.
Right now, the only fix to this issue is to set CONFIG_STACK_VALIDATION=n on
the .config file before building the kernel. This solution is also mentioned
here:
<a href="https://devtalk.nvidia.com/default/topic/926824/linux/364-1-2-5-won-t-compile-against-latest-kernel-git-tree-patches-for-4-6-0-rc3-included-/post/4854471/#4854471">https://devtalk.nvidia.com/default/topic/926824/linux/364-1-2-5-won-t-compile-against-latest-kernel-git-tree-patches-for-4-6-0-rc3-included-/post/4854471/#4854471</a></pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the QA Contact for the bug.</li>
<li>You are on the CC list for the bug.</li>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>