{"id":2867,"date":"2020-12-27T17:31:09","date_gmt":"2020-12-28T01:31:09","guid":{"rendered":"http:\/\/rglinuxtech.com\/?p=2867"},"modified":"2020-12-27T17:31:09","modified_gmt":"2020-12-28T01:31:09","slug":"kernel-5-11-rc1-is-out-ok-with-patched-vmware-fails-with-nvidia","status":"publish","type":"post","link":"https:\/\/rglinuxtech.com\/?p=2867","title":{"rendered":"Kernel &#8211; 5.11-rc1 Is Out &#8211; OK with (patched) VMware, Fails with NVIDIA.."},"content":{"rendered":"<p>Kernel <strong>5.11-rc1<\/strong> has been released, and brief details are here:\u00a0 <a href=\"http:\/\/lkml.iu.edu\/hypermail\/linux\/kernel\/2012.3\/00888.html\" target=\"_blank\" rel=\"noopener\">http:\/\/lkml.iu.edu\/hypermail\/linux\/kernel\/2012.3\/00888.html<\/a><\/p>\n<p>VMware <strong>16.1.0<\/strong> (patched) compiles\/loads OK, but the latest NVIDIA driver<strong> 460.27.04<\/strong> fails to compile:<\/p>\n<p><code><strong><span style=\"font-family: Courier New, Courier, monospace;\">...............................<\/span><\/strong><br \/>\n<strong><span style=\"font-family: Courier New, Courier, monospace;\"><br \/>\nCONFTEST: drm_alpha_blending_available<\/span><\/strong><br \/>\n<strong><span style=\"font-family: Courier New, Courier, monospace;\">CC [M] \u00a0\/home\/rgadsdon\/NVIDIA-Linux-x86_64-460.27.04\/kernel\/nvidia\/nv-frontend.o<\/span><\/strong><br \/>\n<strong><span style=\"font-family: Courier New, Courier, monospace;\">In file included from \/home\/rgadsdon\/NVIDIA-Linux-x86_64-460.27.04\/kernel\/nvidia\/nv-frontend.c:13:<\/span><\/strong><br \/>\n<strong><span style=\"font-family: Courier New, Courier, monospace;\">\/home\/rgadsdon\/NVIDIA-Linux-x86_64-460.27.04\/kernel\/common\/inc\/nv-linux.h:120:10: fatal error: asm\/kma<\/span><\/strong><strong><span style=\"font-family: Courier New, Courier, monospace;\">p_types.h: No such file or directory<\/span><\/strong><br \/>\n<strong><span style=\"font-family: Courier New, Courier, monospace;\">120 | #include &lt;asm\/kmap_types.h&gt; \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\/* page table entry lookup \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0*\/<\/span><\/strong><br \/>\n<strong><span style=\"font-family: Courier New, Courier, monospace;\">| \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0^~~~~~~~~~~~~~~~~~<\/span><\/strong><br \/>\n<strong><span style=\"font-family: Courier New, Courier, monospace;\">compilation terminated.<\/span><\/strong><\/code><\/p>\n<p>Apparently <strong><span style=\"font-family: Courier New, Courier, monospace;\">kmap_types.h<\/span><\/strong> was removed, as it is &#8216;no longer used&#8217;, so a simple fix for this is to comment-out the <strong><span style=\"font-family: Courier New, Courier, monospace;\">#include..<\/span><\/strong> statement in <strong>NVIDIA-Linux-x86_64-460.27.04\/kernel\/common\/inc\/nv-linux.h<\/strong>.\u00a0\u00a0 With this change, the compile continues, until:<\/p>\n<p><code><strong><span style=\"font-family: Courier New, Courier, monospace;\">........................<\/span><\/strong><br \/>\n<strong><span style=\"font-family: Courier New, Courier, monospace;\">CC [M] \u00a0\/home\/rgadsdon\/NVIDIA-Linux-x86_64-460.27.04\/kernel\/nvidia\/nv-caps.o<\/span><\/strong><br \/>\n<strong><span style=\"font-family: Courier New, Courier, monospace;\">\/home\/rgadsdon\/NVIDIA-Linux-x86_64-460.27.04\/kernel\/nvidia\/nv-caps.c: In function \u2018nv_cap_close_fd\u2019:<\/span><\/strong><br \/>\n<strong><span style=\"font-family: Courier New, Courier, monospace;\">\/home\/rgadsdon\/NVIDIA-Linux-x86_64-460.27.04\/kernel\/nvidia\/nv-caps.c:592:1: error: implicit declaratio<\/span><\/strong><strong><span style=\"font-family: Courier New, Courier, monospace;\">n of function \u2018sys_close\u2019 [-Werror=implicit-function-declaration]<\/span><\/strong><br \/>\n<strong><span style=\"font-family: Courier New, Courier, monospace;\">592 | sys_close(fd);<\/span><\/strong><br \/>\n<strong><span style=\"font-family: Courier New, Courier, monospace;\">| ^~~~~~~~~<\/span><\/strong><br \/>\n<strong><span style=\"font-family: Courier New, Courier, monospace;\">cc1: some warnings being treated as errors<\/span><\/strong><br \/>\n<strong><span style=\"font-family: Courier New, Courier, monospace;\">make[2]: *** [scripts\/Makefile.build:279: \/home\/rgadsdon\/NVIDIA-Linux-x86_64-460.27.04\/kernel\/nvidia\/n<\/span><\/strong><strong><span style=\"font-family: Courier New, Courier, monospace;\">v-caps.o] Error 1<\/span><\/strong><br \/>\n<strong><span style=\"font-family: Courier New, Courier, monospace;\">make[1]: *** [Makefile:1805: \/home\/rgadsdon\/NVIDIA-Linux-x86_64-460.27.04\/kernel] Error 2 <\/span><\/strong><\/code><\/p>\n<p>More research needed, on this one..<\/p>\n<p>Robert Gadsdon.\u00a0\u00a0 December 27th 2020.<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Kernel 5.11-rc1 has been released, and brief details are here:\u00a0 http:\/\/lkml.iu.edu\/hypermail\/linux\/kernel\/2012.3\/00888.html VMware 16.1.0 (patched) compiles\/loads OK, but the latest NVIDIA driver 460.27.04 fails to compile: &#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;. CONFTEST: drm_alpha_blending_available CC [M] \u00a0\/home\/rgadsdon\/NVIDIA-Linux-x86_64-460.27.04\/kernel\/nvidia\/nv-frontend.o In file included from \/home\/rgadsdon\/NVIDIA-Linux-x86_64-460.27.04\/kernel\/nvidia\/nv-frontend.c:13: \/home\/rgadsdon\/NVIDIA-Linux-x86_64-460.27.04\/kernel\/common\/inc\/nv-linux.h:120:10: fatal error: asm\/kmap_types.h: No such file or directory 120 | #include &lt;asm\/kmap_types.h&gt; \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\/* page table entry lookup \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0*\/ | \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0^~~~~~~~~~~~~~~~~~ <span class=\"excerpt-dots\">&hellip;<\/span> <a class=\"more-link\" href=\"https:\/\/rglinuxtech.com\/?p=2867\"><span class=\"more-msg\">Continue reading &rarr;<\/span><\/a><\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[14,15,18,19,25],"tags":[2352,2353,2350,2354],"class_list":["post-2867","post","type-post","status-publish","format-standard","hentry","category-kernel","category-linux-2","category-nvidia","category-opinion","category-vmware","tag-kernel-5-11-rc1-released","tag-nvidia-460-27-04-compile-fails","tag-patched-vmware-16-1-0-ok","tag-sys_close"],"_links":{"self":[{"href":"https:\/\/rglinuxtech.com\/index.php?rest_route=\/wp\/v2\/posts\/2867","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/rglinuxtech.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/rglinuxtech.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/rglinuxtech.com\/index.php?rest_route=\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/rglinuxtech.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2867"}],"version-history":[{"count":3,"href":"https:\/\/rglinuxtech.com\/index.php?rest_route=\/wp\/v2\/posts\/2867\/revisions"}],"predecessor-version":[{"id":2870,"href":"https:\/\/rglinuxtech.com\/index.php?rest_route=\/wp\/v2\/posts\/2867\/revisions\/2870"}],"wp:attachment":[{"href":"https:\/\/rglinuxtech.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2867"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/rglinuxtech.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2867"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/rglinuxtech.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2867"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}