<div dir="ltr">Hi,<div><br></div><div>I try to build vmwgfx on Ubuntu 12.04 with gcc-4.8.1, make 3.8.1. I clone the source files using the following command:</div><div><span style="color:rgb(0,0,0);font-size:10pt"><br></span></div><div><span style="color:rgb(0,0,0);font-size:10pt">git clone git://<a href="http://anongit.freedesktop.org/git/mesa/vmwgfx">anongit.freedesktop.org/git/mesa/vmwgfx</a></span></div><div><br></div><div>However, when I use 'make' command to build it, I got one error like this:</div><div><br></div><div>================================================================</div><div><div>zg@ubuntu:~/vmware/vmwgfx$ make</div><div>make -C /lib/modules/3.13.0-108-generic/build KCPPFLAGS="-DVMWGFX_STANDALONE -DTTM_STANDALONE" SUBDIRS=`/bin/pwd` DRMSRCDIR=`/bin/pwd` modules</div><div>make[1]: Entering directory `/usr/src/linux-headers-3.13.0-108-generic'</div><div> CC [M] /home/zg/vmware/vmwgfx/ww_mutex.o</div><div> CC [M] /home/zg/vmware/vmwgfx/dma-fence.o</div><div>In file included from /home/zg/vmware/vmwgfx/dma-fence.c:37:0:</div><div>/home/zg/vmware/vmwgfx/drm_compat.h:113:3: error: expected identifier or ‘(’ before ‘{’ token</div><div> ({BUILD_BUG_ON(_s != TASK_NORMAL); \</div><div> ^</div><div>include/linux/sched.h:2077:12: note: in expansion of macro ‘wake_up_state’</div><div> extern int wake_up_state(struct task_struct *tsk, unsigned int state);</div><div> ^</div><div>make[2]: *** [/home/zg/vmware/vmwgfx/dma-fence.o] Error 1</div><div>make[1]: *** [_module_/home/zg/vmware/vmwgfx] Error 2</div><div>make[1]: Leaving directory `/usr/src/linux-headers-3.13.0-108-generic'</div><div>make: *** [modules] Error 2</div></div><div>================================================================<br></div><div><br></div><div>I opened the drm_compat.h and it seems that nothing goes wrong for line 113. Does anyone have some idea on this problem?</div><div><br></div><div><img src="cid:ii_15a84c4663fc1856" alt="Inline image 1" width="544" height="197"><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br clear="all"><div><div class="gmail_signature"><div dir="ltr">Best regards,<div>Zhiguang</div></div></div></div>
</div></div>