Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 414645 - x11-drivers/nvidia-drivers with linux 3.4.0 - .../work/kernel/nv-linux.h:114:75: fatal error: asm/system.h: No such file or directory
Summary: x11-drivers/nvidia-drivers with linux 3.4.0 - .../work/kernel/nv-linux.h:114:...
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Doug Goldstein (RETIRED)
URL:
Whiteboard:
Keywords: PATCH
: 415245 416351 416953 416997 417141 419775 (view as bug list)
Depends on:
Blocks:
 
Reported: 2012-05-04 21:15 UTC by Daniel Santos
Modified: 2012-06-05 15:47 UTC (History)
11 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
patch for nvidia-drivers-295.40.ebuild.patch (should be renamed to -r1 though) (nvidia-drivers-295.40.ebuild.patch,468 bytes, text/plain)
2012-05-04 21:15 UTC, Daniel Santos
Details
Linux 3.4.0+ friendly patch (linux-3.4.0.patch,1.23 KB, patch)
2012-05-04 21:17 UTC, Daniel Santos
Details | Diff
full build log (x11-drivers:nvidia-drivers-295.40:20120504-203759.log,11.52 KB, text/plain)
2012-05-04 21:19 UTC, Daniel Santos
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Daniel Santos 2012-05-04 21:15:51 UTC
Created attachment 310807 [details]
patch for nvidia-drivers-295.40.ebuild.patch (should be renamed to -r1 though)

Linux removed most ${arch}/asm/system.h, dismantling them into separate files.


In file included from /tmp/portage/x11-drivers/nvidia-drivers-295.40/work/kernel/nv.c:13:0:
/tmp/portage/x11-drivers/nvidia-drivers-295.40/work/kernel/nv-linux.h:114:75: fatal error: asm/system.h: No such file or directoryIn file included from /tmp/portage/x11-drivers/nvidia-drivers-295.40/work/kernel/nv-chrdev.c:15:0:
/tmp/portage/x11-drivers/nvidia-drivers-295.40/work/kernel/nv-linux.h:114:75: fatal error: asm/system.h: No such file or directory
compilation terminated.

compilation terminated.
make[3]: *** [/tmp/portage/x11-drivers/nvidia-drivers-295.40/work/kernel/nv-chrdev.o] Error 1
make[3]: *** Waiting for unfinished jobs....
make[3]: *** [/tmp/portage/x11-drivers/nvidia-drivers-295.40/work/kernel/nv.o] Error 1
In file included from /tmp/portage/x11-drivers/nvidia-drivers-295.40/work/kernel/nv-acpi.c:15:0:
/tmp/portage/x11-drivers/nvidia-drivers-295.40/work/kernel/nv-linux.h:114:75: fatal error: asm/system.h: No such file or directory
compilation terminated.
make[3]: *** [/tmp/portage/x11-drivers/nvidia-drivers-295.40/work/kernel/nv-acpi.o] Error 1
In file included from /tmp/portage/x11-drivers/nvidia-drivers-295.40/work/kernel/nv-cray.c:15:0:
/tmp/portage/x11-drivers/nvidia-drivers-295.40/work/kernel/nv-linux.h:114:75: fatal error: asm/system.h: No such file or directory
compilation terminated.
Comment 1 Daniel Santos 2012-05-04 21:17:18 UTC
Created attachment 310809 [details, diff]
Linux 3.4.0+ friendly patch

x11-drivers/nvidia-drivers/files/linux-3.4.0.patch
Comment 2 Daniel Santos 2012-05-04 21:19:08 UTC
Created attachment 310811 [details]
full build log
Comment 3 Doug Goldstein (RETIRED) gentoo-dev 2012-05-06 21:50:05 UTC
You mean a kernel that's not released yet and we don't support, I'm not surprised.
Comment 4 Daniel Santos 2012-05-06 22:54:12 UTC
Well, it isn't going to change, the merge window is closed and it'll be live in 3-4 weeks, so we might as well deal with it.  If it's not fixed when it releases, I'll reopen
Comment 5 Doug Goldstein (RETIRED) gentoo-dev 2012-05-07 14:49:42 UTC
And it'll be re-closed. Our policy is to wait for officially supported releases and to not patch them.
Comment 6 George Bakos 2012-05-09 16:10:06 UTC
*** Bug 415245 has been marked as a duplicate of this bug. ***
Comment 7 Jeroen Roovers (RETIRED) gentoo-dev 2012-05-18 14:47:17 UTC
*** Bug 416351 has been marked as a duplicate of this bug. ***
Comment 8 Martin Jansa 2012-05-18 14:52:45 UTC
Newest version 295.53 builds fine with 3.4-rc7.
http://www.nvidia.com/object/linux-display-amd64-295.53-driver.html

"Higher" but older 302.07 has the same problem.
Comment 9 Daniel Santos 2012-05-18 19:43:36 UTC
So exactly why do you want to wait until it's released to fix this when the merge window is long sinse closed for 3.4.0, which is at rc7 and will release any day now?  You could have just comitted this instead of having to continually close new dupes.
Comment 10 Doug Goldstein (RETIRED) gentoo-dev 2012-05-19 02:18:01 UTC
It's been the policy for years and years to not patch nvidia-drivers but wait for a new official release. It's not going to magically change. I volunteer my time to maintain Gentoo ebuilds, I do not work for you. Don't change ticket statuses either.

Unfortunately a new release from nvidia came out while I am on vacation and looking at this bug on my iPad. If you need such immediate support I recommend you use a distro that has paired support with known timelines of when they will resolve your issue. If you are set on Gentoo then I recommend you hire a Gentoo developer to work in house for you. They can help maintain release candidate kernels as well as any other components those rc kernels might need (e.g. udev). Now if you don't fall into either of these categories and it's just that your compiler is idle and you see new versions on freshmeat/freecode then I'll again remind you that you are benefiting from a product put together by volunteers and not your employees. Best way to improve that product is to volunteer yourself.
Comment 11 Jeroen Roovers (RETIRED) gentoo-dev 2012-05-21 19:44:41 UTC
*** Bug 416953 has been marked as a duplicate of this bug. ***
Comment 12 Vasilis Lourdas 2012-05-21 21:03:29 UTC
FYI, the supplied patch works fine here with the final 3.4 kernel and nvidia-295.49.
Comment 13 Doug Goldstein (RETIRED) gentoo-dev 2012-05-21 22:00:50 UTC
Use 295.53
Comment 14 Sven 2012-05-21 22:03:29 UTC
(In reply to comment #10)
> It's been the policy for years and years to not patch nvidia-drivers but
> wait for a new official release. It's not going to magically change. I
> volunteer my time to maintain Gentoo ebuilds, I do not work for you. Don't
> change ticket statuses either.

The good thing is, that you get help from the community. And this is far away from the usual complaints about nvidia drivers not compiling. This bug actually contains a very non-intrusive patch to fix nvidia-drivers.

Here's a proposal:
why don't you allow for patches in /etc/portage/patches? As far as I'm aware, only gcc ebuilds support custom patches in /etc/portage/patches. If nvidia-drivers would support it, much less people will probably bother you to modify the in-tree ebuilds.
Comment 15 Rafał Mużyło 2012-05-21 23:46:02 UTC
*** Bug 416997 has been marked as a duplicate of this bug. ***
Comment 16 Doug Goldstein (RETIRED) gentoo-dev 2012-05-22 02:28:15 UTC
(In reply to comment #14)
> Here's a proposal:
> why don't you allow for patches in /etc/portage/patches? As far as I'm
> aware, only gcc ebuilds support custom patches in /etc/portage/patches. If
> nvidia-drivers would support it, much less people will probably bother you
> to modify the in-tree ebuilds.

As long as the patches work with epatch_user, you should be set.
Comment 17 Jeroen Roovers (RETIRED) gentoo-dev 2012-05-23 14:16:03 UTC
*** Bug 417141 has been marked as a duplicate of this bug. ***
Comment 18 Mike Gilbert gentoo-dev 2012-06-05 15:46:12 UTC
*** Bug 419775 has been marked as a duplicate of this bug. ***