Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 10 Jul 2012 06:41:41 -0700
From:      Robert <traveling08@cox.net>
To:        Dimitry Andric <dim@FreeBSD.org>
Cc:        "freebsd-stable@freebsd.org" <freebsd-stable@freebsd.org>
Subject:   Re: Build failure xorg-drivers with Clang
Message-ID:  <20120710064141.060aa4f6@dell64>
In-Reply-To: <4FFC02A2.8010303@FreeBSD.org>
References:  <20120709134426.7f01dd96@dell64> <4FFC02A2.8010303@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, 10 Jul 2012 12:23:30 +0200
Dimitry Andric <dim@FreeBSD.org> wrote:

> On 2012-07-09 22:44, Robert wrote:
> > I am trying to build a 9.0 Stable system and am getting this error
> > when building xorg meta port. I have clang set up as follows
> ...
> > The error:
> > 
> > In file included from xf86Helper.c:54:
> > In file included
> > from ../../../hw/xfree86/os-support/xf86_OSlib.h:451: ./compiler.h:1104:24:
> > error: invalid operand in inline asm: 'in${0:B} ($1)' __asm__
> > __volatile__("in%B0 (%1)" : ^
> > ./compiler.h:1104:24: error: unknown use of instruction mnemonic
> > without a size suffix
> > <inline asm>:1:2: note: instantiated into assembly here
> >         in (%dx)
> >         ^
> 
> Are you sure this is a failure in xorg-drivers?  This looks more like
> xorg-server code.  Also, are you using WITH_NEW_XORG or not?  Last but
> not least, what does "clang -v" print?
> 
> In any case, it would be enlightening if you post the full build log
> somewhere.

Dimitry

Thanks for responding. You are right, the error is when building
xorg-server. 

I am not using WITH_NEW_XORG as this is an older P4 computer. I am not
sure if I should be using NEW XORG. Here is my video card.

vgapci0@pci0:1:0:0:	class=0x030000 card=0x00000000
chip=0x004810de rev=0xa1 hdr=0x00
    vendor     = 'nVidia Corporation'
    device     = 'NV40 [GeForce 6800 XT]'
    class      = display
    subclass   = VGA


CPU: Intel(R) Pentium(R) 4 CPU 2.60GHz (2595.00-MHz 686-class CPU)
  Origin = "GenuineIntel"  Id = 0xf29  Family = f  Model = 2  Stepping
= 9
  Features=0xbfebfbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CLFLUSH,DTS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE>
  Features2=0x4400<CNXT-ID,xTPR>
real memory  = 2147483648 (2048 MB)
avail memory = 2086125568 (1989 MB)


root@pita9bsd:/root # clang -v
FreeBSD clang version 3.1 (branches/release_31 156863) 20120523
Target: i386-unknown-freebsd9.0
Thread model: posix

Complete attempt at build (xorg-drivers.log) can be viewed at
pastebin.com/u/traveling08

Thanks again.

Robert



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20120710064141.060aa4f6>