| Summary: | Mk/Uses/compiler.mk: openmp unnecessarily sets USE_GCC=yes (on some architectures_ | ||||||
|---|---|---|---|---|---|---|---|
| Product: | Ports & Packages | Reporter: | Piotr Kubaj <pkubaj> | ||||
| Component: | Ports Framework | Assignee: | Port Management Team <portmgr> | ||||
| Status: | Closed Overcome By Events | ||||||
| Severity: | Affects Some People | CC: | fixer, jwb, ports-bugs | ||||
| Priority: | --- | Keywords: | needs-patch | ||||
| Version: | Latest | ||||||
| Hardware: | Any | ||||||
| OS: | Any | ||||||
| Attachments: |
|
||||||
|
Description
Piotr Kubaj
2021-07-14 01:22:34 UTC
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. |