[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 3 10:07:17 UTC 2021


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=252379

            Bug ID: 252379
           Summary: Mk/Uses/compiler.mk: remove USE_GCC=yes for
                    compiler:openmp due to libomp.so is part of base since
                    11.3/12.1
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
               URL: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=2228
                    58#c4
                OS: Any
            Status: New
          Severity: Affects Many People
          Priority: ---
         Component: Individual Port(s)
          Assignee: ports-bugs at FreeBSD.org
          Reporter: vvd at unislabs.com
                CC: cmt at freebsd.org, cyberbotx at cyberbotx.com,
                    danfe at FreeBSD.org, demon at FreeBSD.org, fbsd at any.com.ru,
                    gnome at FreeBSD.org, greg at unrelenting.technology,
                    h2+fbsdports at fsfe.org, jbeich at FreeBSD.org,
                    jhale at FreeBSD.org, jrm at freebsd.org, jwb at freebsd.org,
                    kwm at FreeBSD.org, mail at log69.com, pfg at FreeBSD.org,
                    phd_kimberlite at yahoo.co.jp, portmgr at FreeBSD.org,
                    riggs at FreeBSD.org, rodrigo at FreeBSD.org,
                    sevenjp at gmail.com, stephen at FreeBSD.org,
                    sunpoet at FreeBSD.org, tatsuki_makino at hotmail.com,
                    yuri at freebsd.org
                CC: tatsuki_makino at hotmail.com
 Attachment #221237 maintainer-approval?(portmgr at FreeBSD.org)
             Flags:
             Flags: maintainer-feedback?(portmgr at FreeBSD.org), exp-run?
                CC: portmgr at FreeBSD.org

Created attachment 221237
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=221237&action=edit
remove USE_GCC=yes for compiler:openmp

The source for this PR is build error of multimedia/libopenshot if ImageMagick7
option is on and graphics/ImageMagick7 build with OPENMP
(USES=compiler:openmp):
ld: error: src/libopenshot.so.0.2.5: undefined reference to
Magick::Image::Image(unsigned long, unsigned long, std::__1::basic_string<char,
std::__1::char_traits<char>, std::__1::allocator<char> > const&,
MagickCore::StorageType, void const*)

But multimedia/libopenshot build fine if graphics/ImageMagick7 compiled without
OPENMP or with my patch and with OPENMP on.

This changes affected 42 ports:
archivers/rpm4 - build and run fine (not much tested)
archivers/pxz
audio/libsoxr
biology/cd-hit
biology/gcta
biology/seqan-apps
biology/fasttree
biology/hyphy
biology/bolt-lmm
biology/iqtree
biology/ncbi-blast+
biology/stacks
biology/star
biology/canu
biology/pooler
cad/calculix-ccx
graphics/aaphoto
graphics/ImageMagick6 - build and run fine (manual test
https://imagemagick.org/script/openmp.php: "convert logo: -resize 200% -bench
40 null:")
graphics/colmap
graphics/ImageMagick7 - build and run fine (manual test
https://imagemagick.org/script/openmp.php: "convert logo: -resize 200% -bench
40 null:")
graphics/shotwell
graphics/libmypaint - build fine (not much tested, but gimp run and open image
work fine)
graphics/libraw - build fine
graphics/mypaint
graphics/pfstools
graphics/inkscape - build, run open image work fine (not much tested)
lang/J
math/metis - build fine
math/openblas - build fine
math/hmat-oss
math/ceres-solver
math/librsb
math/octave-forge-nurbs
math/fftw3 - build fine
math/tmv
math/viennacl
math/py-theano
multimedia/pHash
science/afni
security/john
sysutils/b2sum
sysutils/parafly

Added to CC maintainers of all those ports and ask for test those ports,
because "compiles != works as intended".

Possible is safe to remove compiler:openmp.

P.S. There is other PR:
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=247753.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the freebsd-gnome mailing list