Don Lewis
2015-Jul-24 21:15 UTC
MFC r282973 (disable libgomp build) and r283060 (disable libgcov build)?
On 24 Jul, Matthieu Volat wrote:> On Mon, 20 Jul 2015 14:03:01 -0700 (PDT) > Don Lewis <truckman at FreeBSD.org> wrote: > >> Should r282973 and r283060 be MFCed to FreeBSD 10? On amd64 and i386, >> which use clang as their base compiler and don't have gcc in base by >> default, the math/scilab port uses clang for cc and c++ compilation, >> but finds /usr/include/omp.h (and links to libgomp from lang/gcc). >> The build succeeds, but I suspect this may not run properly. > > Does it mean the door to an openmp-enabled cc in base is closed?That is probably true for FreeBSD 10, since clang 3.4 in base doesn't support OpenMP. Even though <omp.h> and libgomp are present in FreeBSD 10, and using base clang to compile the test program here <http://openmp.org/wp/openmp-compilers/> succeeds, the resulting executable only runs one thread. There is probably more hope for FreeBSD 11 if the runtime is imported, since clang 3.6 in base there at least knows about the -fopenmp option.> I'm not fond of lang/gcc as openmp "provider": if a port use c++, it > will cause linkage headaches with libc++ (I never was able to have > graphics/darktable working, for example).You might want to try out lang/clang-devel with devel/libiomp5-devel. See this thread on freebsd-ports@ <http://docs.freebsd.org/cgi/mid.cgi?55AE0474.5050207>.
Brooks Davis
2015-Jul-24 21:40 UTC
MFC r282973 (disable libgomp build) and r283060 (disable libgcov build)?
On Fri, Jul 24, 2015 at 02:15:28PM -0700, Don Lewis wrote:> On 24 Jul, Matthieu Volat wrote: > > I'm not fond of lang/gcc as openmp "provider": if a port use c++, it > > will cause linkage headaches with libc++ (I never was able to have > > graphics/darktable working, for example). > > You might want to try out lang/clang-devel with devel/libiomp5-devel. > See this thread on freebsd-ports@ > <http://docs.freebsd.org/cgi/mid.cgi?55AE0474.5050207>.Just a heads up in case you try this next week, devel/libiomp5-devel is about to be deleted and the openmp library (as well as clang-devel) will be installed by the llvm-devel port. The clang-devel port will become a metaport to aid people in finding clang while we wait for multiple packages-per-port support. -- Brooks -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 473 bytes Desc: not available URL: <http://lists.freebsd.org/pipermail/freebsd-stable/attachments/20150724/851e50a3/attachment.bin>