[MacPorts] #64087: ImageMagick: Undefined symbols _clBuildProgram _clCreateBuffer _clCreateCommandQueue (was: Bug detecting incorrect arch for 10.13)

MacPorts noreply at macports.org
Mon Nov 29 20:22:35 UTC 2021


#64087: ImageMagick: Undefined symbols _clBuildProgram _clCreateBuffer
_clCreateCommandQueue
----------------------------+--------------------
  Reporter:  gaming-hacker  |      Owner:  (none)
      Type:  defect         |     Status:  new
  Priority:  Normal         |  Milestone:
 Component:  ports          |    Version:  2.7.1
Resolution:                 |   Keywords:
      Port:  ImageMagick    |
----------------------------+--------------------
Changes (by ryandesign):

 * keywords:  arch, detection, SDK, universal =>
 * component:  base => ports
 * port:   => ImageMagick


Comment:

 Replying to [ticket:64087 gaming-hacker]:
 > {{{
 > universal_archs       x86_64 x86_64
 > }}}

 It's not valid to specify the same arch twice in universal_archs. The
 correct value for universal_archs for 10.13 is i386 x86_64.

 > {{{
 > :debug:sysinfo macOS 10.13.6 (darwin/17.7.0) arch i386
 > }}}
 >
 > as can be seen somehow macports is picking up i386 initially

 This is the variable [https://guide.macports.org/#reference.variables
 os.arch]. Its only possible values are i386 (meaning any Intel processor),
 powerpc (meaning any PowerPC processor), or arm (meaning any ARM
 processor). It does not indicate the bitness.

 This is unrelated to the `-arch` flags that you see in the build that do
 relate to the bitness.

 This naming confusion between the two different meanings of "arch" in
 MacPorts is unfortunate.

 > {{{
 > :info:build Undefined symbols for architecture x86_64:
 > :info:build   "_clBuildProgram", referenced from:
 > :info:build       _InitializeOpenCL in libMagickCore_7_Q64HDRI_la-
 opencl.o
 > :info:build   "_clCreateBuffer", referenced from:
 > :info:build       _InitializeOpenCL in libMagickCore_7_Q64HDRI_la-
 opencl.o
 > :info:build   "_clCreateCommandQueue", referenced from:
 > :info:build       _InitializeOpenCL in libMagickCore_7_Q64HDRI_la-
 opencl.o
 > }}}

 Please attach the main.log so that we can diagnose why this happened.

-- 
Ticket URL: <https://trac.macports.org/ticket/64087#comment:3>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list