I’m trying to upgrade the ImageMagick Portfile to version 7.1.0-54 and am 
hitting linker errors with OpenCL.

I see that homebrew has a working version at 
https://github.com/Homebrew/homebrew-core/blob/master/Formula/imagemagick.rb 
<https://github.com/Homebrew/homebrew-core/blob/master/Formula/imagemagick.rb>, 
so I’ve tried to make sure I’ve copies their setup, but am still hitting this 
issue, observed a year ago here, https://trac.macports.org/ticket/64087 
<https://trac.macports.org/ticket/64087>.

Does anyone have a suggestion for locating these symbols?

> :info:build libtool: link: /usr/bin/clang -dynamiclib  -o 
> MagickCore/.libs/libMagickCore-7.Q16.10.dylib  
> MagickCore/.libs/libMagickCore_7_Q16_la-accelerate.o  … 
> MagickCore/.libs/libMagickCore_7_Q16_la-xwindow.o   -L/opt/local/lib 
> -L/opt/local/lib/libomp -lomp -llcms2 -lxml2 -lfontconfig -lfreetype -lXext 
> -lSM -lICE -lX11 -lXt -lbz2 -lz -lzip -lltdl -lm -lpthread  -Os -arch x86_64 
> -Wl,-headerpad_max_install_names -Wl,-syslibroot 
> -Wl,/Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk -arch x86_64   
> -pthread -install_name  /opt/local/lib/libMagickCore-7.Q16.10.dylib 
> -compatibility_version 11 -current_version 11.0 -Wl,-single_module
> :info:build ld: warning: directory not found for option 
> '-L/opt/local/lib/ImageMagick-7.1.0'
> :info:build Undefined symbols for architecture x86_64:
> :info:build   "_clBuildProgram", referenced from:
> :info:build       _InitializeOpenCL in libMagickCore_7_Q16_la-opencl.o
> :info:build   "_clCreateBuffer", referenced from:
> :info:build       _InitializeOpenCL in libMagickCore_7_Q16_la-opencl.o
> :info:build   "_clCreateCommandQueue", referenced from:
> :info:build       _InitializeOpenCL in libMagickCore_7_Q16_la-opencl.o
> :info:build   "_clCreateContext", referenced from:
> :info:build       _InitializeOpenCL in libMagickCore_7_Q16_la-opencl.o
> :info:build   "_clCreateKernel", referenced from:
> :info:build       _InitializeOpenCL in libMagickCore_7_Q16_la-opencl.o
> :info:build   "_clCreateProgramWithBinary", referenced from:
> :info:build       _InitializeOpenCL in libMagickCore_7_Q16_la-opencl.o
> :info:build   "_clCreateProgramWithSource", referenced from:
> :info:build       _InitializeOpenCL in libMagickCore_7_Q16_la-opencl.o
> :info:build   "_clEnqueueMapBuffer", referenced from:
> :info:build       _InitializeOpenCL in libMagickCore_7_Q16_la-opencl.o
> :info:build   "_clEnqueueNDRangeKernel", referenced from:
> :info:build       _InitializeOpenCL in libMagickCore_7_Q16_la-opencl.o
> :info:build   "_clEnqueueReadBuffer", referenced from:
> :info:build       _InitializeOpenCL in libMagickCore_7_Q16_la-opencl.o


Attachment: smime.p7s
Description: S/MIME cryptographic signature

Reply via email to