problem on building vmwgfx

Zhiguang Liu <[email protected]>
Newsgroups gmane.comp.video.mesa3d.user
Message-ID <CAB8d-GWWJTt3HcxyU9Zva-a+D=-hXirOmQUvoPj2snhxYaMegA@mail.gmail.com>
Hi,

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:

git clone git://anongit.freedesktop.org/git/mesa/vmwgfx

However, when I use 'make' command to build it, I got one error like this:

================================================================
zg@ubuntu:~/vmware/vmwgfx$ make
make -C /lib/modules/3.13.0-108-generic/build
 KCPPFLAGS="-DVMWGFX_STANDALONE -DTTM_STANDALONE" SUBDIRS=`/bin/pwd`
DRMSRCDIR=`/bin/pwd` modules
make[1]: Entering directory `/usr/src/linux-headers-3.13.0-108-generic'
  CC [M]  /home/zg/vmware/vmwgfx/ww_mutex.o
  CC [M]  /home/zg/vmware/vmwgfx/dma-fence.o
In file included from /home/zg/vmware/vmwgfx/dma-fence.c:37:0:
/home/zg/vmware/vmwgfx/drm_compat.h:113:3: error: expected identifier or
‘(’ before ‘{’ token
  ({BUILD_BUG_ON(_s != TASK_NORMAL); \
   ^
include/linux/sched.h:2077:12: note: in expansion of macro ‘wake_up_state’
 extern int wake_up_state(struct task_struct *tsk, unsigned int state);
            ^
make[2]: *** [/home/zg/vmware/vmwgfx/dma-fence.o] Error 1
make[1]: *** [_module_/home/zg/vmware/vmwgfx] Error 2
make[1]: Leaving directory `/usr/src/linux-headers-3.13.0-108-generic'
make: *** [modules] Error 2
================================================================

I opened the drm_compat.h and it seems that nothing goes wrong for line
113. Does anyone have some idea on this problem?

[image: Inline image 1]





Best regards,
Zhiguang

_______________________________________________
mesa-users mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/mesa-users
image.png (image/png, 39.6 KB) - not displayed
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.