Skip to content

Instantly share code, notes, and snippets.

@T-O-R-U-S
Created April 17, 2024 08:09
Show Gist options
  • Save T-O-R-U-S/0ed1610aeb91216fd688153d67799940 to your computer and use it in GitHub Desktop.
Save T-O-R-U-S/0ed1610aeb91216fd688153d67799940 to your computer and use it in GitHub Desktop.
Trying to build limine on an ARM Apple Silicon system. It fails.
this derivation will be built:
/nix/store/gf6cml15s4qqvm2j59pimda9ir727jgm-limine-7.3.1.drv
building '/nix/store/gf6cml15s4qqvm2j59pimda9ir727jgm-limine-7.3.1.drv'...
Running phase: unpackPhase
unpacking source archive /nix/store/aa1h0yzx951shl08b09766zhgn1sm1im-limine-7.3.1.tar.gz
source root is limine-7.3.1
setting SOURCE_DATE_EPOCH to timestamp 1712814364 of file limine-7.3.1/version
Running phase: patchPhase
Running phase: updateAutotoolsGnuConfigScriptsPhase
Updating Autotools / GNU config script to a newer upstream version: ./build-aux/config.sub
Updating Autotools / GNU config script to a newer upstream version: ./build-aux/config.guess
Running phase: configurePhase
patching script interpreter paths in ./configure
./configure: interpreter directive changed from "#! /bin/sh" to "/nix/store/crs76r1gifq0ay48v4kvws42fc59gmx5-bash-5.2p26/bin/sh"
configure flags: --prefix=/nix/store/d3rf8n6jq2hs33hk99svpq8a8mv3ya4s-limine-7.3.1 --bindir=/nix/store/d3rf8n6jq2hs33hk99svpq8a8mv3ya4s-limine-7.3.1/bin --sbindir=/nix/store/d3rf8n6jq2hs33hk99svpq8a8mv3ya4s-limine-7.3.1/sbin --includedir=/nix/store/xdlzcd5421dg0bipsxm4pv5mjy8kbraj-limine-7.3.1-dev/include --oldincludedir=/nix/store/xdlzcd5421dg0bipsxm4pv5mjy8kbraj-limine-7.3.1-dev/include --mandir=/nix/store/5x0r6p0n32wz9628prsm314jr09xh9n5-limine-7.3.1-man/share/man --infodir=/nix/store/d3rf8n6jq2hs33hk99svpq8a8mv3ya4s-limine-7.3.1/share/info --docdir=/nix/store/xnj65x7q0rskd5mmbwxx65m5f1rkqw8p-limine-7.3.1-doc/share/doc/limine --libdir=/nix/store/d3rf8n6jq2hs33hk99svpq8a8mv3ya4s-limine-7.3.1/lib --libexecdir=/nix/store/d3rf8n6jq2hs33hk99svpq8a8mv3ya4s-limine-7.3.1/libexec --localedir=/nix/store/d3rf8n6jq2hs33hk99svpq8a8mv3ya4s-limine-7.3.1/share/locale --enable-all
checking build system type... aarch64-apple-darwin23.0.0
checking host system type... aarch64-apple-darwin23.0.0
checking for gcc... clang
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether the compiler supports GNU C... yes
checking whether clang accepts -g... yes
checking for clang option to enable C11 features... none needed
checking for a race-free mkdir -p... /nix/store/x07qawlqzqac7mz7cq0k8q9fks6bkpgc-coreutils-9.4/bin/mkdir -p
checking for a BSD-compatible install... /nix/store/x07qawlqzqac7mz7cq0k8q9fks6bkpgc-coreutils-9.4/bin/install -c
checking for a sed that does not truncate output... /nix/store/pbgsjg2pqpqlik3pvfdrnwn5k362bwi2-gnused-4.9/bin/sed
checking for grep that handles long lines and -e... /nix/store/3xmkcbz15975z0q1nfk45whf95x3fw4w-gnugrep-3.11/bin/grep
checking for gawk... gawk
checking for find... yes
checking for strip... yes
checking for pkg-config... no
checking for stdio.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for strings.h... yes
checking for sys/stat.h... yes
checking for sys/types.h... yes
checking for unistd.h... yes
checking for stdint.h... (cached) yes
checking for stddef.h... yes
checking for stdbool.h... yes
checking for limits.h... yes
checking for inttypes.h... (cached) yes
checking for stdio.h... (cached) yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking for clang (i686)... yes
checking for ld.lld (i686)... yes
checking for llvm-objcopy (i686)... yes
checking for llvm-objdump (i686)... yes
checking for llvm-readelf (i686)... yes
checking for clang (i686)... yes
checking for ld.lld (i686)... yes
checking for llvm-objcopy (i686)... yes
checking for llvm-objdump (i686)... yes
checking for clang (x86_64)... yes
checking for ld.lld (x86_64)... yes
checking for llvm-objcopy (x86_64)... yes
checking for llvm-objdump (x86_64)... yes
checking for clang (aarch64)... yes
checking for ld.lld (aarch64)... yes
checking for llvm-objcopy (aarch64)... yes
checking for llvm-objdump (aarch64)... yes
checking for clang (riscv64)... yes
checking for ld.lld (riscv64)... yes
checking for llvm-objcopy (riscv64)... yes
checking for llvm-objdump (riscv64)... yes
checking for riscv64-elf-gcc (riscv64)... no
checking for arm64-apple-darwin-gcc (riscv64)... no
checking for gcc (riscv64)... no
error: could not find any valid toolchain for target 'riscv64'
error: builder for '/nix/store/gf6cml15s4qqvm2j59pimda9ir727jgm-limine-7.3.1.drv' failed with exit code 1;
last 25 log lines:
> checking for clang (i686)... yes
> checking for ld.lld (i686)... yes
> checking for llvm-objcopy (i686)... yes
> checking for llvm-objdump (i686)... yes
> checking for llvm-readelf (i686)... yes
> checking for clang (i686)... yes
> checking for ld.lld (i686)... yes
> checking for llvm-objcopy (i686)... yes
> checking for llvm-objdump (i686)... yes
> checking for clang (x86_64)... yes
> checking for ld.lld (x86_64)... yes
> checking for llvm-objcopy (x86_64)... yes
> checking for llvm-objdump (x86_64)... yes
> checking for clang (aarch64)... yes
> checking for ld.lld (aarch64)... yes
> checking for llvm-objcopy (aarch64)... yes
> checking for llvm-objdump (aarch64)... yes
> checking for clang (riscv64)... yes
> checking for ld.lld (riscv64)... yes
> checking for llvm-objcopy (riscv64)... yes
> checking for llvm-objdump (riscv64)... yes
> checking for riscv64-elf-gcc (riscv64)... no
> checking for arm64-apple-darwin-gcc (riscv64)... no
> checking for gcc (riscv64)... no
> error: could not find any valid toolchain for target 'riscv64'
For full logs, run 'nix-store -l /nix/store/gf6cml15s4qqvm2j59pimda9ir727jgm-limine-7.3.1.drv'.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment