Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 641278 - x11-drivers/nvidia-drivers-387.34 broken with sys-devel/gcc-6.4.0 and sys-devel/gcc-7.2.0 with PIE ENFORCED POLICY
Summary: x11-drivers/nvidia-drivers-387.34 broken with sys-devel/gcc-6.4.0 and sys-dev...
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-12-16 11:52 UTC by Roman Gruber
Modified: 2017-12-16 17:28 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Roman Gruber 2017-12-16 11:52:01 UTC
After the change to sys-devel/gcc-7.2.0 with PIE I am unable to build a kernel and the corresponding nvidia-drivers which boots, loads the X server and has GLX enabled. Boots equals a working notebook where I can use glxinfo and it says direct rendering yes. It means a working X server, a working text console. The status as of now is just init 3.

gcc 6.4.0 with pie, which is marked stable, with stable marked nvidia-drivers has the same results.

--

I changed the Localversion of the kernel to test

ASUS-G75VW /home/roman # grep LOCAL /usr/src/linux
linux/                linux-4.13.16-gentoo/ 
ASUS-G75VW /home/roman # grep LOCAL /usr/src/linux/.config
CONFIG_LOCALVERSION="test"
CONFIG_LOCALVERSION_AUTO=y
CONFIG_HAVE_CMPXCHG_LOCAL=y
CONFIG_X86_LOCAL_APIC=y
ASUS-G75VW /home/roman # 

emerge nvidia drivers @ gcc 7.2.0 + PIE + desktop 17 profile, after the full world set was converted to profile 17. - a few packages which makes fuss. most of those packages were nuked. sys-cluster/libdlm is critical and is still build with old gcc 5.4.0 and profile 13 desktop. it doeds not build.
than build the kernel as usual
moved it to /boot and set it active

Nope box did not boot at all into the X server

I get an error similar to this with nvidia-drivers, when i build it: cc1: error: code model kernel does not support PIC mode




roman@ASUS-G75VW ~ $ glxinfo 
name of display: :0
Error: couldn't find RGB GLX visual or fbconfig

roman@ASUS-G75VW ~ $ qlist -Iv nvidia-drivers
x11-drivers/nvidia-drivers-387.34
roman@ASUS-G75VW ~ $ qlist -Iv sys-devel/gcc
sys-devel/gcc-6.4.0
sys-devel/gcc-7.2.0
sys-devel/gcc-config-1.9.0-r1
roman@ASUS-G75VW ~ $ qlist -Iv gentoo-sources
sys-kernel/gentoo-sources-4.13.16
roman@ASUS-G75VW ~ $ 

ASUS-G75VW /home/roman # eselect profile show
Current /etc/portage/make.profile symlink:
  default/linux/amd64/17.0/desktop

--

Final words

http://www.gentooforum.de/artikel/22537/problem-bei-dem-profil-umstellung-13-17.html#post156520

https://forums.gentoo.org/viewtopic-t-1072934-postdays-0-postorder-asc-start-175.html?sid=b94a389353c1c68e44eaa3de4be6e8a5

how about testing more the packages before 

making an eselect news where you enforce switchting profiles

testing core components

not only the system text editor is broken, named nano (nano does not build anymore!)
sys-cluster/libdlm does not build anymore which is a requirement for lvm2
nvidia-drivers does not build anymore which is a requirement for using the X server or use any games
spidermonkey needs a patch to even build it on gcc 7.2.0

cyrus-sasl is in a rebuild loop. I had to manually fix it because portage can't. And those revdep rebuild scripts, both the old and new one could als not do it.

--

the above error " name of display: :0 - Error: couldn't find RGB GLX visual or fbconfig" is caused because I am unable to rebuild the kernel + nvidia driver with PIE

Please patch the ebuild. it is broken

I also suspsect that the eselect opengl script is broken. That is a matter of investigation as of now
Comment 1 Jonas Stein gentoo-dev 2017-12-16 17:28:03 UTC
> how about testing more the packages before 

please read #641076, create a new ticket and attach your logs.