# Pastebin v5AEYzmS ❯ nix-build -I nixpkgs=. -A pkgsCross.aarch64-android.mesa --keep-failed --show-trace --pure this derivation will be built: /nix/store/1by0xd10yz4rwmkcqzlil4xshr4iwxpf-mesa-20.3.4-aarch64-unknown-linux-android.drv building '/nix/store/1by0xd10yz4rwmkcqzlil4xshr4iwxpf-mesa-20.3.4-aarch64-unknown-linux-android.drv'... unpacking sources unpacking source archive /nix/store/6p58qizr1kp77xk49c9p0vwgc05qcv69-mesa-20.3.4.tar.xz source root is mesa-20.3.4 setting SOURCE_DATE_EPOCH to timestamp 1611945200 of file mesa-20.3.4/subprojects/zlib.wrap patching sources patching script interpreter paths in . ./src/vulkan/overlay-layer/mesa-overlay-control.py: interpreter directive changed from "#!/usr/bin/env python3" to "/nix/store/68wz3k0ygjlghdhayf3qnpicqkjrw7ln-python3-3.8.8/bin/python3" ./src/freedreno/.gitlab-ci/run-fdtools.sh: interpreter directive changed from "#!/bin/bash" to "/nix/store/clg8455i9aplskf6p2ggzz4ghi6zyfd1-bash-4.4-p23/bin/bash" ./src/freedreno/.gitlab-ci/genoutput.sh: interpreter directive changed from "#!/bin/bash" to "/nix/store/clg8455i9aplskf6p2ggzz4ghi6zyfd1-bash-4.4-p23/bin/bash" ./src/freedreno/computerator/examples/test-opcodes.sh: interpreter directive changed from "#!/bin/bash" to "/nix/store/clg8455i9aplskf6p2ggzz4ghi6zyfd1-bash-4.4-p23/bin/bash" ./src/intel/tools/intel_sanitize_gpu.in: interpreter directive changed from "#!/bin/bash" to "/nix/store/clg8455i9aplskf6p2ggzz4ghi6zyfd1-bash-4.4-p23/bin/bash" ./src/intel/tools/intel_stub_gpu.in: interpreter directive changed from "#!/bin/bash" to "/nix/store/clg8455i9aplskf6p2ggzz4ghi6zyfd1-bash-4.4-p23/bin/bash" ./src/intel/tools/tests/run-test.py: interpreter directive changed from "#!/usr/bin/env python3" to "/nix/store/68wz3k0ygjlghdhayf3qnpicqkjrw7ln-python3-3.8.8/bin/python3" ./src/intel/tools/intel_dump_gpu.in: interpreter directive changed from "#!/bin/bash" to "/nix/store/clg8455i9aplskf6p2ggzz4ghi6zyfd1-bash-4.4-p23/bin/bash" ./src/intel/genxml/gen_sort_tags.py: interpreter directive changed from "#!/usr/bin/env python3" to "/nix/store/68wz3k0ygjlghdhayf3qnpicqkjrw7ln-python3-3.8.8/bin/python3" ./src/glx/tests/dispatch-index-check: interpreter directive changed from "#!/usr/bin/env bash" to "/nix/store/clg8455i9aplskf6p2ggzz4ghi6zyfd1-bash-4.4-p23/bin/bash" ./src/gallium/tools/trace/tracediff.sh: interpreter directive changed from "#!/usr/bin/env bash" to "/nix/store/clg8455i9aplskf6p2ggzz4ghi6zyfd1-bash-4.4-p23/bin/bash" ./src/gallium/tools/addr2line.sh: interpreter directive changed from "#!/usr/bin/env bash" to "/nix/store/clg8455i9aplskf6p2ggzz4ghi6zyfd1-bash-4.4-p23/bin/bash" ./src/gallium/frontends/xa/xa-indent.sh: interpreter directive changed from "#!/bin/sh" to "/nix/store/clg8455i9aplskf6p2ggzz4ghi6zyfd1-bash-4.4-p23/bin/sh" ./src/gallium/drivers/freedreno/log-parser.py: interpreter directive changed from "#!/usr/bin/env python3" to "/nix/store/68wz3k0ygjlghdhayf3qnpicqkjrw7ln-python3-3.8.8/bin/python3" ./src/mapi/new/gen_gldispatch_mapi.py: interpreter directive changed from "#!/usr/bin/env python" to "/nix/store/68wz3k0ygjlghdhayf3qnpicqkjrw7ln-python3-3.8.8/bin/python" ./bin/gen_release_notes.py: interpreter directive changed from "#!/usr/bin/env python3" to "/nix/store/68wz3k0ygjlghdhayf3qnpicqkjrw7ln-python3-3.8.8/bin/python3" ./bin/commit_in_branch.py: interpreter directive changed from "#!/usr/bin/env python3" to "/nix/store/68wz3k0ygjlghdhayf3qnpicqkjrw7ln-python3-3.8.8/bin/python3" ./bin/perf-annotate-jit.py: interpreter directive changed from "#!/usr/bin/env python" to "/nix/store/68wz3k0ygjlghdhayf3qnpicqkjrw7ln-python3-3.8.8/bin/python" ./bin/pick-ui.py: interpreter directive changed from "#!/usr/bin/env python3" to "/nix/store/68wz3k0ygjlghdhayf3qnpicqkjrw7ln-python3-3.8.8/bin/python3" ./bin/update-android-headers.sh: interpreter directive changed from "#!/bin/sh" to "/nix/store/clg8455i9aplskf6p2ggzz4ghi6zyfd1-bash-4.4-p23/bin/sh" ./bin/get-pick-list.sh: interpreter directive changed from "#!/bin/sh" to "/nix/store/clg8455i9aplskf6p2ggzz4ghi6zyfd1-bash-4.4-p23/bin/sh" ./bin/get-extra-pick-list.sh: interpreter directive changed from "#!/bin/sh" to "/nix/store/clg8455i9aplskf6p2ggzz4ghi6zyfd1-bash-4.4-p23/bin/sh" ./bin/meson-options.py: interpreter directive changed from "#!/usr/bin/env python3" to "/nix/store/68wz3k0ygjlghdhayf3qnpicqkjrw7ln-python3-3.8.8/bin/python3" ./bin/khronos-update.py: interpreter directive changed from "#!/usr/bin/env python3" to "/nix/store/68wz3k0ygjlghdhayf3qnpicqkjrw7ln-python3-3.8.8/bin/python3" ./bin/meson-cmd-extract.py: interpreter directive changed from "#!/usr/bin/env python3" to "/nix/store/68wz3k0ygjlghdhayf3qnpicqkjrw7ln-python3-3.8.8/bin/python3" ./bin/post_version.py: interpreter directive changed from "#!/usr/bin/env python3" to "/nix/store/68wz3k0ygjlghdhayf3qnpicqkjrw7ln-python3-3.8.8/bin/python3" applying patch /nix/store/m1bqahhy4plagg0dxk3xk0ww4y7ys8wy-missing-includes.patch patching file src/gallium/winsys/svga/drm/vmw_screen.h patching file src/amd/vulkan/winsys/amdgpu/radv_amdgpu_winsys.h Hunk #1 succeeded at 28 with fuzz 1. applying patch /nix/store/jms62vn187lqyvifjgyd4i30zc3771wf-opencl-install-dir.patch patching file src/gallium/targets/opencl/meson.build Hunk #1 succeeded at 109 (offset 41 lines). applying patch /nix/store/r6gv9w3a0kcpc93dxywil6pksfcyprpr-disk_cache-include-dri-driver-path-in-cache-key.patch patching file meson_options.txt Hunk #1 succeeded at 386 (offset 18 lines). patching file src/util/disk_cache.c Hunk #1 succeeded at 168 (offset -233 lines). Hunk #2 succeeded at 192 (offset -233 lines). patching file src/util/meson.build Hunk #1 succeeded at 188 (offset 9 lines). applying patch /nix/store/c6179388arba9s62y9jrnzsi46032b68-nine_debug-Make-tid-more-type-correct patching file src/gallium/frontends/nine/nine_debug.c substituteStream(): WARNING: pattern 'find_program('pkg-config')' doesn't match anything in file 'meson.build' updateAutotoolsGnuConfigScriptsPhase configuring meson flags: --buildtype=plain --libdir=/nix/store/v0pbf3s3489xvv0rfym0jggvi0168a1p-mesa-20.3.4-aarch64-unknown-linux-android/lib --libexecdir=/nix/store/v0pbf3s3489xvv0rfym0jggvi0168a1p-mesa-20.3.4-aarch64-unknown-linux-android/libexec --bindir=/nix/store/v0pbf3s3489xvv0rfym0jggvi0168a1p-mesa-20.3.4-aarch64-unknown-linux-android/bin --sbindir=/nix/store/v0pbf3s3489xvv0rfym0jggvi0168a1p-mesa-20.3.4-aarch64-unknown-linux-android/sbin --includedir=/nix/store/jd4zcmlh5c9l2yb9ydrp9y45mgzagg9m-mesa-20.3.4-aarch64-unknown-linux-android-dev/include --mandir=/nix/store/v0pbf3s3489xvv0rfym0jggvi0168a1p-mesa-20.3.4-aarch64-unknown-linux-android/share/man --infodir=/nix/store/v0pbf3s3489xvv0rfym0jggvi0168a1p-mesa-20.3.4-aarch64-unknown-linux-android/share/info --localedir=/nix/store/v0pbf3s3489xvv0rfym0jggvi0168a1p-mesa-20.3.4-aarch64-unknown-linux-android/share/locale -Dauto_features=enabled -Dwrap_mode=nodownload --prefix=/nix/store/v0pbf3s3489xvv0rfym0jggvi0168a1p-mesa-20.3.4-aarch64-unknown-linux-android --cross-file=/nix/store/r3macm5r48lnri9qb0dly590j9mrmix6-cross-file.conf --sysconfdir=/etc --datadir=/nix/store/33vz483dsz5ml9mrigvrgyn3h80yshqq-mesa-20.3.4-aarch64-unknown-linux-android-drivers/share -Db_ndebug=true -Ddisk-cache-key=/nix/store/33vz483dsz5ml9mrigvrgyn3h80yshqq-mesa-20.3.4-aarch64-unknown-linux-android-drivers -Ddri-search-path=/run/opengl-driver/lib/dri -Dplatforms=x11,wayland -Ddri-drivers= -Dgallium-drivers=swrast -Dvulkan-drivers=auto -Ddri-drivers-path=/nix/store/33vz483dsz5ml9mrigvrgyn3h80yshqq-mesa-20.3.4-aarch64-unknown-linux-android-drivers/lib/dri -Dvdpau-libs-path=/nix/store/33vz483dsz5ml9mrigvrgyn3h80yshqq-mesa-20.3.4-aarch64-unknown-linux-android-drivers/lib/vdpau -Dxvmc-libs-path=/nix/store/33vz483dsz5ml9mrigvrgyn3h80yshqq-mesa-20.3.4-aarch64-unknown-linux-android-drivers/lib -Domx-libs-path=/nix/store/33vz483dsz5ml9mrigvrgyn3h80yshqq-mesa-20.3.4-aarch64-unknown-linux-android-drivers/lib/bellagio -Dva-libs-path=/nix/store/33vz483dsz5ml9mrigvrgyn3h80yshqq-mesa-20.3.4-aarch64-unknown-linux-android-drivers/lib/dri -Dd3d-drivers-path=/nix/store/33vz483dsz5ml9mrigvrgyn3h80yshqq-mesa-20.3.4-aarch64-unknown-linux-android-drivers/lib/d3d -Dgallium-nine=false -Dosmesa=gallium -Dglvnd=true --sysconfdir=/vendor --datadir=/vendor/share -Ddebug=true -Db_ndebug=false -Ddri-drivers-path=/vendor/lib64 -Ddri-search-path=/vendor/lib64 -Dglvnd=true -Degl=enabled -Dgbm=enabled -Dgles1=enabled -Dgles2=enabled -Dopengl=true -Ddri3=enabled -Dglx=dri -Dllvm=enabled -Dlmsensors=disabled -Dshared-glapi=enabled -Dshared-llvm=disabled -Dvulkan-drivers= WARNING: Recommend using either -Dbuildtype or -Doptimization + -Ddebug. Using both is redundant since they override each other. See: https://mesonbuild.com/Builtin-options.html#build-type-options The Meson build system Version: 0.57.1 Source dir: /build/mesa-20.3.4 Build dir: /build/mesa-20.3.4/build Build type: cross build Program python found: YES (/nix/store/68wz3k0ygjlghdhayf3qnpicqkjrw7ln-python3-3.8.8/bin/python) Project name: mesa Project version: 20.3.4 C compiler for the host machine: aarch64-unknown-linux-android-clang (clang 11.1.0 "clang version 11.1.0") C linker for the host machine: aarch64-unknown-linux-android-clang ld.lld 11.1.0 C++ compiler for the host machine: aarch64-unknown-linux-android-clang++ (clang 11.1.0 "clang version 11.1.0") C++ linker for the host machine: aarch64-unknown-linux-android-clang++ ld.lld 11.1.0 Compiler for language c for the build machine not found. Compiler for language cpp for the build machine not found. Build machine cpu family: x86_64 Build machine cpu: x86_64 Host machine cpu family: aarch64 Host machine cpu: aarch64 Target machine cpu family: aarch64 Target machine cpu: aarch64 Program python3 found: YES (/nix/store/68wz3k0ygjlghdhayf3qnpicqkjrw7ln-python3-3.8.8/bin/python3) Fetching value of define "ETIME" : 62 Checking for function "bswap32" : YES Checking for function "bswap64" : YES Checking for function "clz" : YES Checking for function "clzll" : YES Checking for function "ctz" : YES Checking for function "expect" : YES Checking for function "ffs" : YES Checking for function "ffsll" : YES Checking for function "popcount" : YES Checking for function "popcountll" : YES Checking for function "unreachable" : YES Compiler for C supports function attribute const: YES Compiler for C supports function attribute flatten: YES Compiler for C supports function attribute malloc: YES Compiler for C supports function attribute pure: YES Compiler for C supports function attribute unused: YES Compiler for C supports function attribute warn_unused_result: YES Compiler for C supports function attribute weak: YES Compiler for C supports function attribute format: YES Compiler for C supports function attribute packed: YES Compiler for C supports function attribute returns_nonnull: YES Compiler for C supports function attribute alias: YES Compiler for C supports function attribute noreturn: YES Compiler for C supports function attribute visibility:hidden: YES Checking if "__uint128_t" compiles: YES Compiler for C supports arguments -Werror=implicit-function-declaration: YES Compiler for C supports arguments -Werror=missing-prototypes: YES Compiler for C supports arguments -Werror=return-type: YES Compiler for C supports arguments -Werror=empty-body: YES Compiler for C supports arguments -Werror=incompatible-pointer-types: YES Compiler for C supports arguments -Werror=int-conversion: YES Compiler for C supports arguments -Wimplicit-fallthrough: YES Compiler for C supports arguments -Wno-missing-field-initializers: YES Compiler for C supports arguments -Wno-format-truncation: NO Compiler for C supports arguments -fno-math-errno: YES Compiler for C supports arguments -fno-trapping-math: YES Compiler for C supports arguments -Qunused-arguments: YES Compiler for C supports arguments -fno-common: YES Compiler for C supports arguments -Werror=format: YES Compiler for C supports arguments -Wformat-security: YES Compiler for C++ supports arguments -Werror=return-type: YES Compiler for C++ supports arguments -Werror=empty-body: YES Compiler for C++ supports arguments -Wno-non-virtual-dtor: YES Compiler for C++ supports arguments -Wno-missing-field-initializers: YES Compiler for C++ supports arguments -Wno-format-truncation: NO Compiler for C++ supports arguments -fno-math-errno: YES Compiler for C++ supports arguments -fno-trapping-math: YES Compiler for C++ supports arguments -Qunused-arguments: YES Compiler for C++ supports arguments -flifetime-dse=1: NO Compiler for C++ supports arguments -Werror=format: YES Compiler for C++ supports arguments -Wformat-security: YES Compiler for C supports arguments -Wno-override-init: YES Compiler for C supports arguments -Wno-initializer-overrides: YES Compiler for C supports arguments -Werror=pointer-arith: YES Compiler for C++ supports arguments -Werror=pointer-arith: YES Compiler for C supports arguments -Werror=vla: YES Compiler for C++ supports arguments -Werror=vla: YES Compiler for C supports arguments -Werror=gnu-empty-initializer: YES Compiler for C++ supports arguments -Werror=gnu-empty-initializer: YES Compiler for C supports arguments -Wmicrosoft-enum-value: YES Checking if "GCC atomic builtins" compiles: YES Checking if "GCC atomic builtins required -latomic" links: YES Checking if "GCC 64bit atomics" with dependency not-found links: YES Library ws2_32 found: NO Header has symbol "major" : YES Header has symbol "minor" : YES Header has symbol "makedev" : YES Header has symbol "major" : NO Check usable header "xlocale.h" : YES Check usable header "linux/futex.h" : YES Check usable header "endian.h" : YES Check usable header "dlfcn.h" : YES Check usable header "execinfo.h" : NO Check usable header "sys/shm.h" : YES Check usable header "cet.h" : YES Check usable header "pthread_np.h" : NO Checking for function "strtof" : YES Checking for function "mkostemp" : YES Checking for function "timespec_get" : YES Checking for function "memfd_create" : YES Checking for function "random_r" : NO Checking for function "flock" : YES Checking for function "strtok_r" : YES Checking for function "getrandom" : YES Header has symbol "program_invocation_name" : NO Checking for function "posix_memalign" : YES Checking whether type "struct dirent" has member "d_type" : YES Checking if "strtod has locale support" links: YES Checking if "Bsymbolic" links: YES Checking if "gc-sections" links: YES Checking if "version-script" links: YES Checking if "dynamic-list" links: YES Compiler for C supports link arguments -Wl,--build-id=sha1: YES Checking for function "dlopen" : NO Library dl found: YES Checking for function "dladdr" with dependency -ldl: YES Checking for function "dl_iterate_phdr" : NO Checking for function "clock_gettime" : YES Found pkg-config: /nix/store/9gg30mhv2jan9ykiq4599ngi1q0inz5l-aarch64-unknown-linux-android-pkg-config-wrapper-0.29.2/bin/aarch64-unknown-linux-android-pkg-config (0.29.2) Run-time dependency zlib found: YES 1.2.11 Run-time dependency libzstd found: YES 1.4.8 Run-time dependency threads found: YES Checking for function "pthread_setaffinity_np" with dependency threads: NO Run-time dependency expat found: YES 2.2.10 Library m found: YES Run-time dependency libdrm found: YES 2.4.104 Found CMake: NO llvm-config found: NO need '>= 3.9.0' Run-time dependency LLVM found: NO (tried cmake and config-tool) Looking for a fallback subproject for the dependency llvm (modules: bitwriter, engine, mcdisassembler, mcjit, core, executionengine, scalaropts, transformutils, instcombine) meson.build:1504:2: ERROR: Neither a subproject directory nor a llvm.wrap file was found. A full log can be found at /build/mesa-20.3.4/build/meson-logs/meson-log.txt note: keeping build directory '/tmp/nix-build-mesa-20.3.4-aarch64-unknown-linux-android.drv-10' error: builder for '/nix/store/1by0xd10yz4rwmkcqzlil4xshr4iwxpf-mesa-20.3.4-aarch64-unknown-linux-android.drv' failed with exit code 1; last 10 log lines: > Library m found: YES > Run-time dependency libdrm found: YES 2.4.104 > Found CMake: NO > llvm-config found: NO need '>= 3.9.0' > Run-time dependency LLVM found: NO (tried cmake and config-tool) > Looking for a fallback subproject for the dependency llvm (modules: bitwriter, engine, mcdisassembler, mcjit, core, executionengine, scalaropts, transformutils, instcombine) > > meson.build:1504:2: ERROR: Neither a subproject directory nor a llvm.wrap file was found. > > A full log can be found at /build/mesa-20.3.4/build/meson-logs/meson-log.txt For full logs, run 'nix log /nix/store/1by0xd10yz4rwmkcqzlil4xshr4iwxpf-mesa-20.3.4-aarch64-unknown-linux-android.drv'.