Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 381053

Summary: x11-drivers/nvidia-drivers-270.41.19 won't compile with sys-kernel/pf-sources-3.0.2
Product: Gentoo Linux Reporter: Dmitriy Vilkov <dav.daemon>
Component: New packagesAssignee: Gentoo Linux bug wranglers <bug-wranglers>
Status: RESOLVED NEEDINFO    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: sys-kernel/pf-sources overlay

Description Dmitriy Vilkov 2011-08-29 12:45:33 UTC
Nvidia drivers won't compile under GCC 4.5.3-r1 with sys-kernel/pf-sources-3.0.2 kernel.

Reproducible: Always
Comment 1 Dmitriy Vilkov 2011-08-29 12:49:11 UTC
Created attachment 284993 [details]
sys-kernel/pf-sources overlay

This is an overlay with patch to the kernel sys-kernel/pf-sources-3.0.2 that fixes the bug.
Comment 2 Jeroen Roovers (RETIRED) gentoo-dev 2011-08-31 16:04:33 UTC
Comment on attachment 284993 [details]
sys-kernel/pf-sources overlay

That's not a patch.
Comment 3 Jeroen Roovers (RETIRED) gentoo-dev 2011-08-31 16:05:54 UTC
Please describe the build error, attach the build log, and post your `emerge --info' output.

Also, do not attach tarballs with complete solutions, but supply the actual patch that humans can read and that does exactly what you describe.
Comment 4 Dmitriy Vilkov 2011-09-02 09:56:46 UTC
This overlay contains only a patch. I did it for people who don't like to wait a patch in the main stream.
And this patch do exactly what I described.
If you would look into this patch you will see that only one string has changed in the kernel sources. It's very trivial patch. But to get into this bug I've spent about 3 hours. It thus that at me the црщдуsystem is adjusted
Comment 5 Dmitriy Vilkov 2011-09-02 10:11:55 UTC
It thus that I have the whole (GCC, Kernel, etc) system set.
I just wanted to help you.
If you would like to reproduce the bug you will need to install GCC 4.5.3-r1, sys-kernel/pf-sources-3.0.2 or sys-kernel/pf-sources-3.0.1 and try to build the nvidia drivers. It won't compile without any messages. Then you need to go to nvidia sources and compile it manually after this you will get a message about sizeof unnamed structure or something like that i don't remember. Then just google this error message. And you will get info about some optimizations tricks in GCC because of it we have got this error.