Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 849803 - dev-python/symengine-0.9.2-r1 fails to build missing /usr/lib64/libpthread.so
Summary: dev-python/symengine-0.9.2-r1 fails to build missing /usr/lib64/libpthread.so
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Science Mathematics related packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: glibc-2.34
  Show dependency tree
 
Reported: 2022-06-05 12:54 UTC by Thomas Haschka
Modified: 2022-06-08 05:06 UTC (History)
1 user (show)

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


Attachments
emerge --info (info,6.00 KB, text/plain)
2022-06-05 12:54 UTC, Thomas Haschka
Details
build log (build.log,6.08 KB, text/plain)
2022-06-05 12:55 UTC, Thomas Haschka
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas Haschka 2022-06-05 12:54:04 UTC
Build of symengine currently fails missing /usr/lib64/libpthread.so
this is probably just misconfigured as it probably just should use 
-pthread of gcc



Reproducible: Always

Steps to Reproduce:
1. emerge dev-python/symengine-0.9.2-r1

Actual Results:  
Build fails

Expected Results:  
emerge of symengine finish successful
Comment 1 Thomas Haschka 2022-06-05 12:54:58 UTC
Created attachment 782918 [details]
emerge --info
Comment 2 Thomas Haschka 2022-06-05 12:55:59 UTC
Created attachment 782921 [details]
build log
Comment 3 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-06-07 22:20:22 UTC
Please run: grep -rsin "pthread" /usr/lib64/cmake.
Comment 4 Thomas Haschka 2022-06-08 03:13:19 UTC
Here is the output of: grep -rsin "pthread" /usr/lib64/cmake

/usr/lib64/cmake/Gpgmepp/GpgmeppConfig.cmake:66:  INTERFACE_LINK_LIBRARIES "pthread;/usr/lib64/libgpgme.so;-L/usr/lib64 -lassuan"
/usr/lib64/cmake/openjpeg-2.4/OpenJPEGTargets-gentoo.cmake:11:  IMPORTED_LINK_INTERFACE_LIBRARIES_GENTOO "m;-lpthread"
/usr/lib64/cmake/OpenEXR/OpenEXRConfig.cmake:41:  set(THREADS_PREFER_PTHREAD_FLAG ON)
/usr/lib64/cmake/symengine/SymEngineConfig.cmake:79:set(SYMENGINE_PTHREAD_LIBRARIES /usr/lib64/libpthread.so)
/usr/lib64/cmake/symengine/SymEngineConfig.cmake:80:set(SYMENGINE_PTHREAD_INCLUDE_DIRS /usr/include)
/usr/lib64/cmake/symengine/SymEngineConfig.cmake:81:set(HAVE_SYMENGINE_PTHREAD True)
/usr/lib64/cmake/symengine/SymEngineConfig.cmake:107:foreach(PKG FLINT;MPC;CEREAL;PTHREAD;MPFR;GMP)
/usr/lib64/cmake/symengine/SymEngineTargets.cmake:67:  INTERFACE_LINK_LIBRARIES "flint;mpc;pthread;mpfr;gmp"
/usr/lib64/cmake/SDL2/sdl2-config.cmake:24:  string(REPLACE "-lSDL2 " "" SDL2_EXTRA_LINK_FLAGS_STATIC " -lm  -lasound -lm  -lpthread  -lX11 -lXext -lXcursor -lXi -lXfixes -lXrandr -lXxf86vm -lpthread -lrt ")
/usr/lib64/cmake/log4cplus/log4cplusTargets.cmake:67:  INTERFACE_LINK_LIBRARIES "-lpthread;/usr/lib64/librt.so;/usr/lib64/libnsl.so"
Comment 5 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-06-08 03:17:04 UTC
Can you try rebuilding dev-libs/symengine please? (emerge -v1 ...)
Comment 6 Thomas Haschka 2022-06-08 03:38:49 UTC
running 

emerge -v1 sci-libs/symengine

prior running 

emerge -v1 dev-python/symengine

allows to emerge the package. 
Maybe this should be triggered by
dev-python/symengine, in order 
not to break system updates ?
Comment 7 Larry the Git Cow gentoo-dev 2022-06-08 05:06:12 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=95cae20e05d591fbb744f6e4921e46f996811b40

commit 95cae20e05d591fbb744f6e4921e46f996811b40
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2022-06-08 05:05:57 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2022-06-08 05:06:05 +0000

    sci-libs/symengine: fix pthread detection
    
    Closes: https://bugs.gentoo.org/849803
    Signed-off-by: Sam James <sam@gentoo.org>

 .../files/symengine-0.9.0-pthread-cmake.patch      | 63 ++++++++++++++
 sci-libs/symengine/symengine-0.9.0-r1.ebuild       | 98 ++++++++++++++++++++++
 sci-libs/symengine/symengine-0.9.0.ebuild          |  1 +
 3 files changed, 162 insertions(+)