I'm having trouble on one jail with one port after my 11.2 upgrade (from 10.4): graphics/ImageMagick6-nox11
Both graphics/ImageMagick6-nox11 and graphics/ImageMagick7-nox11 fail with "/usr/bin/ld: cannot find -lomp"
In both cases, the OPENMP option is NOT selected. I found PR 223518 which seems to be relevant, but messing with clang vs. GCC and enabling and disabling OPENMP haven't changed the outcome. I do note that there's a compiler message about using threads since perl is threaded, so the OPENMP flag might not make any difference.
In ImageMagick6 the fail is
and in ImageMagick7 it is
There are some bugs about this here and there, but no obvious fixes. I also posted as PR 223946.
FreeBSD 11.2-RELEASE-p6 #0 r341740
Both graphics/ImageMagick6-nox11 and graphics/ImageMagick7-nox11 fail with "/usr/bin/ld: cannot find -lomp"
In both cases, the OPENMP option is NOT selected. I found PR 223518 which seems to be relevant, but messing with clang vs. GCC and enabling and disabling OPENMP haven't changed the outcome. I do note that there's a compiler message about using threads since perl is threaded, so the OPENMP flag might not make any difference.
In ImageMagick6 the fail is
Code:
libtool: link: cc -shared -fPIC -DPIC coders/.libs/coders_dng_la-dng.o -Wl,-rpath -Wl,/var/ports/usr/ports/graphics/ImageMagick6-nox11/work/ImageMagick-6.9.10-14/magick/.libs -Wl,-rpath -Wl,/usr/local/lib -Wl,-rpath -Wl,/usr/local/lib magick/.libs/libMagickCore-6.so -lpthread -L/usr/local/lib -lfreetype -llqr-1 -lglib-2.0 -lintl -lfftw3 -lxml2 -llzma -lbz2 -lz /usr/local/lib/libltdl.so -lm -lraw_r -llcms2 -Oz -march=barcelona -mtune=barcelona -march=amdfam10 -fstack-protector -pthread -fstack-protector -fopenmp -pthread -fopenmp -Wl,-soname -Wl,dng.so -Wl,-version-script -Wl,coders/.libs/dng.so-ver -o coders/.libs/dng.so
/usr/bin/ld: cannot find -lomp
cc: error: linker command failed with exit code 1 (use -v to see invocation)
gmake[2]: *** [Makefile:5688: coders/dng.la] Error 1
gmake[2]: *** Waiting for unfinished jobs....
and in ImageMagick7 it is
Code:
10 -fstack-protector -pthread -fstack-protector -pthread -Wl,-soname -Wl,dpx.so -Wl,-version-script -Wl,coders/.libs/dpx.so-ver -o coders/.libs/dpx.so
/usr/bin/ld: cannot find -lomp
cc: error: linker command failed with exit code 1 (use -v to see invocation)
gmake[2]: *** [Makefile:6385: coders/dng.la] Error 1
gmake[2]: *** Waiting for unfinished jobs....
There are some bugs about this here and there, but no obvious fixes. I also posted as PR 223946.
FreeBSD 11.2-RELEASE-p6 #0 r341740