Date: Fri, 08 Jan 2021 23:31:19 +0000 From: bugzilla-noreply@freebsd.org To: gnome@FreeBSD.org Subject: [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 Message-ID: <bug-252379-6497-C0wUZCpsYT@https.bugs.freebsd.org/bugzilla/> In-Reply-To: <bug-252379-6497@https.bugs.freebsd.org/bugzilla/> References: <bug-252379-6497@https.bugs.freebsd.org/bugzilla/>
next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D252379 --- Comment #14 from Jason W. Bacon <jwb@freebsd.org> --- (In reply to Jason W. Bacon from comment #4) As I suspected, this will cause breakage on FreeBSD < 13 ppc. Presently a lot of ports have the following hack for ppc because it still u= ses gcc 4.2: # Force newer GCC on platforms using GCC 4.2 as base .if ${CHOSEN_COMPILER_TYPE} =3D=3D gcc USE_GCC=3D yes .endif CHOSEN_COMPILER_TYPE is only defined when the port has USES=3Dcompiler:something So simply removing compiler:openmp will break a lot of ports for ppc right = now with the following error: make: "/usr/ports/wip/gcta/Makefile" line 29: Malformed conditional (${CHOSEN_COMPILER_TYPE} =3D=3D gcc && ${COMPILER_VERSION} <=3D 42) make: Fatal errors encountered -- cannot continue I think this should be easy to fix by defining CHOSEN_COMPILER_TYPE in the absence of USES=3Dcompiler:*. Then we just have to make sure that ports using gcc/gfortran and openmp use= gcc for everything. Some might try to use clang or clang++ along with gfortran which as someone mentioned is not tested when openmp is in play. --=20 You are receiving this mail because: You are on the CC list for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-252379-6497-C0wUZCpsYT>