Date: Mon, 4 Jun 2012 07:15:52 -0700 From: David Wolfskill <david@catwhisker.org> Cc: freebsd-hackers@freebsd.org Subject: Re: nvidia-driver-295.49 is highly unstable Message-ID: <20120604141552.GK1492@albert.catwhisker.org> In-Reply-To: <4FCCBDD6.5020800@acsalaska.net> References: <4FC25A5F.4020401@rawbw.com> <20120527170142.GD1509@albert.catwhisker.org> <4FC25ECC.2060400@rawbw.com> <201205272051.00016.lobo@bsd.com.br> <20120603191215.6590eec3@udns.ultimateDNS.NET> <4FCC69CD.7010109@mthelicon.com> <4FCCBDD6.5020800@acsalaska.net>
next in thread | previous in thread | raw e-mail | index | archive | help
[-- Attachment #1 --]
On Mon, Jun 04, 2012 at 03:53:26PM +0200, Mel Flynn wrote:
> On 4-6-2012 9:54, Pegasus Mc Cleaft wrote:
>
> > I forgot to switch back to base gcc before
> > compiling the nvidia driver. I installed the driver and rebooted, xorg
> > came up but as soon as I logged in, kwin crashed, then the machine
> > kernel panicked and rebooted. I rebooted and crashed a few more times
> > before realizing what I had done. I recompiled the driver with GCC and
> > the machine has been rock-stable with the nvidia driver.
> >
> > Maybe the OP has done the same thing and not realized it?
>
> That would account for what I'm seeing too and I know I've compiled
> nvidia-driver with clang. Except in my case it's Xfce4 and no panics,
> but completely unusable (fonts were too large, offsets calculated
> wrongly, terminal emulation was like opening something in vi with
> TERM=dumb, mouse movement shocked, machine under constant load).
FWIW, a couple of weeks ago, I started (also) tracking stable/9 daily
with the following in /etc/src.conf:
PORTS_MODULES=x11/nvidia-driver
CC=clang
CXX=clang++
CPP=clang-cpp
Given that, as well as the following excerpt from this morning's
typescript from the build:
...
===> nvidia-driver-295.49 depends on file: /usr/local/libdata/pkgconfig/xorg-server.pc - found
===> nvidia-driver-295.49 depends on shared library: GL.1 - found
===> Configuring for nvidia-driver-295.49
===> Building for nvidia-driver-295.49
===> src (all)
@ -> /usr/src/sys
machine -> /usr/src/sys/i386/include
x86 -> /usr/src/sys/x86/include
awk -f @/tools/makeobjops.awk @/kern/device_if.m -h
...
awk -f @/tools/vnode_if.awk @/kern/vnode_if.src -h
clang -O2 -pipe -fno-strict-aliasing -DNV_VERSION_STRING=\"295.49\" -D__KERNEL__ -DNVRM -Wno-unused-function -Wuninitialized -O -UDEBUG -U_DEBUG -DNDEBUG -Werror -D_KERNEL -DKLD_MODULE -nostdinc -I. -I. -I@ -I@/contrib/altq -fno-common -mno-aes -mno-avx -mno-mmx -mno-sse -msoft-float -ffreestanding -fstack-protector -std=iso9899:1999 -Qunused-arguments -fstack-protector -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -fformat-extensions -Wmissing-include-dirs -fdiagnostics-show-option -Wno-error-tautological-compare -Wno-error-empty-body -Wno-error-parentheses-equality -c nvidia_ctl.c
clang -O2 -pipe -fno-strict-aliasing -DNV_VERSION_STRING=\"295.49\" -D__KERNEL__ -DNVRM -Wno-unused-function -Wuninitialized -O -UDEBUG -U_DEBUG -DNDEBUG -Werror -D_KERNEL -DKLD_MODULE -nostdinc -I. -I. -I@ -I@/contrib/altq -fno-common -mno-aes -mno-avx -mno-mmx -mno-sse -msoft-float -ffreestanding -fstack-protector -std=iso9899:1999 -Qunused-arguments -fstack-protector -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -fformat-extensions -Wmissing-include-dirs -fdiagnostics-show-option -Wno-error-tautological-compare -Wno-error-empty-body -Wno-error-parentheses-equality -c nvidia_dev.c
....
I believe I am actually building with clang (on that slice -- I
build it with gcc on the other slices).
I did find that whether I use gcc or clang, I needed to modify xorg.conf
to say:
Section "Device"
...
Screen 0
Option "UseEdidDpi" "False" # [<bool>]
EndSection
...
Section "Monitor"
...
DisplaySize 508 317
EndSection
....
to get the font size I had when I was using the nv driver (and to which
I had become accustomed).
As shown above, though, I'm running FreeBSD/i386.
Peace,
david
--
David H. Wolfskill david@catwhisker.org
Depriving a girl or boy of an opportunity for education is evil.
See http://www.catwhisker.org/~david/publickey.gpg for my public key.
[-- Attachment #2 --]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.19 (FreeBSD)
iEYEARECAAYFAk/MwxcACgkQmprOCmdXAD2OeQCgh/RoQNmhte1KAVRtj2T1uDLj
8NkAmgMumyPwyf8wdrgHT31qLll0iRzE
=bgf0
-----END PGP SIGNATURE-----
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20120604141552.GK1492>
