{"id":487,"date":"2012-10-15T18:26:14","date_gmt":"2012-10-15T17:26:14","guid":{"rendered":"http:\/\/rglinuxtech.com\/?p=487"},"modified":"2012-10-15T18:26:14","modified_gmt":"2012-10-15T17:26:14","slug":"3-7-rc1-problems","status":"publish","type":"post","link":"https:\/\/rglinuxtech.com\/?p=487","title":{"rendered":"3.7-rc1 &#8211; Problems with VMware and NVIDIA.. &#8211; and Fixes..?"},"content":{"rendered":"<p>Just compiled and installed 3.7-rc1 on my test system, and ran into problems straight away..<\/p>\n<p>NVIDIA (304.51) compile fails with a whole host of errors, and VMware (9.0-patched) compile fails immediately, with:<br \/>\n<strong>vthread-3| I120: Failed version test: \/usr\/src\/linux-3.7-rc1\/linux\/version.h not found.<\/strong> <strong><br \/>\n<\/strong><\/p>\n<p>Update:<\/p>\n<p>There is a fix for NVIDIA, here:<\/p>\n<p><a title=\"http:\/\/www.nvnews.net\/vbulletin\/showthread.php?t=194465\" href=\"http:\/\/www.nvnews.net\/vbulletin\/showthread.php?t=194465\" target=\"_blank\">http:\/\/www.nvnews.net\/vbulletin\/showthread.php?t=194465<\/a>\u00a0\u00a0\u00a0 &#8211; a patch, <span style=\"text-decoration:underline;\">and<\/span> the removal of <em>VM_RESERVED<\/em> from line 466 of <strong>nv-mmap.c<\/strong>..<\/p>\n<p>old:\u00a0 \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 <em>vma-&gt;vm_flags |= (VM_IO | VM_LOCKED | VM_RESERVED);<\/em><br \/>\nnew:\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 <em>vma-&gt;vm_flags |= (VM_IO | VM_LOCKED);<\/em><\/p>\n<p>I have tried this, and it does <span style=\"text-decoration:underline;\">compile<\/span> OK with these changes..\u00a0 Not tested loading\/running, as my test system doesn&#8217;t have that brand of graphics card&#8230;.<\/p>\n<p>Further Update..<\/p>\n<p>In a caffeine-fuelled 4am brainstorm, I decided to just replace \/linux-3.7-rc1\/include\/version.h again, to see what further errors arose when compiling VMware, and I found that this was all that was needed to get it to compile and load successfully!\u00a0\u00a0\u00a0\u00a0\u00a0 I used the one from 3.6.2, and VMware &#8211; with the 3.5 patch &#8211; compiled and loaded correctly..\u00a0\u00a0\u00a0\u00a0 The LINUX_VERSION_CODE value should be greater for 3.7-rc1, but this doesn&#8217;t seem to matter, and this is &#8211; after all &#8211; just a nasty hack!<\/p>\n<p>Another Update..<\/p>\n<p>Seems version.h (<em>generated.<\/em>.) has moved, and is now<strong> linux-3.7-rc1\/include\/generated\/uapi\/linux\/version.h<\/strong>, so the VMware installer just needs to be changed to look here, for kernels 3.7 and above..<\/p>\n<p><strong>$ <em>cat \/usr\/src\/linux-3.7-rc1\/include\/generated\/uapi\/linux\/version.h <\/em><\/strong><br \/>\n<strong>#define LINUX_VERSION_CODE 198400<\/strong><br \/>\n<strong>#define KERNEL_VERSION(a,b,c) (((a) &lt;&lt; 16) + ((b) &lt;&lt; 8) + (c))<\/strong><\/p>\n<p>And so &#8211; a <span style=\"text-decoration:underline;\">better<\/span> &#8216;workaround&#8217; is to just (soft)link the &#8216;new&#8217; version.h back to the &#8216;old&#8217;:<br \/>\n<strong># <em>ln -s \/usr\/src\/linux-3.7-rc1\/include\/generated\/uapi\/linux\/version.h \/usr\/src\/linux-3.7-rc1\/include\/linux\/version.h<\/em><\/strong><\/p>\n<p>I have a suspicion that all the uapi-related changes for 3.7 are going to generate a lot of &#8216;issues&#8217;&#8230;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Just compiled and installed 3.7-rc1 on my test system, and ran into problems straight away.. NVIDIA (304.51) compile fails with a whole host of errors, and VMware (9.0-patched) compile fails immediately, with: vthread-3| I120: Failed version test: \/usr\/src\/linux-3.7-rc1\/linux\/version.h not found. Update: There is a fix for NVIDIA, here: http:\/\/www.nvnews.net\/vbulletin\/showthread.php?t=194465\u00a0\u00a0\u00a0 &#8211; a patch, and the removal of VM_RESERVED <span class=\"excerpt-dots\">&hellip;<\/span> <a class=\"more-link\" href=\"https:\/\/rglinuxtech.com\/?p=487\"><span class=\"more-msg\">Continue reading &rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[5,6,11,14,15,18,19,20,25],"tags":[61,1173,242,276,280,281,296,306,1175,362,374,395,408,410],"class_list":["post-487","post","type-post","status-publish","format-standard","hentry","category-compilation","category-crash-and-burn","category-hacks","category-kernel","category-linux-2","category-nvidia","category-opinion","category-performance-2","category-vmware","tag-3-7-rc1","tag-kernel","tag-linux","tag-nv-mmap-c","tag-nvidia-compile-fail","tag-nvidia-fix","tag-patch","tag-problems","tag-success","tag-testing","tag-uapi","tag-version-h-moved","tag-vmware-workaround","tag-vm_reserved"],"_links":{"self":[{"href":"https:\/\/rglinuxtech.com\/index.php?rest_route=\/wp\/v2\/posts\/487","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\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/rglinuxtech.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=487"}],"version-history":[{"count":0,"href":"https:\/\/rglinuxtech.com\/index.php?rest_route=\/wp\/v2\/posts\/487\/revisions"}],"wp:attachment":[{"href":"https:\/\/rglinuxtech.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=487"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/rglinuxtech.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=487"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/rglinuxtech.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=487"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}