Line 583 of /usr/include/llvm/Config/config.h in my system states (with sys-devel/llvm-2.8): #define PACKAGE_VERSION "2.8rc" The result of this "rc" suffix is a failure in compilation of media-libs/mesa[gallium,llvm] as follows: In file included from draw/draw_context.c:39: draw/draw_vs.h:176:5: error: invalid suffix "rc" on integer constant draw/draw_context.c:42:5: error: invalid suffix "rc" on integer constant draw/draw_context.c:72:5: error: invalid suffix "rc" on integer constant I am using the live mesa ebuild from x11 overlay. Its configure script invokes `/usr/bin/llvm-config --version` to obtain LLVM version and pass it as a -DHAVE_LLVM=0x0208rc argument to the preprocessor. NB: Removing the "rc" suffix in LLVM version string fixes Mesa compilation (checked by hardcoding "2.8" in Mesa's configure.ac). Reproducible: Always Steps to Reproduce: 1. Upgrade LLVM to version 2.8 in portage 2. Try to recompile mesa[gallium,llvm] Actual Results: Mesa compilation fails. Expected Results: LLVM version is detected and passed in correctly, Mesa compiles.
Created attachment 249886 [details, diff] Patch to llvm-2.8.ebuild to fix the issue This adds a trivial sed to replace the version string in 'configure' for LLVM with a correct value.
Looks like they found it too upstream, svn branch is fixed and the tarball was silently updated... Thanks for the report, I'll look in fixing this
Thanks to SRC_URI arrow, we can use the updated tarball (renamed on our mirrors to -r1 to get the new one) Fixed in 2.8-r1, thanks for the report!