* Package: dev-lang/crystal-1.12.0:0 * Repository: gentoo * Maintainer: xgqt@gentoo.org * Upstream: https://github.com/crystal-lang/crystal/issues/ * USE: abi_x86_64 amd64 elibc_musl kernel_linux * FEATURES: network-sandbox preserve-libs sandbox userpriv usersandbox >>> Unpacking source... >>> Unpacking crystal-1.12.0.tar.gz to /var/tmp/portage/dev-lang/crystal-1.12.0/work >>> Unpacking crystal-1.12.0-1-linux-x86_64.tar.gz to /var/tmp/portage/dev-lang/crystal-1.12.0/work >>> Source unpacked in /var/tmp/portage/dev-lang/crystal-1.12.0/work >>> Preparing source in /var/tmp/portage/dev-lang/crystal-1.12.0/work/crystal-1.12.0 ... * Applying crystal-1.7.2-extra-spec-flags.patch ... patching file Makefile Hunk #1 succeeded at 42 with fuzz 2 (offset 9 lines). [ ok ] * Applying crystal-0.27.0-gentoo-tests-long-unix.patch ... patching file spec/std/socket/unix_server_spec.cr Hunk #1 succeeded at 16 (offset 2 lines). Hunk #2 succeeded at 29 (offset 3 lines). Hunk #3 succeeded at 40 (offset 3 lines). Hunk #4 succeeded at 56 (offset 5 lines). Hunk #5 succeeded at 73 (offset 5 lines). Hunk #6 succeeded at 87 with fuzz 1 (offset 5 lines). Hunk #7 succeeded at 122 (offset 13 lines). Hunk #8 succeeded at 136 with fuzz 1 (offset 13 lines). [ ok ] * Applying crystal-0.27.0-gentoo-tests-long-unix-2.patch ... [ ok ] >>> Source prepared. >>> Configuring source in /var/tmp/portage/dev-lang/crystal-1.12.0/work/crystal-1.12.0 ... >>> Source configured. >>> Compiling source in /var/tmp/portage/dev-lang/crystal-1.12.0/work/crystal-1.12.0 ... make -j4 PATH=/var/tmp/portage/dev-lang/crystal-1.12.0/work/crystal-1.12.0-1/bin:/usr/lib/portage/python3.11/ebuild-helpers/xattr:/usr/lib/portage/python3.11/ebuild-helpers:/usr/local/sbin:/usr/local/bin:/usr/bin:/opt/bin:/usr/lib/llvm/17/bin:/usr/lib/llvm/18/bin:/usr/lib/llvm/15/bin:/usr/lib/subversion/bin:/usr/share/omniORB/bin/scripts:/opt/hermes/bin:/var/spool/fax/bin:/var/lib/bin:/opt/zookeeper-bin/bin CRYSTAL_CONFIG_VERSION=1.12.0 CRYSTAL_CONFIG_PATH=lib:/usr/lib/crystal release=1 progress=true stats=1 threads=4 verbose=1 AR=x86_64-pc-linux-musl-ar CC=x86_64-pc-linux-musl-gcc CXX=x86_64-pc-linux-musl-g++ LLVM_CONFIG=/usr/lib/llvm/17/bin/llvm-config Using /usr/lib/llvm/17/bin/llvm-config [version=17.0.6] x86_64-pc-linux-musl-g++ -c -O2 -pipe -march=native -fno-diagnostics-color -o src/llvm/ext/llvm_ext.o src/llvm/ext/llvm_ext.cc -I/usr/lib/llvm/17/include -std=c++17 -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS CRYSTAL_CONFIG_BUILD_COMMIT="" CRYSTAL_CONFIG_PATH=lib:/usr/lib/crystal SOURCE_DATE_EPOCH="1712812242" CC="x86_64-pc-linux-musl-gcc -fuse-ld=lld" CRYSTAL_CONFIG_LIBRARY_PATH='$ORIGIN/../lib/crystal' ./bin/crystal build -D strict_multi_assign -D preview_overload_order --release --stats --progress --threads 4 --link-flags="-Wl,-O1 -Wl,--as-needed -Wl,-z,pack-relative-relocs -Wl,--defsym=__gentoo_check_ldflags__=0" -Dwithout_interpreter -o .build/crystal src/compiler/crystal.cr -D without_openssl -D without_zlib -D use_pcre2 Parse: 00:00:00.000079851 ( 1.16MB) Semantic (top level): 00:00:01.275466666 ( 178.71MB) 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 ld.lld: error: undefined symbol: __pthread_unregister_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 ld.lld: error: undefined symbol: gnu_get_libc_version >>> referenced by pthread_support.c >>> pthread_support.o:(GC_thr_init) in archive /var/tmp/portage/dev-lang/crystal-1.12.0/work/crystal-1.12.0-1/bin/../lib/crystal/libgc.a ld.lld: error: undefined symbol: getcontext >>> referenced by mach_dep.c >>> mach_dep.o:(GC_with_callee_saves_pushed) in archive /var/tmp/portage/dev-lang/crystal-1.12.0/work/crystal-1.12.0-1/bin/../lib/crystal/libgc.a collect2: error: ld returned 1 exit status Error: execution of command failed with exit status 1: x86_64-pc-linux-musl-gcc -fuse-ld=lld "${@}" -o /var/tmp/portage/dev-lang/crystal-1.12.0/homedir/.cache/crystal/var-tmp-portage-dev-lang-crystal-1.12.0-work-crystal-1.12.0-src-ecr-process.cr/macro_run -Wl,-O1 -Wl,--as-needed -Wl,-z,pack-relative-relocs -Wl,--defsym=__gentoo_check_ldflags__=0 -rdynamic -L/var/tmp/portage/dev-lang/crystal-1.12.0/work/crystal-1.12.0-1/bin/../lib/crystal -lpcre2-8 -latomic_ops -lgc -lpthread -ldl -levent make: *** [Makefile:227: .build/crystal] Error 1 * ERROR: dev-lang/crystal-1.12.0::gentoo failed (compile phase): * emake failed * * If you need support, post the output of `emerge --info '=dev-lang/crystal-1.12.0::gentoo'`, * the complete build log and the output of `emerge -pqv '=dev-lang/crystal-1.12.0::gentoo'`. * The complete build log is located at '/var/log/portage/dev-lang:crystal-1.12.0:20240411-051018.log'. * For convenience, a symlink to the build log is located at '/var/tmp/portage/dev-lang/crystal-1.12.0/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/dev-lang/crystal-1.12.0/temp/environment'. * Working directory: '/var/tmp/portage/dev-lang/crystal-1.12.0/work/crystal-1.12.0' * S: '/var/tmp/portage/dev-lang/crystal-1.12.0/work/crystal-1.12.0'