Bug 31458 - gallium/nouveau currently doesn't compile
Summary: gallium/nouveau currently doesn't compile
Status: RESOLVED NOTABUG
Alias: None
Product: Mesa
Classification: Unclassified
Component: Other (show other bugs)
Version: git
Hardware: x86-64 (AMD64) Linux (All)
: medium normal
Assignee: mesa-dev
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-11-08 00:53 UTC by Ralf Hildebrandt
Modified: 2012-11-10 19:12 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments

Description Ralf Hildebrandt 2010-11-08 00:53:19 UTC
make[4]: Entering directory `/home/hildeb/mesa/src/gallium/drivers/nouveau'
gcc -c -I. -I../../../../src/gallium/include -I../../../../src/gallium/auxiliary -I../../../../src/gallium/drivers -I../../../../src/gallium/drivers/nouveau/include -g -O2 -Wall -Wmissing-prototypes -std=c99 -ffast-math -fvisibility=hidden -fno-strict-aliasing -g  -fPIC   -D_GNU_SOURCE -DPTHREADS -DDEBUG -DHAVE_POSIX_MEMALIGN -DGLX_USE_TLS -DPTHREADS -DUSE_EXTERNAL_DXTN_LIB=1 -DIN_DRI_DRIVER -DGLX_DIRECT_RENDERING -DGLX_INDIRECT_RENDERING -DHAVE_ALIAS  nouveau_screen.c -o nouveau_screen.o
nouveau_screen.c: In function ‘nouveau_screen_init’:
nouveau_screen.c:239: warning: passing argument 4 of ‘nouveau_channel_alloc’ makes pointer from integer without a cast
/usr/include/nouveau/nouveau_channel.h:51: note: expected ‘struct nouveau_channel **’ but argument is of type ‘int’
nouveau_screen.c:239: error: too many arguments to function ‘nouveau_channel_alloc’
make[4]: *** [nouveau_screen.o] Error 1
make[4]: Leaving directory `/home/hildeb/mesa/src/gallium/drivers/nouveau'
make[3]: *** [default] Error 1
make[3]: Leaving directory `/home/hildeb/mesa/src/gallium/drivers'
make[2]: *** [default] Error 1
make[2]: Leaving directory `/home/hildeb/mesa/src/gallium'
make[1]: *** [subdirs] Error 1
make[1]: Leaving directory `/home/hildeb/mesa/src'
make: *** [default] Error 1
Comment 1 wucan 2010-11-08 04:41:27 UTC
I happened to encounter the same error as yours, at last I found in the libdrm, in nouveau/nouveau_channel.c, where nouveau_channel_alloc() defined, had only take 3 parameter. 
So update libdrm and the error should gone.


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.