amd64/179625: xorg-server built with clang does not work, needs USE_GCC=any

Anton Shterenlikht mexas at bristol.ac.uk
Sun Jun 16 20:50:01 UTC 2013


>Number:         179625
>Category:       amd64
>Synopsis:       xorg-server built with clang does not work, needs USE_GCC=any
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-amd64
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Jun 16 20:50:00 UTC 2013
>Closed-Date:
>Last-Modified:
>Originator:     Anton Shterenlikht
>Release:        FreeBSD 10.0-CURRENT amd64
>Organization:
University of Bristol
>Environment:
System: FreeBSD zzz.men.bris.ac.uk 10.0-CURRENT FreeBSD 10.0-CURRENT #4 r249781: Tue Apr 23 07:39:34 BST 2013 root at zzz.men.bris.ac.uk:/usr/obj/usr/src/sys/MINKY amd64


	
>Description:

Briefly:
********

If x11-servers/xorg-server is built with clang (default),
it does not work, i.e. :

(EE) Jun 16 21:05:31 NVIDIA(0): Failed to initialize default colormap

Full details:
*************

I have this graphics card:

vgapci0 at pci0:1:0:0:     class=0x030000 card=0x20d917aa chip=0x040c10de rev=0xa1 hdr=0x00
    vendor     = 'NVIDIA Corporation'
    device     = 'G84M [Quadro FX 570M]'
    class      = display
    subclass   = VGA

I built xorg-server from ports, using clang as the default compiler.

X -configure runs fine, producing /root/xorg.conf.new as:

Section "ServerLayout"
	Identifier     "X.org Configured"
	Screen      0  "Screen0" 0 0
	InputDevice    "Mouse0" "CorePointer"
	InputDevice    "Keyboard0" "CoreKeyboard"
EndSection

Section "Files"
	ModulePath   "/usr/local/lib/xorg/modules"
	FontPath     "/usr/local/lib/X11/fonts/misc/"
	FontPath     "/usr/local/lib/X11/fonts/TTF/"
	FontPath     "/usr/local/lib/X11/fonts/OTF"
	FontPath     "/usr/local/lib/X11/fonts/Type1/"
	FontPath     "/usr/local/lib/X11/fonts/100dpi/"
	FontPath     "/usr/local/lib/X11/fonts/75dpi/"
EndSection

Section "Module"
	Load  "extmod"
	Load  "record"
	Load  "dbe"
	Load  "dri"
	Load  "dri2"
	Load  "glx"
EndSection

Section "InputDevice"
	Identifier  "Keyboard0"
	Driver      "kbd"
EndSection

Section "InputDevice"
	Identifier  "Mouse0"
	Driver      "mouse"
	Option	    "Protocol" "auto"
	Option	    "Device" "/dev/sysmouse"
	Option	    "ZAxisMapping" "4 5 6 7"
EndSection

Section "Monitor"
	Identifier   "Monitor0"
	VendorName   "Monitor Vendor"
	ModelName    "Monitor Model"
EndSection

Section "Device"
	Identifier  "Card0"
	Driver      "nvidia"
	VendorName  "NVIDIA Corporation"
	BoardName   "G84GLM [Quadro FX 570M]"
	BusID       "PCI:1:0:0"
EndSection

Section "Screen"
	Identifier "Screen0"
	Device     "Card0"
	Monitor    "Monitor0"
	SubSection "Display"
		Viewport   0 0
		Depth     1
	EndSubSection
	SubSection "Display"
		Viewport   0 0
		Depth     4
	EndSubSection
	SubSection "Display"
		Viewport   0 0
		Depth     8
	EndSubSection
	SubSection "Display"
		Viewport   0 0
		Depth     15
	EndSubSection
	SubSection "Display"
		Viewport   0 0
		Depth     16
	EndSubSection
	SubSection "Display"
		Viewport   0 0
		Depth     24
	EndSubSection
EndSection


Then

X -config /root/xorg.conf.new -retro

gives this error:

X.Org X Server 1.7.7
Release Date: 2010-05-04
X Protocol Version 11, Revision 0
Build Operating System: FreeBSD 10.0-CURRENT amd64 
Current Operating System: FreeBSD zzz.men.bris.ac.uk 10.0-CURRENT FreeBSD 10.0-CURRENT #4 r249781: Tue Apr 23 07:39:34 BST 2013     root at zzz.men.bris.ac.uk:/usr/obj/usr/src/sys/MINKY amd64
Build Date: 16 June 2013  09:02:14PM
 
Current version of pixman: 0.28.2
	Before reporting problems, check http://wiki.x.org
	to make sure that you have the latest version.
Markers: (--) probed, (**) from config file, (==) default setting,
	(++) from command line, (!!) notice, (II) informational,
	(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(==) Log file: "/var/log/Xorg.0.log", Time: Sun Jun 16 21:05:25 2013
(++) Using config file: "/root/xorg.conf.new"
(==) ServerLayout "X.org Configured"
(**) |-->Screen "Screen0" (0)
(**) |   |-->Monitor "Monitor0"
(**) |   |-->Device "Card0"
(**) |-->Input Device "Mouse0"
(**) |-->Input Device "Keyboard0"
(==) Automatically adding devices
(==) Automatically enabling devices
(**) FontPath set to:
	/usr/local/lib/X11/fonts/misc/,
	/usr/local/lib/X11/fonts/TTF/,
	/usr/local/lib/X11/fonts/OTF,
	/usr/local/lib/X11/fonts/Type1/,
	/usr/local/lib/X11/fonts/100dpi/,
	/usr/local/lib/X11/fonts/75dpi/,
	/usr/local/lib/X11/fonts/misc/,
	/usr/local/lib/X11/fonts/TTF/,
	/usr/local/lib/X11/fonts/OTF,
	/usr/local/lib/X11/fonts/Type1/,
	/usr/local/lib/X11/fonts/100dpi/,
	/usr/local/lib/X11/fonts/75dpi/
(**) ModulePath set to "/usr/local/lib/xorg/modules"
(WW) AllowEmptyInput is on, devices using drivers 'kbd', 'mouse' or 'vmmouse' will be disabled.
(WW) Disabling Mouse0
(WW) Disabling Keyboard0
(II) Loader magic: 0x7b6a50
(II) Module ABI versions:
	X.Org ANSI C Emulation: 0.4
	X.Org Video Driver: 6.0
	X.Org XInput driver : 7.0
	X.Org Server Extension : 2.0
(--) Using syscons driver with X support (version 2.0)
(--) using VT number 9

(--) PCI:*(0:1:0:0) 10de:040c:17aa:20d9 NVIDIA Corporation G84GLM [Quadro FX 570M] rev 161, Mem @ 0xd6000000/16777216, 0xe0000000/268435456, 0xd4000000/33554432, I/O @ 0x00002000/128, BIOS @ 0x????????/65536
(II) "extmod" will be loaded. This was enabled by default and also specified in the config file.
(II) "dbe" will be loaded. This was enabled by default and also specified in the config file.
(II) "glx" will be loaded. This was enabled by default and also specified in the config file.
(II) "record" will be loaded. This was enabled by default and also specified in the config file.
(II) "dri" will be loaded. This was enabled by default and also specified in the config file.
(II) "dri2" will be loaded. This was enabled by default and also specified in the config file.
(II) LoadModule: "extmod"
(II) Loading /usr/local/lib/xorg/modules/extensions/libextmod.so
(II) Module extmod: vendor="X.Org Foundation"
	compiled for 1.7.7, module version = 1.0.0
	Module class: X.Org Server Extension
	ABI class: X.Org Server Extension, version 2.0
(II) Loading extension MIT-SCREEN-SAVER
(II) Loading extension XFree86-VidModeExtension
(II) Loading extension XFree86-DGA
(II) Loading extension DPMS
(II) Loading extension XVideo
(II) Loading extension XVideo-MotionCompensation
(II) Loading extension X-Resource
(II) LoadModule: "record"
(II) Loading /usr/local/lib/xorg/modules/extensions/librecord.so
(II) Module record: vendor="X.Org Foundation"
	compiled for 1.7.7, module version = 1.13.0
	Module class: X.Org Server Extension
	ABI class: X.Org Server Extension, version 2.0
(II) Loading extension RECORD
(II) LoadModule: "dbe"
(II) Loading /usr/local/lib/xorg/modules/extensions/libdbe.so
(II) Module dbe: vendor="X.Org Foundation"
	compiled for 1.7.7, module version = 1.0.0
	Module class: X.Org Server Extension
	ABI class: X.Org Server Extension, version 2.0
(II) Loading extension DOUBLE-BUFFER
(II) LoadModule: "dri"
(II) Loading /usr/local/lib/xorg/modules/extensions/libdri.so
(II) Module dri: vendor="X.Org Foundation"
	compiled for 1.7.7, module version = 1.0.0
	ABI class: X.Org Server Extension, version 2.0
(II) Loading extension XFree86-DRI
(II) LoadModule: "dri2"
(II) Loading /usr/local/lib/xorg/modules/extensions/libdri2.so
(II) Module dri2: vendor="X.Org Foundation"
	compiled for 1.7.7, module version = 1.1.0
	ABI class: X.Org Server Extension, version 2.0
(II) Loading extension DRI2
(II) LoadModule: "glx"
(II) Loading /usr/local/lib/xorg/modules/extensions/libglx.so
(II) Module glx: vendor="NVIDIA Corporation"
	compiled for 4.0.2, module version = 1.0.0
	Module class: X.Org Server Extension
(II) NVIDIA GLX Module  310.44  Wed Mar 27 15:00:45 PDT 2013
(II) Loading extension GLX
(II) LoadModule: "nvidia"
(II) Loading /usr/local/lib/xorg/modules/drivers/nvidia_drv.so
(II) Module nvidia: vendor="NVIDIA Corporation"
	compiled for 4.0.2, module version = 1.0.0
	Module class: X.Org Video Driver
(II) NVIDIA dlloader X Driver  310.44  Wed Mar 27 14:44:32 PDT 2013
(II) NVIDIA Unified Driver for all Supported NVIDIA GPUs
(II) Primary Device is: PCI 01 at 00:00:0
(II) Loading sub module "wfb"
(II) LoadModule: "wfb"
(II) Loading /usr/local/lib/xorg/modules/libwfb.so
(II) Module wfb: vendor="X.Org Foundation"
	compiled for 1.7.7, module version = 1.0.0
	ABI class: X.Org ANSI C Emulation, version 0.4
(II) Loading sub module "ramdac"
(II) LoadModule: "ramdac"
(II) Module "ramdac" already built-in
(WW) VGA arbiter: cannot open kernel arbiter, no multi-card support
(==) NVIDIA(0): Depth 24, (==) framebuffer bpp 32
(==) NVIDIA(0): RGB weight 888
(==) NVIDIA(0): Default visual is TrueColor
(==) NVIDIA(0): Using gamma correction (1.0, 1.0, 1.0)
(**) Jun 16 21:05:25 NVIDIA(0): Enabling 2D acceleration
(II) Jun 16 21:05:29 NVIDIA(0): NVIDIA GPU Quadro FX 570M (G84GL) at PCI:1:0:0 (GPU-0)
(--) Jun 16 21:05:29 NVIDIA(0): Memory: 524288 kBytes
(--) Jun 16 21:05:29 NVIDIA(0): VideoBIOS: 60.84.51.00.00
(II) Jun 16 21:05:29 NVIDIA(0): Detected PCI Express Link width: 16X
(--) Jun 16 21:05:29 NVIDIA(0): Valid display device(s) on Quadro FX 570M at PCI:1:0:0
(--) Jun 16 21:05:29 NVIDIA(0):     CRT-0
(--) Jun 16 21:05:29 NVIDIA(0):     IBM (DFP-0) (connected)
(--) Jun 16 21:05:29 NVIDIA(0):     DFP-1
(--) Jun 16 21:05:29 NVIDIA(0): CRT-0: 400.0 MHz maximum pixel clock
(--) Jun 16 21:05:29 NVIDIA(0): IBM (DFP-0): 330.0 MHz maximum pixel clock
(--) Jun 16 21:05:29 NVIDIA(0): IBM (DFP-0): Internal Dual Link LVDS
(--) Jun 16 21:05:29 NVIDIA(0): DFP-1: 330.0 MHz maximum pixel clock
(--) Jun 16 21:05:29 NVIDIA(0): DFP-1: Internal Single Link TMDS
(**) Jun 16 21:05:29 NVIDIA(0): Using HorizSync/VertRefresh ranges from the EDID for display
(**) Jun 16 21:05:29 NVIDIA(0):     device IBM (DFP-0) (Using EDID frequencies has been
(**) Jun 16 21:05:29 NVIDIA(0):     enabled on all display devices.)
(==) Jun 16 21:05:29 NVIDIA(0): 
(==) Jun 16 21:05:29 NVIDIA(0): No modes were requested; the default mode "nvidia-auto-select"
(==) Jun 16 21:05:29 NVIDIA(0):     will be used as the requested mode.
(==) Jun 16 21:05:29 NVIDIA(0): 
(II) Jun 16 21:05:29 NVIDIA(0): Validated MetaModes:
(II) Jun 16 21:05:29 NVIDIA(0):     "DFP-0:nvidia-auto-select"
(II) Jun 16 21:05:29 NVIDIA(0): Virtual screen size determined to be 1680 x 1050
(--) Jun 16 21:05:31 NVIDIA(0): DPI set to (129, 127); computed from "UseEdidDpi" X config
(--) Jun 16 21:05:31 NVIDIA(0):     option
(WW) Jun 16 21:05:31 NVIDIA(0): UBB is incompatible with the Composite extension.  Disabling
(WW) Jun 16 21:05:31 NVIDIA(0):     UBB.
(--) Depth 24 pixmap format is 32 bpp
(II) Jun 16 21:05:31 NVIDIA: Reserving 768.00 MB of virtual memory for indirect memory
(II) Jun 16 21:05:31 NVIDIA:     access.
(II) Jun 16 21:05:31 NVIDIA(0): Setting mode "DFP-0:nvidia-auto-select"
(II) Loading extension NV-GLX
(==) NVIDIA(0): Disabling shared memory pixmaps
(==) NVIDIA(0): Backing store disabled
(==) NVIDIA(0): Silken mouse enabled
(EE) Jun 16 21:05:31 NVIDIA(0): Failed to initialize default colormap
(EE) NVIDIA(0):  *** Aborting ***

Fatal server error:
AddScreen/ScreenInit failed for driver 0


Please consult the The X.Org Foundation support 
	 at http://wiki.x.org
 for help. 
Please also check the log file at "/var/log/Xorg.0.log" for additional information.

	
>How-To-Repeat:
	
>Fix:

Rebuilding xorg-server with USE_GCC=any helps.

	


>Release-Note:
>Audit-Trail:
>Unformatted:


More information about the freebsd-amd64 mailing list