Since version 3.7.0 LLVM and Clang come with OpenMP support enabled, however they only generate code for their own OpenMP runtime library. Since this library can actually be built outside of the LLVM tree, I propose to add an ebuild for it. The name/category can be discussed but I see 2x2 options: libomp / openmp, and sys-libs / dev-libs. I have tried to make the ebuild work with multilib (which it does atleast on amd64) and added the arches that are supported upstream. I also had to work around a minor issue with /etc/lsb-release which is checked during compilation but which doesn't have the variables they expect to find. Reproducible: Always
Created attachment 410982 [details] Ebuild for version 3.7.0
A LLVM project that can compile outside of LLVM is always nice :) I'll look into adding it to the tree
I made a few changes here and there, and the test program works fine. So far I think this will be sys-libs/libomp-3.7.0, the first as it is a system-wide lib and will sit along other llvm system libraries (like libcxx). libomp will be as openmp is too generic. As llvm will have a postinstall note, users should still be able to find libomp.
I moved the os detection and install links fixes in patches (more robust), and sys-libs/libomp-3.7.0 should appear soon in Portage tree. Thanks again for the report and initial ebuild