Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 870823 - media-gfx/gmic-3.1.6 - /.../x86_64-pc-linux-gnu-ld: ./libgmic.so: undefined reference to _kmpc_for_static_init_8
Summary: media-gfx/gmic-3.1.6 - /.../x86_64-pc-linux-gnu-ld: ./libgmic.so: undefined r...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Marek Szuba
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-09-17 15:56 UTC by Toralf Förster
Modified: 2022-09-20 00:43 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge-info.txt (emerge-info.txt,17.43 KB, text/plain)
2022-09-17 15:56 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,40.11 KB, text/plain)
2022-09-17 15:56 UTC, Toralf Förster
Details
environment (environment,64.00 KB, text/plain)
2022-09-17 15:56 UTC, Toralf Förster
Details
etc.portage.tar.bz2 (etc.portage.tar.bz2,10.81 KB, application/x-bzip)
2022-09-17 15:56 UTC, Toralf Förster
Details
media-gfx:gmic-3.1.6:20220917-145240.log (media-gfx:gmic-3.1.6:20220917-145240.log,5.40 KB, text/plain)
2022-09-17 15:56 UTC, Toralf Förster
Details
temp.tar.bz2 (temp.tar.bz2,17.38 KB, application/x-bzip)
2022-09-17 15:56 UTC, Toralf Förster
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2022-09-17 15:56:18 UTC
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"
Comment 1 Toralf Förster gentoo-dev 2022-09-17 15:56:19 UTC
Created attachment 807937 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2022-09-17 15:56:20 UTC
Created attachment 807940 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2022-09-17 15:56:22 UTC
Created attachment 807943 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2022-09-17 15:56:23 UTC
Created attachment 807946 [details]
etc.portage.tar.bz2
Comment 5 Toralf Förster gentoo-dev 2022-09-17 15:56:24 UTC
Created attachment 807949 [details]
media-gfx:gmic-3.1.6:20220917-145240.log
Comment 6 Toralf Förster gentoo-dev 2022-09-17 15:56:25 UTC
Created attachment 807952 [details]
temp.tar.bz2
Comment 7 Carlos 2022-09-18 11:50:30 UTC
Solved this by replacing OPENMP_LIBS='-lgomp' with OPENMP_LIBS='-lomp' in the ebuild's `gmic_emake' function.
Comment 8 Larry the Git Cow gentoo-dev 2022-09-20 00:43:06 UTC
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(-)