./template/builtin_binary.inc.tmpl -- --cross=no ./miniruby -I./lib -I. -I.ext/common ./tool/generic_erb.rb -c -o encdb.h ./template/encdb.h.tmpl ./enc enc <jemalloc>: Error in dlsym(RTLD_NEXT, "pthread_create") make: *** [uncommon.mk:819: .rbconfig.time] Aborted make: *** Waiting for unfinished jobs.... <jemalloc>: Error in dlsym(RTLD_NEXT, "pthread_create") <jemalloc>: Error in dlsym(RTLD_NEXT, "pthread_create") ------------------------------------------------------------------- This is an unstable amd64 chroot image at a tinderbox (==build bot) name: 17.1-j3-20210715-150252 ------------------------------------------------------------------- gcc-config -l: [1] x86_64-pc-linux-gnu-11.1.0 * /usr/lib/llvm/12 12.0.1 Python 3.9.6 Available Ruby profiles: (none found) The following VMs are available for generation-2: *) AdoptOpenJDK 8.292_p10 [openjdk-bin-8] Available Java Virtual Machines: [1] openjdk-bin-8 system-vm The Glorious Glasgow Haskell Compilation System, version 8.10.4 HEAD of ::gentoo commit 37b16b46a04232033b354433d733084c52f9284e Author: Repository mirror & CI <repomirrorci@gentoo.org> Date: Fri Jul 16 08:37:28 2021 +0000 2021-07-16 08:37:27 UTC emerge -qpvO dev-lang/ruby [ebuild N ] dev-lang/ruby-3.0.2 USE="gdbm ipv6 jemalloc rdoc rubytests ssl systemtap -berkdb -debug -doc -examples -jit -socks5 -static-libs -tk -xemacs"
Created attachment 724249 [details] emerge-info.txt
Created attachment 724252 [details] dev-lang:ruby-3.0.2:20210716-091433.log
Created attachment 724255 [details] emerge-history.txt
Created attachment 724258 [details] environment
Created attachment 724261 [details] etc.portage.tar.bz2
Created attachment 724264 [details] logs.tar.bz2
Created attachment 724267 [details] temp.tar.bz2
I can't reproduce this issue.
well, the tinderbox image is gone, the current ruby versions do not show that behaviour - so obsolete I'd assume.
appeared recently at the tinderbox image 17.1_desktop_gnome_systemd-j4-20220119-120004
Created attachment 762669 [details] emerge-info.txt
Created attachment 762670 [details] dev-lang:ruby-3.0.3:20220119-144737.log
Created attachment 762671 [details] emerge-history.txt
Created attachment 762672 [details] environment
Created attachment 762673 [details] etc.portage.tar.bz2
Created attachment 762674 [details] logs.tar.bz2
Created attachment 762675 [details] temp.tar.bz2
I had this same problem on my machine. Emerging dev-libs/jemalloc with USE="-lazy-lock" worked. To me, this seems similar to https://github.com/jemalloc/jemalloc/issues/907#issuecomment-335327028, but its recommendations didn't work for me.
The jemalloc USE flag is now masked for dev-lang/ruby, with the intention to remove it later.