clang++ -shared -std=c++11 -pedantic -Wl,-soname,libgmic.so.3 -o libgmic.so.316 libgmic.o -lz -L. -L/usr/lib64 -lpthread -lgomp -Wl,-O1 -Wl,--as-needed -Wl,--defsym=__gentoo_check_ldflags__=0 ln -fs libgmic.so.316 libgmic.so.3 ln -fs libgmic.so.3 libgmic.so clang++ -o use_libgmic use_libgmic.cpp -std=c++11 -pedantic -lgmic -lz -L. -L/usr/lib64 -lpthread -lgomp -Wl,-O1 -Wl,--as-needed -Wl,--defsym=__gentoo_check_ldflags__=0 /usr/bin/x86_64-pc-linux-gnu-ld: ./libgmic.so: undefined reference to `__kmpc_for_static_init_8' /usr/bin/x86_64-pc-linux-gnu-ld: ./libgmic.so: undefined reference to `__kmpc_barrier' /usr/bin/x86_64-pc-linux-gnu-ld: ./libgmic.so: undefined reference to `__kmpc_for_static_init_4u' ------------------------------------------------------------------- This is an unstable amd64 chroot image at a tinderbox (==build bot) name: 17.1_hardened-j4-20220917-070004 ------------------------------------------------------------------- gcc-config -l: [1] x86_64-pc-linux-gnu-12.2.0 * clang/llvm (if any): clang version 15.0.0 Target: x86_64-pc-linux-gnu Thread model: posix InstalledDir: /usr/lib/llvm/15/bin /usr/lib/llvm/15 15.0.0 Python 3.10.7 Available Ruby profiles: (none found) Available Rust versions: [1] rust-bin-1.63.0 * The following VMs are available for generation-2: *) Eclipse Temurin JDK 17.0.4.1_p1 [openjdk-bin-17] Available Java Virtual Machines: [1] openjdk-bin-17 system-vm The Glorious Glasgow Haskell Compilation System, version 9.0.2 php cli (if any): GNU Make 4.3 HEAD of ::gentoo commit a7abb04fd6c213f3bf85ff69b1fd07d64b30626c Author: Repository mirror & CI <repomirrorci@gentoo.org> Date: Sat Sep 17 13:46:46 2022 +0000 2022-09-17 13:46:46 UTC emerge -qpvO media-gfx/gmic [ebuild N ] media-gfx/gmic-3.1.6 USE="openmp -X -cli -curl -ffmpeg -fftw -gimp -graphicsmagick -jpeg -opencv -openexr -png -qt5 -tiff"
Created attachment 807937 [details] emerge-info.txt
Created attachment 807940 [details] emerge-history.txt
Created attachment 807943 [details] environment
Created attachment 807946 [details] etc.portage.tar.bz2
Created attachment 807949 [details] media-gfx:gmic-3.1.6:20220917-145240.log
Created attachment 807952 [details] temp.tar.bz2
Solved this by replacing OPENMP_LIBS='-lgomp' with OPENMP_LIBS='-lomp' in the ebuild's `gmic_emake' function.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c9eaacb7f947b4fc08bc6631223b9398760ef7c4 commit c9eaacb7f947b4fc08bc6631223b9398760ef7c4 Author: Marek Szuba <marecki@gentoo.org> AuthorDate: 2022-09-19 23:51:49 +0000 Commit: Marek Szuba <marecki@gentoo.org> CommitDate: 2022-09-20 00:42:58 +0000 media-gfx/gmic: use different OpenMP library when using clang Closes: https://bugs.gentoo.org/870823 Signed-off-by: Marek Szuba <marecki@gentoo.org> media-gfx/gmic/gmic-3.1.6.ebuild | 40 +++++++++++++++++++++++----------------- 1 file changed, 23 insertions(+), 17 deletions(-)