[Bug 252994] graphics/GraphicsMagick gcc-c++11-lib not needed for OPENMP

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Mon Jan 25 12:07:47 UTC 2021


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

            Bug ID: 252994
           Summary: graphics/GraphicsMagick gcc-c++11-lib not needed for
                    OPENMP
           Product: Ports & Packages
           Version: Latest
          Hardware: arm64
                OS: Any
            Status: New
          Severity: Affects Many People
          Priority: ---
         Component: Individual Port(s)
          Assignee: sunpoet at FreeBSD.org
          Reporter: rasmus at gal.dk
          Assignee: sunpoet at FreeBSD.org
             Flags: maintainer-feedback?(sunpoet at FreeBSD.org)

Created attachment 221899
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=221899&action=edit
Omit gcc-c11+11-lib dependency, thereby omitting gcc dependency

FreeBSD 12.2 - aarch64

gcc is a dependency for GraphicsMagick (recently bumped from gcc9 to gcc10) if
OPENMP is chosen (default). It's a massive unneeded (AFAIK) dependency. 

Omitting:

OPENMP_USES=           compiler:gcc-c++11-lib

from Makefile, makes GraphicsMagick compile and OPENMP works fine:

$ gm benchmark -stepthreads 1 -duration 10 convert \
>   -size 2048x1080 pattern:granite -operator all Noise-Gaussian 30% null:
Results: 1 threads 23 iter 8.97s user 10.083170s total 2.281 iter/s 2.564
iter/cpu 1.00 speedup 1.000 karp-flatt
Results: 2 threads 41 iter 16.70s user 10.192252s total 4.023 iter/s 2.455
iter/cpu 1.76 speedup 0.134 karp-flatt
$

Example of OPENMP taken from GM documentation:

http://www.graphicsmagick.org/OpenMP.html

I have only aarch64 machines to test on.

Patchfile included.

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


More information about the freebsd-ports-bugs mailing list