Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 929123

Summary: dev-lang/crystal-1.12.0 - ld.lld: error: undefined symbol: _pthread_register_cancel
Product: Gentoo Linux Reporter: Toralf Förster <toralf>
Component: Current packagesAssignee: Gentoo musl team <musl>
Status: CONFIRMED ---    
Severity: normal CC: xgqt
Priority: Normal Keywords: PullRequest
Version: unspecified   
Hardware: All   
OS: Linux   
See Also: https://github.com/gentoo/gentoo/pull/40384
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: emerge-info.txt
dev-lang:crystal-1.12.0:20240411-051018.log
emerge-history.txt.xz
environment
etc.clang.tar.xz
etc.portage.tar.xz
qlist-info.txt.xz
temp.tar.xz

Description Toralf Förster gentoo-dev 2024-04-11 07:28:00 UTC
Semantic (new):                    00:00:00.005480074 ( 178.71MB)
Semantic (type declarations):      00:00:00.351750162 ( 178.71MB)
Semantic (abstract def check):     00:00:00.073418920 ( 194.71MB)
Semantic (restrictions augmenter): 00:00:00.065505546 ( 194.71MB)
Semantic (ivars initializers):     00:00:20.818668070 (1254.64MB)
Semantic (cvars initializers):     00:00:00.036938967 (1254.64MB)
ld.lld: error: undefined symbol: __pthread_register_cancel
>>> referenced by pthread_start.c
>>>               pthread_start.o:(GC_inner_start_routine) in archive /var/tmp/portage/dev-lang/crystal-1.12.0/work/crystal-1.12.0-1/bin/../lib/crystal/libgc.a

  -------------------------------------------------------------------

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 23.0_musl-20240403-202925

  -------------------------------------------------------------------

gcc-config -l:
 [1] x86_64-pc-linux-musl-13 *
clang/llvm (if any):
clang version 18.1.3
Target: x86_64-pc-linux-musl
Thread model: posix
InstalledDir: /usr/lib/llvm/18/bin
Configuration file: /etc/clang/x86_64-pc-linux-musl-clang.cfg
/usr/lib/llvm/18
18.1.3
Python 3.11.9
Available Ruby profiles:
  [1]   ruby31 (with Rubygems)
  [2]   ruby32 (with Rubygems)
  [3]   ruby33 (with Rubygems) *
Available Rust versions:
  [1]   rust-bin-1.77.1
  [2]   rust-1.77.1 *
The following VMs are available for generation-2:
1)	Eclipse Temurin JDK 11.0.22_p7 [openjdk-bin-11]
2)	Eclipse Temurin JDK 17.0.10_p7 [openjdk-bin-17]
*)	Eclipse Temurin JDK 21.0.2_p13 [openjdk-bin-21]
Available Java Virtual Machines:
  [1]   openjdk-bin-11 
  [2]   openjdk-bin-17 
  [3]   openjdk-bin-21  system-vm

php cli (if any):
  [1]   php8.1
  [2]   php8.3 *
go version go1.22.2 linux/amd64

  HEAD of ::gentoo
commit 23f6b340c629c67594776255282d431cefc082ea
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Thu Apr 11 03:49:12 2024 +0000

    2024-04-11 03:49:11 UTC

emerge -qpvO dev-lang/crystal
[ebuild  N    ] dev-lang/crystal-1.12.0  USE="-debug -doc -llvm-libunwind"
Comment 1 Toralf Förster gentoo-dev 2024-04-11 07:28:00 UTC
Created attachment 890428 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2024-04-11 07:28:01 UTC
Created attachment 890429 [details]
dev-lang:crystal-1.12.0:20240411-051018.log
Comment 3 Toralf Förster gentoo-dev 2024-04-11 07:28:02 UTC
Created attachment 890430 [details]
emerge-history.txt.xz
Comment 4 Toralf Förster gentoo-dev 2024-04-11 07:28:04 UTC
Created attachment 890431 [details]
environment
Comment 5 Toralf Förster gentoo-dev 2024-04-11 07:28:04 UTC
Created attachment 890432 [details]
etc.clang.tar.xz
Comment 6 Toralf Förster gentoo-dev 2024-04-11 07:28:05 UTC
Created attachment 890433 [details]
etc.portage.tar.xz
Comment 7 Toralf Förster gentoo-dev 2024-04-11 07:28:07 UTC
Created attachment 890434 [details]
qlist-info.txt.xz
Comment 8 Toralf Förster gentoo-dev 2024-04-11 07:28:08 UTC
Created attachment 890435 [details]
temp.tar.xz
Comment 9 Larry the Git Cow gentoo-dev 2025-01-30 17:44:11 UTC
The bug has been referenced in the following commit(s):

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

commit b1589285ccdda25dd0a9b7c058484ca031e0c45f
Author:     Alfred Wingate <parona@protonmail.com>
AuthorDate: 2025-01-30 11:52:55 +0000
Commit:     Maciej Barć <xgqt@gentoo.org>
CommitDate: 2025-01-30 17:44:08 +0000

    dev-lang/crystal: do not link against prebuilt libgc
    
    https://github.com/crystal-lang/crystal/issues/12035#issuecomment-2522606612
    
    https://github.com/crystal-lang/distribution-scripts/tree/master/linux#linux-x86_64-static-build
    > The x86_64 crystal build is built inside an alpine linux container as a
    > statically linked binary using musl libc. libgc is built on debian to make
    > it work on glibc.
    
    Bug: https://bugs.gentoo.org/931100
    Bug: https://bugs.gentoo.org/929123
    Bug: https://bugs.gentoo.org/929989
    Signed-off-by: Alfred Wingate <parona@protonmail.com>
    Signed-off-by: Maciej Barć <xgqt@gentoo.org>

 .../crystal/{crystal-1.15.0.ebuild => crystal-1.15.0-r1.ebuild}  | 9 +++++++++
 1 file changed, 9 insertions(+)