[Nouveau] git compile failure

Yan Seiner yan at seiner.com
Fri Jan 30 06:16:18 PST 2009


Pekka Paalanen wrote:
> On Thu, 29 Jan 2009 09:10:24 -0800 (PST)
> "Yan Seiner" <yan at seiner.com> wrote:
>
>   
>> I'm trying to build nouveau form git. The compile fails with:
>>
>> gcc -DHAVE_CONFIG_H -I. -I.. -D_XOPEN_SOURCE=500 -I
>> -I/usr/include/pixman-1 -I/usr/include/drm -I/usr/include/X11/dri -g -O2
>> -Wall -minline-all-stringops -D_XOPEN_SOURCE=500 -I
>> -I/usr/include/pixman-1 -I/usr/include/drm -I/usr/include/X11/dri -MT
>> nouveau_device.lo -MD -MP -MF .deps/nouveau_device.Tpo -c
>> nouveau_device.c -fPIC -DPIC -o .libs/nouveau_device.o
>> In file included from nouveau_device.c:27:
>> nouveau_drmif.h:47: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or
>> ‘__attribute__’ before ‘int’
>>     
>
> I've no idea how that happens. It compiles fine for me, just tried.
> You might try something like
> $ git remote update
> $ make distclean
> $ git rebase origin/master
> $ ./autogen.sh
> $ make
>   
OK, I've tried that....  No joy.  The problem is that the autogen script 
doesn't find any of the correct header files.  It's a debian dependency 
issue.  Even when I edit the source by hand to put in the correct 
locations, it still fails.  I think I'm wasting a lot of time trying to 
reverse-engineer the debian deps rather than building nouveau.  Is there 
a 'getting started' howto for building X?  I only need the very basics 
for testing nouveau.  Is there some basic basic script that will pull 
down the tarballs and allow me to install a minimal xorg for testing 
nouveau?

--Yan

> ...
>   
>> nouveau_device.c: In function ‘nouveau_device_open_existing’:
>> nouveau_device.c:53: warning: implicit declaration of function
>> ‘nouveau_device_get_param’
>> make[2]: *** [nouveau_device.lo] Error 1
>> make[2]: Leaving directory `/usr/src/nouveau/xf86-video-nouveau/src'
>>
>>
>> The first offending line is here:
>>
>> NOUVEAU_PRIVATE int
>> nouveau_device_open_existing(struct nouveau_device **, int close,
>> int fd, drm_context_t ctx);
>>     
>
> ./src/nouveau_local.h:29:#define NOUVEAU_PRIVATE _X_HIDDEN
>
>   



More information about the Nouveau mailing list