Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 641186 - >=sys-apps/grep-3.0 USE=static - /usr/lib64/libpcre.a(libpcre_la-pcre_jit_compile.o): In function `sljit_free_exec': (.text+0x133c): undefined reference to `pthread_mutex_lock'
Summary: >=sys-apps/grep-3.0 USE=static - /usr/lib64/libpcre.a(libpcre_la-pcre_jit_com...
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-12-15 20:14 UTC by Dblmok
Modified: 2022-05-03 23:57 UTC (History)
0 users

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


Attachments
emerge --info (emerge--info.txt,4.95 KB, text/plain)
2017-12-15 20:14 UTC, Dblmok
Details
build log (build.log,85.63 KB, text/plain)
2017-12-15 20:31 UTC, Dblmok
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Dblmok 2017-12-15 20:14:07 UTC
Created attachment 510218 [details]
emerge --info

sys-apps/grep-3.1 fail build with static flag with errors
/usr/lib/gcc/x86_64-pc-linux-gnu/7.2.0/../../../../lib64/libpcre.a(libpcre_la-pcre_jit_compile.o): In function `sljit_generate_code':
(.text.unlikely+0x3d6): undefined reference to `pthread_mutex_lock'
(.text.unlikely+0x472): undefined reference to `pthread_mutex_unlock'
(.text.unlikely+0x4c4): undefined reference to `pthread_mutex_unlock'
(.text.unlikely+0x55a): undefined reference to `pthread_mutex_unlock'
Comment 1 Dblmok 2017-12-15 20:31:27 UTC
Created attachment 510220 [details]
build log
Comment 2 Jeroen Roovers (RETIRED) gentoo-dev 2017-12-19 12:27:24 UTC
LIB_DEPEND="pcre? ( >=dev-libs/libpcre-7.8-r1[static-libs(+)] )"
RDEPEND="!static? ( ${LIB_DEPEND//\[static-libs(+)]} )

Um. Why?
Comment 3 Jeroen Roovers (RETIRED) gentoo-dev 2017-12-19 12:32:56 UTC
[ebuild   R    ] dev-libs/libpcre-8.41:3::gentoo  USE="bzip2 cxx jit pcre16 readline recursion-limit static-libs (unicode) zlib -libedit -pcre32" ABI_X86="32 (64) (-x32)" 0 KiB
Comment 4 Larry the Git Cow gentoo-dev 2022-05-03 23:57:57 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=19c92a966c7f9b03da46dc047e4655e5e95aed30

commit 19c92a966c7f9b03da46dc047e4655e5e95aed30
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2022-05-03 23:56:43 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2022-05-03 23:57:07 +0000

    sys-apps/grep: add 3.7_p20220425 (unkeyworded).
    
    Notably switches to libpcre2 (yay). Pre-release for testing.
    
    Bug: https://bugs.gentoo.org/514454
    Bug: https://bugs.gentoo.org/569816
    Bug: https://bugs.gentoo.org/641186
    Signed-off-by: Sam James <sam@gentoo.org>

 sys-apps/grep/Manifest                  |  2 +
 sys-apps/grep/grep-3.7_p20220425.ebuild | 72 +++++++++++++++++++++++++++++++++
 2 files changed, 74 insertions(+)