LLVM has libomp on most architectures, so it should be possible to set USES=compiler:openmp and just use base clang on those architectures. There are some architectures where there's no libomp available due to lack of support, and for those architectures USES=compiler:openmp should be equal to USES=compiler:gcc-c++11-lib. Currently setting USES=compiler:openmp is equal to USE_GCC=yes.
I second this. What platforms still require gcc for openmp? My openmp-dependent ports build fine with clang on x86, aarch64, and ppc64 (13-RELEASE), but I don't want to remove compiler:openmp from my ports if it's going to cause breakage elsewhere.
Currently armv6, armv7, powerpc and powerpcspe.
It should be pretty simple to limit the gcc requirement to those platforms, correct? Any other reason not to proceed?
Created attachment 227359 [details] Unified diff to limit gcc use Attached patch works for me.
(In reply to Jason W. Bacon from comment #4) That's not enough, programs using C++ will be mislinked. On affected architectures, it should also add the necessary CXXFLAGS and LDFLAGS: CXXFLAGS+= -nostdinc++ -isystem /usr/include/c++/v1 LDFLAGS+= -L${WRKDIR} _USES_configure+= 200:gcc-libc++-configure gcc-libc++-configure: @${LN} -fs /usr/lib/libc++.so ${WRKDIR}/libstdc++.so
(In reply to Piotr Kubaj from comment #5) Is this somehow happening now, without the ARCH checks, or is your aim to tackle another existing issue while we're in there.
(In reply to Jason W. Bacon from comment #6) I'm not sure, but it would be better to solve this issue properly.