Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 04 Jul 2020 04:43:07 +0000
From:      bugzilla-noreply@freebsd.org
To:        ports-bugs@FreeBSD.org
Subject:   [Bug 247753] Mk/Uses/compiler.mk: compiler:openmp still forces the use of gcc
Message-ID:  <bug-247753-7788@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D247753

            Bug ID: 247753
           Summary: Mk/Uses/compiler.mk: compiler:openmp still forces the
                    use of gcc
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: ports-bugs@FreeBSD.org
          Reporter: tjlegg@gmail.com
                CC: jhale@FreeBSD.org, kwm@FreeBSD.org
                CC: jhale@FreeBSD.org, kwm@FreeBSD.org

I'd like to thank the FreeBSD team for enabling openmp for the base clang.=
=20

Unfortunately, most of the ports that have an OPENMP option, just default to
OPENMP_USES=3D compiler:openmp.

If you look at Mk/Uses/compiler.mk, the openmp option forces the use of gcc,
which defeats the purpose of having base being openmp-enabled.

I've altered a few ports like graphics/libraw, graphics/ImageMagick7, and
math/fftw3 to have the OPENMP option to provide OPENMP_FLAGS=3D -lm -lomp a=
nd
LDFLAGS+=3D ${OPENMP_FLAGS} instead of OPENMP_USES=3D compiler:openmp.

These libraries compile successfully without a gcc9 dependency. Digikam tel=
ls
that its raw demosaicing is now parallelised based on libraw having a
functional openmp.

Rather than hand edit port Makefiles, would it be possible to update the
compiler:openmp option to reflect the work that has landed in base?

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-247753-7788>