[Bug 252379] Mk/Uses/compiler.mk: remove USE_GCC=yes for compiler:openmp due to libomp.so is part of base since 11.3/12.1
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Sun Jan 10 21:52:16 UTC 2021
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=252379
--- Comment #22 from Jason W. Bacon <jwb at freebsd.org> ---
I've updated all my ports using openmp to eliminate the gcc dep. Below is a
summary of the necessary changes to show some examples of what we're up
against.
I plan to do some runtime testing before committing these changes.
===
/usr/ports/biology/canu/Makefile:MAINTAINER= jwb at FreeBSD.org
Requires both openmp and c++11:
-USES= compiler:openmp gmake perl5
+USES= compiler:c++11-lang gmake localbase perl5
No longer needed since replacing compiler:openmp with compiler:c++11-lang:
-.include <bsd.port.pre.mk>
-
-# GCC 4.2.1 (still base compiler on some 2nd tier platforms) cannot build canu
-.if ${COMPILER_TYPE} == gcc && ${COMPILER_VERSION} <= 42
-USE_GCC= yes
-.endif
-
===
/usr/ports/biology/cd-hit/Makefile:MAINTAINER= jwb at FreeBSD.org
Requires openmp only:
-USES= compiler:openmp gmake shebangfix
+USES= gmake shebangfix
/usr/ports/biology/fasttree/Makefile:MAINTAINER= jwb at FreeBSD.org
Requires openmp only:
-USES= compiler:openmp
===
/usr/ports/biology/gcta/Makefile:MAINTAINER= jwb at FreeBSD.org
Requires both openmp and c++11:
-USES= compiler:openmp dos2unix eigen:3 gmake localbase zip
+USES= compiler:c++11-lang dos2unix eigen:3 gmake localbase:ldflags
zip
No longer needed since replacing compiler:openmp with compiler:c++11-lang:
-.include <bsd.port.pre.mk>
-
-.if ${CHOSEN_COMPILER_TYPE} == gcc && ${COMPILER_VERSION} <= 42
-USE_GCC= yes
-.endif
-
===
/usr/ports/biology/ncbi-blast+/Makefile:MAINTAINER= jwb at FreeBSD.org
Requires both openmp and c++14:
-USES= compiler:openmp gmake shebangfix perl5 python
+USES= compiler:c++14-lang gmake shebangfix perl5 python
-LDFLAGS+= -latomic
-latomic required for gcc, does not work with clang:
-# Force newer GCC on platforms using GCC 4.2 as base
.if ${CHOSEN_COMPILER_TYPE} == gcc
-USE_GCC= yes
+# In case of problems:
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=220822
+LDFLAGS+= -latomic # Only exists in gcc libs
.endif
===
/usr/ports/biology/stacks/Makefile:MAINTAINER= jwb at FreeBSD.org
-USES= compiler:openmp gmake python shebangfix
+USES= compiler:c++11-lang gmake python shebangfix
clang is missing some atomic functionality on i386:
-# Force newer GCC on platforms using GCC 4.2 as base
-.if ${CHOSEN_COMPILER_TYPE} == gcc
+# Temp workaround, see PR 230888
+.if ${ARCH} == i386
USE_GCC= yes
.endif
===
/usr/ports/biology/star/Makefile:MAINTAINER= jwb at FreeBSD.org
Requires both openmp and c++11:
-USES= compiler:openmp gmake
+USES= compiler:c++11-lang gmake
No longer needed since replacing compiler:openmp with compiler:c++11-lang:
-.include <bsd.port.pre.mk>
-
-# Force newer compiler on platforms using GCC 4.2 as base
-.if ${CHOSEN_COMPILER_TYPE} == gcc && ${COMPILER_VERSION} <= 42
-USE_GCC= yes
-.endif
-
===
/usr/ports/sysutils/parafly/Makefile:MAINTAINER= jwb at FreeBSD.org
Requires openmp only:
-USES= compiler:openmp tar:tgz
+USES= tar:tgz
--
You are receiving this mail because:
You are on the CC list for the bug.
More information about the freebsd-gnome
mailing list