LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 08-31-2012, 07:29 PM   #1
Arcosanti
Member
 
Registered: Apr 2004
Location: Mesa, AZ USA
Distribution: Slackware 13.37 kernel 2.6.39 gcc 4.5.2
Posts: 155

Rep: Reputation: 8
Mesalib 8.0.4 LLVM compile error.


I am trying to compile Mesalib 8.0.4 to add in support for Direct 3d support for a Windows app running in Wine, Topo USA 6.0. At the moment Topo 6 is running fine in 2d mode in Wine but I would like to get 3d working if possible. I found out that Mesa does not have support for D3d on by default, but must be specified during the config process before compile time, so most likely there are no distro binaries out there that have D3d built in. The problem I am running into is an error concerning LLVM. My graphics card is an Intel 855GM but is running the i915 modules which was most likely selected as a work around for the 855 resolution bug. So I am trying to compile for i915 and D3d with these configure switches --with-dri-drivers="i915" --with-gallium-drivers=i915 --enable-gallium-llvm --enable-d3d1x. This has been tried both manually and with SlackBuilds with the same results. Here's the error I am getting below:

g++ -c -I. -I../../../src/gallium/include -I../../../src/gallium/auxiliary -I../../../src/gallium/drivers -g -O2 -Wall -fno-strict-aliasing -fno-builtin-memcmp -fPIC -D_GNU_SOURCE -DPTHREADS -DHAVE_POSIX_MEMALIGN -DUSE_XCB -DGLX_INDIRECT_RENDERING -DGLX_DIRECT_RENDERING -DUSE_EXTERNAL_DXTN_LIB=1 -DIN_DRI_DRIVER -DHAVE_ALIAS -DHAVE_MINCORE -DHAVE_LIBUDEV -DHAVE_XCB_DRI2 -DXCB_DRI2_CONNECT_DEVICE_NAME_BROKEN -D__STDC_CONSTANT_MACROS -DHAVE_LLVM=0x0301 -fvisibility=hidden -I/usr/local/include -D_DEBUG -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS gallivm/lp_bld_misc.cpp -o gallivm/lp_bld_misc.o
gallivm/lp_bld_misc.cpp: In function 'void lp_register_oprofile_jit_event_listener(LLVMOpaqueExecutionEngine*)':
gallivm/lp_bld_misc.cpp:65:47: error: 'createOProfileJITEventListener' is not a member of 'llvm'
gallivm/lp_bld_debug.cpp: In function 'void lp_disassemble(const void*)':
gallivm/lp_bld_debug.cpp:240:66: error: no matching function for call to 'llvm::Target::createMCInstPrinter(unsigned int&, const llvm::MCAsmInfo&, const llvm::MCSubtargetInfo&) const'
/usr/local/include/llvm/Support/TargetRegistry.h:395:20: note: candidate is: llvm::MCInstPrinter* llvm::Target::createMCInstPrinter(unsigned int, const llvm::MCAsmInfo&, const llvm::MCInstrInfo&, const llvm::MCRegisterInfo&, const llvm::MCSubtargetInfo&) const
gmake[3]: *** [gallivm/lp_bld_misc.o] Error 1
gmake[3]: *** Waiting for unfinished jobs....
gmake[3]: *** [gallivm/lp_bld_debug.o] Error 1
gmake[3]: Leaving directory `/tmp/Mesa-8.0.4/src/gallium/auxiliary'
gmake[2]: *** [default] Error 1
gmake[2]: Leaving directory `/tmp/Mesa-8.0.4/src/gallium'
make[1]: *** [subdirs] Error 1
make[1]: Leaving directory `/tmp/Mesa-8.0.4/src'
make: *** [default] Error 1
make[1]: Entering directory `/tmp/Mesa-8.0.4/src'
Making sources for autoconf
gmake[2]: Entering directory `/tmp/Mesa-8.0.4/src/mapi/glapi'
gmake[2]: Nothing to be done for `default'.
gmake[2]: Leaving directory `/tmp/Mesa-8.0.4/src/mapi/glapi'
gmake[2]: Entering directory `/tmp/Mesa-8.0.4/src/glsl'
gmake[2]: Nothing to be done for `default'.
gmake[2]: Leaving directory `/tmp/Mesa-8.0.4/src/glsl'
gmake[2]: Entering directory `/tmp/Mesa-8.0.4/src/mesa'
gmake[3]: Entering directory `/tmp/Mesa-8.0.4/src/mesa/x86'
gmake[3]: Nothing to be done for `default'.
gmake[3]: Leaving directory `/tmp/Mesa-8.0.4/src/mesa/x86'
gmake[3]: Entering directory `/tmp/Mesa-8.0.4/src/mesa/drivers'
gmake[4]: Entering directory `/tmp/Mesa-8.0.4/src/mesa/drivers/dri'
gmake[5]: Entering directory `/tmp/Mesa-8.0.4/src/mesa/drivers/dri/i915'
gmake[6]: Entering directory `/tmp/Mesa-8.0.4/src/mesa/drivers/dri/i915'
gmake[6]: `i915_dri.so' is up to date.
gmake[6]: `../../../../../lib/i915_dri.so' is up to date.
gmake[6]: Leaving directory `/tmp/Mesa-8.0.4/src/mesa/drivers/dri/i915'
gmake[5]: Leaving directory `/tmp/Mesa-8.0.4/src/mesa/drivers/dri/i915'
gmake[4]: Leaving directory `/tmp/Mesa-8.0.4/src/mesa/drivers/dri'
gmake[3]: Leaving directory `/tmp/Mesa-8.0.4/src/mesa/drivers'
gmake[2]: Leaving directory `/tmp/Mesa-8.0.4/src/mesa'
gmake[2]: Entering directory `/tmp/Mesa-8.0.4/src/glx'
gmake[2]: Nothing to be done for `default'.
gmake[2]: Leaving directory `/tmp/Mesa-8.0.4/src/glx'
gmake[2]: Entering directory `/tmp/Mesa-8.0.4/src/egl'
gmake[3]: Entering directory `/tmp/Mesa-8.0.4/src/egl/drivers'
gmake[4]: Entering directory `/tmp/Mesa-8.0.4/src/egl/drivers/glx'
gmake[4]: Nothing to be done for `default'.
gmake[4]: Leaving directory `/tmp/Mesa-8.0.4/src/egl/drivers/glx'
gmake[4]: Entering directory `/tmp/Mesa-8.0.4/src/egl/drivers/dri2'
gmake[4]: Nothing to be done for `default'.
gmake[4]: Leaving directory `/tmp/Mesa-8.0.4/src/egl/drivers/dri2'
gmake[3]: Leaving directory `/tmp/Mesa-8.0.4/src/egl/drivers'
gmake[3]: Entering directory `/tmp/Mesa-8.0.4/src/egl/main'
gmake[3]: Nothing to be done for `default'.
gmake[3]: Leaving directory `/tmp/Mesa-8.0.4/src/egl/main'
gmake[2]: Leaving directory `/tmp/Mesa-8.0.4/src/egl'
gmake[2]: Entering directory `/tmp/Mesa-8.0.4/src/glu'
gmake[3]: Entering directory `/tmp/Mesa-8.0.4/src/glu/sgi'
gmake ../../../lib/libGLU.so
gmake[4]: Entering directory `/tmp/Mesa-8.0.4/src/glu/sgi'
gmake[4]: `../../../lib/libGLU.so' is up to date.
gmake[4]: Leaving directory `/tmp/Mesa-8.0.4/src/glu/sgi'
gmake[3]: Leaving directory `/tmp/Mesa-8.0.4/src/glu/sgi'
gmake[2]: Leaving directory `/tmp/Mesa-8.0.4/src/glu'
gmake[2]: Entering directory `/tmp/Mesa-8.0.4/src/gallium'
gmake[3]: Entering directory `/tmp/Mesa-8.0.4/src/gallium/auxiliary'
g++ -c -I. -I../../../src/gallium/include -I../../../src/gallium/auxiliary -I../../../src/gallium/drivers -g -O2 -Wall -fno-strict-aliasing -fno-builtin-memcmp -fPIC -D_GNU_SOURCE -DPTHREADS -DHAVE_POSIX_MEMALIGN -DUSE_XCB -DGLX_INDIRECT_RENDERING -DGLX_DIRECT_RENDERING -DUSE_EXTERNAL_DXTN_LIB=1 -DIN_DRI_DRIVER -DHAVE_ALIAS -DHAVE_MINCORE -DHAVE_LIBUDEV -DHAVE_XCB_DRI2 -DXCB_DRI2_CONNECT_DEVICE_NAME_BROKEN -D__STDC_CONSTANT_MACROS -DHAVE_LLVM=0x0301 -fvisibility=hidden -I/usr/local/include -D_DEBUG -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS gallivm/lp_bld_debug.cpp -o gallivm/lp_bld_debug.o
gallivm/lp_bld_debug.cpp: In function 'void lp_disassemble(const void*)':
gallivm/lp_bld_debug.cpp:240:66: error: no matching function for call to 'llvm::Target::createMCInstPrinter(unsigned int&, const llvm::MCAsmInfo&, const llvm::MCSubtargetInfo&) const'
/usr/local/include/llvm/Support/TargetRegistry.h:395:20: note: candidate is: llvm::MCInstPrinter* llvm::Target::createMCInstPrinter(unsigned int, const llvm::MCAsmInfo&, const llvm::MCInstrInfo&, const llvm::MCRegisterInfo&, const llvm::MCSubtargetInfo&) const
gmake[3]: *** [gallivm/lp_bld_debug.o] Error 1
gmake[3]: Leaving directory `/tmp/Mesa-8.0.4/src/gallium/auxiliary'
gmake[2]: *** [default] Error 1
gmake[2]: Leaving directory `/tmp/Mesa-8.0.4/src/gallium'
make[1]: *** [subdirs] Error 1
make[1]: Leaving directory `/tmp/Mesa-8.0.4/src'
make: *** [default] Error 1
 
Old 09-02-2012, 03:52 AM   #2
business_kid
Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware & Android
Posts: 6,142

Rep: Reputation: 526Reputation: 526Reputation: 526Reputation: 526Reputation: 526Reputation: 526
Quote:
g++ -c -I. -I../../../src/gallium/include -I../../../src/gallium/auxiliary -I../../../src/gallium/drivers -g -O2 -Wall -fno-strict-aliasing -fno-builtin-memcmp -fPIC -D_GNU_SOURCE -DPTHREADS -DHAVE_POSIX_MEMALIGN -DUSE_XCB -DGLX_INDIRECT_RENDERING -DGLX_DIRECT_RENDERING -DUSE_EXTERNAL_DXTN_LIB=1 -DIN_DRI_DRIVER -DHAVE_ALIAS -DHAVE_MINCORE -DHAVE_LIBUDEV -DHAVE_XCB_DRI2 -DXCB_DRI2_CONNECT_DEVICE_NAME_BROKEN -D__STDC_CONSTANT_MACROS -DHAVE_LLVM=0x0301 -fvisibility=hidden -I/usr/local/include -D_DEBUG -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS gallivm/lp_bld_misc.cpp -o gallivm/lp_bld_misc.o
gallivm/lp_bld_misc.cpp: In function 'void
In this quoted section, you start out with gallium(ok) and end up with gallivm, which I take to be a misspelling

from the top source
make clean
grep -r gallivm *

might be interesting. llvm, btw is a bitch to compile. I would put in more intel driver options in the --with-drivers bit.
 
Old 09-04-2012, 08:45 PM   #3
Arcosanti
Member
 
Registered: Apr 2004
Location: Mesa, AZ USA
Distribution: Slackware 13.37 kernel 2.6.39 gcc 4.5.2
Posts: 155

Original Poster
Rep: Reputation: 8
Quote:
Originally Posted by business_kid View Post
In this quoted section, you start out with gallium(ok) and end up with gallivm, which I take to be a misspelling

from the top source
make clean
grep -r gallivm *

might be interesting. llvm, btw is a bitch to compile. I would put in more intel driver options in the --with-drivers bit.
It might be a mispelling, however there is a folder called gallivm where this reference is being called from. I am not familiar with VMware's source code design to say one way or the other. At the very least there is a bug that needs to be fixed. I'll see about posting a bug report on it. As for adding in other intel driver options, they are for other later intel cards that have nothing to do with my hardware. Only the i915 has any relevance as I am using a i855GM.

I was able to compile Mesa by turning off Gallium support completely which meant turning off d3d1x support as well. I went ahead and had Mesa installed via slackbuilds and at the very least Wine isn't complaining about Mesa any more. But still no 3d in Wine yet. My X drivers are old though and might be a part of the problem. I'll also need to ask on the Wine forum about the d3d1x option in Mesa to see if it is absolutely necesary for 3d support in Wine.
 
Old 09-05-2012, 03:29 AM   #4
business_kid
Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware & Android
Posts: 6,142

Rep: Reputation: 526Reputation: 526Reputation: 526Reputation: 526Reputation: 526Reputation: 526
Quote:
lp_register_oprofile_jit_event_listener(LLVMOpaqueExecutionEngine*)':
gallivm/lp_bld_misc.cpp:65:47: error: 'createOProfileJITEventListener' is not a member of 'llvm'
gallivm/lp_bld_debug.cpp: In function 'void lp_disassemble(const void*)':
gallivm/lp_bld_debug.cpp:240:66: error: no matching function for call to
http://forums.funtoo.org/viewtopic.php?id=1417

There's a fix for that. Haven't read much, but there's links to patches up there on freedesktop.org.
 
Old 09-05-2012, 04:17 AM   #5
414N
Member
 
Registered: Sep 2011
Location: Italy
Distribution: Slackware
Posts: 608

Rep: Reputation: 179Reputation: 179
Please note that compiling the D3D11 support in gallium won't make your wine games work. As of now, I think no driver in mesa is using that backend, not to mention that intel drivers are not using right now.
 
Old 09-05-2012, 07:47 PM   #6
Arcosanti
Member
 
Registered: Apr 2004
Location: Mesa, AZ USA
Distribution: Slackware 13.37 kernel 2.6.39 gcc 4.5.2
Posts: 155

Original Poster
Rep: Reputation: 8
I don't have too many 3d windows games. Ad Astra is the only one I use at the moment in XP. However I am trying to get 3d working for a Windows app instead of a game at the moment. The app is DeLorme's Topo USA 6.0. It shows topographical maps mainly in 2d but does have a 3d feature that can be used beside the 2d maps. This app is working fine in Wine except for the 3d support. I am not looking for stellar graphics performance here, just enough to allow the 3d feature to work. I'll probably have to upgrade all of the intel drivers to get this to work and maybe even the xserver as well. According to the Intel website their latest drivers have support for OpenGL 3.0 while the older drivers I have only support up to 2.0.
 
Old 09-06-2012, 02:06 AM   #7
414N
Member
 
Registered: Sep 2011
Location: Italy
Distribution: Slackware
Posts: 608

Rep: Reputation: 179Reputation: 179
OpenGL 3.0 is only supported on hardware capable of running it and, according to this page, your card is only capable of OpenGL 1.3 graphics.
I guess you should resort to software rendering, assuming you're not incurring in some other wine issue which prevents you from exploiting the 3D features of your app.
Try running the program after setting the LIBGL_ALWAYS_SOFTWARE environment variable to 1:
Code:
LIBGL_ALWAYS_SOFTWARE=1 wine myapp
 
Old 03-02-2013, 11:17 AM   #8
raghu8linux
LQ Newbie
 
Registered: Mar 2013
Posts: 1

Rep: Reputation: Disabled
Smile disable gallium to compile mesa-8.0.5

I have faced problems in compiling mesa-8.0.5. upon disabling gallium things are working fine
Graphics H/W Radeon HD 5700 Series
below confguration works fine
./configure --enable-gles1 --enable-debug --enable-gles2 --with-dri-drivers="swrast,radeon" --disable-gallium --disable-gallium-llvm --disable-gallium-gbm --with-gallium-drivers=""
 
Old 03-02-2013, 11:46 AM   #9
414N
Member
 
Registered: Sep 2011
Location: Italy
Distribution: Slackware
Posts: 608

Rep: Reputation: 179Reputation: 179
Quote:
Originally Posted by raghu8linux View Post
I have faced problems in compiling mesa-8.0.5. upon disabling gallium things are working fine
Graphics H/W Radeon HD 5700 Series
below confguration works fine
./configure --enable-gles1 --enable-debug --enable-gles2 --with-dri-drivers="swrast,radeon" --disable-gallium --disable-gallium-llvm --disable-gallium-gbm --with-gallium-drivers=""
Well, you may have compiled Mesa without gallium but you won't get the least bit of acceleration, as all radeon cards starting from the r300 family now rely solely on the gallium architecture...
Try compiling a more recent version of Mesa (the latest stable, as of now, is version 9.1). Beware that glut was split from Mesa so it needs to get compiled alone.
You could even use Slackware current's Mesa SlackBuild to build the package.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Mesalib 8.0.4 compile error due to file missing. Arcosanti Linux - Software 4 08-31-2012 07:04 PM
[SOLVED] Mesalib complaining about libdrm_nouveau??? spiky0011 Linux From Scratch 2 12-17-2011 02:50 PM
Error with Mesalib spiky0011 Linux From Scratch 26 04-09-2011 03:12 AM
The error compile C/C++ in linux (but it does compile on Win) hikaru1505 Programming 2 12-30-2010 09:11 AM
RTCW can not find mesalib nor config file Rodcl Linux - Newbie 16 04-24-2002 03:30 PM


All times are GMT -5. The time now is 11:07 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration