I have llvm 9999 and clang-9999-r100 with libclc-0.0.1_pre20130819-r1, before I installed these packages mesa would say that libclc could not be found in pkg-config path, even if i explicitly set the path, now it can find libclc but fails to compile on a llvm function which is evidently not functioning as expected or no longer located in the same place as it was before. I have attached everything that was requested, I think, for a bug report. Sorry for the large list of packages in the 'emerge -p' log, i have to emerge all that to get mesa in line without emerge yelling at me about stuff conflicting.
Created attachment 360910 [details] emerge --info
Created attachment 360912 [details] builkd
I believe that this is the relevent part of the error, of course there could be more info higher up but at least it is finding libclc now... libtool: compile: x86_64-pc-linux-gnu-g++ -m32 -DPACKAGE_NAME=\"Mesa\" -DPACKAGE_TARNAME=\"mesa\" -DPACKAGE_VERSION=\"9.2.1\" "-DPACKAGE_STRING=\"Mesa 9.2.1\"" "-DPACKAGE_BUGREPORT=\"https://bugs.freedesktop.org/enter_bug.cgi?product=Mesa\"" -DPACKAGE_URL=\"\" -DPACKAGE=\"mesa\" -DVERSION=\"9.2.1\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=\".libs/\" -DHAVE_CLOCK_GETTIME=1 -DHAVE_PTHREAD=1 -DHAVE_LIBEXPAT=1 -I. -fvisibility=hidden -I../../../include -I../../../src/gallium/include -I../../../src/gallium/auxiliary -D_GNU_SOURCE -DHAVE_PTHREAD -DTEXTURE_FLOAT_ENABLED -DUSE_X86_ASM -DUSE_MMX_ASM -DUSE_3DNOW_ASM -DUSE_SSE_ASM -DHAVE_DLOPEN -DHAVE_POSIX_MEMALIGN -DGLX_INDIRECT_RENDERING -DGLX_DIRECT_RENDERING -DGLX_USE_TLS -DHAVE_PTHREAD -DUSE_EXTERNAL_DXTN_LIB=1 -DHAVE_ALIAS -DHAVE_MINCORE -DHAVE_LIBUDEV -DHAVE_LLVM=0x0304 -I/usr/include -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -fvisibility-inlines-hidden -fno-exceptions -fPIC -Woverloaded-virtual -Wcast-qual -fno-rtti -march=core2 -O2 -pipe -Wall -fno-strict-aliasing -fno-builtin-memcmp -c gallivm/lp_bld_misc.cpp -fPIC -DPIC -o gallivm/.libs/lp_bld_misc.o gallivm/lp_bld_debug.cpp: In member function 'virtual void raw_debug_ostream::write_impl(const char*, size_t)': gallivm/lp_bld_debug.cpp:116:40: warning: cast from type 'const char*' to type 'char*' casts away qualifiers [-Wcast-qual] gallivm/lp_bld_misc.cpp: In function 'LLVMBool lp_build_create_jit_compiler_for_module(LLVMOpaqueExecutionEngine**, LLVMModuleRef, unsigned int, int, char**)': gallivm/lp_bld_misc.cpp:276:12: error: 'class llvm::TargetOptions' has no member named 'RealignStack' gmake[3]: *** [gallivm/lp_bld_misc.lo] Error 1
And this problem exists with 9.2.0 or 9.2.1, or mesa-9999 from the x11 overlay?
These patches may be needed to build mesa-9.2 with llvm-3.4 http://cgit.freedesktop.org/mesa/mesa/commit/?id=60c248c3aff1d6a23d60afeaed78c50e4af00b8c http://cgit.freedesktop.org/mesa/mesa/commit/?id=2572e3b4a17e4b0de9b5ed7fe6f4edf01abd5655 http://cgit.freedesktop.org/mesa/mesa/commit/?id=72465fcf57278c43df0290e07d68371c6c292f27
Thanks for the link to the patches, it took all 3 of them but mesa-9.2.1 now builds with llvm-9999/clang-9999-r100
Fixed in 9.2.4