* Package: dev-lang/crystal-1.12.1: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.1.tar.gz to /var/tmp/portage/dev-lang/crystal-1.12.1/work >>> Unpacking crystal-1.12.1-1-linux-x86_64.tar.gz to /var/tmp/portage/dev-lang/crystal-1.12.1/work >>> Source unpacked in /var/tmp/portage/dev-lang/crystal-1.12.1/work >>> Preparing source in /var/tmp/portage/dev-lang/crystal-1.12.1/work/crystal-1.12.1 ... * 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.1/work/crystal-1.12.1 ... >>> Source configured. >>> Compiling source in /var/tmp/portage/dev-lang/crystal-1.12.1/work/crystal-1.12.1 ... make -j4 PATH=/var/tmp/portage/dev-lang/crystal-1.12.1/work/crystal-1.12.1-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 CRYSTAL_CONFIG_VERSION=1.12.1 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="1714638398" 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.000074671 ( 1.16MB) Semantic (top level): 00:00:01.368594285 ( 178.71MB) Semantic (new): 00:00:00.005509599 ( 178.71MB) Semantic (type declarations): 00:00:00.335218043 ( 178.71MB) Semantic (abstract def check): 00:00:00.045234348 ( 194.71MB) Semantic (restrictions augmenter): 00:00:00.032862608 ( 194.71MB) Semantic (ivars initializers): 00:00:19.601230185 (1254.64MB) Semantic (cvars initializers): 00:00:00.023495154 (1254.64MB) /usr/lib/gcc/x86_64-pc-linux-musl/13/../../../../x86_64-pc-linux-musl/bin/ld: /var/tmp/portage/dev-lang/crystal-1.12.1/work/crystal-1.12.1-1/bin/../lib/crystal/libgc.a(pthread_support.o): in function `GC_thr_init': pthread_support.c:(.text+0xee1): undefined reference to `gnu_get_libc_version' /usr/lib/gcc/x86_64-pc-linux-musl/13/../../../../x86_64-pc-linux-musl/bin/ld: /var/tmp/portage/dev-lang/crystal-1.12.1/work/crystal-1.12.1-1/bin/../lib/crystal/libgc.a(mach_dep.o): in function `GC_with_callee_saves_pushed': mach_dep.c:(.text+0x3b): undefined reference to `getcontext' /usr/lib/gcc/x86_64-pc-linux-musl/13/../../../../x86_64-pc-linux-musl/bin/ld: /var/tmp/portage/dev-lang/crystal-1.12.1/work/crystal-1.12.1-1/bin/../lib/crystal/libgc.a(pthread_start.o): in function `GC_inner_start_routine': pthread_start.c:(.text+0x44): undefined reference to `__pthread_register_cancel' /usr/lib/gcc/x86_64-pc-linux-musl/13/../../../../x86_64-pc-linux-musl/bin/ld: pthread_start.c:(.text+0x6b): undefined reference to `__pthread_unregister_cancel' collect2: error: ld returned 1 exit status Error: execution of command failed with exit status 1: x86_64-pc-linux-musl-gcc "${@}" -o /var/tmp/portage/dev-lang/crystal-1.12.1/homedir/.cache/crystal/var-tmp-portage-dev-lang-crystal-1.12.1-work-crystal-1.12.1-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.1/work/crystal-1.12.1-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.1::gentoo failed (compile phase): * emake failed * * If you need support, post the output of `emerge --info '=dev-lang/crystal-1.12.1::gentoo'`, * the complete build log and the output of `emerge -pqv '=dev-lang/crystal-1.12.1::gentoo'`. * The complete build log is located at '/var/log/portage/dev-lang:crystal-1.12.1:20240502-082635.log'. * For convenience, a symlink to the build log is located at '/var/tmp/portage/dev-lang/crystal-1.12.1/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/dev-lang/crystal-1.12.1/temp/environment'. * Working directory: '/var/tmp/portage/dev-lang/crystal-1.12.1/work/crystal-1.12.1' * S: '/var/tmp/portage/dev-lang/crystal-1.12.1/work/crystal-1.12.1'