* Package: dev-lang/crystal-1.7.2:0 * Repository: gentoo * Maintainer: xgqt@gentoo.org * Upstream: https://github.com/crystal-lang/crystal/issues/ * USE: abi_x86_64 amd64 elibc_musl kernel_linux userland_GNU * FEATURES: network-sandbox preserve-libs sandbox userpriv usersandbox >>> Unpacking source... >>> Unpacking crystal-1.7.2.tar.gz to /var/tmp/portage/dev-lang/crystal-1.7.2/work >>> Unpacking crystal-1.7.2-1-linux-x86_64.tar.gz to /var/tmp/portage/dev-lang/crystal-1.7.2/work >>> Source unpacked in /var/tmp/portage/dev-lang/crystal-1.7.2/work >>> Preparing source in /var/tmp/portage/dev-lang/crystal-1.7.2/work/crystal-1.7.2 ... * Applying crystal-1.7.2-extra-spec-flags.patch ... [ ok ] * Applying crystal-0.27.0-gentoo-tests-long-unix.patch ... patching file spec/std/socket/unix_server_spec.cr Hunk #1 succeeded at 17 (offset 3 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.7.2/work/crystal-1.7.2 ... >>> Source configured. >>> Compiling source in /var/tmp/portage/dev-lang/crystal-1.7.2/work/crystal-1.7.2 ... make -j4 release=1 progress=true stats=1 threads=4 verbose=1 CC=x86_64-gentoo-linux-musl-gcc CXX=x86_64-gentoo-linux-musl-g++ AR=x86_64-gentoo-linux-musl-ar LLVM_CONFIG=/usr/lib/llvm/14/bin/llvm-config PATH=/var/tmp/portage/dev-lang/crystal-1.7.2/work/crystal-1.7.2-1/bin:/usr/lib/portage/python3.10/ebuild-helpers/xattr:/usr/lib/portage/python3.10/ebuild-helpers:/opt/c3-4:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/bin:/usr/lib/spark-3/bin:/usr/lib/spark-3/sbin:/usr/lib/llvm/14/bin:/usr/lib/llvm/15/bin:/usr/share/omniORB/bin/scripts:/usr/bin/cdsclient:/usr/lib/julia-1.8.3/bin:/opt/zookeeper-bin/bin CRYSTAL_PATH=/var/tmp/portage/dev-lang/crystal-1.7.2/work/crystal-1.7.2/src CRYSTAL_CONFIG_VERSION=1.7.2 CRYSTAL_CONFIG_PATH=lib:/usr/lib/crystal Using /usr/lib/llvm/14/bin/llvm-config [version= 14.0.6] x86_64-gentoo-linux-musl-g++ -c -pipe -march=native -fno-diagnostics-color -O2 -o src/llvm/ext/llvm_ext.o src/llvm/ext/llvm_ext.cc -I/usr/lib/llvm/14/include -std=c++14 -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="1677116033" CC="x86_64-gentoo-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,--defsym=__gentoo_check_ldflags__=0" -Dwithout_interpreter -o .build/crystal src/compiler/crystal.cr -D without_openssl -D without_zlib Parse: 00:00:00.000115578 ( 0.76MB) Semantic (top level): 00:00:01.243686973 ( 154.61MB) Semantic (new): 00:00:00.005009672 ( 154.61MB) Semantic (type declarations): 00:00:00.104395511 ( 170.61MB) Semantic (abstract def check): 00:00:00.038201905 ( 186.61MB) Semantic (restrictions augmenter): 00:00:00.040483005 ( 186.61MB) Semantic (ivars initializers): 00:00:12.681614731 (1070.54MB) Semantic (cvars initializers): 00:00:00.014202731 (1070.54MB) 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.7.2/work/crystal-1.7.2-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.7.2/work/crystal-1.7.2-1/bin/../lib/crystal/libgc.a 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.7.2/work/crystal-1.7.2-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.7.2/work/crystal-1.7.2-1/bin/../lib/crystal/libgc.a collect2: error: ld returned 1 exit status Error: execution of command failed with code: 1: `x86_64-gentoo-linux-musl-gcc -fuse-ld=lld "${@}" -o /var/tmp/portage/dev-lang/crystal-1.7.2/homedir/.cache/crystal/var-tmp-portage-dev-lang-crystal-1.7.2-work-crystal-1.7.2-src-ecr-process.cr/macro_run -Wl,-O1 -Wl,--as-needed -Wl,--defsym=__gentoo_check_ldflags__=0 -rdynamic -L/var/tmp/portage/dev-lang/crystal-1.7.2/work/crystal-1.7.2-1/bin/../lib/crystal -lgc -levent ` make: *** [Makefile:190: .build/crystal] Error 1 * ERROR: dev-lang/crystal-1.7.2::gentoo failed (compile phase): * emake failed * * If you need support, post the output of `emerge --info '=dev-lang/crystal-1.7.2::gentoo'`, * the complete build log and the output of `emerge -pqv '=dev-lang/crystal-1.7.2::gentoo'`. * The complete build log is located at '/var/log/portage/dev-lang:crystal-1.7.2:20230223-013352.log'. * For convenience, a symlink to the build log is located at '/var/tmp/portage/dev-lang/crystal-1.7.2/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/dev-lang/crystal-1.7.2/temp/environment'. * Working directory: '/var/tmp/portage/dev-lang/crystal-1.7.2/work/crystal-1.7.2' * S: '/var/tmp/portage/dev-lang/crystal-1.7.2/work/crystal-1.7.2'