Bug 59887

Summary: [R600g] Fail to build with r600-llvm-compiler enabled and opencl support disabled
Product: Mesa Reporter: Laurent carlier <lordheavym>
Component: Drivers/Gallium/r600Assignee: Default DRI bug account <dri-devel>
Status: RESOLVED DUPLICATE QA Contact:
Severity: blocker    
Priority: medium    
Version: git   
Hardware: x86-64 (AMD64)   
OS: Linux (All)   
Whiteboard:
i915 platform: i915 features:
Attachments: Possible fix

Description Laurent carlier 2013-01-26 06:21:46 UTC
http://cgit.freedesktop.org/mesa/mesa/commit/?id=264e6dad28e64755dc1580abdbb4e339c3439883

introduce the regression:

make[4]: Entering directory `/build/src/mesa-git/src/gallium/drivers/r600'
  CC       r600_asm.lo
In file included from r600_pipe.h:33:0,
                 from r600_formats.h:5,
                 from r600_asm.c:25:
r600_llvm.h:7:25: fatal error: radeon_llvm.h: No such file or directory
compilation terminated.
make[4]: *** [r600_asm.lo] Error 1
make[4]: Leaving directory `/build/src/mesa-git/src/gallium/drivers/r600'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/build/src/mesa-git/src/gallium/drivers'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/build/src/mesa-git/src/gallium'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/build/src/mesa-git/src'
make: *** [all-recursive] Error 1

because USE_R600_LLVM_COMPILER is defined, not HAVE_GALLIUM_COMPUTE
Comment 1 Laurent carlier 2013-01-26 07:07:26 UTC
Created attachment 73669 [details]
Possible fix

Patch fix the problem but now:

make[3]: Leaving directory `/build/src/mesa-git/src/gallium/targets/dri-vmwgfx'
Making all in egl-static
make[3]: Entering directory `/build/src/mesa-git/src/gallium/targets/egl-static'
  CC       egl.lo
  CC       egl_pipe.lo
  CC       egl_st.lo
  CXXLD    egl_gallium.la
../../../../src/gallium/drivers/r600/.libs/libr600.a(llvm_wrapper.o): In function `llvm_parse_bitcode':
llvm_wrapper.cpp:(.text+0x10e): undefined reference to `llvm::ParseAssembly(llvm::MemoryBuffer*, llvm::Module*, llvm::SMDiagnostic&, llvm::LLVMContext&)'
llvm_wrapper.cpp:(.text+0x1eb): undefined reference to `llvm::ParseBitcodeFile(llvm::MemoryBuffer*, llvm::LLVMContext&, std::string*)'
collect2: error: ld returned 1 exit status
make[3]: *** [egl_gallium.la] Error 1
make[3]: Leaving directory `/build/src/mesa-git/src/gallium/targets/egl-static'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/build/src/mesa-git/src/gallium/targets'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/build/src/mesa-git/src'
make: *** [all-recursive] Error 1
Comment 2 Tom Stellard 2013-01-26 08:05:21 UTC

*** This bug has been marked as a duplicate of bug 59877 ***

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.