Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 17 Oct 2018 14:37:07 +0000
From:      bugzilla-noreply@freebsd.org
To:        ports-bugs@FreeBSD.org
Subject:   [Bug 232357] graphics/ImageMagick: run-time failure for convert(1) if built with libOpenCL and beignet / clover are installed
Message-ID:  <bug-232357-7788@https.bugs.freebsd.org/bugzilla/>

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

            Bug ID: 232357
           Summary: graphics/ImageMagick: run-time failure for convert(1)
                    if built with libOpenCL and beignet / clover are
                    installed
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: Individual Port(s)
          Assignee: kwm@FreeBSD.org
          Reporter: z7dr6ut7gs@snkmail.com
             Flags: maintainer-feedback?(kwm@FreeBSD.org)
          Assignee: kwm@FreeBSD.org

If graphics/ImageMagick (currently ImageMagick-6.9.9.28_2,1) is built with =
the
following packages installed:

 devel/opencl
 devel/ocl-icd
 lang/beignet
 lang/clover

... then running convert(1) (from ImageMagick) with certain parameters will
fail:

% convert foo.png -colorspace Gray foo2.png
Device open failed, aborting...
: CommandLine Error: Option 'enable-value-profiling' registered more than o=
nce!
LLVM ERROR: inconsistency in registered CommandLine options
Nothing to output !


This was first noticed when building x11-wm/awesome on a system (amd64) with
lang/beignet & lang/clover installed.  You can reproduce it by installing
devel/ocl-icd, devel/opencl, lang/beignet and lang/clover packages (maybe j=
ust
lang/beignet??), then trying 'make build' in x11-wm/awesome.

The configure stage for ImageMagick detects the opencl include files &
libraries and will link with libOpenCL if detected.  Then if the lang/beign=
et
and lang/clover ports are installed then convert will use them at run-time.=
=20
That triggers the error.  I have not yet done any in depth digging into
ImageMagick to see more details about this.

Workaround: configure ImageMagick with --disable-opencl

--=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-232357-7788>