Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: binary or interpreter not executable. #20336

Closed
xoureldeen opened this issue May 27, 2024 · 20 comments · May be fixed by #21835
Closed

[Bug]: binary or interpreter not executable. #20336

xoureldeen opened this issue May 27, 2024 · 20 comments · May be fixed by #21835
Labels
bug report Something is not working properly

Comments

@xoureldeen
Copy link

xoureldeen commented May 27, 2024

Problem description

Log

Header "sys/sysmacros.h" has symbol "major" : YES
Header "sys/sysmacros.h" has symbol "minor" : YES
Header "sys/sysmacros.h" has symbol "makedev" : YES
Header "sys/mkdev.h" has symbol "major" : NO
Check usable header "sched.h" : YES
Checking for function "sched_getaffinity" : YES
Check usable header "sys/sysctl.h" : NO
Check usable header "linux/futex.h" : YES
Check usable header "endian.h" : YES
Check usable header "dlfcn.h" : YES
Check usable header "sys/shm.h" : YES
Check usable header "cet.h" : YES
Check usable header "pthread_np.h" : NO
Check usable header "renderdoc_app.h" : NO
Check usable header "sys/inotify.h" : YES
Checking for function "strtof" : YES
Checking for function "mkostemp" : YES
Checking for function "memfd_create" : NO
Checking for function "random_r" : NO
Checking for function "flock" : YES
Checking for function "strtok_r" : YES
Checking for function "getrandom" : NO
Checking for function "qsort_s" : NO
Checking for function "posix_fallocate" : YES
Checking for function "secure_getenv" : NO
Checking if "GNU qsort_r" : links: NO
Checking if "BSD qsort_r" : links: NO
Header "time.h" has symbol "struct timespec" : YES
Checking for function "thrd_create" : YES
Header "errno.h" has symbol "program_invocation_name" : NO
Header "math.h" has symbol "issignaling" : 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 "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" : YES
Checking for function "dladdr" with dependency : YES
Checking for function "dl_iterate_phdr" : YES
Checking for function "clock_gettime" : YES
Run-time dependency zlib found: YES 1.3.1
Run-time dependency libzstd found: YES 1.5.6
Run-time dependency threads found: YES
Checking for function "pthread_setaffinity_np" with dependency threads: NO
Run-time dependency expat found: YES 2.6.2
Library m found: YES
Run-time dependency libdrm found: YES 2.4.120
Run-time dependency libudev found: NO (tried pkgconfig and cmake)

../src/meson.build:1749:13: ERROR: Failed running '/data/data/com.vectras/files/usr/bin/llvm-config', binary or interpreter not executable.
Possibly wrong architecture or the executable bit is not set.

A full log can be found at /home/builder/.termux-build/mesa/build/meson-logs/meson-log.txt
builder@826bfb6f6eba:~/termux-packages$

What steps will reproduce the bug?

./build-package.sh -a aarch64 libandroid-shmem xorg-server-xvfb

What is the expected behavior?

image

System information

i have ubuntu server x86_64 
8gb ram + 16 swap
250gb free storage
@xoureldeen xoureldeen added bug report Something is not working properly untriaged labels May 27, 2024
@xoureldeen
Copy link
Author

xoureldeen commented May 27, 2024

meson logs:

-----------
Called: `/home/builder/.termux-build/mesa/build/_wrapper/bin/pkg-config --modversion libdrm` -> 0
stdout:
2.4.120
-----------
env[PKG_CONFIG_LIBDIR]: /data/data/com.vectras.x11/files/usr/lib/pkgconfig:/data/data/com.vectras.x11/files/usr/share/pkgconfig
env[PKG_CONFIG]: /home/builder/.termux-build/mesa/build/_wrapper/bin/pkg-config
env[PKG_CONFIG_PATH]:
-----------
Called: `/home/builder/.termux-build/mesa/build/_wrapper/bin/pkg-config --cflags libdrm` -> 0
stdout:
-I/data/data/com.vectras.x11/files/usr/include -I/data/data/com.vectras.x11/files/usr/include/libdrm
-----------
env[PKG_CONFIG_LIBDIR]: /data/data/com.vectras.x11/files/usr/lib/pkgconfig:/data/data/com.vectras.x11/files/usr/share/pkgconfig
env[PKG_CONFIG]: /home/builder/.termux-build/mesa/build/_wrapper/bin/pkg-config
env[PKG_CONFIG_ALLOW_SYSTEM_LIBS]: 1
env[PKG_CONFIG_PATH]:
-----------
Called: `/home/builder/.termux-build/mesa/build/_wrapper/bin/pkg-config --libs libdrm` -> 0
stdout:
-L/data/data/com.vectras.x11/files/usr/lib -ldrm
-----------
env[PKG_CONFIG_LIBDIR]: /data/data/com.vectras.x11/files/usr/lib/pkgconfig:/data/data/com.vectras.x11/files/usr/share/pkgconfig
env[PKG_CONFIG]: /home/builder/.termux-build/mesa/build/_wrapper/bin/pkg-config
env[PKG_CONFIG_PATH]:
-----------
Called: `/home/builder/.termux-build/mesa/build/_wrapper/bin/pkg-config --libs libdrm` -> 0
stdout:
-L/data/data/com.vectras.x11/files/usr/lib -ldrm
-----------
Run-time dependency libdrm found: YES 2.4.120
Pkg-config binary for 1 is cached.
Determining dependency 'libudev' with pkg-config executable '/home/builder/.termux-build/mesa/build/_wrapper/bin/pkg-config'
env[PKG_CONFIG_LIBDIR]: /data/data/com.vectras.x11/files/usr/lib/pkgconfig:/data/data/com.vectras.x11/files/usr/share/pkgconfig
env[PKG_CONFIG]: /home/builder/.termux-build/mesa/build/_wrapper/bin/pkg-config
env[PKG_CONFIG_PATH]:
-----------
Called: `/home/builder/.termux-build/mesa/build/_wrapper/bin/pkg-config --modversion libudev` -> 1
stderr:
Package libudev was not found in the pkg-config search path.
Perhaps you should add the directory containing `libudev.pc'
to the PKG_CONFIG_PATH environment variable
No package 'libudev' found
-----------
CMake binary for 1 is cached.
Preliminary CMake check failed. Aborting.
Run-time dependency libudev found: NO (tried pkgconfig and cmake)
llvm-config binary for 1 specified from cross file, native file, or env var as ['/data/data/com.vectras.x11/files/usr/bin/llvm-config']

../src/meson.build:1749:13: ERROR: Failed running '/data/data/com.vectras.x11/files/usr/bin/llvm-config', binary or interpreter not executable.
Possibly wrong architecture or the executable bit is not set.

@TomJo2000
Copy link
Member

Currently trying to replicate this locally.

@xoureldeen
Copy link
Author

xoureldeen commented May 27, 2024

builder@826bfb6f6eba:~/termux-packages$    chmod +x /data/data/com.vectras.x11/files/usr/bin/llvm-config
builder@826bfb6f6eba:~/termux-packages$
builder@826bfb6f6eba:~/termux-packages$    file /data/data/com.vectras.x11/files/usr/bin/llvm-config
/data/data/com.vectras.x11/files/usr/bin/llvm-config: ELF 64-bit LSB pie executable, ARM aarch64, version 1 (SYSV), dynamically linked, interpreter /system/bin/linker64, not stripped
builder@826bfb6f6eba:~/termux-packages$
builder@826bfb6f6eba:~/termux-packages$    uname -m
x86_64
builder@826bfb6f6eba:~/termux-packages$
builder@826bfb6f6eba:~/termux-packages$    /data/data/com.vectras.x11/files/usr/bin/llvm-config --version
bash: /data/data/com.vectras.x11/files/usr/bin/llvm-config: cannot execute binary file: Exec format error
builder@826bfb6f6eba:~/termux-packages$
builder@826bfb6f6eba:~/termux-packages$

@xoureldeen
Copy link
Author

xoureldeen commented May 27, 2024

Currently trying to replicate this locally.

what do you mean?

@TomJo2000
Copy link
Member

I am building the packages locally with the reproduction steps you have provided to see if the problem occurs for me as well.

@xoureldeen
Copy link
Author

I am building the packages locally with the reproduction steps you have provided to see if the problem occurs for me as well.

ok thanks

@TomJo2000
Copy link
Member

Since you didn't specify -I with ./build-package.sh it is taking a while to build all of the dependencies.
I'm guessing you can't use -I since it looks like you are compiling for a fork.
So far everything is building fine, although this might take a while.

@TomJo2000
Copy link
Member

TomJo2000 commented May 27, 2024

I did get a build failure on mesa-24.0.8, however it doesn't match the one you got.
I'm getting:

llvm-config found: NO need ['>= 5.0.0']
Run-time dependency LLVM found: NO (tried config-tool)
Looking for a fallback subproject for the dependency llvm (modules: bitwriter, engine, mcdisassembler, mcjit, core, executionengine, scalaropts, transformutils, instcombine, native)
Building fallback subproject with default_library=static

../src/meson.build:1749:13: ERROR: Neither a subproject directory nor a llvm.wrap file was found.

A full log can be found at /home/builder/.termux-build/mesa/build/meson-logs/meson-log.txt
Full meson log

Running container 'termux-package-builder' from image 'ghcr.io/termux/package-builder'...
Build started at 2024-05-27T21:46:25.866783
Main binary: /usr/bin/python3
Build Options: -Dcpp_rtti=false -Dgbm=enabled -Dopengl=true -Degl=enabled -Degl-native-platform=x11 -Dgles1=disabled -Dgles2=enabled -Ddri3=enabled -Dglx=dri -Dllvm=enabled -Dshared-llvm=disabled -Dplatforms=x11,wayland -Dgallium-drivers=swrast,virgl,zink -Dosmesa=true -Dglvnd=true -Dxmlconfig=disabled -Dvulkan-drivers=swrast,freedreno -Dfreedreno-kmds=msm,kgsl -Dprefix=/data/data/com.termux/files/usr -Dlibdir=lib -Dbuildtype=minsize -Dstrip=True -Dcmake_prefix_path=/data/data/com.termux/files/usr --cross-file=/home/builder/.termux-build/mesa/tmp/meson-crossfile-aarch64.txt
Python system: Linux
The Meson build system
Version: 1.4.0
Source dir: /home/builder/.termux-build/mesa/src
Build dir: /home/builder/.termux-build/mesa/build
Build type: cross build
Project name: mesa
Project version: 24.0.8
-----------
Detecting compiler via: `aarch64-linux-android-clang --version` -> 0
stdout:
Android (10552028, +pgo, +bolt, +lto, -mlgo, based on r487747d) clang version 17.0.2 (https://android.googlesource.com/toolchain/llvm-project d9f89f4d16663d5012e5c09495f3b30ece3d2362)
Target: aarch64-unknown-linux-android24
Thread model: posix
InstalledDir: /home/builder/.termux-build/_cache/android-r26b-api-24-v4/bin
-----------
Running command: aarch64-linux-android-clang -E -dM -
-----
-----------
Detecting linker via: `aarch64-linux-android-clang -Wl,--version -L/data/data/com.termux/files/usr/lib -Wl,-rpath=/data/data/com.termux/files/usr/lib -fopenmp -static-openmp -fno-openmp-implicit-rpath -Wl,--enable-new-dtags -Wl,--as-needed -Wl,-z,relro,-z,now -landroid-shmem` -> 0
stdout:
LLD 17.0.2 (compatible with GNU linkers)
-----------
-----------
Detecting LLD linker via: `aarch64-linux-android-clang -Wl,-v -L/data/data/com.termux/files/usr/lib -Wl,-rpath=/data/data/com.termux/files/usr/lib -fopenmp -static-openmp -fno-openmp-implicit-rpath -Wl,--enable-new-dtags -Wl,--as-needed -Wl,-z,relro,-z,now -landroid-shmem` -> 1
stdout:
LLD 17.0.2 (compatible with GNU linkers)
-----------
stderr:
ld.lld: error: undefined symbol: main
>>> referenced by crtbegin.c
>>>               /home/builder/.termux-build/_cache/android-r26b-api-24-v4/bin/../sysroot/usr/lib/aarch64-linux-android/24/crtbegin_dynamic.o:(_start_main)
>>> referenced by crtbegin.c
>>>               /home/builder/.termux-build/_cache/android-r26b-api-24-v4/bin/../sysroot/usr/lib/aarch64-linux-android/24/crtbegin_dynamic.o:(_start_main)
clang-17: error: linker command failed with exit code 1 (use -v to see invocation)
-----------
Sanity testing C compiler: aarch64-linux-android-clang
Is cross compiler: True.
Sanity check compiler command line: aarch64-linux-android-clang sanitycheckc.c -o sanitycheckc_cross.exe -fstack-protector-strong -Oz -I/data/data/com.termux/files/usr/include -D__USE_GNU -D_FILE_OFFSET_BITS=64 -c
Sanity check compile stdout:

-----
Sanity check compile stderr:

-----
C compiler for the host machine: aarch64-linux-android-clang (clang 17.0.2 "Android (10552028, +pgo, +bolt, +lto, -mlgo, based on r487747d) clang version 17.0.2 (https://android.googlesource.com/toolchain/llvm-project d9f89f4d16663d5012e5c09495f3b30ece3d2362)")
C linker for the host machine: aarch64-linux-android-clang ld.lld 17.0.2
-----------
Detecting archiver via: `llvm-ar --version` -> 0
stdout:
LLVM (http://llvm.org/):
  LLVM version 17.0.2
  Optimized build.
-----------
-----------
Detecting compiler via: `aarch64-linux-android-clang++ --version` -> 0
stdout:
Android (10552028, +pgo, +bolt, +lto, -mlgo, based on r487747d) clang version 17.0.2 (https://android.googlesource.com/toolchain/llvm-project d9f89f4d16663d5012e5c09495f3b30ece3d2362)
Target: aarch64-unknown-linux-android24
Thread model: posix
InstalledDir: /home/builder/.termux-build/_cache/android-r26b-api-24-v4/bin
-----------
Running command: aarch64-linux-android-clang++ -E -dM -
-----
-----------
Detecting linker via: `aarch64-linux-android-clang++ -Wl,--version -L/data/data/com.termux/files/usr/lib -Wl,-rpath=/data/data/com.termux/files/usr/lib -fopenmp -static-openmp -fno-openmp-implicit-rpath -Wl,--enable-new-dtags -Wl,--as-needed -Wl,-z,relro,-z,now -landroid-shmem` -> 0
stdout:
LLD 17.0.2 (compatible with GNU linkers)
-----------
-----------
Detecting LLD linker via: `aarch64-linux-android-clang++ -Wl,-v -L/data/data/com.termux/files/usr/lib -Wl,-rpath=/data/data/com.termux/files/usr/lib -fopenmp -static-openmp -fno-openmp-implicit-rpath -Wl,--enable-new-dtags -Wl,--as-needed -Wl,-z,relro,-z,now -landroid-shmem` -> 1
stdout:
LLD 17.0.2 (compatible with GNU linkers)
-----------
stderr:
ld.lld: error: undefined symbol: main
>>> referenced by crtbegin.c
>>>               /home/builder/.termux-build/_cache/android-r26b-api-24-v4/bin/../sysroot/usr/lib/aarch64-linux-android/24/crtbegin_dynamic.o:(_start_main)
>>> referenced by crtbegin.c
>>>               /home/builder/.termux-build/_cache/android-r26b-api-24-v4/bin/../sysroot/usr/lib/aarch64-linux-android/24/crtbegin_dynamic.o:(_start_main)
clang-17: error: linker command failed with exit code 1 (use -v to see invocation)
-----------
Sanity testing C++ compiler: aarch64-linux-android-clang++
Is cross compiler: True.
Sanity check compiler command line: aarch64-linux-android-clang++ sanitycheckcpp.cc -o sanitycheckcpp_cross.exe -fstack-protector-strong -Oz -I/data/data/com.termux/files/usr/include -D__USE_GNU -D_FILE_OFFSET_BITS=64 -c
Sanity check compile stdout:

-----
Sanity check compile stderr:

-----
C++ compiler for the host machine: aarch64-linux-android-clang++ (clang 17.0.2 "Android (10552028, +pgo, +bolt, +lto, -mlgo, based on r487747d) clang version 17.0.2 (https://android.googlesource.com/toolchain/llvm-project d9f89f4d16663d5012e5c09495f3b30ece3d2362)")
C++ linker for the host machine: aarch64-linux-android-clang++ ld.lld 17.0.2
-----------
Detecting compiler via: `gcc --version` -> 0
stdout:
gcc (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0
Copyright (C) 2021 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
-----------
Running command: gcc -E -dM -
-----
-----------
Detecting linker via: `gcc -Wl,--version` -> 0
stdout:
LLD 17.0.2 (compatible with GNU linkers)
-----------
stderr:
collect2 version 11.4.0
/home/builder/.termux-build/_cache/android-r26b-api-24-v4/bin/ld -plugin /usr/lib/gcc/x86_64-linux-gnu/11/liblto_plugin.so -plugin-opt=/usr/lib/gcc/x86_64-linux-gnu/11/lto-wrapper -plugin-opt=-fresolution=/tmp/cctysBGI.res -plugin-opt=-pass-through=-lgcc -plugin-opt=-pass-through=-lgcc_s -plugin-opt=-pass-through=-lc -plugin-opt=-pass-through=-lgcc -plugin-opt=-pass-through=-lgcc_s --build-id --eh-frame-hdr -m elf_x86_64 --hash-style=gnu --as-needed -dynamic-linker /lib64/ld-linux-x86-64.so.2 -pie -z now -z relro /usr/lib/gcc/x86_64-linux-gnu/11/../../../x86_64-linux-gnu/Scrt1.o /usr/lib/gcc/x86_64-linux-gnu/11/../../../x86_64-linux-gnu/crti.o /usr/lib/gcc/x86_64-linux-gnu/11/crtbeginS.o -L/usr/lib/gcc/x86_64-linux-gnu/11 -L/usr/lib/gcc/x86_64-linux-gnu/11/../../../x86_64-linux-gnu -L/usr/lib/gcc/x86_64-linux-gnu/11/../../../../lib -L/lib/x86_64-linux-gnu -L/lib/../lib -L/usr/lib/x86_64-linux-gnu -L/usr/lib/../lib -L/usr/lib/gcc/x86_64-linux-gnu/11/../../.. --version -lgcc --push-state --as-needed -lgcc_s --pop-state -lc -lgcc --push-state --as-needed -lgcc_s --pop-state /usr/lib/gcc/x86_64-linux-gnu/11/crtendS.o /usr/lib/gcc/x86_64-linux-gnu/11/../../../x86_64-linux-gnu/crtn.o
-----------
-----------
Detecting LLD linker via: `gcc -Wl,-v` -> 1
stdout:
LLD 17.0.2 (compatible with GNU linkers)
-----------
stderr:
collect2 version 11.4.0
/home/builder/.termux-build/_cache/android-r26b-api-24-v4/bin/ld -plugin /usr/lib/gcc/x86_64-linux-gnu/11/liblto_plugin.so -plugin-opt=/usr/lib/gcc/x86_64-linux-gnu/11/lto-wrapper -plugin-opt=-fresolution=/tmp/ccbr6kuD.res -plugin-opt=-pass-through=-lgcc -plugin-opt=-pass-through=-lgcc_s -plugin-opt=-pass-through=-lc -plugin-opt=-pass-through=-lgcc -plugin-opt=-pass-through=-lgcc_s --build-id --eh-frame-hdr -m elf_x86_64 --hash-style=gnu --as-needed -dynamic-linker /lib64/ld-linux-x86-64.so.2 -pie -z now -z relro /usr/lib/gcc/x86_64-linux-gnu/11/../../../x86_64-linux-gnu/Scrt1.o /usr/lib/gcc/x86_64-linux-gnu/11/../../../x86_64-linux-gnu/crti.o /usr/lib/gcc/x86_64-linux-gnu/11/crtbeginS.o -L/usr/lib/gcc/x86_64-linux-gnu/11 -L/usr/lib/gcc/x86_64-linux-gnu/11/../../../x86_64-linux-gnu -L/usr/lib/gcc/x86_64-linux-gnu/11/../../../../lib -L/lib/x86_64-linux-gnu -L/lib/../lib -L/usr/lib/x86_64-linux-gnu -L/usr/lib/../lib -L/usr/lib/gcc/x86_64-linux-gnu/11/../../.. -v -lgcc --push-state --as-needed -lgcc_s --pop-state -lc -lgcc --push-state --as-needed -lgcc_s --pop-state /usr/lib/gcc/x86_64-linux-gnu/11/crtendS.o /usr/lib/gcc/x86_64-linux-gnu/11/../../../x86_64-linux-gnu/crtn.o
ld: error: undefined symbol: main
>>> referenced by /usr/lib/gcc/x86_64-linux-gnu/11/../../../x86_64-linux-gnu/Scrt1.o:(_start)
collect2: error: ld returned 1 exit status
-----------
Sanity testing C compiler: gcc
Is cross compiler: False.
Sanity check compiler command line: gcc sanitycheckc.c -o sanitycheckc.exe -D_FILE_OFFSET_BITS=64
Sanity check compile stdout:

-----
Sanity check compile stderr:

-----
Running test binary command:  /home/builder/.termux-build/mesa/build/meson-private/sanitycheckc.exe
C compiler for the build machine: gcc (gcc 11.4.0 "gcc (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0")
C linker for the build machine: gcc ld.lld 17.0.2
-----------
Detecting archiver via: `gcc-ar --version` -> 0
stdout:
GNU ar (GNU Binutils for Ubuntu) 2.38
Copyright (C) 2022 Free Software Foundation, Inc.
This program is free software; you may redistribute it under the terms of
the GNU General Public License version 3 or (at your option) any later version.
This program has absolutely no warranty.
-----------
-----------
Detecting compiler via: `c++ --version` -> 0
stdout:
c++ (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0
Copyright (C) 2021 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
-----------
Running command: c++ -E -dM -
-----
-----------
Detecting linker via: `c++ -Wl,--version` -> 0
stdout:
LLD 17.0.2 (compatible with GNU linkers)
-----------
stderr:
collect2 version 11.4.0
/home/builder/.termux-build/_cache/android-r26b-api-24-v4/bin/ld -plugin /usr/lib/gcc/x86_64-linux-gnu/11/liblto_plugin.so -plugin-opt=/usr/lib/gcc/x86_64-linux-gnu/11/lto-wrapper -plugin-opt=-fresolution=/tmp/cc87VVcf.res -plugin-opt=-pass-through=-lgcc_s -plugin-opt=-pass-through=-lgcc -plugin-opt=-pass-through=-lc -plugin-opt=-pass-through=-lgcc_s -plugin-opt=-pass-through=-lgcc --build-id --eh-frame-hdr -m elf_x86_64 --hash-style=gnu --as-needed -dynamic-linker /lib64/ld-linux-x86-64.so.2 -pie -z now -z relro /usr/lib/gcc/x86_64-linux-gnu/11/../../../x86_64-linux-gnu/Scrt1.o /usr/lib/gcc/x86_64-linux-gnu/11/../../../x86_64-linux-gnu/crti.o /usr/lib/gcc/x86_64-linux-gnu/11/crtbeginS.o -L/usr/lib/gcc/x86_64-linux-gnu/11 -L/usr/lib/gcc/x86_64-linux-gnu/11/../../../x86_64-linux-gnu -L/usr/lib/gcc/x86_64-linux-gnu/11/../../../../lib -L/lib/x86_64-linux-gnu -L/lib/../lib -L/usr/lib/x86_64-linux-gnu -L/usr/lib/../lib -L/usr/lib/gcc/x86_64-linux-gnu/11/../../.. --version -lstdc++ -lm -lgcc_s -lgcc -lc -lgcc_s -lgcc /usr/lib/gcc/x86_64-linux-gnu/11/crtendS.o /usr/lib/gcc/x86_64-linux-gnu/11/../../../x86_64-linux-gnu/crtn.o
-----------
-----------
Detecting LLD linker via: `c++ -Wl,-v` -> 1
stdout:
LLD 17.0.2 (compatible with GNU linkers)
-----------
stderr:
collect2 version 11.4.0
/home/builder/.termux-build/_cache/android-r26b-api-24-v4/bin/ld -plugin /usr/lib/gcc/x86_64-linux-gnu/11/liblto_plugin.so -plugin-opt=/usr/lib/gcc/x86_64-linux-gnu/11/lto-wrapper -plugin-opt=-fresolution=/tmp/cciJxHML.res -plugin-opt=-pass-through=-lgcc_s -plugin-opt=-pass-through=-lgcc -plugin-opt=-pass-through=-lc -plugin-opt=-pass-through=-lgcc_s -plugin-opt=-pass-through=-lgcc --build-id --eh-frame-hdr -m elf_x86_64 --hash-style=gnu --as-needed -dynamic-linker /lib64/ld-linux-x86-64.so.2 -pie -z now -z relro /usr/lib/gcc/x86_64-linux-gnu/11/../../../x86_64-linux-gnu/Scrt1.o /usr/lib/gcc/x86_64-linux-gnu/11/../../../x86_64-linux-gnu/crti.o /usr/lib/gcc/x86_64-linux-gnu/11/crtbeginS.o -L/usr/lib/gcc/x86_64-linux-gnu/11 -L/usr/lib/gcc/x86_64-linux-gnu/11/../../../x86_64-linux-gnu -L/usr/lib/gcc/x86_64-linux-gnu/11/../../../../lib -L/lib/x86_64-linux-gnu -L/lib/../lib -L/usr/lib/x86_64-linux-gnu -L/usr/lib/../lib -L/usr/lib/gcc/x86_64-linux-gnu/11/../../.. -v -lstdc++ -lm -lgcc_s -lgcc -lc -lgcc_s -lgcc /usr/lib/gcc/x86_64-linux-gnu/11/crtendS.o /usr/lib/gcc/x86_64-linux-gnu/11/../../../x86_64-linux-gnu/crtn.o
ld: error: undefined symbol: main
>>> referenced by /usr/lib/gcc/x86_64-linux-gnu/11/../../../x86_64-linux-gnu/Scrt1.o:(_start)
collect2: error: ld returned 1 exit status
-----------
Sanity testing C++ compiler: c++
Is cross compiler: False.
Sanity check compiler command line: c++ sanitycheckcpp.cc -o sanitycheckcpp.exe -D_FILE_OFFSET_BITS=64
Sanity check compile stdout:

-----
Sanity check compile stderr:

-----
Running test binary command:  /home/builder/.termux-build/mesa/build/meson-private/sanitycheckcpp.exe
C++ compiler for the build machine: c++ (gcc 11.4.0 "c++ (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0")
C++ linker for the build machine: c++ ld.lld 17.0.2
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
../src/meson.build:271: WARNING: Turnip with the DRM KMD will require libdrm to always be present at runtime which may not always be the case on platforms such as Android.
../src/meson.build:498: WARNING: cannot auto-detect -mtls-dialect when cross-compiling, using compiler default
Pkg-config binary for host machine specified from cross file, native file, or env var as ['/home/builder/.termux-build/mesa/build/_wrapper/bin/pkg-config']
Found pkg-config: YES (/home/builder/.termux-build/mesa/build/_wrapper/bin/pkg-config) 0.29.2
Determining dependency 'vdpau' with pkg-config executable '/home/builder/.termux-build/mesa/build/_wrapper/bin/pkg-config'
env[PKG_CONFIG_LIBDIR]: /data/data/com.termux/files/usr/lib/pkgconfig:/data/data/com.termux/files/usr/share/pkgconfig
env[PKG_CONFIG]: /home/builder/.termux-build/mesa/build/_wrapper/bin/pkg-config
env[PKG_CONFIG_PATH]: 
-----------
Called: `/home/builder/.termux-build/mesa/build/_wrapper/bin/pkg-config --modversion vdpau` -> 1
stderr:
Package vdpau was not found in the pkg-config search path.
Perhaps you should add the directory containing `vdpau.pc'
to the PKG_CONFIG_PATH environment variable
No package 'vdpau' found
-----------
CMake binary for host machine is not cached
CMake binary for host machine specified from cross file, native file, or env var as ['cmake']
Found CMake: /home/builder/.termux-build/mesa/build/_wrapper/bin/cmake (3.29.3)
Extracting basic cmake information
CMake Toolchain: Calling CMake once to generate the compiler state
Calling CMake (['/home/builder/.termux-build/mesa/build/_wrapper/bin/cmake']) in /home/builder/.termux-build/mesa/build/meson-private/__CMake_compiler_info__ with:
  - "--trace-expand"
  - "--trace-format=json-v1"
  - "--no-warn-unused-cli"
  - "--trace-redirect=cmake_trace.txt"
  - "-G"
  - "Ninja"
  - "-DCMAKE_TOOLCHAIN_FILE=/home/builder/.termux-build/mesa/build/meson-private/__CMake_compiler_info__/CMakeMesonTempToolchainFile.cmake"
  - "."
  - "-DCMAKE_PREFIX_PATH=/data/data/com.termux/files/usr"
CMake trace warning: add_executable() non imported executables are not supported
CMake TRACE: /home/builder/.termux-build/mesa/build/meson-private/__CMake_compiler_info__/CMakeFiles/CMakeScratch/TryCompile-FTbZJX/CMakeLists.txt:20 add_executable(['cmTC_f2d22'])
CMake trace warning: target_link_options() TARGET cmTC_f2d22 not found
CMake TRACE: /home/builder/.termux-build/mesa/build/meson-private/__CMake_compiler_info__/CMakeFiles/CMakeScratch/TryCompile-FTbZJX/CMakeLists.txt:26 target_link_libraries(['cmTC_f2d22', ''])
CMake trace warning: add_executable() non imported executables are not supported
CMake TRACE: /home/builder/.termux-build/mesa/build/meson-private/__CMake_compiler_info__/CMakeFiles/CMakeScratch/TryCompile-DQJjQf/CMakeLists.txt:20 add_executable(['cmTC_cd1e9'])
CMake trace warning: target_link_options() TARGET cmTC_cd1e9 not found
CMake TRACE: /home/builder/.termux-build/mesa/build/meson-private/__CMake_compiler_info__/CMakeFiles/CMakeScratch/TryCompile-DQJjQf/CMakeLists.txt:26 target_link_libraries(['cmTC_cd1e9', ''])
Try CMake generator: auto
Calling CMake (['/home/builder/.termux-build/mesa/build/_wrapper/bin/cmake']) in /home/builder/.termux-build/mesa/build/meson-private/cmake_vdpau with:
  - "--trace-expand"
  - "--trace-format=json-v1"
  - "--no-warn-unused-cli"
  - "--trace-redirect=cmake_trace.txt"
  - "-DCMAKE_TOOLCHAIN_FILE=/home/builder/.termux-build/mesa/build/meson-private/cmake_vdpau/CMakeMesonToolchainFile.cmake"
  - "."
  - "-DCMAKE_PREFIX_PATH=/data/data/com.termux/files/usr"
  -- Module search paths:    ['/', '/data/data/com.termux/files/usr', '/home/builder/.termux-build/_cache/cmake-3.29.3', '/opt', '/usr', '/usr/local']
  -- CMake root:             /home/builder/.termux-build/_cache/cmake-3.29.3/share/cmake-3.29
  -- CMake architectures:    ['i386-linux-gnu', 'x86_64-linux-gnu']
  -- CMake lib search paths: ['lib', 'lib32', 'lib64', 'libx32', 'share', '', 'lib/i386-linux-gnu', 'lib/x86_64-linux-gnu']
Preliminary CMake check failed. Aborting.
Run-time dependency vdpau found: NO (tried pkgconfig and cmake)
Program glslangValidator found: NO
Determining dependency 'libva' with pkg-config executable '/home/builder/.termux-build/mesa/build/_wrapper/bin/pkg-config'
env[PKG_CONFIG_LIBDIR]: /data/data/com.termux/files/usr/lib/pkgconfig:/data/data/com.termux/files/usr/share/pkgconfig
env[PKG_CONFIG]: /home/builder/.termux-build/mesa/build/_wrapper/bin/pkg-config
env[PKG_CONFIG_PATH]: 
-----------
Called: `/home/builder/.termux-build/mesa/build/_wrapper/bin/pkg-config --modversion libva` -> 1
stderr:
Package libva was not found in the pkg-config search path.
Perhaps you should add the directory containing `libva.pc'
to the PKG_CONFIG_PATH environment variable
No package 'libva' found
-----------
CMake binary for host machine is cached.
Preliminary CMake check failed. Aborting.
Run-time dependency libva found: NO (tried pkgconfig and cmake)
Program python3 found: YES (/usr/bin/python3)
Running command: /usr/bin/python3 -c '
try:
  from packaging.version import Version
except:
  from distutils.version import StrictVersion as Version
import mako
assert Version(mako.__version__) >= Version("0.8.0")
  '
--- stdout ---

--- stderr ---


Running compile:
Working directory:  /tmp/tmphh6eda3k
Code:
 
        #include <errno.h>
        #ifndef ETIME
        # define ETIME "MESON_GET_DEFINE_UNDEFINED_SENTINEL"
        #endif
        "MESON_GET_DEFINE_DELIMITER_START"
ETIME
"MESON_GET_DEFINE_DELIMITER_END"
-----------
Command line: `aarch64-linux-android-clang -I/data/data/com.termux/files/usr/include /tmp/tmphh6eda3k/testfile.c -E -P -fstack-protector-strong -Oz -D__USE_GNU -D_FILE_OFFSET_BITS=64 -P -O0 -Werror=implicit-function-declaration -std=c11` -> 0
stdout:
int android_get_application_target_sdk_version() __attribute__((__availability__(android,strict,introduced=24)));
int __system_property_get(const char* _Nonnull __name, char* _Nonnull __value);
int atoi(const char* _Nonnull __s) __attribute__((__pure__));
static __inline int android_get_device_api_level() {
  char value[92] = { 0 };
  if (__system_property_get("ro.build.version.sdk", value) < 1) return -1;
  int api_level = atoi(value);
  return (api_level > 0) ? api_level : -1;
}

int* _Nonnull __errno(void) __attribute__((__const__));
 "MESON_GET_DEFINE_DELIMITER_START"
62
"MESON_GET_DEFINE_DELIMITER_END"
-----------
Fetching value of define "ETIME" : 62 
Running compile:
Working directory:  /home/builder/.termux-build/mesa/build/meson-private/tmp7ejpnkhr
Code:
 
        #define bswap32 meson_disable_define_of_bswap32
        
        #include <limits.h>
        #undef bswap32
        
        #ifdef __cplusplus
        extern "C"
        #endif
        char bswap32 (void);
        
        #if defined __stub_bswap32 || defined __stub___bswap32
        fail fail fail this function is not going to work
        #endif
        
        int main(void) {
          return bswap32 ();
        }
-----------
Command line: `aarch64-linux-android-clang -L/data/data/com.termux/files/usr/lib -I/data/data/com.termux/files/usr/include /home/builder/.termux-build/mesa/build/meson-private/tmp7ejpnkhr/testfile.c -o /home/builder/.termux-build/mesa/build/meson-private/tmp7ejpnkhr/output.exe -fstack-protector-strong -Oz -D__USE_GNU -D_FILE_OFFSET_BITS=64 -O0 -Werror=implicit-function-declaration -std=c11 -Wl,-rpath=/data/data/com.termux/files/usr/lib -fopenmp -static-openmp -fno-openmp-implicit-rpath -Wl,--enable-new-dtags -Wl,--as-needed -Wl,-z,relro,-z,now -landroid-shmem` -> 1
stderr:
ld.lld: error: undefined symbol: bswap32
>>> referenced by testfile.c
>>>               /tmp/testfile-fd33cf.o:(main)
clang-17: error: linker command failed with exit code 1 (use -v to see invocation)
-----------
Running compile:
Working directory:  /home/builder/.termux-build/mesa/build/meson-private/tmp2flmz6wu
Code:
 
        int main(void) {

        /* With some toolchains (MSYS2/mingw for example) the compiler
         * provides various builtins which are not really implemented and
         * fall back to the stdlib where they aren't provided and fail at
         * build/link time. In case the user provides a header, including
         * the header didn't lead to the function being defined, and the
         * function we are checking isn't a builtin itself we assume the
         * builtin is not functional and we just error out. */
        #if !1 && !defined(bswap32) && !0
            #error "No definition for __builtin_bswap32 found in the prefix"
        #endif

        #ifdef __has_builtin
            #if !__has_builtin(__builtin_bswap32)
                #error "__builtin_bswap32 not found"
            #endif
        #elif ! defined(bswap32)
            __builtin_bswap32;
        #endif
        return 0;
        }
-----------
Command line: `aarch64-linux-android-clang -L/data/data/com.termux/files/usr/lib -I/data/data/com.termux/files/usr/include /home/builder/.termux-build/mesa/build/meson-private/tmp2flmz6wu/testfile.c -o /home/builder/.termux-build/mesa/build/meson-private/tmp2flmz6wu/output.exe -fstack-protector-strong -Oz -D__USE_GNU -D_FILE_OFFSET_BITS=64 -O0 -Werror=implicit-function-declaration -std=c11 -Wl,-rpath=/data/data/com.termux/files/usr/lib -fopenmp -static-openmp -fno-openmp-implicit-rpath -Wl,--enable-new-dtags -Wl,--as-needed -Wl,-z,relro,-z,now -landroid-shmem` -> 0
Checking for function "bswap32" : YES 
Running compile:
Working directory:  /home/builder/.termux-build/mesa/build/meson-private/tmp6oo6xtjc
Code:
 
        #define bswap64 meson_disable_define_of_bswap64
        
        #include <limits.h>
        #undef bswap64
        
        #ifdef __cplusplus
        extern "C"
        #endif
        char bswap64 (void);
        
        #if defined __stub_bswap64 || defined __stub___bswap64
        fail fail fail this function is not going to work
        #endif
        
        int main(void) {
          return bswap64 ();
        }
-----------
Command line: `aarch64-linux-android-clang -L/data/data/com.termux/files/usr/lib -I/data/data/com.termux/files/usr/include /home/builder/.termux-build/mesa/build/meson-private/tmp6oo6xtjc/testfile.c -o /home/builder/.termux-build/mesa/build/meson-private/tmp6oo6xtjc/output.exe -fstack-protector-strong -Oz -D__USE_GNU -D_FILE_OFFSET_BITS=64 -O0 -Werror=implicit-function-declaration -std=c11 -Wl,-rpath=/data/data/com.termux/files/usr/lib -fopenmp -static-openmp -fno-openmp-implicit-rpath -Wl,--enable-new-dtags -Wl,--as-needed -Wl,-z,relro,-z,now -landroid-shmem` -> 1
stderr:
ld.lld: error: undefined symbol: bswap64
>>> referenced by testfile.c
>>>               /tmp/testfile-6cb331.o:(main)
clang-17: error: linker command failed with exit code 1 (use -v to see invocation)
-----------
Running compile:
Working directory:  /home/builder/.termux-build/mesa/build/meson-private/tmphq4r211v
Code:
 
        int main(void) {

        /* With some toolchains (MSYS2/mingw for example) the compiler
         * provides various builtins which are not really implemented and
         * fall back to the stdlib where they aren't provided and fail at
         * build/link time. In case the user provides a header, including
         * the header didn't lead to the function being defined, and the
         * function we are checking isn't a builtin itself we assume the
         * builtin is not functional and we just error out. */
        #if !1 && !defined(bswap64) && !0
            #error "No definition for __builtin_bswap64 found in the prefix"
        #endif

        #ifdef __has_builtin
            #if !__has_builtin(__builtin_bswap64)
                #error "__builtin_bswap64 not found"
            #endif
        #elif ! defined(bswap64)
            __builtin_bswap64;
        #endif
        return 0;
        }
-----------
Command line: `aarch64-linux-android-clang -L/data/data/com.termux/files/usr/lib -I/data/data/com.termux/files/usr/include /home/builder/.termux-build/mesa/build/meson-private/tmphq4r211v/testfile.c -o /home/builder/.termux-build/mesa/build/meson-private/tmphq4r211v/output.exe -fstack-protector-strong -Oz -D__USE_GNU -D_FILE_OFFSET_BITS=64 -O0 -Werror=implicit-function-declaration -std=c11 -Wl,-rpath=/data/data/com.termux/files/usr/lib -fopenmp -static-openmp -fno-openmp-implicit-rpath -Wl,--enable-new-dtags -Wl,--as-needed -Wl,-z,relro,-z,now -landroid-shmem` -> 0
Checking for function "bswap64" : YES 
Running compile:
Working directory:  /home/builder/.termux-build/mesa/build/meson-private/tmp4onz5ay8
Code:
 
        #define clz meson_disable_define_of_clz
        
        #include <limits.h>
        #undef clz
        
        #ifdef __cplusplus
        extern "C"
        #endif
        char clz (void);
        
        #if defined __stub_clz || defined __stub___clz
        fail fail fail this function is not going to work
        #endif
        
        int main(void) {
          return clz ();
        }
-----------
Command line: `aarch64-linux-android-clang -L/data/data/com.termux/files/usr/lib -I/data/data/com.termux/files/usr/include /home/builder/.termux-build/mesa/build/meson-private/tmp4onz5ay8/testfile.c -o /home/builder/.termux-build/mesa/build/meson-private/tmp4onz5ay8/output.exe -fstack-protector-strong -Oz -D__USE_GNU -D_FILE_OFFSET_BITS=64 -O0 -Werror=implicit-function-declaration -std=c11 -Wl,-rpath=/data/data/com.termux/files/usr/lib -fopenmp -static-openmp -fno-openmp-implicit-rpath -Wl,--enable-new-dtags -Wl,--as-needed -Wl,-z,relro,-z,now -landroid-shmem` -> 1
stderr:
ld.lld: error: undefined symbol: clz
>>> referenced by testfile.c
>>>               /tmp/testfile-28b8f2.o:(main)
clang-17: error: linker command failed with exit code 1 (use -v to see invocation)
-----------
Running compile:
Working directory:  /home/builder/.termux-build/mesa/build/meson-private/tmpu49yf_9k
Code:
 
        int main(void) {

        /* With some toolchains (MSYS2/mingw for example) the compiler
         * provides various builtins which are not really implemented and
         * fall back to the stdlib where they aren't provided and fail at
         * build/link time. In case the user provides a header, including
         * the header didn't lead to the function being defined, and the
         * function we are checking isn't a builtin itself we assume the
         * builtin is not functional and we just error out. */
        #if !1 && !defined(clz) && !0
            #error "No definition for __builtin_clz found in the prefix"
        #endif

        #ifdef __has_builtin
            #if !__has_builtin(__builtin_clz)
                #error "__builtin_clz not found"
            #endif
        #elif ! defined(clz)
            __builtin_clz;
        #endif
        return 0;
        }
-----------
Command line: `aarch64-linux-android-clang -L/data/data/com.termux/files/usr/lib -I/data/data/com.termux/files/usr/include /home/builder/.termux-build/mesa/build/meson-private/tmpu49yf_9k/testfile.c -o /home/builder/.termux-build/mesa/build/meson-private/tmpu49yf_9k/output.exe -fstack-protector-strong -Oz -D__USE_GNU -D_FILE_OFFSET_BITS=64 -O0 -Werror=implicit-function-declaration -std=c11 -Wl,-rpath=/data/data/com.termux/files/usr/lib -fopenmp -static-openmp -fno-openmp-implicit-rpath -Wl,--enable-new-dtags -Wl,--as-needed -Wl,-z,relro,-z,now -landroid-shmem` -> 0
Checking for function "clz" : YES 
Running compile:
Working directory:  /home/builder/.termux-build/mesa/build/meson-private/tmpjaxn3umc
Code:
 
        #define clzll meson_disable_define_of_clzll
        
        #include <limits.h>
        #undef clzll
        
        #ifdef __cplusplus
        extern "C"
        #endif
        char clzll (void);
        
        #if defined __stub_clzll || defined __stub___clzll
        fail fail fail this function is not going to work
        #endif
        
        int main(void) {
          return clzll ();
        }
-----------
Command line: `aarch64-linux-android-clang -L/data/data/com.termux/files/usr/lib -I/data/data/com.termux/files/usr/include /home/builder/.termux-build/mesa/build/meson-private/tmpjaxn3umc/testfile.c -o /home/builder/.termux-build/mesa/build/meson-private/tmpjaxn3umc/output.exe -fstack-protector-strong -Oz -D__USE_GNU -D_FILE_OFFSET_BITS=64 -O0 -Werror=implicit-function-declaration -std=c11 -Wl,-rpath=/data/data/com.termux/files/usr/lib -fopenmp -static-openmp -fno-openmp-implicit-rpath -Wl,--enable-new-dtags -Wl,--as-needed -Wl,-z,relro,-z,now -landroid-shmem` -> 1
stderr:
ld.lld: error: undefined symbol: clzll
>>> referenced by testfile.c
>>>               /tmp/testfile-4e7568.o:(main)
clang-17: error: linker command failed with exit code 1 (use -v to see invocation)
-----------
Running compile:
Working directory:  /home/builder/.termux-build/mesa/build/meson-private/tmpdbckqqyn
Code:
 
        int main(void) {

        /* With some toolchains (MSYS2/mingw for example) the compiler
         * provides various builtins which are not really implemented and
         * fall back to the stdlib where they aren't provided and fail at
         * build/link time. In case the user provides a header, including
         * the header didn't lead to the function being defined, and the
         * function we are checking isn't a builtin itself we assume the
         * builtin is not functional and we just error out. */
        #if !1 && !defined(clzll) && !0
            #error "No definition for __builtin_clzll found in the prefix"
        #endif

        #ifdef __has_builtin
            #if !__has_builtin(__builtin_clzll)
                #error "__builtin_clzll not found"
            #endif
        #elif ! defined(clzll)
            __builtin_clzll;
        #endif
        return 0;
        }
-----------
Command line: `aarch64-linux-android-clang -L/data/data/com.termux/files/usr/lib -I/data/data/com.termux/files/usr/include /home/builder/.termux-build/mesa/build/meson-private/tmpdbckqqyn/testfile.c -o /home/builder/.termux-build/mesa/build/meson-private/tmpdbckqqyn/output.exe -fstack-protector-strong -Oz -D__USE_GNU -D_FILE_OFFSET_BITS=64 -O0 -Werror=implicit-function-declaration -std=c11 -Wl,-rpath=/data/data/com.termux/files/usr/lib -fopenmp -static-openmp -fno-openmp-implicit-rpath -Wl,--enable-new-dtags -Wl,--as-needed -Wl,-z,relro,-z,now -landroid-shmem` -> 0
Checking for function "clzll" : YES 
Running compile:
Working directory:  /home/builder/.termux-build/mesa/build/meson-private/tmpsypm0lrk
Code:
 
        #define ctz meson_disable_define_of_ctz
        
        #include <limits.h>
        #undef ctz
        
        #ifdef __cplusplus
        extern "C"
        #endif
        char ctz (void);
        
        #if defined __stub_ctz || defined __stub___ctz
        fail fail fail this function is not going to work
        #endif
        
        int main(void) {
          return ctz ();
        }
-----------
Command line: `aarch64-linux-android-clang -L/data/data/com.termux/files/usr/lib -I/data/data/com.termux/files/usr/include /home/builder/.termux-build/mesa/build/meson-private/tmpsypm0lrk/testfile.c -o /home/builder/.termux-build/mesa/build/meson-private/tmpsypm0lrk/output.exe -fstack-protector-strong -Oz -D__USE_GNU -D_FILE_OFFSET_BITS=64 -O0 -Werror=implicit-function-declaration -std=c11 -Wl,-rpath=/data/data/com.termux/files/usr/lib -fopenmp -static-openmp -fno-openmp-implicit-rpath -Wl,--enable-new-dtags -Wl,--as-needed -Wl,-z,relro,-z,now -landroid-shmem` -> 1
stderr:
ld.lld: error: undefined symbol: ctz
>>> referenced by testfile.c
>>>               /tmp/testfile-31e8ed.o:(main)
clang-17: error: linker command failed with exit code 1 (use -v to see invocation)
-----------
Running compile:
Working directory:  /home/builder/.termux-build/mesa/build/meson-private/tmpkjhz2wjf
Code:
 
        int main(void) {

        /* With some toolchains (MSYS2/mingw for example) the compiler
         * provides various builtins which are not really implemented and
         * fall back to the stdlib where they aren't provided and fail at
         * build/link time. In case the user provides a header, including
         * the header didn't lead to the function being defined, and the
         * function we are checking isn't a builtin itself we assume the
         * builtin is not functional and we just error out. */
        #if !1 && !defined(ctz) && !0
            #error "No definition for __builtin_ctz found in the prefix"
        #endif

        #ifdef __has_builtin
            #if !__has_builtin(__builtin_ctz)
                #error "__builtin_ctz not found"
            #endif
        #elif ! defined(ctz)
            __builtin_ctz;
        #endif
        return 0;
        }
-----------
Command line: `aarch64-linux-android-clang -L/data/data/com.termux/files/usr/lib -I/data/data/com.termux/files/usr/include /home/builder/.termux-build/mesa/build/meson-private/tmpkjhz2wjf/testfile.c -o /home/builder/.termux-build/mesa/build/meson-private/tmpkjhz2wjf/output.exe -fstack-protector-strong -Oz -D__USE_GNU -D_FILE_OFFSET_BITS=64 -O0 -Werror=implicit-function-declaration -std=c11 -Wl,-rpath=/data/data/com.termux/files/usr/lib -fopenmp -static-openmp -fno-openmp-implicit-rpath -Wl,--enable-new-dtags -Wl,--as-needed -Wl,-z,relro,-z,now -landroid-shmem` -> 0
Checking for function "ctz" : YES 
Running compile:
Working directory:  /home/builder/.termux-build/mesa/build/meson-private/tmpsjz9c7fl
Code:
 
        #define expect meson_disable_define_of_expect
        
        #include <limits.h>
        #undef expect
        
        #ifdef __cplusplus
        extern "C"
        #endif
        char expect (void);
        
        #if defined __stub_expect || defined __stub___expect
        fail fail fail this function is not going to work
        #endif
        
        int main(void) {
          return expect ();
        }
-----------
Command line: `aarch64-linux-android-clang -L/data/data/com.termux/files/usr/lib -I/data/data/com.termux/files/usr/include /home/builder/.termux-build/mesa/build/meson-private/tmpsjz9c7fl/testfile.c -o /home/builder/.termux-build/mesa/build/meson-private/tmpsjz9c7fl/output.exe -fstack-protector-strong -Oz -D__USE_GNU -D_FILE_OFFSET_BITS=64 -O0 -Werror=implicit-function-declaration -std=c11 -Wl,-rpath=/data/data/com.termux/files/usr/lib -fopenmp -static-openmp -fno-openmp-implicit-rpath -Wl,--enable-new-dtags -Wl,--as-needed -Wl,-z,relro,-z,now -landroid-shmem` -> 1
stderr:
ld.lld: error: undefined symbol: expect
>>> referenced by testfile.c
>>>               /tmp/testfile-0e511c.o:(main)
clang-17: error: linker command failed with exit code 1 (use -v to see invocation)
-----------
Running compile:
Working directory:  /home/builder/.termux-build/mesa/build/meson-private/tmpsironw7a
Code:
 
        int main(void) {

        /* With some toolchains (MSYS2/mingw for example) the compiler
         * provides various builtins which are not really implemented and
         * fall back to the stdlib where they aren't provided and fail at
         * build/link time. In case the user provides a header, including
         * the header didn't lead to the function being defined, and the
         * function we are checking isn't a builtin itself we assume the
         * builtin is not functional and we just error out. */
        #if !1 && !defined(expect) && !0
            #error "No definition for __builtin_expect found in the prefix"
        #endif

        #ifdef __has_builtin
            #if !__has_builtin(__builtin_expect)
                #error "__builtin_expect not found"
            #endif
        #elif ! defined(expect)
            __builtin_expect;
        #endif
        return 0;
        }
-----------
Command line: `aarch64-linux-android-clang -L/data/data/com.termux/files/usr/lib -I/data/data/com.termux/files/usr/include /home/builder/.termux-build/mesa/build/meson-private/tmpsironw7a/testfile.c -o /home/builder/.termux-build/mesa/build/meson-private/tmpsironw7a/output.exe -fstack-protector-strong -Oz -D__USE_GNU -D_FILE_OFFSET_BITS=64 -O0 -Werror=implicit-function-declaration -std=c11 -Wl,-rpath=/data/data/com.termux/files/usr/lib -fopenmp -static-openmp -fno-openmp-implicit-rpath -Wl,--enable-new-dtags -Wl,--as-needed -Wl,-z,relro,-z,now -landroid-shmem` -> 0
Checking for function "expect" : YES 
Running compile:
Working directory:  /home/builder/.termux-build/mesa/build/meson-private/tmphmdxkahd
Code:
 
        #define ffs meson_disable_define_of_ffs
        
        #include <limits.h>
        #undef ffs
        
        #ifdef __cplusplus
        extern "C"
        #endif
        char ffs (void);
        
        #if defined __stub_ffs || defined __stub___ffs
        fail fail fail this function is not going to work
        #endif
        
        int main(void) {
          return ffs ();
        }
-----------
Command line: `aarch64-linux-android-clang -L/data/data/com.termux/files/usr/lib -I/data/data/com.termux/files/usr/include /home/builder/.termux-build/mesa/build/meson-private/tmphmdxkahd/testfile.c -o /home/builder/.termux-build/mesa/build/meson-private/tmphmdxkahd/output.exe -fstack-protector-strong -Oz -D__USE_GNU -D_FILE_OFFSET_BITS=64 -O0 -Werror=implicit-function-declaration -std=c11 -Wl,-rpath=/data/data/com.termux/files/usr/lib -fopenmp -static-openmp -fno-openmp-implicit-rpath -Wl,--enable-new-dtags -Wl,--as-needed -Wl,-z,relro,-z,now -landroid-shmem` -> 0
Checking for function "ffs" : YES 
Running compile:
Working directory:  /home/builder/.termux-build/mesa/build/meson-private/tmpai9yxt4q
Code:
 
        #define ffsll meson_disable_define_of_ffsll
        
        #include <limits.h>
        #undef ffsll
        
        #ifdef __cplusplus
        extern "C"
        #endif
        char ffsll (void);
        
        #if defined __stub_ffsll || defined __stub___ffsll
        fail fail fail this function is not going to work
        #endif
        
        int main(void) {
          return ffsll ();
        }
-----------
Command line: `aarch64-linux-android-clang -L/data/data/com.termux/files/usr/lib -I/data/data/com.termux/files/usr/include /home/builder/.termux-build/mesa/build/meson-private/tmpai9yxt4q/testfile.c -o /home/builder/.termux-build/mesa/build/meson-private/tmpai9yxt4q/output.exe -fstack-protector-strong -Oz -D__USE_GNU -D_FILE_OFFSET_BITS=64 -O0 -Werror=implicit-function-declaration -std=c11 -Wl,-rpath=/data/data/com.termux/files/usr/lib -fopenmp -static-openmp -fno-openmp-implicit-rpath -Wl,--enable-new-dtags -Wl,--as-needed -Wl,-z,relro,-z,now -landroid-shmem` -> 1
stderr:
ld.lld: error: undefined symbol: ffsll
>>> referenced by testfile.c
>>>               /tmp/testfile-c1deda.o:(main)
clang-17: error: linker command failed with exit code 1 (use -v to see invocation)
-----------
Running compile:
Working directory:  /home/builder/.termux-build/mesa/build/meson-private/tmp9af58kq8
Code:
 
        int main(void) {

        /* With some toolchains (MSYS2/mingw for example) the compiler
         * provides various builtins which are not really implemented and
         * fall back to the stdlib where they aren't provided and fail at
         * build/link time. In case the user provides a header, including
         * the header didn't lead to the function being defined, and the
         * function we are checking isn't a builtin itself we assume the
         * builtin is not functional and we just error out. */
        #if !1 && !defined(ffsll) && !0
            #error "No definition for __builtin_ffsll found in the prefix"
        #endif

        #ifdef __has_builtin
            #if !__has_builtin(__builtin_ffsll)
                #error "__builtin_ffsll not found"
            #endif
        #elif ! defined(ffsll)
            __builtin_ffsll;
        #endif
        return 0;
        }
-----------
Command line: `aarch64-linux-android-clang -L/data/data/com.termux/files/usr/lib -I/data/data/com.termux/files/usr/include /home/builder/.termux-build/mesa/build/meson-private/tmp9af58kq8/testfile.c -o /home/builder/.termux-build/mesa/build/meson-private/tmp9af58kq8/output.exe -fstack-protector-strong -Oz -D__USE_GNU -D_FILE_OFFSET_BITS=64 -O0 -Werror=implicit-function-declaration -std=c11 -Wl,-rpath=/data/data/com.termux/files/usr/lib -fopenmp -static-openmp -fno-openmp-implicit-rpath -Wl,--enable-new-dtags -Wl,--as-needed -Wl,-z,relro,-z,now -landroid-shmem` -> 0
Checking for function "ffsll" : YES 
Running compile:
Working directory:  /home/builder/.termux-build/mesa/build/meson-private/tmppy7lfxg8
Code:
 
        #define popcount meson_disable_define_of_popcount
        
        #include <limits.h>
        #undef popcount
        
        #ifdef __cplusplus
        extern "C"
        #endif
        char popcount (void);
        
        #if defined __stub_popcount || defined __stub___popcount
        fail fail fail this function is not going to work
        #endif
        
        int main(void) {
          return popcount ();
        }
-----------
Command line: `aarch64-linux-android-clang -L/data/data/com.termux/files/usr/lib -I/data/data/com.termux/files/usr/include /home/builder/.termux-build/mesa/build/meson-private/tmppy7lfxg8/testfile.c -o /home/builder/.termux-build/mesa/build/meson-private/tmppy7lfxg8/output.exe -fstack-protector-strong -Oz -D__USE_GNU -D_FILE_OFFSET_BITS=64 -O0 -Werror=implicit-function-declaration -std=c11 -Wl,-rpath=/data/data/com.termux/files/usr/lib -fopenmp -static-openmp -fno-openmp-implicit-rpath -Wl,--enable-new-dtags -Wl,--as-needed -Wl,-z,relro,-z,now -landroid-shmem` -> 1
stderr:
ld.lld: error: undefined symbol: popcount
>>> referenced by testfile.c
>>>               /tmp/testfile-b1b715.o:(main)
clang-17: error: linker command failed with exit code 1 (use -v to see invocation)
-----------
Running compile:
Working directory:  /home/builder/.termux-build/mesa/build/meson-private/tmpgteqniss
Code:
 
        int main(void) {

        /* With some toolchains (MSYS2/mingw for example) the compiler
         * provides various builtins which are not really implemented and
         * fall back to the stdlib where they aren't provided and fail at
         * build/link time. In case the user provides a header, including
         * the header didn't lead to the function being defined, and the
         * function we are checking isn't a builtin itself we assume the
         * builtin is not functional and we just error out. */
        #if !1 && !defined(popcount) && !0
            #error "No definition for __builtin_popcount found in the prefix"
        #endif

        #ifdef __has_builtin
            #if !__has_builtin(__builtin_popcount)
                #error "__builtin_popcount not found"
            #endif
        #elif ! defined(popcount)
            __builtin_popcount;
        #endif
        return 0;
        }
-----------
Command line: `aarch64-linux-android-clang -L/data/data/com.termux/files/usr/lib -I/data/data/com.termux/files/usr/include /home/builder/.termux-build/mesa/build/meson-private/tmpgteqniss/testfile.c -o /home/builder/.termux-build/mesa/build/meson-private/tmpgteqniss/output.exe -fstack-protector-strong -Oz -D__USE_GNU -D_FILE_OFFSET_BITS=64 -O0 -Werror=implicit-function-declaration -std=c11 -Wl,-rpath=/data/data/com.termux/files/usr/lib -fopenmp -static-openmp -fno-openmp-implicit-rpath -Wl,--enable-new-dtags -Wl,--as-needed -Wl,-z,relro,-z,now -landroid-shmem` -> 0
Checking for function "popcount" : YES 
Running compile:
Working directory:  /home/builder/.termux-build/mesa/build/meson-private/tmpkyj8apz9
Code:
 
        #define popcountll meson_disable_define_of_popcountll
        
        #include <limits.h>
        #undef popcountll
        
        #ifdef __cplusplus
        extern "C"
        #endif
        char popcountll (void);
        
        #if defined __stub_popcountll || defined __stub___popcountll
        fail fail fail this function is not going to work
        #endif
        
        int main(void) {
          return popcountll ();
        }
-----------
Command line: `aarch64-linux-android-clang -L/data/data/com.termux/files/usr/lib -I/data/data/com.termux/files/usr/include /home/builder/.termux-build/mesa/build/meson-private/tmpkyj8apz9/testfile.c -o /home/builder/.termux-build/mesa/build/meson-private/tmpkyj8apz9/output.exe -fstack-protector-strong -Oz -D__USE_GNU -D_FILE_OFFSET_BITS=64 -O0 -Werror=implicit-function-declaration -std=c11 -Wl,-rpath=/data/data/com.termux/files/usr/lib -fopenmp -static-openmp -fno-openmp-implicit-rpath -Wl,--enable-new-dtags -Wl,--as-needed -Wl,-z,relro,-z,now -landroid-shmem` -> 1
stderr:
ld.lld: error: undefined symbol: popcountll
>>> referenced by testfile.c
>>>               /tmp/testfile-c4cae1.o:(main)
clang-17: error: linker command failed with exit code 1 (use -v to see invocation)
-----------
Running compile:
Working directory:  /home/builder/.termux-build/mesa/build/meson-private/tmp3u_71ahs
Code:
 
        int main(void) {

        /* With some toolchains (MSYS2/mingw for example) the compiler
         * provides various builtins which are not really implemented and
         * fall back to the stdlib where they aren't provided and fail at
         * build/link time. In case the user provides a header, including
         * the header didn't lead to the function being defined, and the
         * function we are checking isn't a builtin itself we assume the
         * builtin is not functional and we just error out. */
        #if !1 && !defined(popcountll) && !0
            #error "No definition for __builtin_popcountll found in the prefix"
        #endif

        #ifdef __has_builtin
            #if !__has_builtin(__builtin_popcountll)
                #error "__builtin_popcountll not found"
            #endif
        #elif ! defined(popcountll)
            __builtin_popcountll;
        #endif
        return 0;
        }
-----------
Command line: `aarch64-linux-android-clang -L/data/data/com.termux/files/usr/lib -I/data/data/com.termux/files/usr/include /home/builder/.termux-build/mesa/build/meson-private/tmp3u_71ahs/testfile.c -o /home/builder/.termux-build/mesa/build/meson-private/tmp3u_71ahs/output.exe -fstack-protector-strong -Oz -D__USE_GNU -D_FILE_OFFSET_BITS=64 -O0 -Werror=implicit-function-declaration -std=c11 -Wl,-rpath=/data/data/com.termux/files/usr/lib -fopenmp -static-openmp -fno-openmp-implicit-rpath -Wl,--enable-new-dtags -Wl,--as-needed -Wl,-z,relro,-z,now -landroid-shmem` -> 0
Checking for function "popcountll" : YES 
Running compile:
Working directory:  /home/builder/.termux-build/mesa/build/meson-private/tmpmqab8sq7
Code:
 
        #define unreachable meson_disable_define_of_unreachable
        
        #include <limits.h>
        #undef unreachable
        
        #ifdef __cplusplus
        extern "C"
        #endif
        char unreachable (void);
        
        #if defined __stub_unreachable || defined __stub___unreachable
        fail fail fail this function is not going to work
        #endif
        
        int main(void) {
          return unreachable ();
        }
-----------
Command line: `aarch64-linux-android-clang -L/data/data/com.termux/files/usr/lib -I/data/data/com.termux/files/usr/include /home/builder/.termux-build/mesa/build/meson-private/tmpmqab8sq7/testfile.c -o /home/builder/.termux-build/mesa/build/meson-private/tmpmqab8sq7/output.exe -fstack-protector-strong -Oz -D__USE_GNU -D_FILE_OFFSET_BITS=64 -O0 -Werror=implicit-function-declaration -std=c11 -Wl,-rpath=/data/data/com.termux/files/usr/lib -fopenmp -static-openmp -fno-openmp-implicit-rpath -Wl,--enable-new-dtags -Wl,--as-needed -Wl,-z,relro,-z,now -landroid-shmem` -> 1
stderr:
ld.lld: error: undefined symbol: unreachable
>>> referenced by testfile.c
>>>               /tmp/testfile-b5ead2.o:(main)
clang-17: error: linker command failed with exit code 1 (use -v to see invocation)
-----------
Running compile:
Working directory:  /home/builder/.termux-build/mesa/build/meson-private/tmp8vlxutyz
Code:
 
        int main(void) {

        /* With some toolchains (MSYS2/mingw for example) the compiler
         * provides various builtins which are not really implemented and
         * fall back to the stdlib where they aren't provided and fail at
         * build/link time. In case the user provides a header, including
         * the header didn't lead to the function being defined, and the
         * function we are checking isn't a builtin itself we assume the
         * builtin is not functional and we just error out. */
        #if !1 && !defined(unreachable) && !0
            #error "No definition for __builtin_unreachable found in the prefix"
        #endif

        #ifdef __has_builtin
            #if !__has_builtin(__builtin_unreachable)
                #error "__builtin_unreachable not found"
            #endif
        #elif ! defined(unreachable)
            __builtin_unreachable;
        #endif
        return 0;
        }
-----------
Command line: `aarch64-linux-android-clang -L/data/data/com.termux/files/usr/lib -I/data/data/com.termux/files/usr/include /home/builder/.termux-build/mesa/build/meson-private/tmp8vlxutyz/testfile.c -o /home/builder/.termux-build/mesa/build/meson-private/tmp8vlxutyz/output.exe -fstack-protector-strong -Oz -D__USE_GNU -D_FILE_OFFSET_BITS=64 -O0 -Werror=implicit-function-declaration -std=c11 -Wl,-rpath=/data/data/com.termux/files/usr/lib -fopenmp -static-openmp -fno-openmp-implicit-rpath -Wl,--enable-new-dtags -Wl,--as-needed -Wl,-z,relro,-z,now -landroid-shmem` -> 0
Checking for function "unreachable" : YES 
Running compile:
Working directory:  /home/builder/.termux-build/mesa/build/meson-private/tmprjtgmrew
Code:
 
        #define types_compatible_p meson_disable_define_of_types_compatible_p
        
        #include <limits.h>
        #undef types_compatible_p
        
        #ifdef __cplusplus
        extern "C"
        #endif
        char types_compatible_p (void);
        
        #if defined __stub_types_compatible_p || defined __stub___types_compatible_p
        fail fail fail this function is not going to work
        #endif
        
        int main(void) {
          return types_compatible_p ();
        }
-----------
Command line: `aarch64-linux-android-clang -L/data/data/com.termux/files/usr/lib -I/data/data/com.termux/files/usr/include /home/builder/.termux-build/mesa/build/meson-private/tmprjtgmrew/testfile.c -o /home/builder/.termux-build/mesa/build/meson-private/tmprjtgmrew/output.exe -fstack-protector-strong -Oz -D__USE_GNU -D_FILE_OFFSET_BITS=64 -O0 -Werror=implicit-function-declaration -std=c11 -Wl,-rpath=/data/data/com.termux/files/usr/lib -fopenmp -static-openmp -fno-openmp-implicit-rpath -Wl,--enable-new-dtags -Wl,--as-needed -Wl,-z,relro,-z,now -landroid-shmem` -> 1
stderr:
ld.lld: error: undefined symbol: types_compatible_p
>>> referenced by testfile.c
>>>               /tmp/testfile-6c6d55.o:(main)
clang-17: error: linker command failed with exit code 1 (use -v to see invocation)
-----------
Running compile:
Working directory:  /home/builder/.termux-build/mesa/build/meson-private/tmp4kkfkkt9
Code:
 
        int main(void) {

        /* With some toolchains (MSYS2/mingw for example) the compiler
         * provides various builtins which are not really implemented and
         * fall back to the stdlib where they aren't provided and fail at
         * build/link time. In case the user provides a header, including
         * the header didn't lead to the function being defined, and the
         * function we are checking isn't a builtin itself we assume the
         * builtin is not functional and we just error out. */
        #if !1 && !defined(types_compatible_p) && !0
            #error "No definition for __builtin_types_compatible_p found in the prefix"
        #endif

        #ifdef __has_builtin
            #if !__has_builtin(__builtin_types_compatible_p)
                #error "__builtin_types_compatible_p not found"
            #endif
        #elif ! defined(types_compatible_p)
            __builtin_types_compatible_p;
        #endif
        return 0;
        }
-----------
Command line: `aarch64-linux-android-clang -L/data/data/com.termux/files/usr/lib -I/data/data/com.termux/files/usr/include /home/builder/.termux-build/mesa/build/meson-private/tmp4kkfkkt9/testfile.c -o /home/builder/.termux-build/mesa/build/meson-private/tmp4kkfkkt9/output.exe -fstack-protector-strong -Oz -D__USE_GNU -D_FILE_OFFSET_BITS=64 -O0 -Werror=implicit-function-declaration -std=c11 -Wl,-rpath=/data/data/com.termux/files/usr/lib -fopenmp -static-openmp -fno-openmp-implicit-rpath -Wl,--enable-new-dtags -Wl,--as-needed -Wl,-z,relro,-z,now -landroid-shmem` -> 0
Checking for function "types_compatible_p" : YES 
Running compile:
Working directory:  /home/builder/.termux-build/mesa/build/meson-private/tmp68827jcu
Code:
 int foo(void) __attribute__((const));
-----------
Command line: `aarch64-linux-android-clang -I/data/data/com.termux/files/usr/include /home/builder/.termux-build/mesa/build/meson-private/tmp68827jcu/testfile.c -o /home/builder/.termux-build/mesa/build/meson-private/tmp68827jcu/output.obj -c -fstack-protector-strong -Oz -D__USE_GNU -D_FILE_OFFSET_BITS=64 -O0 -Werror=implicit-function-declaration -Werror=unknown-warning-option -Werror=unused-command-line-argument -Werror=ignored-optimization-argument -Werror=attributes` -> 0
Compiler for C supports function attribute const: YES 
Running compile:
Working directory:  /home/builder/.termux-build/mesa/build/meson-private/tmp45wto99x
Code:
 int foo(void) __attribute__((flatten));
-----------
Command line: `aarch64-linux-android-clang -I/data/data/com.termux/files/usr/include /home/builder/.termux-build/mesa/build/meson-private/tmp45wto99x/testfile.c -o /home/builder/.termux-build/mesa/build/meson-private/tmp45wto99x/output.obj -c -fstack-protector-strong -Oz -D__USE_GNU -D_FILE_OFFSET_BITS=64 -O0 -Werror=implicit-function-declaration -Werror=unknown-warning-option -Werror=unused-command-line-argument -Werror=ignored-optimization-argument -Werror=attributes` -> 0
Compiler for C supports function attribute flatten: YES 
Running compile:
Working directory:  /home/builder/.termux-build/mesa/build/meson-private/tmpgejaeybf
Code:
 int *foo(void) __attribute__((malloc));
-----------
Command line: `aarch64-linux-android-clang -I/data/data/com.termux/files/usr/include /home/builder/.termux-build/mesa/build/meson-private/tmpgejaeybf/testfile.c -o /home/builder/.termux-build/mesa/build/meson-private/tmpgejaeybf/output.obj -c -fstack-protector-strong -Oz -D__USE_GNU -D_FILE_OFFSET_BITS=64 -O0 -Werror=implicit-function-declaration -Werror=unknown-warning-option -Werror=unused-command-line-argument -Werror=ignored-optimization-argument -Werror=attributes` -> 0
Compiler for C supports function attribute malloc: YES 
Running compile:
Working directory:  /home/builder/.termux-build/mesa/build/meson-private/tmpu1q1eqse
Code:
 int foo(void) __attribute__((pure));
-----------
Command line: `aarch64-linux-android-clang -I/data/data/com.termux/files/usr/include /home/builder/.termux-build/mesa/build/meson-private/tmpu1q1eqse/testfile.c -o /home/builder/.termux-build/mesa/build/meson-private/tmpu1q1eqse/output.obj -c -fstack-protector-strong -Oz -D__USE_GNU -D_FILE_OFFSET_BITS=64 -O0 -Werror=implicit-function-declaration -Werror=unknown-warning-option -Werror=unused-command-line-argument -Werror=ignored-optimization-argument -Werror=attributes` -> 0
Compiler for C supports function attribute pure: YES 
Running compile:
Working directory:  /home/builder/.termux-build/mesa/build/meson-private/tmppvjty7v7
Code:
 int foo(void) __attribute__((unused));
-----------
Command line: `aarch64-linux-android-clang -I/data/data/com.termux/files/usr/include /home/builder/.termux-build/mesa/build/meson-private/tmppvjty7v7/testfile.c -o /home/builder/.termux-build/mesa/build/meson-private/tmppvjty7v7/output.obj -c -fstack-protector-strong -Oz -D__USE_GNU -D_FILE_OFFSET_BITS=64 -O0 -Werror=implicit-function-declaration -Werror=unknown-warning-option -Werror=unused-command-line-argument -Werror=ignored-optimization-argument -Werror=attributes` -> 0
Compiler for C supports function attribute unused: YES 
Running compile:
Working directory:  /home/builder/.termux-build/mesa/build/meson-private/tmp53rhreuj
Code:
 int foo(void) __attribute__((warn_unused_result));
-----------
Command line: `aarch64-linux-android-clang -I/data/data/com.termux/files/usr/include /home/builder/.termux-build/mesa/build/meson-private/tmp53rhreuj/testfile.c -o /home/builder/.termux-build/mesa/build/meson-private/tmp53rhreuj/output.obj -c -fstack-protector-strong -Oz -D__USE_GNU -D_FILE_OFFSET_BITS=64 -O0 -Werror=implicit-function-declaration -Werror=unknown-warning-option -Werror=unused-command-line-argument -Werror=ignored-optimization-argument -Werror=attributes` -> 0
Compiler for C supports function attribute warn_unused_result: YES 
Running compile:
Working directory:  /home/builder/.termux-build/mesa/build/meson-private/tmpckdwnhtt
Code:
 int foo(void) __attribute__((weak));
-----------
Command line: `aarch64-linux-android-clang -I/data/data/com.termux/files/usr/include /home/builder/.termux-build/mesa/build/meson-private/tmpckdwnhtt/testfile.c -o /home/builder/.termux-build/mesa/build/meson-private/tmpckdwnhtt/output.obj -c -fstack-protector-strong -Oz -D__USE_GNU -D_FILE_OFFSET_BITS=64 -O0 -Werror=implicit-function-declaration -Werror=unknown-warning-option -Werror=unused-command-line-argument -Werror=ignored-optimization-argument -Werror=attributes` -> 0
Compiler for C supports function attribute weak: YES 
Running compile:
Working directory:  /home/builder/.termux-build/mesa/build/meson-private/tmp5nd_dmpz
Code:
 int foo(const char * p, ...) __attribute__((format(printf, 1, 2)));
-----------
Command line: `aarch64-linux-android-clang -I/data/data/com.termux/files/usr/include /home/builder/.termux-build/mesa/build/meson-private/tmp5nd_dmpz/testfile.c -o /home/builder/.termux-build/mesa/build/meson-private/tmp5nd_dmpz/output.obj -c -fstack-protector-strong -Oz -D__USE_GNU -D_FILE_OFFSET_BITS=64 -O0 -Werror=implicit-function-declaration -Werror=unknown-warning-option -Werror=unused-command-line-argument -Werror=ignored-optimization-argument -Werror=attributes` -> 0
Compiler for C supports function attribute format: YES 
Running compile:
Working directory:  /home/builder/.termux-build/mesa/build/meson-private/tmp7o3ejztu
Code:
 struct __attribute__((packed)) foo { int bar; };
-----------
Command line: `aarch64-linux-android-clang -I/data/data/com.termux/files/usr/include /home/builder/.termux-build/mesa/build/meson-private/tmp7o3ejztu/testfile.c -o /home/builder/.termux-build/mesa/build/meson-private/tmp7o3ejztu/output.obj -c -fstack-protector-strong -Oz -D__USE_GNU -D_FILE_OFFSET_BITS=64 -O0 -Werror=implicit-function-declaration -Werror=unknown-warning-option -Werror=unused-command-line-argument -Werror=ignored-optimization-argument -Werror=attributes` -> 0
Compiler for C supports function attribute packed: YES 
Running compile:
Working directory:  /home/builder/.termux-build/mesa/build/meson-private/tmp3r37kcqz
Code:
 int *foo(void) __attribute__((returns_nonnull));
-----------
Command line: `aarch64-linux-android-clang -I/data/data/com.termux/files/usr/include /home/builder/.termux-build/mesa/build/meson-private/tmp3r37kcqz/testfile.c -o /home/builder/.termux-build/mesa/build/meson-private/tmp3r37kcqz/output.obj -c -fstack-protector-strong -Oz -D__USE_GNU -D_FILE_OFFSET_BITS=64 -O0 -Werror=implicit-function-declaration -Werror=unknown-warning-option -Werror=unused-command-line-argument -Werror=ignored-optimization-argument -Werror=attributes` -> 0
Compiler for C supports function attribute returns_nonnull: YES 
Running compile:
Working directory:  /home/builder/.termux-build/mesa/build/meson-private/tmpye_aiybr
Code:
 
        int foo(void) { return 0; }
        int bar(void) __attribute__((alias("foo")));
-----------
Command line: `aarch64-linux-android-clang -I/data/data/com.termux/files/usr/include /home/builder/.termux-build/mesa/build/meson-private/tmpye_aiybr/testfile.c -o /home/builder/.termux-build/mesa/build/meson-private/tmpye_aiybr/output.obj -c -fstack-protector-strong -Oz -D__USE_GNU -D_FILE_OFFSET_BITS=64 -O0 -Werror=implicit-function-declaration -Werror=unknown-warning-option -Werror=unused-command-line-argument -Werror=ignored-optimization-argument -Werror=attributes` -> 0
Compiler for C supports function attribute alias: YES 
Running compile:
Working directory:  /home/builder/.termux-build/mesa/build/meson-private/tmpnykh5oz1
Code:
 int foo(void) __attribute__((noreturn));
-----------
Command line: `aarch64-linux-android-clang -I/data/data/com.termux/files/usr/include /home/builder/.termux-build/mesa/build/meson-private/tmpnykh5oz1/testfile.c -o /home/builder/.termux-build/mesa/build/meson-private/tmpnykh5oz1/output.obj -c -fstack-protector-strong -Oz -D__USE_GNU -D_FILE_OFFSET_BITS=64 -O0 -Werror=implicit-function-declaration -Werror=unknown-warning-option -Werror=unused-command-line-argument -Werror=ignored-optimization-argument -Werror=attributes` -> 0
Compiler for C supports function attribute noreturn: YES 
Running compile:
Working directory:  /home/builder/.termux-build/mesa/build/meson-private/tmpzlp5u9dv
Code:
 int foo(void) __attribute__((visibility("hidden"))); int foo(void) { return 0; }
-----------
Command line: `aarch64-linux-android-clang -I/data/data/com.termux/files/usr/include /home/builder/.termux-build/mesa/build/meson-private/tmpzlp5u9dv/testfile.c -o /home/builder/.termux-build/mesa/build/meson-private/tmpzlp5u9dv/output.obj -c -fstack-protector-strong -Oz -D__USE_GNU -D_FILE_OFFSET_BITS=64 -O0 -Werror=implicit-function-declaration -Werror=unknown-warning-option -Werror=unused-command-line-argument -Werror=ignored-optimization-argument -Werror=attributes` -> 0
Compiler for C supports function attribute visibility:hidden: YES 
Running compile:
Working directory:  /home/builder/.termux-build/mesa/build/meson-private/tmphxs_s7qx
Code:
 __uint128_t foo(void) { return 0; }
-----------
Command line: `aarch64-linux-android-clang -I/data/data/com.termux/files/usr/include /home/builder/.termux-build/mesa/build/meson-private/tmphxs_s7qx/testfile.c -o /home/builder/.termux-build/mesa/build/meson-private/tmphxs_s7qx/output.obj -c -fstack-protector-strong -Oz -D__USE_GNU -D_FILE_OFFSET_BITS=64 -O0 -Werror=implicit-function-declaration -Werror=unknown-warning-option -Werror=unused-command-line-argument -Werror=ignored-optimization-argument -std=c11` -> 0
Checking if "__uint128_t" compiles: YES 
Running compile:
Working directory:  /home/builder/.termux-build/mesa/build/meson-private/tmp3ifi4kya
Code:
 
        #define reallocarray meson_disable_define_of_reallocarray
        
        #include <limits.h>
        #undef reallocarray
        
        #ifdef __cplusplus
        extern "C"
        #endif
        char reallocarray (void);
        
        #if defined __stub_reallocarray || defined __stub___reallocarray
        fail fail fail this function is not going to work
        #endif
        
        int main(void) {
          return reallocarray ();
        }
-----------
Command line: `aarch64-linux-android-clang -L/data/data/com.termux/files/usr/lib -I/data/data/com.termux/files/usr/include /home/builder/.termux-build/mesa/build/meson-private/tmp3ifi4kya/testfile.c -o /home/builder/.termux-build/mesa/build/meson-private/tmp3ifi4kya/output.exe -fstack-protector-strong -Oz -D__USE_GNU -D_FILE_OFFSET_BITS=64 -O0 -Werror=implicit-function-declaration -std=c11 -Wl,-rpath=/data/data/com.termux/files/usr/lib -fopenmp -static-openmp -fno-openmp-implicit-rpath -Wl,--enable-new-dtags -Wl,--as-needed -Wl,-z,relro,-z,now -landroid-shmem` -> 1
stderr:
ld.lld: error: undefined symbol: reallocarray
>>> referenced by testfile.c
>>>               /tmp/testfile-f88f03.o:(main)
clang-17: error: linker command failed with exit code 1 (use -v to see invocation)
-----------
Running compile:
Working directory:  /home/builder/.termux-build/mesa/build/meson-private/tmp9kxsodqu
Code:
 
        int main(void) {

        /* With some toolchains (MSYS2/mingw for example) the compiler
         * provides various builtins which are not really implemented and
         * fall back to the stdlib where they aren't provided and fail at
         * build/link time. In case the user provides a header, including
         * the header didn't lead to the function being defined, and the
         * function we are checking isn't a builtin itself we assume the
         * builtin is not functional and we just error out. */
        #if !1 && !defined(reallocarray) && !0
            #error "No definition for __builtin_reallocarray found in the prefix"
        #endif

        #ifdef __has_builtin
            #if !__has_builtin(__builtin_reallocarray)
                #error "__builtin_reallocarray not found"
            #endif
        #elif ! defined(reallocarray)
            __builtin_reallocarray;
        #endif
        return 0;
        }
-----------
Command line: `aarch64-linux-android-clang -L/data/data/com.termux/files/usr/lib -I/data/data/com.termux/files/usr/include /home/builder/.termux-build/mesa/build/meson-private/tmp9kxsodqu/testfile.c -o /home/builder/.termux-build/mesa/build/meson-private/tmp9kxsodqu/output.exe -fstack-protector-strong -Oz -D__USE_GNU -D_FILE_OFFSET_BITS=64 -O0 -Werror=implicit-function-declaration -std=c11 -Wl,-rpath=/data/data/com.termux/files/usr/lib -fopenmp -static-openmp -fno-openmp-implicit-rpath -Wl,--enable-new-dtags -Wl,--as-needed -Wl,-z,relro,-z,now -landroid-shmem` -> 1
stderr:
/home/builder/.termux-build/mesa/build/meson-private/tmp9kxsodqu/testfile.c:17:18: error: "__builtin_reallocarray not found"
                #error "__builtin_reallocarray not found"
                 ^
1 error generated.
-----------
Checking for function "reallocarray" : NO 
Running compile:
Working directory:  /home/builder/.termux-build/mesa/build/meson-private/tmpf6b4kj5i
Code:
 
        #define fmemopen meson_disable_define_of_fmemopen
        
        #include <limits.h>
        #undef fmemopen
        
        #ifdef __cplusplus
        extern "C"
        #endif
        char fmemopen (void);
        
        #if defined __stub_fmemopen || defined __stub___fmemopen
        fail fail fail this function is not going to work
        #endif
        
        int main(void) {
          return fmemopen ();
        }
-----------
Command line: `aarch64-linux-android-clang -L/data/data/com.termux/files/usr/lib -I/data/data/com.termux/files/usr/include /home/builder/.termux-build/mesa/build/meson-private/tmpf6b4kj5i/testfile.c -o /home/builder/.termux-build/mesa/build/meson-private/tmpf6b4kj5i/output.exe -fstack-protector-strong -Oz -D__USE_GNU -D_FILE_OFFSET_BITS=64 -O0 -Werror=implicit-function-declaration -std=c11 -Wl,-rpath=/data/data/com.termux/files/usr/lib -fopenmp -static-openmp -fno-openmp-implicit-rpath -Wl,--enable-new-dtags -Wl,--as-needed -Wl,-z,relro,-z,now -landroid-shmem` -> 0
Checking for function "fmemopen" : YES 
Running compile:
Working directory:  /home/builder/.termux-build/mesa/build/meson-private/tmpduvco_ch
Code:
 static char unused() { return 5; } int main() { return 0; }
-----------
Command line: `aarch64-linux-android-clang -L/data/data/com.termux/files/usr/lib -I/data/data/com.termux/files/usr/include /home/builder/.termux-build/mesa/build/meson-private/tmpduvco_ch/testfile.c -o /home/builder/.termux-build/mesa/build/meson-private/tmpduvco_ch/output.exe -fstack-protector-strong -Oz -D__USE_GNU -D_FILE_OFFSET_BITS=64 -O0 -Werror=implicit-function-declaration -std=c11 -Wl,--gc-sections -Wl,-rpath=/data/data/com.termux/files/usr/lib -fopenmp -static-openmp -fno-openmp-implicit-rpath -Wl,--enable-new-dtags -Wl,--as-needed -Wl,-z,relro,-z,now -landroid-shmem` -> 0
Checking if "gc-sections" : links: YES 
Running compile:
Working directory:  /home/builder/.termux-build/mesa/build/meson-private/tmplkw0zjuc
Code:
 extern int i;
int i;

-----------
Command line: `aarch64-linux-android-clang -I/data/data/com.termux/files/usr/include /home/builder/.termux-build/mesa/build/meson-private/tmplkw0zjuc/testfile.c -o /home/builder/.termux-build/mesa/build/meson-private/tmplkw0zjuc/output.obj -c -fstack-protector-strong -Oz -D__USE_GNU -D_FILE_OFFSET_BITS=64 -O0 -Werror=implicit-function-declaration -Werror=unknown-warning-option -Werror=unused-command-line-argument -Werror=ignored-optimization-argument -Werror=implicit-function-declaration` -> 0
Compiler for C supports arguments -Werror=implicit-function-declaration: YES 
Running compile:
Working directory:  /home/builder/.termux-build/mesa/build/meson-private/tmp24mdfct4
Code:
 extern int i;
int i;

-----------
Command line: `aarch64-linux-android-clang -I/data/data/com.termux/files/usr/include /home/builder/.termux-build/mesa/build/meson-private/tmp24mdfct4/testfile.c -o /home/builder/.termux-build/mesa/build/meson-private/tmp24mdfct4/output.obj -c -fstack-protector-strong -Oz -D__USE_GNU -D_FILE_OFFSET_BITS=64 -O0 -Werror=implicit-function-declaration -Werror=unknown-warning-option -Werror=unused-command-line-argument -Werror=ignored-optimization-argument -Werror=missing-prototypes` -> 0
Compiler for C supports arguments -Werror=missing-prototypes: YES 
Running compile:
Working directory:  /home/builder/.termux-build/mesa/build/meson-private/tmpdohvu1_1
Code:
 extern int i;
int i;

-----------
Command line: `aarch64-linux-android-clang -I/data/data/com.termux/files/usr/include /home/builder/.termux-build/mesa/build/meson-private/tmpdohvu1_1/testfile.c -o /home/builder/.termux-build/mesa/build/meson-private/tmpdohvu1_1/output.obj -c -fstack-protector-strong -Oz -D__USE_GNU -D_FILE_OFFSET_BITS=64 -O0 -Werror=implicit-function-declaration -Werror=unknown-warning-option -Werror=unused-command-line-argument -Werror=ignored-optimization-argument -Werror=return-type` -> 0
Compiler for C supports arguments -Werror=return-type: YES 
Running compile:
Working directory:  /home/builder/.termux-build/mesa/build/meson-private/tmpcboev26v
Code:
 extern int i;
int i;

-----------
Command line: `aarch64-linux-android-clang -I/data/data/com.termux/files/usr/include /home/builder/.termux-build/mesa/build/meson-private/tmpcboev26v/testfile.c -o /home/builder/.termux-build/mesa/build/meson-private/tmpcboev26v/output.obj -c -fstack-protector-strong -Oz -D__USE_GNU -D_FILE_OFFSET_BITS=64 -O0 -Werror=implicit-function-declaration -Werror=unknown-warning-option -Werror=unused-command-line-argument -Werror=ignored-optimization-argument -Werror=empty-body` -> 0
Compiler for C supports arguments -Werror=empty-body: YES 
Running compile:
Working directory:  /home/builder/.termux-build/mesa/build/meson-private/tmpvh8o92v0
Code:
 extern int i;
int i;

-----------
Command line: `aarch64-linux-android-clang -I/data/data/com.termux/files/usr/include /home/builder/.termux-build/mesa/build/meson-private/tmpvh8o92v0/testfile.c -o /home/builder/.termux-build/mesa/build/meson-private/tmpvh8o92v0/output.obj -c -fstack-protector-strong -Oz -D__USE_GNU -D_FILE_OFFSET_BITS=64 -O0 -Werror=implicit-function-declaration -Werror=unknown-warning-option -Werror=unused-command-line-argument -Werror=ignored-optimization-argument -Werror=incompatible-pointer-types` -> 0
Compiler for C supports arguments -Werror=incompatible-pointer-types: YES 
Running compile:
Working directory:  /home/builder/.termux-build/mesa/build/meson-private/tmp7b7lyjel
Code:
 extern int i;
int i;

-----------
Command line: `aarch64-linux-android-clang -I/data/data/com.termux/files/usr/include /home/builder/.termux-build/mesa/build/meson-private/tmp7b7lyjel/testfile.c -o /home/builder/.termux-build/mesa/build/meson-private/tmp7b7lyjel/output.obj -c -fstack-protector-strong -Oz -D__USE_GNU -D_FILE_OFFSET_BITS=64 -O0 -Werror=implicit-function-declaration -Werror=unknown-warning-option -Werror=unused-command-line-argument -Werror=ignored-optimization-argument -Werror=int-conversion` -> 0
Compiler for C supports arguments -Werror=int-conversion: YES 
Running compile:
Working directory:  /home/builder/.termux-build/mesa/build/meson-private/tmp9ysnjxya
Code:
 extern int i;
int i;

-----------
Command line: `aarch64-linux-android-clang -I/data/data/com.termux/files/usr/include /home/builder/.termux-build/mesa/build/meson-private/tmp9ysnjxya/testfile.c -o /home/builder/.termux-build/mesa/build/meson-private/tmp9ysnjxya/output.obj -c -fstack-protector-strong -Oz -D__USE_GNU -D_FILE_OFFSET_BITS=64 -O0 -Werror=implicit-function-declaration -Werror=unknown-warning-option -Werror=unused-command-line-argument -Werror=ignored-optimization-argument -Wimplicit-fallthrough` -> 0
Compiler for C supports arguments -Wimplicit-fallthrough: YES 
Running compile:
Working directory:  /home/builder/.termux-build/mesa/build/meson-private/tmphq5n2uvb
Code:
 extern int i;
int i;

-----------
Command line: `aarch64-linux-android-clang -I/data/data/com.termux/files/usr/include /home/builder/.termux-build/mesa/build/meson-private/tmphq5n2uvb/testfile.c -o /home/builder/.termux-build/mesa/build/meson-private/tmphq5n2uvb/output.obj -c -fstack-protector-strong -Oz -D__USE_GNU -D_FILE_OFFSET_BITS=64 -O0 -Werror=implicit-function-declaration -Werror=unknown-warning-option -Werror=unused-command-line-argument -Werror=ignored-optimization-argument -Wmisleading-indentation` -> 0
Compiler for C supports arguments -Wmisleading-indentation: YES 
Running compile:
Working directory:  /home/builder/.termux-build/mesa/build/meson-private/tmpuy052goh
Code:
 extern int i;
int i;

-----------
Command line: `aarch64-linux-android-clang -I/data/data/com.termux/files/usr/include /home/builder/.termux-build/mesa/build/meson-private/tmpuy052goh/testfile.c -o /home/builder/.termux-build/mesa/build/meson-private/tmpuy052goh/output.obj -c -fstack-protector-strong -Oz -D__USE_GNU -D_FILE_OFFSET_BITS=64 -O0 -Werror=implicit-function-declaration -Werror=unknown-warning-option -Werror=unused-command-line-argument -Werror=ignored-optimization-argument -Wmissing-field-initializers -Wno-missing-field-initializers` -> 0
Compiler for C supports arguments -Wno-missing-field-initializers: YES 
Running compile:
Working directory:  /home/builder/.termux-build/mesa/build/meson-private/tmpthtdo22f
Code:
 extern int i;
int i;

-----------
Command line: `aarch64-linux-android-clang -I/data/data/com.termux/files/usr/include /home/builder/.termux-build/mesa/build/meson-private/tmpthtdo22f/testfile.c -o /home/builder/.termux-build/mesa/build/meson-private/tmpthtdo22f/output.obj -c -fstack-protector-strong -Oz -D__USE_GNU -D_FILE_OFFSET_BITS=64 -O0 -Werror=implicit-function-declaration -Werror=unknown-warning-option -Werror=unused-command-line-argument -Werror=ignored-optimization-argument -Wformat-truncation -Wno-format-truncation` -> 1
stderr:
error: unknown warning option '-Wformat-truncation' [-Werror,-Wunknown-warning-option]
error: unknown warning option '-Wno-format-truncation' [-Werror,-Wunknown-warning-option]
-----------
Compiler for C supports arguments -Wno-format-truncation: NO 
Running compile:
Working directory:  /home/builder/.termux-build/mesa/build/meson-private/tmppzecybg6
Code:
 extern int i;
int i;

-----------
Command line: `aarch64-linux-android-clang -I/data/data/com.termux/files/usr/include /home/builder/.termux-build/mesa/build/meson-private/tmppzecybg6/testfile.c -o /home/builder/.termux-build/mesa/build/meson-private/tmppzecybg6/output.obj -c -fstack-protector-strong -Oz -D__USE_GNU -D_FILE_OFFSET_BITS=64 -O0 -Werror=implicit-function-declaration -Werror=unknown-warning-option -Werror=unused-command-line-argument -Werror=ignored-optimization-argument -Wnonnull-compare -Wno-nonnull-compare` -> 1
stderr:
error: unknown warning option '-Wnonnull-compare' [-Werror,-Wunknown-warning-option]
error: unknown warning option '-Wno-nonnull-compare' [-Werror,-Wunknown-warning-option]
-----------
Compiler for C supports arguments -Wno-nonnull-compare: NO 
Running compile:
Working directory:  /home/builder/.termux-build/mesa/build/meson-private/tmpvi9tkfz5
Code:
 extern int i;
int i;

-----------
Command line: `aarch64-linux-android-clang -I/data/data/com.termux/files/usr/include /home/builder/.termux-build/mesa/build/meson-private/tmpvi9tkfz5/testfile.c -o /home/builder/.termux-build/mesa/build/meson-private/tmpvi9tkfz5/output.obj -c -fstack-protector-strong -Oz -D__USE_GNU -D_FILE_OFFSET_BITS=64 -O0 -Werror=implicit-function-declaration -Werror=unknown-warning-option -Werror=unused-command-line-argument -Werror=ignored-optimization-argument -fno-math-errno` -> 0
Compiler for C supports arguments -fno-math-errno: YES 
Running compile:
Working directory:  /home/builder/.termux-build/mesa/build/meson-private/tmpy7ue2z7h
Code:
 extern int i;
int i;

-----------
Command line: `aarch64-linux-android-clang -I/data/data/com.termux/files/usr/include /home/builder/.termux-build/mesa/build/meson-private/tmpy7ue2z7h/testfile.c -o /home/builder/.termux-build/mesa/build/meson-private/tmpy7ue2z7h/output.obj -c -fstack-protector-strong -Oz -D__USE_GNU -D_FILE_OFFSET_BITS=64 -O0 -Werror=implicit-function-declaration -Werror=unknown-warning-option -Werror=unused-command-line-argument -Werror=ignored-optimization-argument -fno-trapping-math` -> 0
Compiler for C supports arguments -fno-trapping-math: YES 
Running compile:
Working directory:  /home/builder/.termux-build/mesa/build/meson-private/tmplkpa9i1w
Code:
 extern int i;
int i;

-----------
Command line: `aarch64-linux-android-clang -I/data/data/com.termux/files/usr/include /home/builder/.termux-build/mesa/build/meson-private/tmplkpa9i1w/testfile.c -o /home/builder/.termux-build/mesa/build/meson-private/tmplkpa9i1w/output.obj -c -fstack-protector-strong -Oz -D__USE_GNU -D_FILE_OFFSET_BITS=64 -O0 -Werror=implicit-function-declaration -Werror=unknown-warning-option -Werror=unused-command-line-argument -Werror=ignored-optimization-argument -Qunused-arguments` -> 0
Compiler for C supports arguments -Qunused-arguments: YES 
Running compile:
Working directory:  /home/builder/.termux-build/mesa/build/meson-private/tmpnbw28tw2
Code:
 extern int i;
int i;

-----------
Command line: `aarch64-linux-android-clang -I/data/data/com.termux/files/usr/include /home/builder/.termux-build/mesa/build/meson-private/tmpnbw28tw2/testfile.c -o /home/builder/.termux-build/mesa/build/meson-private/tmpnbw28tw2/output.obj -c -fstack-protector-strong -Oz -D__USE_GNU -D_FILE_OFFSET_BITS=64 -O0 -Werror=implicit-function-declaration -Werror=unknown-warning-option -Werror=unused-command-line-argument -Werror=ignored-optimization-argument -fno-common` -> 0
Compiler for C supports arguments -fno-common: YES 
Running compile:
Working directory:  /home/builder/.termux-build/mesa/build/meson-private/tmpd8hrtfam
Code:
 extern int i;
int i;

-----------
Command line: `aarch64-linux-android-clang -I/data/data/com.termux/files/usr/include /home/builder/.termux-build/mesa/build/meson-private/tmpd8hrtfam/testfile.c -o /home/builder/.termux-build/mesa/build/meson-private/tmpd8hrtfam/output.obj -c -fstack-protector-strong -Oz -D__USE_GNU -D_FILE_OFFSET_BITS=64 -O0 -Werror=implicit-function-declaration -Werror=unknown-warning-option -Werror=unused-command-line-argument -Werror=ignored-optimization-argument -Wunknown-pragmas -Wno-unknown-pragmas` -> 0
Compiler for C supports arguments -Wno-unknown-pragmas: YES 
Running compile:
Working directory:  /home/builder/.termux-build/mesa/build/meson-private/tmpo1qbcoyz
Code:
 extern int i;
int i;

-----------
Command line: `aarch64-linux-android-clang -I/data/data/com.termux/files/usr/include /home/builder/.termux-build/mesa/build/meson-private/tmpo1qbcoyz/testfile.c -o /home/builder/.termux-build/mesa/build/meson-private/tmpo1qbcoyz/output.obj -c -fstack-protector-strong -Oz -D__USE_GNU -D_FILE_OFFSET_BITS=64 -O0 -Werror=implicit-function-declaration -Werror=unknown-warning-option -Werror=unused-command-line-argument -Werror=ignored-optimization-argument -Wmicrosoft-enum-value -Wno-microsoft-enum-value` -> 0
Compiler for C supports arguments -Wno-microsoft-enum-value: YES 
Running compile:
Working directory:  /home/builder/.termux-build/mesa/build/meson-private/tmpzkm_kxxo
Code:
 extern int i;
int i;

-----------
Command line: `aarch64-linux-android-clang -I/data/data/com.termux/files/usr/include /home/builder/.termux-build/mesa/build/meson-private/tmpzkm_kxxo/testfile.c -o /home/builder/.termux-build/mesa/build/meson-private/tmpzkm_kxxo/output.obj -c -fstack-protector-strong -Oz -D__USE_GNU -D_FILE_OFFSET_BITS=64 -O0 -Werror=implicit-function-declaration -Werror=unknown-warning-option -Werror=unused-command-line-argument -Werror=ignored-optimization-argument -Wunused-function -Wno-unused-function` -> 0
Compiler for C supports arguments -Wno-unused-function: YES 
Running compile:
Working directory:  /home/builder/.termux-build/mesa/build/meson-private/tmptcz4b5g7
Code:
 extern int i;
int i;

-----------
Command line: `aarch64-linux-android-clang -I/data/data/com.termux/files/usr/include /home/builder/.termux-build/mesa/build/meson-private/tmptcz4b5g7/testfile.c -o /home/builder/.termux-build/mesa/build/meson-private/tmptcz4b5g7/output.obj -c -fstack-protector-strong -Oz -D__USE_GNU -D_FILE_OFFSET_BITS=64 -O0 -Werror=implicit-function-declaration -Werror=unknown-warning-option -Werror=unused-command-line-argument -Werror=ignored-optimization-argument -Werror=format` -> 0
Compiler for C supports arguments -Werror=format: YES 
Running compile:
Working directory:  /home/builder/.termux-build/mesa/build/meson-private/tmpkw85u9wr
Code:
 extern int i;
int i;

-----------
Command line: `aarch64-linux-android-clang -I/data/data/com.termux/files/usr/include /home/builder/.termux-build/mesa/build/meson-private/tmpkw85u9wr/testfile.c -o /home/builder/.termux-build/mesa/build/meson-private/tmpkw85u9wr/output.obj -c -fstack-protector-strong -Oz -D__USE_GNU -D_FILE_OFFSET_BITS=64 -O0 -Werror=implicit-function-declaration -Werror=unknown-warning-option -Werror=unused-command-line-argument -Werror=ignored-optimization-argument -Wformat-security` -> 0
Compiler for C supports arguments -Wformat-security: YES 
Running compile:
Working directory:  /home/builder/.termux-build/mesa/build/meson-private/tmp29zmvkt1
Code:
 extern int i;
int i;

-----------
Command line: `aarch64-linux-android-clang -I/data/data/com.termux/files/usr/include /home/builder/.termux-build/mesa/build/meson-private/tmp29zmvkt1/testfile.c -o /home/builder/.termux-build/mesa/build/meson-private/tmp29zmvkt1/output.obj -c -fstack-protector-strong -Oz -D__USE_GNU -D_FILE_OFFSET_BITS=64 -O0 -Werror=implicit-function-declaration -Werror=unknown-warning-option -Werror=unused-command-line-argument -Werror=ignored-optimization-argument -Werror=thread-safety` -> 0
Compiler for C supports arguments -Werror=thread-safety: YES 
Running compile:
Working directory:  /home/builder/.termux-build/mesa/build/meson-private/tmp9zs1ufr4
Code:
 extern int i;
int i;

-----------
Command line: `aarch64-linux-android-clang -I/data/data/com.termux/files/usr/include /home/builder/.termux-build/mesa/build/meson-private/tmp9zs1ufr4/testfile.c -o /home/builder/.termux-build/mesa/build/meson-private/tmp9zs1ufr4/output.obj -c -fstack-protector-strong -Oz -D__USE_GNU -D_FILE_OFFSET_BITS=64 -O0 -Werror=implicit-function-declaration -Werror=unknown-warning-option -Werror=unused-command-line-argument -Werror=ignored-optimization-argument -ffunction-sections` -> 0
Compiler for C supports arguments -ffunction-sections: YES 
Running compile:
Working directory:  /home/builder/.termux-build/mesa/build/meson-private/tmpgm9ao9ra
Code:
 extern int i;
int i;

-----------
Command line: `aarch64-linux-android-clang -I/data/data/com.termux/files/usr/include /home/builder/.termux-build/mesa/build/meson-private/tmpgm9ao9ra/testfile.c -o /home/builder/.termux-build/mesa/build/meson-private/tmpgm9ao9ra/output.obj -c -fstack-protector-strong -Oz -D__USE_GNU -D_FILE_OFFSET_BITS=64 -O0 -Werror=implicit-function-declaration -Werror=unknown-warning-option -Werror=unused-command-line-argument -Werror=ignored-optimization-argument -fdata-sections` -> 0
Compiler for C supports arguments -fdata-sections: YES 
Running compile:
Working directory:  /home/builder/.termux-build/mesa/build/meson-private/tmp3d4jvvyl
Code:
 extern int i;
int i;

-----------
Command line: `aarch64-linux-android-clang++ -I/data/data/com.termux/files/usr/include /home/builder/.termux-build/mesa/build/meson-private/tmp3d4jvvyl/testfile.cpp -o /home/builder/.termux-build/mesa/build/meson-private/tmp3d4jvvyl/output.obj -c -fstack-protector-strong -Oz -D__USE_GNU -D_FILE_OFFSET_BITS=64 -O0 -fpermissive -Werror=implicit-function-declaration -Werror=unknown-warning-option -Werror=unused-command-line-argument -Werror=ignored-optimization-argument -Werror=return-type` -> 0
Compiler for C++ supports arguments -Werror=return-type: YES 
Running compile:
Working directory:  /home/builder/.termux-build/mesa/build/meson-private/tmp5w4calb4
Code:
 extern int i;
int i;

-----------
Command line: `aarch64-linux-android-clang++ -I/data/data/com.termux/files/usr/include /home/builder/.termux-build/mesa/build/meson-private/tmp5w4calb4/testfile.cpp -o /home/builder/.termux-build/mesa/build/meson-private/tmp5w4calb4/output.obj -c -fstack-protector-strong -Oz -D__USE_GNU -D_FILE_OFFSET_BITS=64 -O0 -fpermissive -Werror=implicit-function-declaration -Werror=unknown-warning-option -Werror=unused-command-line-argument -Werror=ignored-optimization-argument -Werror=empty-body` -> 0
Compiler for C++ supports arguments -Werror=empty-body: YES 
Running compile:
Working directory:  /home/builder/.termux-build/mesa/build/meson-private/tmp3n8hd8bb
Code:
 extern int i;
int i;

-----------
Command line: `aarch64-linux-android-clang++ -I/data/data/com.termux/files/usr/include /home/builder/.termux-build/mesa/build/meson-private/tmp3n8hd8bb/testfile.cpp -o /home/builder/.termux-build/mesa/build/meson-private/tmp3n8hd8bb/output.obj -c -fstack-protector-strong -Oz -D__USE_GNU -D_FILE_OFFSET_BITS=64 -O0 -fpermissive -Werror=implicit-function-declaration -Werror=unknown-warning-option -Werror=unused-command-line-argument -Werror=ignored-optimization-argument -Wmisleading-indentation` -> 0
Compiler for C++ supports arguments -Wmisleading-indentation: YES 
Running compile:
Working directory:  /home/builder/.termux-build/mesa/build/meson-private/tmp8j9lkd7n
Code:
 extern int i;
int i;

-----------
Command line: `aarch64-linux-android-clang++ -I/data/data/com.termux/files/usr/include /home/builder/.termux-build/mesa/build/meson-private/tmp8j9lkd7n/testfile.cpp -o /home/builder/.termux-build/mesa/build/meson-private/tmp8j9lkd7n/output.obj -c -fstack-protector-strong -Oz -D__USE_GNU -D_FILE_OFFSET_BITS=64 -O0 -fpermissive -Werror=implicit-function-declaration -Werror=unknown-warning-option -Werror=unused-command-line-argument -Werror=ignored-optimization-argument -Wnon-virtual-dtor -Wno-non-virtual-dtor` -> 0
Compiler for C++ supports arguments -Wno-non-virtual-dtor: YES 
Running compile:
Working directory:  /home/builder/.termux-build/mesa/build/meson-private/tmp5n2lsepx
Code:
 extern int i;
int i;

-----------
Command line: `aarch64-linux-android-clang++ -I/data/data/com.termux/files/usr/include /home/builder/.termux-build/mesa/build/meson-private/tmp5n2lsepx/testfile.cpp -o /home/builder/.termux-build/mesa/build/meson-private/tmp5n2lsepx/output.obj -c -fstack-protector-strong -Oz -D__USE_GNU -D_FILE_OFFSET_BITS=64 -O0 -fpermissive -Werror=implicit-function-declaration -Werror=unknown-warning-option -Werror=unused-command-line-argument -Werror=ignored-optimization-argument -Wmissing-field-initializers -Wno-missing-field-initializers` -> 0
Compiler for C++ supports arguments -Wno-missing-field-initializers: YES 
Running compile:
Working directory:  /home/builder/.termux-build/mesa/build/meson-private/tmpfy10j8nz
Code:
 extern int i;
int i;

-----------
Command line: `aarch64-linux-android-clang++ -I/data/data/com.termux/files/usr/include /home/builder/.termux-build/mesa/build/meson-private/tmpfy10j8nz/testfile.cpp -o /home/builder/.termux-build/mesa/build/meson-private/tmpfy10j8nz/output.obj -c -fstack-protector-strong -Oz -D__USE_GNU -D_FILE_OFFSET_BITS=64 -O0 -fpermissive -Werror=implicit-function-declaration -Werror=unknown-warning-option -Werror=unused-command-line-argument -Werror=ignored-optimization-argument -Wformat-truncation -Wno-format-truncation` -> 1
stderr:
error: unknown warning option '-Wformat-truncation' [-Werror,-Wunknown-warning-option]
error: unknown warning option '-Wno-format-truncation' [-Werror,-Wunknown-warning-option]
-----------
Compiler for C++ supports arguments -Wno-format-truncation: NO 
Running compile:
Working directory:  /home/builder/.termux-build/mesa/build/meson-private/tmpns5wl9mj
Code:
 extern int i;
int i;

-----------
Command line: `aarch64-linux-android-clang++ -I/data/data/com.termux/files/usr/include /home/builder/.termux-build/mesa/build/meson-private/tmpns5wl9mj/testfile.cpp -o /home/builder/.termux-build/mesa/build/meson-private/tmpns5wl9mj/output.obj -c -fstack-protector-strong -Oz -D__USE_GNU -D_FILE_OFFSET_BITS=64 -O0 -fpermissive -Werror=implicit-function-declaration -Werror=unknown-warning-option -Werror=unused-command-line-argument -Werror=ignored-optimization-argument -fno-math-errno` -> 0
Compiler for C++ supports arguments -fno-math-errno: YES 
Running compile:
Working directory:  /home/builder/.termux-build/mesa/build/meson-private/tmpi1qj23ie
Code:
 extern int i;
int i;

-----------
Command line: `aarch64-linux-android-clang++ -I/data/data/com.termux/files/usr/include /home/builder/.termux-build/mesa/build/meson-private/tmpi1qj23ie/testfile.cpp -o /home/builder/.termux-build/mesa/build/meson-private/tmpi1qj23ie/output.obj -c -fstack-protector-strong -Oz -D__USE_GNU -D_FILE_OFFSET_BITS=64 -O0 -fpermissive -Werror=implicit-function-declaration -Werror=unknown-warning-option -Werror=unused-command-line-argument -Werror=ignored-optimization-argument -fno-trapping-math` -> 0
Compiler for C++ supports arguments -fno-trapping-math: YES 
Running compile:
Working directory:  /home/builder/.termux-build/mesa/build/meson-private/tmp2veuwo82
Code:
 extern int i;
int i;

-----------
Command line: `aarch64-linux-android-clang++ -I/data/data/com.termux/files/usr/include /home/builder/.termux-build/mesa/build/meson-private/tmp2veuwo82/testfile.cpp -o /home/builder/.termux-build/mesa/build/meson-private/tmp2veuwo82/output.obj -c -fstack-protector-strong -Oz -D__USE_GNU -D_FILE_OFFSET_BITS=64 -O0 -fpermissive -Werror=implicit-function-declaration -Werror=unknown-warning-option -Werror=unused-command-line-argument -Werror=ignored-optimization-argument -Qunused-arguments` -> 0
Compiler for C++ supports arguments -Qunused-arguments: YES 
Running compile:
Working directory:  /home/builder/.termux-build/mesa/build/meson-private/tmped7tn6h6
Code:
 extern int i;
int i;

-----------
Command line: `aarch64-linux-android-clang++ -I/data/data/com.termux/files/usr/include /home/builder/.termux-build/mesa/build/meson-private/tmped7tn6h6/testfile.cpp -o /home/builder/.termux-build/mesa/build/meson-private/tmped7tn6h6/output.obj -c -fstack-protector-strong -Oz -D__USE_GNU -D_FILE_OFFSET_BITS=64 -O0 -fpermissive -Werror=implicit-function-declaration -Werror=unknown-warning-option -Werror=unused-command-line-argument -Werror=ignored-optimization-argument -flifetime-dse=1` -> 1
stderr:
clang-17: error: unknown argument: '-flifetime-dse=1'
-----------
Compiler for C++ supports arguments -flifetime-dse=1: NO 
Running compile:
Working directory:  /home/builder/.termux-build/mesa/build/meson-private/tmpw95nm9yf
Code:
 extern int i;
int i;

-----------
Command line: `aarch64-linux-android-clang++ -I/data/data/com.termux/files/usr/include /home/builder/.termux-build/mesa/build/meson-private/tmpw95nm9yf/testfile.cpp -o /home/builder/.termux-build/mesa/build/meson-private/tmpw95nm9yf/output.obj -c -fstack-protector-strong -Oz -D__USE_GNU -D_FILE_OFFSET_BITS=64 -O0 -fpermissive -Werror=implicit-function-declaration -Werror=unknown-warning-option -Werror=unused-command-line-argument -Werror=ignored-optimization-argument -Wunknown-pragmas -Wno-unknown-pragmas` -> 0
Compiler for C++ supports arguments -Wno-unknown-pragmas: YES 
Running compile:
Working directory:  /home/builder/.termux-build/mesa/build/meson-private/tmppmxo0bdf
Code:
 extern int i;
int i;

-----------
Command line: `aarch64-linux-android-clang++ -I/data/data/com.termux/files/usr/include /home/builder/.termux-build/mesa/build/meson-private/tmppmxo0bdf/testfile.cpp -o /home/builder/.termux-build/mesa/build/meson-private/tmppmxo0bdf/output.obj -c -fstack-protector-strong -Oz -D__USE_GNU -D_FILE_OFFSET_BITS=64 -O0 -fpermissive -Werror=implicit-function-declaration -Werror=unknown-warning-option -Werror=unused-command-line-argument -Werror=ignored-optimization-argument -Wmicrosoft-enum-value -Wno-microsoft-enum-value` -> 0
Compiler for C++ supports arguments -Wno-microsoft-enum-value: YES 
Running compile:
Working directory:  /home/builder/.termux-build/mesa/build/meson-private/tmp63sufp5y
Code:
 extern int i;
int i;

-----------
Command line: `aarch64-linux-android-clang++ -I/data/data/com.termux/files/usr/include /home/builder/.termux-build/mesa/build/meson-private/tmp63sufp5y/testfile.cpp -o /home/builder/.termux-build/mesa/build/meson-private/tmp63sufp5y/output.obj -c -fstack-protector-strong -Oz -D__USE_GNU -D_FILE_OFFSET_BITS=64 -O0 -fpermissive -Werror=implicit-function-declaration -Werror=unknown-warning-option -Werror=unused-command-line-argument -Werror=ignored-optimization-argument -Werror=format` -> 0
Compiler for C++ supports arguments -Werror=format: YES 
Running compile:
Working directory:  /home/builder/.termux-build/mesa/build/meson-private/tmp5ebzzsz8
Code:
 extern int i;
int i;

-----------
Command line: `aarch64-linux-android-clang++ -I/data/data/com.termux/files/usr/include /home/builder/.termux-build/mesa/build/meson-private/tmp5ebzzsz8/testfile.cpp -o /home/builder/.termux-build/mesa/build/meson-private/tmp5ebzzsz8/output.obj -c -fstack-protector-strong -Oz -D__USE_GNU -D_FILE_OFFSET_BITS=64 -O0 -fpermissive -Werror=implicit-function-declaration -Werror=unknown-warning-option -Werror=unused-command-line-argument -Werror=ignored-optimization-argument -Wformat-security` -> 0
Compiler for C++ supports arguments -Wformat-security: YES 
Running compile:
Working directory:  /home/builder/.termux-build/mesa/build/meson-private/tmp87mlpr9_
Code:
 extern int i;
int i;

-----------
Command line: `aarch64-linux-android-clang++ -I/data/data/com.termux/files/usr/include /home/builder/.termux-build/mesa/build/meson-private/tmp87mlpr9_/testfile.cpp -o /home/builder/.termux-build/mesa/build/meson-private/tmp87mlpr9_/output.obj -c -fstack-protector-strong -Oz -D__USE_GNU -D_FILE_OFFSET_BITS=64 -O0 -fpermissive -Werror=implicit-function-declaration -Werror=unknown-warning-option -Werror=unused-command-line-argument -Werror=ignored-optimization-argument -ffunction-sections` -> 0
Compiler for C++ supports arguments -ffunction-sections: YES 
Running compile:
Working directory:  /home/builder/.termux-build/mesa/build/meson-private/tmput1a9cba
Code:
 extern int i;
int i;

-----------
Command line: `aarch64-linux-android-clang++ -I/data/data/com.termux/files/usr/include /home/builder/.termux-build/mesa/build/meson-private/tmput1a9cba/testfile.cpp -o /home/builder/.termux-build/mesa/build/meson-private/tmput1a9cba/output.obj -c -fstack-protector-strong -Oz -D__USE_GNU -D_FILE_OFFSET_BITS=64 -O0 -fpermissive -Werror=implicit-function-declaration -Werror=unknown-warning-option -Werror=unused-command-line-argument -Werror=ignored-optimization-argument -fdata-sections` -> 0
Compiler for C++ supports arguments -fdata-sections: YES 
Running compile:
Working directory:  /home/builder/.termux-build/mesa/build/meson-private/tmp5zzob5c1
Code:
 extern int i;
int i;

-----------
Command line: `aarch64-linux-android-clang -I/data/data/com.termux/files/usr/include /home/builder/.termux-build/mesa/build/meson-private/tmp5zzob5c1/testfile.c -o /home/builder/.termux-build/mesa/build/meson-private/tmp5zzob5c1/output.obj -c -fstack-protector-strong -Oz -D__USE_GNU -D_FILE_OFFSET_BITS=64 -O0 -Werror=implicit-function-declaration -Werror=unknown-warning-option -Werror=unused-command-line-argument -Werror=ignored-optimization-argument -Woverride-init -Wno-override-init` -> 0
Compiler for C supports arguments -Wno-override-init: YES 
Running compile:
Working directory:  /home/builder/.termux-build/mesa/build/meson-private/tmphz4abw9m
Code:
 extern int i;
int i;

-----------
Command line: `aarch64-linux-android-clang -I/data/data/com.termux/files/usr/include /home/builder/.termux-build/mesa/build/meson-private/tmphz4abw9m/testfile.c -o /home/builder/.termux-build/mesa/build/meson-private/tmphz4abw9m/output.obj -c -fstack-protector-strong -Oz -D__USE_GNU -D_FILE_OFFSET_BITS=64 -O0 -Werror=implicit-function-declaration -Werror=unknown-warning-option -Werror=unused-command-line-argument -Werror=ignored-optimization-argument -Winitializer-overrides -Wno-initializer-overrides` -> 0
Compiler for C supports arguments -Wno-initializer-overrides: YES 
Running compile:
Working directory:  /home/builder/.termux-build/mesa/build/meson-private/tmp_28kitr2
Code:
 extern int i;
int i;

-----------
Command line: `aarch64-linux-android-clang -I/data/data/com.termux/files/usr/include /home/builder/.termux-build/mesa/build/meson-private/tmp_28kitr2/testfile.c -o /home/builder/.termux-build/mesa/build/meson-private/tmp_28kitr2/output.obj -c -fstack-protector-strong -Oz -D__USE_GNU -D_FILE_OFFSET_BITS=64 -O0 -Werror=implicit-function-declaration -Werror=unknown-warning-option -Werror=unused-command-line-argument -Werror=ignored-optimization-argument -Werror=pointer-arith` -> 0
Compiler for C supports arguments -Werror=pointer-arith: YES 
Running compile:
Working directory:  /home/builder/.termux-build/mesa/build/meson-private/tmp8yka7itd
Code:
 extern int i;
int i;

-----------
Command line: `aarch64-linux-android-clang -I/data/data/com.termux/files/usr/include /home/builder/.termux-build/mesa/build/meson-private/tmp8yka7itd/testfile.c -o /home/builder/.termux-build/mesa/build/meson-private/tmp8yka7itd/output.obj -c -fstack-protector-strong -Oz -D__USE_GNU -D_FILE_OFFSET_BITS=64 -O0 -Werror=implicit-function-declaration -Werror=unknown-warning-option -Werror=unused-command-line-argument -Werror=ignored-optimization-argument -Werror=vla` -> 0
Compiler for C supports arguments -Werror=vla: YES 
Running compile:
Working directory:  /home/builder/.termux-build/mesa/build/meson-private/tmp2l912zm6
Code:
 extern int i;
int i;

-----------
Command line: `aarch64-linux-android-clang -I/data/data/com.termux/files/usr/include /home/builder/.termux-build/mesa/build/meson-private/tmp2l912zm6/testfile.c -o /home/builder/.termux-build/mesa/build/meson-private/tmp2l912zm6/output.obj -c -fstack-protector-strong -Oz -D__USE_GNU -D_FILE_OFFSET_BITS=64 -O0 -Werror=implicit-function-declaration -Werror=unknown-warning-option -Werror=unused-command-line-argument -Werror=ignored-optimization-argument -Werror=gnu-empty-initializer` -> 0
Compiler for C supports arguments -Werror=gnu-empty-initializer: YES 
Running compile:
Working directory:  /home/builder/.termux-build/mesa/build/meson-private/tmp6_p7rnam
Code:
 extern int i;
int i;

-----------
Command line: `aarch64-linux-android-clang++ -I/data/data/com.termux/files/usr/include /home/builder/.termux-build/mesa/build/meson-private/tmp6_p7rnam/testfile.cpp -o /home/builder/.termux-build/mesa/build/meson-private/tmp6_p7rnam/output.obj -c -fstack-protector-strong -Oz -D__USE_GNU -D_FILE_OFFSET_BITS=64 -O0 -fpermissive -Werror=implicit-function-declaration -Werror=unknown-warning-option -Werror=unused-command-line-argument -Werror=ignored-optimization-argument -Werror=pointer-arith` -> 0
Compiler for C++ supports arguments -Werror=pointer-arith: YES 
Running compile:
Working directory:  /home/builder/.termux-build/mesa/build/meson-private/tmpck581wf7
Code:
 extern int i;
int i;

-----------
Command line: `aarch64-linux-android-clang++ -I/data/data/com.termux/files/usr/include /home/builder/.termux-build/mesa/build/meson-private/tmpck581wf7/testfile.cpp -o /home/builder/.termux-build/mesa/build/meson-private/tmpck581wf7/output.obj -c -fstack-protector-strong -Oz -D__USE_GNU -D_FILE_OFFSET_BITS=64 -O0 -fpermissive -Werror=implicit-function-declaration -Werror=unknown-warning-option -Werror=unused-command-line-argument -Werror=ignored-optimization-argument -Werror=vla` -> 0
Compiler for C++ supports arguments -Werror=vla: YES 
Running compile:
Working directory:  /home/builder/.termux-build/mesa/build/meson-private/tmp2hr6w6cx
Code:
 extern int i;
int i;

-----------
Command line: `aarch64-linux-android-clang++ -I/data/data/com.termux/files/usr/include /home/builder/.termux-build/mesa/build/meson-private/tmp2hr6w6cx/testfile.cpp -o /home/builder/.termux-build/mesa/build/meson-private/tmp2hr6w6cx/output.obj -c -fstack-protector-strong -Oz -D__USE_GNU -D_FILE_OFFSET_BITS=64 -O0 -fpermissive -Werror=implicit-function-declaration -Werror=unknown-warning-option -Werror=unused-command-line-argument -Werror=ignored-optimization-argument -Werror=gnu-empty-initializer` -> 0
Compiler for C++ supports arguments -Werror=gnu-empty-initializer: YES 
Running compile:
Working directory:  /home/builder/.termux-build/mesa/build/meson-private/tmpy3u9sz9c
Code:
 
        #define __builtin_ia32_clflushopt meson_disable_define_of___builtin_ia32_clflushopt
        
        #include <limits.h>
        #undef __builtin_ia32_clflushopt
        
        #ifdef __cplusplus
        extern "C"
        #endif
        char __builtin_ia32_clflushopt (void);
        
        #if defined __stub___builtin_ia32_clflushopt || defined __stub_____builtin_ia32_clflushopt
        fail fail fail this function is not going to work
        #endif
        
        int main(void) {
          return __builtin_ia32_clflushopt ();
        }
-----------
Command line: `aarch64-linux-android-clang -L/data/data/com.termux/files/usr/lib -I/data/data/com.termux/files/usr/include /home/builder/.termux-build/mesa/build/meson-private/tmpy3u9sz9c/testfile.c -o /home/builder/.termux-build/mesa/build/meson-private/tmpy3u9sz9c/output.exe -fstack-protector-strong -Oz -D__USE_GNU -D_FILE_OFFSET_BITS=64 -O0 -Werror=implicit-function-declaration -std=c11 -mclflushopt -Wl,-rpath=/data/data/com.termux/files/usr/lib -fopenmp -static-openmp -fno-openmp-implicit-rpath -Wl,--enable-new-dtags -Wl,--as-needed -Wl,-z,relro,-z,now -landroid-shmem` -> 1
stderr:
ld.lld: error: undefined symbol: __builtin_ia32_clflushopt
>>> referenced by testfile.c
>>>               /tmp/testfile-d32f64.o:(main)
clang-17: error: linker command failed with exit code 1 (use -v to see invocation)
-----------
Running compile:
Working directory:  /home/builder/.termux-build/mesa/build/meson-private/tmpuk48_cjk
Code:
 
        int main(void) {

        /* With some toolchains (MSYS2/mingw for example) the compiler
         * provides various builtins which are not really implemented and
         * fall back to the stdlib where they aren't provided and fail at
         * build/link time. In case the user provides a header, including
         * the header didn't lead to the function being defined, and the
         * function we are checking isn't a builtin itself we assume the
         * builtin is not functional and we just error out. */
        #if !1 && !defined(__builtin_ia32_clflushopt) && !1
            #error "No definition for __builtin_ia32_clflushopt found in the prefix"
        #endif

        #ifdef __has_builtin
            #if !__has_builtin(__builtin_ia32_clflushopt)
                #error "__builtin_ia32_clflushopt not found"
            #endif
        #elif ! defined(__builtin_ia32_clflushopt)
            __builtin_ia32_clflushopt;
        #endif
        return 0;
        }
-----------
Command line: `aarch64-linux-android-clang -L/data/data/com.termux/files/usr/lib -I/data/data/com.termux/files/usr/include /home/builder/.termux-build/mesa/build/meson-private/tmpuk48_cjk/testfile.c -o /home/builder/.termux-build/mesa/build/meson-private/tmpuk48_cjk/output.exe -fstack-protector-strong -Oz -D__USE_GNU -D_FILE_OFFSET_BITS=64 -O0 -Werror=implicit-function-declaration -std=c11 -mclflushopt -Wl,-rpath=/data/data/com.termux/files/usr/lib -fopenmp -static-openmp -fno-openmp-implicit-rpath -Wl,--enable-new-dtags -Wl,--as-needed -Wl,-z,relro,-z,now -landroid-shmem` -> 1
stderr:
/home/builder/.termux-build/mesa/build/meson-private/tmpuk48_cjk/testfile.c:17:18: error: "__builtin_ia32_clflushopt not found"
                #error "__builtin_ia32_clflushopt not found"
                 ^
1 error generated.
-----------
Checking for function "__builtin_ia32_clflushopt" : NO 
Running compile:
Working directory:  /home/builder/.termux-build/mesa/build/meson-private/tmp2qi5mdld
Code:
 #include <stdint.h>
                  int main() {
                    struct {
                      uint64_t *v;
                    } x;
                    return (int)__atomic_load_n(x.v, __ATOMIC_ACQUIRE) &
                           (int)__atomic_add_fetch(x.v, (uint64_t)1, __ATOMIC_ACQ_REL);

                  }
-----------
Command line: `aarch64-linux-android-clang -I/data/data/com.termux/files/usr/include /home/builder/.termux-build/mesa/build/meson-private/tmp2qi5mdld/testfile.c -o /home/builder/.termux-build/mesa/build/meson-private/tmp2qi5mdld/output.obj -c -fstack-protector-strong -Oz -D__USE_GNU -D_FILE_OFFSET_BITS=64 -O0 -Werror=implicit-function-declaration -Werror=unknown-warning-option -Werror=unused-command-line-argument -Werror=ignored-optimization-argument -std=c11` -> 0
Checking if "GCC atomic builtins" compiles: YES 
Running compile:
Working directory:  /home/builder/.termux-build/mesa/build/meson-private/tmpulyvjdit
Code:
 #include <stdint.h>
                     int main() {
                       struct {
                         uint64_t *v;
                       } x;
                       return (int)__atomic_load_n(x.v, __ATOMIC_ACQUIRE) &
                              (int)__atomic_add_fetch(x.v, (uint64_t)1, __ATOMIC_ACQ_REL);
                     }
-----------
Command line: `aarch64-linux-android-clang -L/data/data/com.termux/files/usr/lib -I/data/data/com.termux/files/usr/include /home/builder/.termux-build/mesa/build/meson-private/tmpulyvjdit/testfile.c -o /home/builder/.termux-build/mesa/build/meson-private/tmpulyvjdit/output.exe -fstack-protector-strong -Oz -D__USE_GNU -D_FILE_OFFSET_BITS=64 -O0 -Werror=implicit-function-declaration -std=c11 -Wl,-rpath=/data/data/com.termux/files/usr/lib -fopenmp -static-openmp -fno-openmp-implicit-rpath -Wl,--enable-new-dtags -Wl,--as-needed -Wl,-z,relro,-z,now -landroid-shmem` -> 0
Checking if "GCC atomic builtins required -latomic" : links: YES 
Running compile:
Working directory:  /home/builder/.termux-build/mesa/build/meson-private/tmpbdtdgz_o
Code:
 #include <stdint.h>
                   uint64_t v;
                   int main() {
                     return __sync_add_and_fetch(&v, (uint64_t)1);
                   }
-----------
Command line: `aarch64-linux-android-clang -L/data/data/com.termux/files/usr/lib -I/data/data/com.termux/files/usr/include /home/builder/.termux-build/mesa/build/meson-private/tmpbdtdgz_o/testfile.c -o /home/builder/.termux-build/mesa/build/meson-private/tmpbdtdgz_o/output.exe -fstack-protector-strong -Oz -D__USE_GNU -D_FILE_OFFSET_BITS=64 -O0 -Werror=implicit-function-declaration -std=c11 -Wl,-rpath=/data/data/com.termux/files/usr/lib -fopenmp -static-openmp -fno-openmp-implicit-rpath -Wl,--enable-new-dtags -Wl,--as-needed -Wl,-z,relro,-z,now -landroid-shmem` -> 0
Checking if "GCC 64bit atomics" with dependency : links: YES 
Running compile:
Working directory:  /home/builder/.termux-build/mesa/build/meson-private/tmpb8r4bgim
Code:
 int main(void) { return 0; }

-----------
Command line: `aarch64-linux-android-clang -L/data/data/com.termux/files/usr/lib -I/data/data/com.termux/files/usr/include /home/builder/.termux-build/mesa/build/meson-private/tmpb8r4bgim/testfile.c -o /home/builder/.termux-build/mesa/build/meson-private/tmpb8r4bgim/output.exe -fstack-protector-strong -Oz -D__USE_GNU -D_FILE_OFFSET_BITS=64 -O0 -Werror=implicit-function-declaration -Wl,--start-group -lws2_32 -Wl,--allow-shlib-undefined -Wl,-rpath=/data/data/com.termux/files/usr/lib -fopenmp -static-openmp -fno-openmp-implicit-rpath -Wl,--enable-new-dtags -Wl,--as-needed -Wl,-z,relro,-z,now -landroid-shmem -Wl,--end-group` -> 1
stderr:
ld.lld: error: unable to find library -lws2_32
clang-17: error: linker command failed with exit code 1 (use -v to see invocation)
-----------
Running compile:
Working directory:  /home/builder/.termux-build/mesa/build/meson-private/tmpn9r_06t3
Code:
 
        #include <stddef.h>
        int main(void) {
            void * something;
            return 0;
        }
-----------
Command line: `aarch64-linux-android-clang -I/data/data/com.termux/files/usr/include /home/builder/.termux-build/mesa/build/meson-private/tmpn9r_06t3/testfile.c -o /home/builder/.termux-build/mesa/build/meson-private/tmpn9r_06t3/output.obj -c -fstack-protector-strong -Oz -D__USE_GNU -D_FILE_OFFSET_BITS=64 -O0 -Werror=implicit-function-declaration -Werror=unknown-warning-option -Werror=unused-command-line-argument -Werror=ignored-optimization-argument` -> 0
Running compile:
Working directory:  /home/builder/.termux-build/mesa/build/meson-private/tmp3jnto46t
Code:
 
        #include <stddef.h>
        int main(void) { static int a[1-2*!(sizeof(void *) >= 0)]; a[0]=0; return 0; }
-----------
Command line: `aarch64-linux-android-clang -I/data/data/com.termux/files/usr/include /home/builder/.termux-build/mesa/build/meson-private/tmp3jnto46t/testfile.c -o /home/builder/.termux-build/mesa/build/meson-private/tmp3jnto46t/output.obj -c -fstack-protector-strong -Oz -D__USE_GNU -D_FILE_OFFSET_BITS=64 -O0 -Werror=implicit-function-declaration -Werror=unknown-warning-option -Werror=unused-command-line-argument -Werror=ignored-optimization-argument` -> 0
Running compile:
Working directory:  /home/builder/.termux-build/mesa/build/meson-private/tmpg9_w9ea_
Code:
 
        #include <stddef.h>
        int main(void) { static int a[1-2*!(sizeof(void *) > 0)]; a[0]=0; return 0; }
-----------
Command line: `aarch64-linux-android-clang -I/data/data/com.termux/files/usr/include /home/builder/.termux-build/mesa/build/meson-private/tmpg9_w9ea_/testfile.c -o /home/builder/.termux-build/mesa/build/meson-private/tmpg9_w9ea_/output.obj -c -fstack-protector-strong -Oz -D__USE_GNU -D_FILE_OFFSET_BITS=64 -O0 -Werror=implicit-function-declaration -Werror=unknown-warning-option -Werror=unused-command-line-argument -Werror=ignored-optimization-argument` -> 0
Running compile:
Working directory:  /home/builder/.termux-build/mesa/build/meson-private/tmp39peukhi
Code:
 
        #include <stddef.h>
        int main(void) { static int a[1-2*!(sizeof(void *) > 1)]; a[0]=0; return 0; }
-----------
Command line: `aarch64-linux-android-clang -I/data/data/com.termux/files/usr/include /home/builder/.termux-build/mesa/build/meson-private/tmp39peukhi/testfile.c -o /home/builder/.termux-build/mesa/build/meson-private/tmp39peukhi/output.obj -c -fstack-protector-strong -Oz -D__USE_GNU -D_FILE_OFFSET_BITS=64 -O0 -Werror=implicit-function-declaration -Werror=unknown-warning-option -Werror=unused-command-line-argument -Werror=ignored-optimization-argument` -> 0
Running compile:
Working directory:  /home/builder/.termux-build/mesa/build/meson-private/tmpnjbcbg2w
Code:
 
        #include <stddef.h>
        int main(void) { static int a[1-2*!(sizeof(void *) > 3)]; a[0]=0; return 0; }
-----------
Command line: `aarch64-linux-android-clang -I/data/data/com.termux/files/usr/include /home/builder/.termux-build/mesa/build/meson-private/tmpnjbcbg2w/testfile.c -o /home/builder/.termux-build/mesa/build/meson-private/tmpnjbcbg2w/output.obj -c -fstack-protector-strong -Oz -D__USE_GNU -D_FILE_OFFSET_BITS=64 -O0 -Werror=implicit-function-declaration -Werror=unknown-warning-option -Werror=unused-command-line-argument -Werror=ignored-optimization-argument` -> 0
Running compile:
Working directory:  /home/builder/.termux-build/mesa/build/meson-private/tmpvtm09n0s
Code:
 
        #include <stddef.h>
        int main(void) { static int a[1-2*!(sizeof(void *) > 7)]; a[0]=0; return 0; }
-----------
Command line: `aarch64-linux-android-clang -I/data/data/com.termux/files/usr/include /home/builder/.termux-build/mesa/build/meson-private/tmpvtm09n0s/testfile.c -o /home/builder/.termux-build/mesa/build/meson-private/tmpvtm09n0s/output.obj -c -fstack-protector-strong -Oz -D__USE_GNU -D_FILE_OFFSET_BITS=64 -O0 -Werror=implicit-function-declaration -Werror=unknown-warning-option -Werror=unused-command-line-argument -Werror=ignored-optimization-argument` -> 0
Running compile:
Working directory:  /home/builder/.termux-build/mesa/build/meson-private/tmp3zjcs3ep
Code:
 
        #include <stddef.h>
        int main(void) { static int a[1-2*!(sizeof(void *) > 15)]; a[0]=0; return 0; }
-----------
Command line: `aarch64-linux-android-clang -I/data/data/com.termux/files/usr/include /home/builder/.termux-build/mesa/build/meson-private/tmp3zjcs3ep/testfile.c -o /home/builder/.termux-build/mesa/build/meson-private/tmp3zjcs3ep/output.obj -c -fstack-protector-strong -Oz -D__USE_GNU -D_FILE_OFFSET_BITS=64 -O0 -Werror=implicit-function-declaration -Werror=unknown-warning-option -Werror=unused-command-line-argument -Werror=ignored-optimization-argument` -> 1
stderr:
/home/builder/.termux-build/mesa/build/meson-private/tmp3zjcs3ep/testfile.c:3:39: error: 'a' declared as an array with a negative size
        int main(void) { static int a[1-2*!(sizeof(void *) > 15)]; a[0]=0; return 0; }
                                      ^~~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
-----------
Running compile:
Working directory:  /home/builder/.termux-build/mesa/build/meson-private/tmpnoxixb8d
Code:
 
        #include <stddef.h>
        int main(void) { static int a[1-2*!(sizeof(void *) <= 11)]; a[0]=0; return 0; }
-----------
Command line: `aarch64-linux-android-clang -I/data/data/com.termux/files/usr/include /home/builder/.termux-build/mesa/build/meson-private/tmpnoxixb8d/testfile.c -o /home/builder/.termux-build/mesa/build/meson-private/tmpnoxixb8d/output.obj -c -fstack-protector-strong -Oz -D__USE_GNU -D_FILE_OFFSET_BITS=64 -O0 -Werror=implicit-function-declaration -Werror=unknown-warning-option -Werror=unused-command-line-argument -Werror=ignored-optimization-argument` -> 0
Running compile:
Working directory:  /home/builder/.termux-build/mesa/build/meson-private/tmp6gclx_z6
Code:
 
        #include <stddef.h>
        int main(void) { static int a[1-2*!(sizeof(void *) <= 9)]; a[0]=0; return 0; }
-----------
Command line: `aarch64-linux-android-clang -I/data/data/com.termux/files/usr/include /home/builder/.termux-build/mesa/build/meson-private/tmp6gclx_z6/testfile.c -o /home/builder/.termux-build/mesa/build/meson-private/tmp6gclx_z6/output.obj -c -fstack-protector-strong -Oz -D__USE_GNU -D_FILE_OFFSET_BITS=64 -O0 -Werror=implicit-function-declaration -Werror=unknown-warning-option -Werror=unused-command-line-argument -Werror=ignored-optimization-argument` -> 0
Running compile:
Working directory:  /home/builder/.termux-build/mesa/build/meson-private/tmp3skzeyps
Code:
 
        #include <stddef.h>
        int main(void) { static int a[1-2*!(sizeof(void *) <= 8)]; a[0]=0; return 0; }
-----------
Command line: `aarch64-linux-android-clang -I/data/data/com.termux/files/usr/include /home/builder/.termux-build/mesa/build/meson-private/tmp3skzeyps/testfile.c -o /home/builder/.termux-build/mesa/build/meson-private/tmp3skzeyps/output.obj -c -fstack-protector-strong -Oz -D__USE_GNU -D_FILE_OFFSET_BITS=64 -O0 -Werror=implicit-function-declaration -Werror=unknown-warning-option -Werror=unused-command-line-argument -Werror=ignored-optimization-argument` -> 0
Running compile:
Working directory:  /home/builder/.termux-build/mesa/build/meson-private/tmph6bay4zi
Code:
 
-----------
Command line: `aarch64-linux-android-clang -I/data/data/com.termux/files/usr/include /home/builder/.termux-build/mesa/build/meson-private/tmph6bay4zi/testfile.c -o /home/builder/.termux-build/mesa/build/meson-private/tmph6bay4zi/output.obj -c -fstack-protector-strong -Oz -D__USE_GNU -D_FILE_OFFSET_BITS=64 -O0 -Werror=implicit-function-declaration -Werror=unknown-warning-option -Werror=unused-command-line-argument -Werror=ignored-optimization-argument --print-search-dirs` -> 0
stdout:
programs: =/home/builder/.termux-build/_cache/android-r26b-api-24-v4/bin
libraries: =/home/builder/.termux-build/_cache/android-r26b-api-24-v4/lib/clang/17:/home/builder/.termux-build/_cache/android-r26b-api-24-v4/lib/clang/17/lib/linux/aarch64:/home/builder/.termux-build/_cache/android-r26b-api-24-v4/bin/../sysroot/usr/lib/aarch64-linux-android/24:/home/builder/.termux-build/_cache/android-r26b-api-24-v4/bin/../sysroot/usr/lib/aarch64-linux-android:/home/builder/.termux-build/_cache/android-r26b-api-24-v4/bin/../sysroot/usr/lib
-----------
Library ws2_32 found: NO
Running compile:
Working directory:  /home/builder/.termux-build/mesa/build/meson-private/tmplwub8xhn
Code:
 
        #include <sys/sysmacros.h>
        int main(void) {
            /* If it's not defined as a macro, try to use as a symbol */
            #ifndef major
                major;
            #endif
            return 0;
        }
-----------
Command line: `aarch64-linux-android-clang -I/data/data/com.termux/files/usr/include /home/builder/.termux-build/mesa/build/meson-private/tmplwub8xhn/testfile.c -o /home/builder/.termux-build/mesa/build/meson-private/tmplwub8xhn/output.obj -c -fstack-protector-strong -Oz -D__USE_GNU -D_FILE_OFFSET_BITS=64 -O0 -Werror=implicit-function-declaration -Werror=unknown-warning-option -Werror=unused-command-line-argument -Werror=ignored-optimization-argument -std=c11` -> 0
Header "sys/sysmacros.h" has symbol "major" : YES 
Running compile:
Working directory:  /home/builder/.termux-build/mesa/build/meson-private/tmpaadww8aa
Code:
 
        #include <sys/sysmacros.h>
        int main(void) {
            /* If it's not defined as a macro, try to use as a symbol */
            #ifndef minor
                minor;
            #endif
            return 0;
        }
-----------
Command line: `aarch64-linux-android-clang -I/data/data/com.termux/files/usr/include /home/builder/.termux-build/mesa/build/meson-private/tmpaadww8aa/testfile.c -o /home/builder/.termux-build/mesa/build/meson-private/tmpaadww8aa/output.obj -c -fstack-protector-strong -Oz -D__USE_GNU -D_FILE_OFFSET_BITS=64 -O0 -Werror=implicit-function-declaration -Werror=unknown-warning-option -Werror=unused-command-line-argument -Werror=ignored-optimization-argument -std=c11` -> 0
Header "sys/sysmacros.h" has symbol "minor" : YES 
Running compile:
Working directory:  /home/builder/.termux-build/mesa/build/meson-private/tmp0900vo8a
Code:
 
        #include <sys/sysmacros.h>
        int main(void) {
            /* If it's not defined as a macro, try to use as a symbol */
            #ifndef makedev
                makedev;
            #endif
            return 0;
        }
-----------
Command line: `aarch64-linux-android-clang -I/data/data/com.termux/files/usr/include /home/builder/.termux-build/mesa/build/meson-private/tmp0900vo8a/testfile.c -o /home/builder/.termux-build/mesa/build/meson-private/tmp0900vo8a/output.obj -c -fstack-protector-strong -Oz -D__USE_GNU -D_FILE_OFFSET_BITS=64 -O0 -Werror=implicit-function-declaration -Werror=unknown-warning-option -Werror=unused-command-line-argument -Werror=ignored-optimization-argument -std=c11` -> 0
Header "sys/sysmacros.h" has symbol "makedev" : YES 
Running compile:
Working directory:  /home/builder/.termux-build/mesa/build/meson-private/tmprf1a4gnb
Code:
 
        #include <sys/mkdev.h>
        int main(void) {
            /* If it's not defined as a macro, try to use as a symbol */
            #ifndef major
                major;
            #endif
            return 0;
        }
-----------
Command line: `aarch64-linux-android-clang -I/data/data/com.termux/files/usr/include /home/builder/.termux-build/mesa/build/meson-private/tmprf1a4gnb/testfile.c -o /home/builder/.termux-build/mesa/build/meson-private/tmprf1a4gnb/output.obj -c -fstack-protector-strong -Oz -D__USE_GNU -D_FILE_OFFSET_BITS=64 -O0 -Werror=implicit-function-declaration -Werror=unknown-warning-option -Werror=unused-command-line-argument -Werror=ignored-optimization-argument -std=c11` -> 1
stderr:
/home/builder/.termux-build/mesa/build/meson-private/tmprf1a4gnb/testfile.c:2:18: fatal error: 'sys/mkdev.h' file not found
        #include <sys/mkdev.h>
                 ^~~~~~~~~~~~~
1 error generated.
-----------
Header "sys/mkdev.h" has symbol "major" : NO 
Running compile:
Working directory:  /home/builder/.termux-build/mesa/build/meson-private/tmpqtkjjy_w
Code:
 
        #include <sched.h>
-----------
Command line: `aarch64-linux-android-clang -I/data/data/com.termux/files/usr/include /home/builder/.termux-build/mesa/build/meson-private/tmpqtkjjy_w/testfile.c -o /home/builder/.termux-build/mesa/build/meson-private/tmpqtkjjy_w/output.obj -c -fstack-protector-strong -Oz -D__USE_GNU -D_FILE_OFFSET_BITS=64 -O0 -Werror=implicit-function-declaration -Werror=unknown-warning-option -Werror=unused-command-line-argument -Werror=ignored-optimization-argument -std=c11` -> 0
Check usable header "sched.h" : YES 
Running compile:
Working directory:  /home/builder/.termux-build/mesa/build/meson-private/tmpk2qnd9sg
Code:
 
        #define sched_getaffinity meson_disable_define_of_sched_getaffinity
        
        #include <limits.h>
        #undef sched_getaffinity
        
        #ifdef __cplusplus
        extern "C"
        #endif
        char sched_getaffinity (void);
        
        #if defined __stub_sched_getaffinity || defined __stub___sched_getaffinity
        fail fail fail this function is not going to work
        #endif
        
        int main(void) {
          return sched_getaffinity ();
        }
-----------
Command line: `aarch64-linux-android-clang -L/data/data/com.termux/files/usr/lib -I/data/data/com.termux/files/usr/include /home/builder/.termux-build/mesa/build/meson-private/tmpk2qnd9sg/testfile.c -o /home/builder/.termux-build/mesa/build/meson-private/tmpk2qnd9sg/output.exe -fstack-protector-strong -Oz -D__USE_GNU -D_FILE_OFFSET_BITS=64 -O0 -Werror=implicit-function-declaration -std=c11 -Wl,-rpath=/data/data/com.termux/files/usr/lib -fopenmp -static-openmp -fno-openmp-implicit-rpath -Wl,--enable-new-dtags -Wl,--as-needed -Wl,-z,relro,-z,now -landroid-shmem` -> 0
Checking for function "sched_getaffinity" : YES 
Running compile:
Working directory:  /home/builder/.termux-build/mesa/build/meson-private/tmpy0dmikjg
Code:
 #include <sys/types.h>
        #include <sys/sysctl.h>
-----------
Command line: `aarch64-linux-android-clang -I/data/data/com.termux/files/usr/include /home/builder/.termux-build/mesa/build/meson-private/tmpy0dmikjg/testfile.c -o /home/builder/.termux-build/mesa/build/meson-private/tmpy0dmikjg/output.obj -c -fstack-protector-strong -Oz -D__USE_GNU -D_FILE_OFFSET_BITS=64 -O0 -Werror=implicit-function-declaration -Werror=unknown-warning-option -Werror=unused-command-line-argument -Werror=ignored-optimization-argument -std=c11` -> 1
stderr:
/home/builder/.termux-build/mesa/build/meson-private/tmpy0dmikjg/testfile.c:2:18: fatal error: 'sys/sysctl.h' file not found
        #include <sys/sysctl.h>
                 ^~~~~~~~~~~~~~
1 error generated.
-----------
Check usable header "sys/sysctl.h" : NO 
Running compile:
Working directory:  /home/builder/.termux-build/mesa/build/meson-private/tmp4nr22rj1
Code:
 
        #include <linux/futex.h>
-----------
Command line: `aarch64-linux-android-clang -I/data/data/com.termux/files/usr/include /home/builder/.termux-build/mesa/build/meson-private/tmp4nr22rj1/testfile.c -o /home/builder/.termux-build/mesa/build/meson-private/tmp4nr22rj1/output.obj -c -fstack-protector-strong -Oz -D__USE_GNU -D_FILE_OFFSET_BITS=64 -O0 -Werror=implicit-function-declaration -Werror=unknown-warning-option -Werror=unused-command-line-argument -Werror=ignored-optimization-argument -std=c11` -> 0
Check usable header "linux/futex.h" : YES 
Running compile:
Working directory:  /home/builder/.termux-build/mesa/build/meson-private/tmpg2dengjh
Code:
 
        #include <endian.h>
-----------
Command line: `aarch64-linux-android-clang -I/data/data/com.termux/files/usr/include /home/builder/.termux-build/mesa/build/meson-private/tmpg2dengjh/testfile.c -o /home/builder/.termux-build/mesa/build/meson-private/tmpg2dengjh/output.obj -c -fstack-protector-strong -Oz -D__USE_GNU -D_FILE_OFFSET_BITS=64 -O0 -Werror=implicit-function-declaration -Werror=unknown-warning-option -Werror=unused-command-line-argument -Werror=ignored-optimization-argument -std=c11` -> 0
Check usable header "endian.h" : YES 
Running compile:
Working directory:  /home/builder/.termux-build/mesa/build/meson-private/tmp8835ceyf
Code:
 
        #include <dlfcn.h>
-----------
Command line: `aarch64-linux-android-clang -I/data/data/com.termux/files/usr/include /home/builder/.termux-build/mesa/build/meson-private/tmp8835ceyf/testfile.c -o /home/builder/.termux-build/mesa/build/meson-private/tmp8835ceyf/output.obj -c -fstack-protector-strong -Oz -D__USE_GNU -D_FILE_OFFSET_BITS=64 -O0 -Werror=implicit-function-declaration -Werror=unknown-warning-option -Werror=unused-command-line-argument -Werror=ignored-optimization-argument -std=c11` -> 0
Check usable header "dlfcn.h" : YES 
Running compile:
Working directory:  /home/builder/.termux-build/mesa/build/meson-private/tmpq1impf8p
Code:
 
        #include <sys/shm.h>
-----------
Command line: `aarch64-linux-android-clang -I/data/data/com.termux/files/usr/include /home/builder/.termux-build/mesa/build/meson-private/tmpq1impf8p/testfile.c -o /home/builder/.termux-build/mesa/build/meson-private/tmpq1impf8p/output.obj -c -fstack-protector-strong -Oz -D__USE_GNU -D_FILE_OFFSET_BITS=64 -O0 -Werror=implicit-function-declaration -Werror=unknown-warning-option -Werror=unused-command-line-argument -Werror=ignored-optimization-argument -std=c11` -> 0
Check usable header "sys/shm.h" : YES 
Running compile:
Working directory:  /home/builder/.termux-build/mesa/build/meson-private/tmpy8fx8rqd
Code:
 
        #include <cet.h>
-----------
Command line: `aarch64-linux-android-clang -I/data/data/com.termux/files/usr/include /home/builder/.termux-build/mesa/build/meson-private/tmpy8fx8rqd/testfile.c -o /home/builder/.termux-build/mesa/build/meson-private/tmpy8fx8rqd/output.obj -c -fstack-protector-strong -Oz -D__USE_GNU -D_FILE_OFFSET_BITS=64 -O0 -Werror=implicit-function-declaration -Werror=unknown-warning-option -Werror=unused-command-line-argument -Werror=ignored-optimization-argument -std=c11` -> 0
Check usable header "cet.h" : YES 
Running compile:
Working directory:  /home/builder/.termux-build/mesa/build/meson-private/tmpfxy0klcc
Code:
 
        #include <pthread_np.h>
-----------
Command line: `aarch64-linux-android-clang -I/data/data/com.termux/files/usr/include /home/builder/.termux-build/mesa/build/meson-private/tmpfxy0klcc/testfile.c -o /home/builder/.termux-build/mesa/build/meson-private/tmpfxy0klcc/output.obj -c -fstack-protector-strong -Oz -D__USE_GNU -D_FILE_OFFSET_BITS=64 -O0 -Werror=implicit-function-declaration -Werror=unknown-warning-option -Werror=unused-command-line-argument -Werror=ignored-optimization-argument -std=c11` -> 1
stderr:
/home/builder/.termux-build/mesa/build/meson-private/tmpfxy0klcc/testfile.c:2:18: fatal error: 'pthread_np.h' file not found
        #include <pthread_np.h>
                 ^~~~~~~~~~~~~~
1 error generated.
-----------
Check usable header "pthread_np.h" : NO 
Running compile:
Working directory:  /home/builder/.termux-build/mesa/build/meson-private/tmpir3_84a3
Code:
 
        #include <renderdoc_app.h>
-----------
Command line: `aarch64-linux-android-clang -I/data/data/com.termux/files/usr/include /home/builder/.termux-build/mesa/build/meson-private/tmpir3_84a3/testfile.c -o /home/builder/.termux-build/mesa/build/meson-private/tmpir3_84a3/output.obj -c -fstack-protector-strong -Oz -D__USE_GNU -D_FILE_OFFSET_BITS=64 -O0 -Werror=implicit-function-declaration -Werror=unknown-warning-option -Werror=unused-command-line-argument -Werror=ignored-optimization-argument -std=c11` -> 1
stderr:
/home/builder/.termux-build/mesa/build/meson-private/tmpir3_84a3/testfile.c:2:18: fatal error: 'renderdoc_app.h' file not found
        #include <renderdoc_app.h>
                 ^~~~~~~~~~~~~~~~~
1 error generated.
-----------
Check usable header "renderdoc_app.h" : NO 
Running compile:
Working directory:  /home/builder/.termux-build/mesa/build/meson-private/tmpsa6cxsmj
Code:
 
        #include <sys/inotify.h>
-----------
Command line: `aarch64-linux-android-clang -I/data/data/com.termux/files/usr/include /home/builder/.termux-build/mesa/build/meson-private/tmpsa6cxsmj/testfile.c -o /home/builder/.termux-build/mesa/build/meson-private/tmpsa6cxsmj/output.obj -c -fstack-protector-strong -Oz -D__USE_GNU -D_FILE_OFFSET_BITS=64 -O0 -Werror=implicit-function-declaration -Werror=unknown-warning-option -Werror=unused-command-line-argument -Werror=ignored-optimization-argument -std=c11` -> 0
Check usable header "sys/inotify.h" : YES 
Running compile:
Working directory:  /home/builder/.termux-build/mesa/build/meson-private/tmp5_izq2uw
Code:
 
        #define strtof meson_disable_define_of_strtof
        
        #include <limits.h>
        #undef strtof
        
        #ifdef __cplusplus
        extern "C"
        #endif
        char strtof (void);
        
        #if defined __stub_strtof || defined __stub___strtof
        fail fail fail this function is not going to work
        #endif
        
        int main(void) {
          return strtof ();
        }
-----------
Command line: `aarch64-linux-android-clang -L/data/data/com.termux/files/usr/lib -I/data/data/com.termux/files/usr/include /home/builder/.termux-build/mesa/build/meson-private/tmp5_izq2uw/testfile.c -o /home/builder/.termux-build/mesa/build/meson-private/tmp5_izq2uw/output.exe -fstack-protector-strong -Oz -D__USE_GNU -D_FILE_OFFSET_BITS=64 -O0 -Werror=implicit-function-declaration -std=c11 -Wl,-rpath=/data/data/com.termux/files/usr/lib -fopenmp -static-openmp -fno-openmp-implicit-rpath -Wl,--enable-new-dtags -Wl,--as-needed -Wl,-z,relro,-z,now -landroid-shmem` -> 0
stderr:
/home/builder/.termux-build/mesa/build/meson-private/tmp5_izq2uw/testfile.c:10:14: warning: incompatible redeclaration of library function 'strtof' [-Wincompatible-library-redeclaration]
        char strtof (void);
             ^
/home/builder/.termux-build/mesa/build/meson-private/tmp5_izq2uw/testfile.c:10:14: note: 'strtof' is a builtin with type 'float (const char *, char **)'
1 warning generated.
-----------
Checking for function "strtof" : YES 
Running compile:
Working directory:  /home/builder/.termux-build/mesa/build/meson-private/tmps_qt7zjv
Code:
 
        #define mkostemp meson_disable_define_of_mkostemp
        
        #include <limits.h>
        #undef mkostemp
        
        #ifdef __cplusplus
        extern "C"
        #endif
        char mkostemp (void);
        
        #if defined __stub_mkostemp || defined __stub___mkostemp
        fail fail fail this function is not going to work
        #endif
        
        int main(void) {
          return mkostemp ();
        }
-----------
Command line: `aarch64-linux-android-clang -L/data/data/com.termux/files/usr/lib -I/data/data/com.termux/files/usr/include /home/builder/.termux-build/mesa/build/meson-private/tmps_qt7zjv/testfile.c -o /home/builder/.termux-build/mesa/build/meson-private/tmps_qt7zjv/output.exe -fstack-protector-strong -Oz -D__USE_GNU -D_FILE_OFFSET_BITS=64 -O0 -Werror=implicit-function-declaration -std=c11 -Wl,-rpath=/data/data/com.termux/files/usr/lib -fopenmp -static-openmp -fno-openmp-implicit-rpath -Wl,--enable-new-dtags -Wl,--as-needed -Wl,-z,relro,-z,now -landroid-shmem` -> 0
Checking for function "mkostemp" : YES 
Running compile:
Working directory:  /home/builder/.termux-build/mesa/build/meson-private/tmp3pv5gzo0
Code:
 
        #define memfd_create meson_disable_define_of_memfd_create
        
        #include <limits.h>
        #undef memfd_create
        
        #ifdef __cplusplus
        extern "C"
        #endif
        char memfd_create (void);
        
        #if defined __stub_memfd_create || defined __stub___memfd_create
        fail fail fail this function is not going to work
        #endif
        
        int main(void) {
          return memfd_create ();
        }
-----------
Command line: `aarch64-linux-android-clang -L/data/data/com.termux/files/usr/lib -I/data/data/com.termux/files/usr/include /home/builder/.termux-build/mesa/build/meson-private/tmp3pv5gzo0/testfile.c -o /home/builder/.termux-build/mesa/build/meson-private/tmp3pv5gzo0/output.exe -fstack-protector-strong -Oz -D__USE_GNU -D_FILE_OFFSET_BITS=64 -O0 -Werror=implicit-function-declaration -std=c11 -Wl,-rpath=/data/data/com.termux/files/usr/lib -fopenmp -static-openmp -fno-openmp-implicit-rpath -Wl,--enable-new-dtags -Wl,--as-needed -Wl,-z,relro,-z,now -landroid-shmem` -> 1
stderr:
ld.lld: error: undefined symbol: memfd_create
>>> referenced by testfile.c
>>>               /tmp/testfile-f1ecf6.o:(main)
clang-17: error: linker command failed with exit code 1 (use -v to see invocation)
-----------
Running compile:
Working directory:  /home/builder/.termux-build/mesa/build/meson-private/tmpi3bguo2b
Code:
 
        int main(void) {

        /* With some toolchains (MSYS2/mingw for example) the compiler
         * provides various builtins which are not really implemented and
         * fall back to the stdlib where they aren't provided and fail at
         * build/link time. In case the user provides a header, including
         * the header didn't lead to the function being defined, and the
         * function we are checking isn't a builtin itself we assume the
         * builtin is not functional and we just error out. */
        #if !1 && !defined(memfd_create) && !0
            #error "No definition for __builtin_memfd_create found in the prefix"
        #endif

        #ifdef __has_builtin
            #if !__has_builtin(__builtin_memfd_create)
                #error "__builtin_memfd_create not found"
            #endif
        #elif ! defined(memfd_create)
            __builtin_memfd_create;
        #endif
        return 0;
        }
-----------
Command line: `aarch64-linux-android-clang -L/data/data/com.termux/files/usr/lib -I/data/data/com.termux/files/usr/include /home/builder/.termux-build/mesa/build/meson-private/tmpi3bguo2b/testfile.c -o /home/builder/.termux-build/mesa/build/meson-private/tmpi3bguo2b/output.exe -fstack-protector-strong -Oz -D__USE_GNU -D_FILE_OFFSET_BITS=64 -O0 -Werror=implicit-function-declaration -std=c11 -Wl,-rpath=/data/data/com.termux/files/usr/lib -fopenmp -static-openmp -fno-openmp-implicit-rpath -Wl,--enable-new-dtags -Wl,--as-needed -Wl,-z,relro,-z,now -landroid-shmem` -> 1
stderr:
/home/builder/.termux-build/mesa/build/meson-private/tmpi3bguo2b/testfile.c:17:18: error: "__builtin_memfd_create not found"
                #error "__builtin_memfd_create not found"
                 ^
1 error generated.
-----------
Checking for function "memfd_create" : NO 
Running compile:
Working directory:  /home/builder/.termux-build/mesa/build/meson-private/tmptonmyezj
Code:
 
        #define random_r meson_disable_define_of_random_r
        
        #include <limits.h>
        #undef random_r
        
        #ifdef __cplusplus
        extern "C"
        #endif
        char random_r (void);
        
        #if defined __stub_random_r || defined __stub___random_r
        fail fail fail this function is not going to work
        #endif
        
        int main(void) {
          return random_r ();
        }
-----------
Command line: `aarch64-linux-android-clang -L/data/data/com.termux/files/usr/lib -I/data/data/com.termux/files/usr/include /home/builder/.termux-build/mesa/build/meson-private/tmptonmyezj/testfile.c -o /home/builder/.termux-build/mesa/build/meson-private/tmptonmyezj/output.exe -fstack-protector-strong -Oz -D__USE_GNU -D_FILE_OFFSET_BITS=64 -O0 -Werror=implicit-function-declaration -std=c11 -Wl,-rpath=/data/data/com.termux/files/usr/lib -fopenmp -static-openmp -fno-openmp-implicit-rpath -Wl,--enable-new-dtags -Wl,--as-needed -Wl,-z,relro,-z,now -landroid-shmem` -> 1
stderr:
ld.lld: error: undefined symbol: random_r
>>> referenced by testfile.c
>>>               /tmp/testfile-072f35.o:(main)
clang-17: error: linker command failed with exit code 1 (use -v to see invocation)
-----------
Running compile:
Working directory:  /home/builder/.termux-build/mesa/build/meson-private/tmpy9cy0ytb
Code:
 
        int main(void) {

        /* With some toolchains (MSYS2/mingw for example) the compiler
         * provides various builtins which are not really implemented and
         * fall back to the stdlib where they aren't provided and fail at
         * build/link time. In case the user provides a header, including
         * the header didn't lead to the function being defined, and the
         * function we are checking isn't a builtin itself we assume the
         * builtin is not functional and we just error out. */
        #if !1 && !defined(random_r) && !0
            #error "No definition for __builtin_random_r found in the prefix"
        #endif

        #ifdef __has_builtin
            #if !__has_builtin(__builtin_random_r)
                #error "__builtin_random_r not found"
            #endif
        #elif ! defined(random_r)
            __builtin_random_r;
        #endif
        return 0;
        }
-----------
Command line: `aarch64-linux-android-clang -L/data/data/com.termux/files/usr/lib -I/data/data/com.termux/files/usr/include /home/builder/.termux-build/mesa/build/meson-private/tmpy9cy0ytb/testfile.c -o /home/builder/.termux-build/mesa/build/meson-private/tmpy9cy0ytb/output.exe -fstack-protector-strong -Oz -D__USE_GNU -D_FILE_OFFSET_BITS=64 -O0 -Werror=implicit-function-declaration -std=c11 -Wl,-rpath=/data/data/com.termux/files/usr/lib -fopenmp -static-openmp -fno-openmp-implicit-rpath -Wl,--enable-new-dtags -Wl,--as-needed -Wl,-z,relro,-z,now -landroid-shmem` -> 1
stderr:
/home/builder/.termux-build/mesa/build/meson-private/tmpy9cy0ytb/testfile.c:17:18: error: "__builtin_random_r not found"
                #error "__builtin_random_r not found"
                 ^
1 error generated.
-----------
Checking for function "random_r" : NO 
Running compile:
Working directory:  /home/builder/.termux-build/mesa/build/meson-private/tmp6ze_v59x
Code:
 
        #define flock meson_disable_define_of_flock
        
        #include <limits.h>
        #undef flock
        
        #ifdef __cplusplus
        extern "C"
        #endif
        char flock (void);
        
        #if defined __stub_flock || defined __stub___flock
        fail fail fail this function is not going to work
        #endif
        
        int main(void) {
          return flock ();
        }
-----------
Command line: `aarch64-linux-android-clang -L/data/data/com.termux/files/usr/lib -I/data/data/com.termux/files/usr/include /home/builder/.termux-build/mesa/build/meson-private/tmp6ze_v59x/testfile.c -o /home/builder/.termux-build/mesa/build/meson-private/tmp6ze_v59x/output.exe -fstack-protector-strong -Oz -D__USE_GNU -D_FILE_OFFSET_BITS=64 -O0 -Werror=implicit-function-declaration -std=c11 -Wl,-rpath=/data/data/com.termux/files/usr/lib -fopenmp -static-openmp -fno-openmp-implicit-rpath -Wl,--enable-new-dtags -Wl,--as-needed -Wl,-z,relro,-z,now -landroid-shmem` -> 0
Checking for function "flock" : YES 
Running compile:
Working directory:  /home/builder/.termux-build/mesa/build/meson-private/tmpeqxkd0ux
Code:
 
        #define strtok_r meson_disable_define_of_strtok_r
        
        #include <limits.h>
        #undef strtok_r
        
        #ifdef __cplusplus
        extern "C"
        #endif
        char strtok_r (void);
        
        #if defined __stub_strtok_r || defined __stub___strtok_r
        fail fail fail this function is not going to work
        #endif
        
        int main(void) {
          return strtok_r ();
        }
-----------
Command line: `aarch64-linux-android-clang -L/data/data/com.termux/files/usr/lib -I/data/data/com.termux/files/usr/include /home/builder/.termux-build/mesa/build/meson-private/tmpeqxkd0ux/testfile.c -o /home/builder/.termux-build/mesa/build/meson-private/tmpeqxkd0ux/output.exe -fstack-protector-strong -Oz -D__USE_GNU -D_FILE_OFFSET_BITS=64 -O0 -Werror=implicit-function-declaration -std=c11 -Wl,-rpath=/data/data/com.termux/files/usr/lib -fopenmp -static-openmp -fno-openmp-implicit-rpath -Wl,--enable-new-dtags -Wl,--as-needed -Wl,-z,relro,-z,now -landroid-shmem` -> 0
Checking for function "strtok_r" : YES 
Running compile:
Working directory:  /home/builder/.termux-build/mesa/build/meson-private/tmp2wd4b8v7
Code:
 
        #define getrandom meson_disable_define_of_getrandom
        
        #include <limits.h>
        #undef getrandom
        
        #ifdef __cplusplus
        extern "C"
        #endif
        char getrandom (void);
        
        #if defined __stub_getrandom || defined __stub___getrandom
        fail fail fail this function is not going to work
        #endif
        
        int main(void) {
          return getrandom ();
        }
-----------
Command line: `aarch64-linux-android-clang -L/data/data/com.termux/files/usr/lib -I/data/data/com.termux/files/usr/include /home/builder/.termux-build/mesa/build/meson-private/tmp2wd4b8v7/testfile.c -o /home/builder/.termux-build/mesa/build/meson-private/tmp2wd4b8v7/output.exe -fstack-protector-strong -Oz -D__USE_GNU -D_FILE_OFFSET_BITS=64 -O0 -Werror=implicit-function-declaration -std=c11 -Wl,-rpath=/data/data/com.termux/files/usr/lib -fopenmp -static-openmp -fno-openmp-implicit-rpath -Wl,--enable-new-dtags -Wl,--as-needed -Wl,-z,relro,-z,now -landroid-shmem` -> 1
stderr:
ld.lld: error: undefined symbol: getrandom
>>> referenced by testfile.c
>>>               /tmp/testfile-acfd42.o:(main)
clang-17: error: linker command failed with exit code 1 (use -v to see invocation)
-----------
Running compile:
Working directory:  /home/builder/.termux-build/mesa/build/meson-private/tmpijy42log
Code:
 
        int main(void) {

        /* With some toolchains (MSYS2/mingw for example) the compiler
         * provides various builtins which are not really implemented and
         * fall back to the stdlib where they aren't provided and fail at
         * build/link time. In case the user provides a header, including
         * the header didn't lead to the function being defined, and the
         * function we are checking isn't a builtin itself we assume the
         * builtin is not functional and we just error out. */
        #if !1 && !defined(getrandom) && !0
            #error "No definition for __builtin_getrandom found in the prefix"
        #endif

        #ifdef __has_builtin
            #if !__has_builtin(__builtin_getrandom)
                #error "__builtin_getrandom not found"
            #endif
        #elif ! defined(getrandom)
            __builtin_getrandom;
        #endif
        return 0;
        }
-----------
Command line: `aarch64-linux-android-clang -L/data/data/com.termux/files/usr/lib -I/data/data/com.termux/files/usr/include /home/builder/.termux-build/mesa/build/meson-private/tmpijy42log/testfile.c -o /home/builder/.termux-build/mesa/build/meson-private/tmpijy42log/output.exe -fstack-protector-strong -Oz -D__USE_GNU -D_FILE_OFFSET_BITS=64 -O0 -Werror=implicit-function-declaration -std=c11 -Wl,-rpath=/data/data/com.termux/files/usr/lib -fopenmp -static-openmp -fno-openmp-implicit-rpath -Wl,--enable-new-dtags -Wl,--as-needed -Wl,-z,relro,-z,now -landroid-shmem` -> 1
stderr:
/home/builder/.termux-build/mesa/build/meson-private/tmpijy42log/testfile.c:17:18: error: "__builtin_getrandom not found"
                #error "__builtin_getrandom not found"
                 ^
1 error generated.
-----------
Checking for function "getrandom" : NO 
Running compile:
Working directory:  /home/builder/.termux-build/mesa/build/meson-private/tmpugen9ql7
Code:
 
        #define qsort_s meson_disable_define_of_qsort_s
        
        #include <limits.h>
        #undef qsort_s
        
        #ifdef __cplusplus
        extern "C"
        #endif
        char qsort_s (void);
        
        #if defined __stub_qsort_s || defined __stub___qsort_s
        fail fail fail this function is not going to work
        #endif
        
        int main(void) {
          return qsort_s ();
        }
-----------
Command line: `aarch64-linux-android-clang -L/data/data/com.termux/files/usr/lib -I/data/data/com.termux/files/usr/include /home/builder/.termux-build/mesa/build/meson-private/tmpugen9ql7/testfile.c -o /home/builder/.termux-build/mesa/build/meson-private/tmpugen9ql7/output.exe -fstack-protector-strong -Oz -D__USE_GNU -D_FILE_OFFSET_BITS=64 -O0 -Werror=implicit-function-declaration -std=c11 -Wl,-rpath=/data/data/com.termux/files/usr/lib -fopenmp -static-openmp -fno-openmp-implicit-rpath -Wl,--enable-new-dtags -Wl,--as-needed -Wl,-z,relro,-z,now -landroid-shmem` -> 1
stderr:
ld.lld: error: undefined symbol: qsort_s
>>> referenced by testfile.c
>>>               /tmp/testfile-e8f886.o:(main)
clang-17: error: linker command failed with exit code 1 (use -v to see invocation)
-----------
Running compile:
Working directory:  /home/builder/.termux-build/mesa/build/meson-private/tmp4kinm8a3
Code:
 
        int main(void) {

        /* With some toolchains (MSYS2/mingw for example) the compiler
         * provides various builtins which are not really implemented and
         * fall back to the stdlib where they aren't provided and fail at
         * build/link time. In case the user provides a header, including
         * the header didn't lead to the function being defined, and the
         * function we are checking isn't a builtin itself we assume the
         * builtin is not functional and we just error out. */
        #if !1 && !defined(qsort_s) && !0
            #error "No definition for __builtin_qsort_s found in the prefix"
        #endif

        #ifdef __has_builtin
            #if !__has_builtin(__builtin_qsort_s)
                #error "__builtin_qsort_s not found"
            #endif
        #elif ! defined(qsort_s)
            __builtin_qsort_s;
        #endif
        return 0;
        }
-----------
Command line: `aarch64-linux-android-clang -L/data/data/com.termux/files/usr/lib -I/data/data/com.termux/files/usr/include /home/builder/.termux-build/mesa/build/meson-private/tmp4kinm8a3/testfile.c -o /home/builder/.termux-build/mesa/build/meson-private/tmp4kinm8a3/output.exe -fstack-protector-strong -Oz -D__USE_GNU -D_FILE_OFFSET_BITS=64 -O0 -Werror=implicit-function-declaration -std=c11 -Wl,-rpath=/data/data/com.termux/files/usr/lib -fopenmp -static-openmp -fno-openmp-implicit-rpath -Wl,--enable-new-dtags -Wl,--as-needed -Wl,-z,relro,-z,now -landroid-shmem` -> 1
stderr:
/home/builder/.termux-build/mesa/build/meson-private/tmp4kinm8a3/testfile.c:17:18: error: "__builtin_qsort_s not found"
                #error "__builtin_qsort_s not found"
                 ^
1 error generated.
-----------
Checking for function "qsort_s" : NO 
Running compile:
Working directory:  /home/builder/.termux-build/mesa/build/meson-private/tmpmingufu0
Code:
 
        #define posix_fallocate meson_disable_define_of_posix_fallocate
        
        #include <limits.h>
        #undef posix_fallocate
        
        #ifdef __cplusplus
        extern "C"
        #endif
        char posix_fallocate (void);
        
        #if defined __stub_posix_fallocate || defined __stub___posix_fallocate
        fail fail fail this function is not going to work
        #endif
        
        int main(void) {
          return posix_fallocate ();
        }
-----------
Command line: `aarch64-linux-android-clang -L/data/data/com.termux/files/usr/lib -I/data/data/com.termux/files/usr/include /home/builder/.termux-build/mesa/build/meson-private/tmpmingufu0/testfile.c -o /home/builder/.termux-build/mesa/build/meson-private/tmpmingufu0/output.exe -fstack-protector-strong -Oz -D__USE_GNU -D_FILE_OFFSET_BITS=64 -O0 -Werror=implicit-function-declaration -std=c11 -Wl,-rpath=/data/data/com.termux/files/usr/lib -fopenmp -static-openmp -fno-openmp-implicit-rpath -Wl,--enable-new-dtags -Wl,--as-needed -Wl,-z,relro,-z,now -landroid-shmem` -> 0
Checking for function "posix_fallocate" : YES 
Running compile:
Working directory:  /home/builder/.termux-build/mesa/build/meson-private/tmpxzgi41x1
Code:
 
        #define secure_getenv meson_disable_define_of_secure_getenv
        
        #include <limits.h>
        #undef secure_getenv
        
        #ifdef __cplusplus
        extern "C"
        #endif
        char secure_getenv (void);
        
        #if defined __stub_secure_getenv || defined __stub___secure_getenv
        fail fail fail this function is not going to work
        #endif
        
        int main(void) {
          return secure_getenv ();
        }
-----------
Command line: `aarch64-linux-android-clang -L/data/data/com.termux/files/usr/lib -I/data/data/com.termux/files/usr/include /home/builder/.termux-build/mesa/build/meson-private/tmpxzgi41x1/testfile.c -o /home/builder/.termux-build/mesa/build/meson-private/tmpxzgi41x1/output.exe -fstack-protector-strong -Oz -D__USE_GNU -D_FILE_OFFSET_BITS=64 -O0 -Werror=implicit-function-declaration -std=c11 -Wl,-rpath=/data/data/com.termux/files/usr/lib -fopenmp -static-openmp -fno-openmp-implicit-rpath -Wl,--enable-new-dtags -Wl,--as-needed -Wl,-z,relro,-z,now -landroid-shmem` -> 1
stderr:
ld.lld: error: undefined symbol: secure_getenv
>>> referenced by testfile.c
>>>               /tmp/testfile-6c95a8.o:(main)
clang-17: error: linker command failed with exit code 1 (use -v to see invocation)
-----------
Running compile:
Working directory:  /home/builder/.termux-build/mesa/build/meson-private/tmptkjbnhwt
Code:
 
        int main(void) {

        /* With some toolchains (MSYS2/mingw for example) the compiler
         * provides various builtins which are not really implemented and
         * fall back to the stdlib where they aren't provided and fail at
         * build/link time. In case the user provides a header, including
         * the header didn't lead to the function being defined, and the
         * function we are checking isn't a builtin itself we assume the
         * builtin is not functional and we just error out. */
        #if !1 && !defined(secure_getenv) && !0
            #error "No definition for __builtin_secure_getenv found in the prefix"
        #endif

        #ifdef __has_builtin
            #if !__has_builtin(__builtin_secure_getenv)
                #error "__builtin_secure_getenv not found"
            #endif
        #elif ! defined(secure_getenv)
            __builtin_secure_getenv;
        #endif
        return 0;
        }
-----------
Command line: `aarch64-linux-android-clang -L/data/data/com.termux/files/usr/lib -I/data/data/com.termux/files/usr/include /home/builder/.termux-build/mesa/build/meson-private/tmptkjbnhwt/testfile.c -o /home/builder/.termux-build/mesa/build/meson-private/tmptkjbnhwt/output.exe -fstack-protector-strong -Oz -D__USE_GNU -D_FILE_OFFSET_BITS=64 -O0 -Werror=implicit-function-declaration -std=c11 -Wl,-rpath=/data/data/com.termux/files/usr/lib -fopenmp -static-openmp -fno-openmp-implicit-rpath -Wl,--enable-new-dtags -Wl,--as-needed -Wl,-z,relro,-z,now -landroid-shmem` -> 1
stderr:
/home/builder/.termux-build/mesa/build/meson-private/tmptkjbnhwt/testfile.c:17:18: error: "__builtin_secure_getenv not found"
                #error "__builtin_secure_getenv not found"
                 ^
1 error generated.
-----------
Checking for function "secure_getenv" : NO 
Running compile:
Working directory:  /tmp/tmps2g47iqz
Code:
 int i = static_cast<int>(0);
-----------
Command line: `aarch64-linux-android-clang++ /tmp/tmps2g47iqz/testfile.cpp -o /tmp/tmps2g47iqz/output.obj -D_FILE_OFFSET_BITS=64 -c -std=c++17` -> 0
Compiler accepts -std=c++17: YES
Running compile:
Working directory:  /home/builder/.termux-build/mesa/build/meson-private/tmp496ry9dc
Code:
 
    #define _GNU_SOURCE
    #include <stdlib.h>

    static int dcomp(const void *l, const void *r, void *t) { return 0; }

    int main(int ac, char **av) {
      int arr[] = { 1 };
      void *t = NULL;
      qsort_r((void*)&arr[0], 1, 1, dcomp, t);
      return (0);
    }
-----------
Command line: `aarch64-linux-android-clang++ -L/data/data/com.termux/files/usr/lib -I/data/data/com.termux/files/usr/include /home/builder/.termux-build/mesa/build/meson-private/tmp496ry9dc/testfile.cpp -o /home/builder/.termux-build/mesa/build/meson-private/tmp496ry9dc/output.exe -fstack-protector-strong -Oz -D__USE_GNU -D_FILE_OFFSET_BITS=64 -O0 -fpermissive -Werror=implicit-function-declaration -std=c++17 -fno-rtti -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS '-DPACKAGE_VERSION="24.0.8"' '-DPACKAGE_BUGREPORT="https://gitlab.freedesktop.org/mesa/mesa/-/issues"' -DHAVE_OPENGL=1 -DHAVE_OPENGL_ES_1=0 -DHAVE_OPENGL_ES_2=1 -DHAVE_SWRAST -DHAVE_VIRGL -DHAVE_ZINK -DUSE_VK_COMPILER=1 -DVIDEO_CODEC_VC1DEC=0 -DVIDEO_CODEC_H264DEC=0 -DVIDEO_CODEC_H264ENC=0 -DVIDEO_CODEC_H265DEC=0 -DVIDEO_CODEC_H265ENC=0 -DVIDEO_CODEC_AV1DEC=1 -DVIDEO_CODEC_AV1ENC=1 -DVIDEO_CODEC_VP9DEC=1 -DHAVE_X11_PLATFORM -DHAVE_WAYLAND_PLATFORM -DHAVE_SURFACELESS_PLATFORM -DHAVE_DRM_PLATFORM -DHAVE_XCB_PLATFORM -DENABLE_ST_OMX_BELLAGIO=0 -DENABLE_ST_OMX_TIZONIA=0 -DGLX_INDIRECT_RENDERING -DGLX_DIRECT_RENDERING -DGLX_USE_DRM -DGLAPI_EXPORT_PROTO_ENTRY_POINTS=0 -DALLOW_KCMP -DENABLE_SHADER_CACHE -DHAVE___BUILTIN_BSWAP32 -DHAVE___BUILTIN_BSWAP64 -DHAVE___BUILTIN_CLZ -DHAVE___BUILTIN_CLZLL -DHAVE___BUILTIN_CTZ -DHAVE___BUILTIN_EXPECT -DHAVE___BUILTIN_FFS -DHAVE___BUILTIN_FFSLL -DHAVE___BUILTIN_POPCOUNT -DHAVE___BUILTIN_POPCOUNTLL -DHAVE___BUILTIN_UNREACHABLE -DHAVE___BUILTIN_TYPES_COMPATIBLE_P -DHAVE_FUNC_ATTRIBUTE_CONST -DHAVE_FUNC_ATTRIBUTE_FLATTEN -DHAVE_FUNC_ATTRIBUTE_MALLOC -DHAVE_FUNC_ATTRIBUTE_PURE -DHAVE_FUNC_ATTRIBUTE_UNUSED -DHAVE_FUNC_ATTRIBUTE_WARN_UNUSED_RESULT -DHAVE_FUNC_ATTRIBUTE_WEAK -DHAVE_FUNC_ATTRIBUTE_FORMAT -DHAVE_FUNC_ATTRIBUTE_PACKED -DHAVE_FUNC_ATTRIBUTE_RETURNS_NONNULL -DHAVE_FUNC_ATTRIBUTE_ALIAS -DHAVE_FUNC_ATTRIBUTE_NORETURN -DHAVE_FUNC_ATTRIBUTE_VISIBILITY -DHAVE_UINT128 -DHAVE_FMEMOPEN -D_GNU_SOURCE -DUSE_GCC_ATOMIC_BUILTINS -DUSE_AARCH64_ASM -DMAJOR_IN_SYSMACROS -DHAS_SCHED_H -DHAS_SCHED_GETAFFINITY -DHAVE_LINUX_FUTEX_H -DHAVE_ENDIAN_H -DHAVE_DLFCN_H -DHAVE_SYS_SHM_H -DHAVE_CET_H -DHAVE_SYS_INOTIFY_H -DHAVE_STRTOF -DHAVE_MKOSTEMP -DHAVE_FLOCK -DHAVE_STRTOK_R -DHAVE_POSIX_FALLOCATE -Wl,-rpath=/data/data/com.termux/files/usr/lib -fopenmp -static-openmp -fno-openmp-implicit-rpath -Wl,--enable-new-dtags -Wl,--as-needed -Wl,-z,relro,-z,now -landroid-shmem` -> 1
stderr:
/home/builder/.termux-build/mesa/build/meson-private/tmp496ry9dc/testfile.cpp:2:13: warning: '_GNU_SOURCE' macro redefined [-Wmacro-redefined]
    #define _GNU_SOURCE
            ^
<command line>:63:9: note: previous definition is here
#define _GNU_SOURCE 1
        ^
/home/builder/.termux-build/mesa/build/meson-private/tmp496ry9dc/testfile.cpp:10:7: error: use of undeclared identifier 'qsort_r'
      qsort_r((void*)&arr[0], 1, 1, dcomp, t);
      ^
1 warning and 1 error generated.
-----------
Checking if "GNU qsort_r" : links: NO 
Running compile:
Working directory:  /home/builder/.termux-build/mesa/build/meson-private/tmpg52rzt6h
Code:
 
    #include <stdlib.h>

    static int dcomp(void *t, const void *l, const void *r) { return 0; }

    int main(int ac, char **av) {
      int arr[] = { 1 };
      void *t = NULL;
      qsort_r((void*)&arr[0], 1, 1, t, dcomp);
      return (0);
    }
-----------
Command line: `aarch64-linux-android-clang++ -L/data/data/com.termux/files/usr/lib -I/data/data/com.termux/files/usr/include /home/builder/.termux-build/mesa/build/meson-private/tmpg52rzt6h/testfile.cpp -o /home/builder/.termux-build/mesa/build/meson-private/tmpg52rzt6h/output.exe -fstack-protector-strong -Oz -D__USE_GNU -D_FILE_OFFSET_BITS=64 -O0 -fpermissive -Werror=implicit-function-declaration -std=c++17 -fno-rtti -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS '-DPACKAGE_VERSION="24.0.8"' '-DPACKAGE_BUGREPORT="https://gitlab.freedesktop.org/mesa/mesa/-/issues"' -DHAVE_OPENGL=1 -DHAVE_OPENGL_ES_1=0 -DHAVE_OPENGL_ES_2=1 -DHAVE_SWRAST -DHAVE_VIRGL -DHAVE_ZINK -DUSE_VK_COMPILER=1 -DVIDEO_CODEC_VC1DEC=0 -DVIDEO_CODEC_H264DEC=0 -DVIDEO_CODEC_H264ENC=0 -DVIDEO_CODEC_H265DEC=0 -DVIDEO_CODEC_H265ENC=0 -DVIDEO_CODEC_AV1DEC=1 -DVIDEO_CODEC_AV1ENC=1 -DVIDEO_CODEC_VP9DEC=1 -DHAVE_X11_PLATFORM -DHAVE_WAYLAND_PLATFORM -DHAVE_SURFACELESS_PLATFORM -DHAVE_DRM_PLATFORM -DHAVE_XCB_PLATFORM -DENABLE_ST_OMX_BELLAGIO=0 -DENABLE_ST_OMX_TIZONIA=0 -DGLX_INDIRECT_RENDERING -DGLX_DIRECT_RENDERING -DGLX_USE_DRM -DGLAPI_EXPORT_PROTO_ENTRY_POINTS=0 -DALLOW_KCMP -DENABLE_SHADER_CACHE -DHAVE___BUILTIN_BSWAP32 -DHAVE___BUILTIN_BSWAP64 -DHAVE___BUILTIN_CLZ -DHAVE___BUILTIN_CLZLL -DHAVE___BUILTIN_CTZ -DHAVE___BUILTIN_EXPECT -DHAVE___BUILTIN_FFS -DHAVE___BUILTIN_FFSLL -DHAVE___BUILTIN_POPCOUNT -DHAVE___BUILTIN_POPCOUNTLL -DHAVE___BUILTIN_UNREACHABLE -DHAVE___BUILTIN_TYPES_COMPATIBLE_P -DHAVE_FUNC_ATTRIBUTE_CONST -DHAVE_FUNC_ATTRIBUTE_FLATTEN -DHAVE_FUNC_ATTRIBUTE_MALLOC -DHAVE_FUNC_ATTRIBUTE_PURE -DHAVE_FUNC_ATTRIBUTE_UNUSED -DHAVE_FUNC_ATTRIBUTE_WARN_UNUSED_RESULT -DHAVE_FUNC_ATTRIBUTE_WEAK -DHAVE_FUNC_ATTRIBUTE_FORMAT -DHAVE_FUNC_ATTRIBUTE_PACKED -DHAVE_FUNC_ATTRIBUTE_RETURNS_NONNULL -DHAVE_FUNC_ATTRIBUTE_ALIAS -DHAVE_FUNC_ATTRIBUTE_NORETURN -DHAVE_FUNC_ATTRIBUTE_VISIBILITY -DHAVE_UINT128 -DHAVE_FMEMOPEN -D_GNU_SOURCE -DUSE_GCC_ATOMIC_BUILTINS -DUSE_AARCH64_ASM -DMAJOR_IN_SYSMACROS -DHAS_SCHED_H -DHAS_SCHED_GETAFFINITY -DHAVE_LINUX_FUTEX_H -DHAVE_ENDIAN_H -DHAVE_DLFCN_H -DHAVE_SYS_SHM_H -DHAVE_CET_H -DHAVE_SYS_INOTIFY_H -DHAVE_STRTOF -DHAVE_MKOSTEMP -DHAVE_FLOCK -DHAVE_STRTOK_R -DHAVE_POSIX_FALLOCATE -Wl,-rpath=/data/data/com.termux/files/usr/lib -fopenmp -static-openmp -fno-openmp-implicit-rpath -Wl,--enable-new-dtags -Wl,--as-needed -Wl,-z,relro,-z,now -landroid-shmem` -> 1
stderr:
/home/builder/.termux-build/mesa/build/meson-private/tmpg52rzt6h/testfile.cpp:9:7: error: use of undeclared identifier 'qsort_r'
      qsort_r((void*)&arr[0], 1, 1, t, dcomp);
      ^
1 error generated.
-----------
Checking if "BSD qsort_r" : links: NO 
Running compile:
Working directory:  /home/builder/.termux-build/mesa/build/meson-private/tmp97jcc2i0
Code:
 
        #include <time.h>
        int main(void) {
            /* If it's not defined as a macro, try to use as a symbol */
            #ifndef struct timespec
                struct timespec;
            #endif
            return 0;
        }
-----------
Command line: `aarch64-linux-android-clang -I/data/data/com.termux/files/usr/include /home/builder/.termux-build/mesa/build/meson-private/tmp97jcc2i0/testfile.c -o /home/builder/.termux-build/mesa/build/meson-private/tmp97jcc2i0/output.obj -c -fstack-protector-strong -Oz -D__USE_GNU -D_FILE_OFFSET_BITS=64 -O0 -Werror=implicit-function-declaration -Werror=unknown-warning-option -Werror=unused-command-line-argument -Werror=ignored-optimization-argument -std=c11` -> 0
stderr:
/home/builder/.termux-build/mesa/build/meson-private/tmp97jcc2i0/testfile.c:5:28: warning: extra tokens at end of #ifndef directive [-Wextra-tokens]
            #ifndef struct timespec
                           ^
                           //
1 warning generated.
-----------
Header "time.h" has symbol "struct timespec" : YES 
Running compile:
Working directory:  /home/builder/.termux-build/mesa/build/meson-private/tmpjys7vzom
Code:
 #include <threads.h>
#include <limits.h>

        #if defined __stub_thrd_create || defined __stub___thrd_create
        fail fail fail this function is not going to work
        #endif
        
int main(void) {
            void *a = (void*) &thrd_create;
            long long b = (long long) a;
            return (int) b;
        }
-----------
Command line: `aarch64-linux-android-clang -L/data/data/com.termux/files/usr/lib -I/data/data/com.termux/files/usr/include /home/builder/.termux-build/mesa/build/meson-private/tmpjys7vzom/testfile.c -o /home/builder/.termux-build/mesa/build/meson-private/tmpjys7vzom/output.exe -fstack-protector-strong -Oz -D__USE_GNU -D_FILE_OFFSET_BITS=64 -O0 -Werror=implicit-function-declaration -std=c11 -Wl,-rpath=/data/data/com.termux/files/usr/lib -fopenmp -static-openmp -fno-openmp-implicit-rpath -Wl,--enable-new-dtags -Wl,--as-needed -Wl,-z,relro,-z,now -landroid-shmem` -> 0
Checking for function "thrd_create" : YES 
Running compile:
Working directory:  /home/builder/.termux-build/mesa/build/meson-private/tmpf_715u5b
Code:
 
        #include <errno.h>
        int main(void) {
            /* If it's not defined as a macro, try to use as a symbol */
            #ifndef program_invocation_name
                program_invocation_name;
            #endif
            return 0;
        }
-----------
Command line: `aarch64-linux-android-clang -I/data/data/com.termux/files/usr/include /home/builder/.termux-build/mesa/build/meson-private/tmpf_715u5b/testfile.c -o /home/builder/.termux-build/mesa/build/meson-private/tmpf_715u5b/output.obj -c -fstack-protector-strong -Oz -D__USE_GNU -D_FILE_OFFSET_BITS=64 -O0 -Werror=implicit-function-declaration -Werror=unknown-warning-option -Werror=unused-command-line-argument -Werror=ignored-optimization-argument -std=c11 -D_GNU_SOURCE` -> 1
stderr:
/home/builder/.termux-build/mesa/build/meson-private/tmpf_715u5b/testfile.c:6:17: error: use of undeclared identifier 'program_invocation_name'
                program_invocation_name;
                ^
1 error generated.
-----------
Header "errno.h" has symbol "program_invocation_name" : NO 
Running compile:
Working directory:  /home/builder/.termux-build/mesa/build/meson-private/tmpwcl51k_k
Code:
 
        #include <math.h>
        int main(void) {
            /* If it's not defined as a macro, try to use as a symbol */
            #ifndef issignaling
                issignaling;
            #endif
            return 0;
        }
-----------
Command line: `aarch64-linux-android-clang -I/data/data/com.termux/files/usr/include /home/builder/.termux-build/mesa/build/meson-private/tmpwcl51k_k/testfile.c -o /home/builder/.termux-build/mesa/build/meson-private/tmpwcl51k_k/output.obj -c -fstack-protector-strong -Oz -D__USE_GNU -D_FILE_OFFSET_BITS=64 -O0 -Werror=implicit-function-declaration -Werror=unknown-warning-option -Werror=unused-command-line-argument -Werror=ignored-optimization-argument -std=c11 -D_GNU_SOURCE` -> 1
stderr:
/home/builder/.termux-build/mesa/build/meson-private/tmpwcl51k_k/testfile.c:6:17: error: use of undeclared identifier 'issignaling'
                issignaling;
                ^
1 error generated.
-----------
Header "math.h" has symbol "issignaling" : NO 
Running compile:
Working directory:  /home/builder/.termux-build/mesa/build/meson-private/tmp4ercq4jm
Code:
 
        #define posix_memalign meson_disable_define_of_posix_memalign
        
        #include <limits.h>
        #undef posix_memalign
        
        #ifdef __cplusplus
        extern "C"
        #endif
        char posix_memalign (void);
        
        #if defined __stub_posix_memalign || defined __stub___posix_memalign
        fail fail fail this function is not going to work
        #endif
        
        int main(void) {
          return posix_memalign ();
        }
-----------
Command line: `aarch64-linux-android-clang -L/data/data/com.termux/files/usr/lib -I/data/data/com.termux/files/usr/include /home/builder/.termux-build/mesa/build/meson-private/tmp4ercq4jm/testfile.c -o /home/builder/.termux-build/mesa/build/meson-private/tmp4ercq4jm/output.exe -fstack-protector-strong -Oz -D__USE_GNU -D_FILE_OFFSET_BITS=64 -O0 -Werror=implicit-function-declaration -std=c11 -Wl,-rpath=/data/data/com.termux/files/usr/lib -fopenmp -static-openmp -fno-openmp-implicit-rpath -Wl,--enable-new-dtags -Wl,--as-needed -Wl,-z,relro,-z,now -landroid-shmem` -> 0
Checking for function "posix_memalign" : YES 
Running compile:
Working directory:  /home/builder/.termux-build/mesa/build/meson-private/tmpox8lll_i
Code:
 #include <sys/types.h>
   #include <dirent.h>
        void bar(void) {
            struct dirent foo;
            foo.d_type;

        }
-----------
Command line: `aarch64-linux-android-clang -I/data/data/com.termux/files/usr/include /home/builder/.termux-build/mesa/build/meson-private/tmpox8lll_i/testfile.c -o /home/builder/.termux-build/mesa/build/meson-private/tmpox8lll_i/output.obj -c -fstack-protector-strong -Oz -D__USE_GNU -D_FILE_OFFSET_BITS=64 -O0 -Werror=implicit-function-declaration -Werror=unknown-warning-option -Werror=unused-command-line-argument -Werror=ignored-optimization-argument -std=c11` -> 0
stderr:
/home/builder/.termux-build/mesa/build/meson-private/tmpox8lll_i/testfile.c:5:17: warning: expression result unused [-Wunused-value]
            foo.d_type;
            ~~~ ^~~~~~
1 warning generated.
-----------
Checking whether type "struct dirent" has member "d_type" : YES 
Running compile:
Working directory:  /home/builder/.termux-build/mesa/build/meson-private/tmph506mus8
Code:
 
    #define _GNU_SOURCE
    #include <stdlib.h>
    #include <locale.h>
    #ifdef HAVE_XLOCALE_H
    #include <xlocale.h>
    #endif
    int main() {
      locale_t loc = newlocale(LC_CTYPE_MASK, "C", NULL);
      const char *s = "1.0";
      char *end;
      double d = strtod_l(s, &end, loc);
      float f = strtof_l(s, &end, loc);
      freelocale(loc);
      return 0;
    }
-----------
Command line: `aarch64-linux-android-clang -L/data/data/com.termux/files/usr/lib -I/data/data/com.termux/files/usr/include /home/builder/.termux-build/mesa/build/meson-private/tmph506mus8/testfile.c -o /home/builder/.termux-build/mesa/build/meson-private/tmph506mus8/output.exe -fstack-protector-strong -Oz -D__USE_GNU -D_FILE_OFFSET_BITS=64 -O0 -Werror=implicit-function-declaration -std=c11 -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS '-DPACKAGE_VERSION="24.0.8"' '-DPACKAGE_BUGREPORT="https://gitlab.freedesktop.org/mesa/mesa/-/issues"' -DHAVE_OPENGL=1 -DHAVE_OPENGL_ES_1=0 -DHAVE_OPENGL_ES_2=1 -DHAVE_SWRAST -DHAVE_VIRGL -DHAVE_ZINK -DUSE_VK_COMPILER=1 -DVIDEO_CODEC_VC1DEC=0 -DVIDEO_CODEC_H264DEC=0 -DVIDEO_CODEC_H264ENC=0 -DVIDEO_CODEC_H265DEC=0 -DVIDEO_CODEC_H265ENC=0 -DVIDEO_CODEC_AV1DEC=1 -DVIDEO_CODEC_AV1ENC=1 -DVIDEO_CODEC_VP9DEC=1 -DHAVE_X11_PLATFORM -DHAVE_WAYLAND_PLATFORM -DHAVE_SURFACELESS_PLATFORM -DHAVE_DRM_PLATFORM -DHAVE_XCB_PLATFORM -DENABLE_ST_OMX_BELLAGIO=0 -DENABLE_ST_OMX_TIZONIA=0 -DGLX_INDIRECT_RENDERING -DGLX_DIRECT_RENDERING -DGLX_USE_DRM -DGLAPI_EXPORT_PROTO_ENTRY_POINTS=0 -DALLOW_KCMP -DENABLE_SHADER_CACHE -DHAVE___BUILTIN_BSWAP32 -DHAVE___BUILTIN_BSWAP64 -DHAVE___BUILTIN_CLZ -DHAVE___BUILTIN_CLZLL -DHAVE___BUILTIN_CTZ -DHAVE___BUILTIN_EXPECT -DHAVE___BUILTIN_FFS -DHAVE___BUILTIN_FFSLL -DHAVE___BUILTIN_POPCOUNT -DHAVE___BUILTIN_POPCOUNTLL -DHAVE___BUILTIN_UNREACHABLE -DHAVE___BUILTIN_TYPES_COMPATIBLE_P -DHAVE_FUNC_ATTRIBUTE_CONST -DHAVE_FUNC_ATTRIBUTE_FLATTEN -DHAVE_FUNC_ATTRIBUTE_MALLOC -DHAVE_FUNC_ATTRIBUTE_PURE -DHAVE_FUNC_ATTRIBUTE_UNUSED -DHAVE_FUNC_ATTRIBUTE_WARN_UNUSED_RESULT -DHAVE_FUNC_ATTRIBUTE_WEAK -DHAVE_FUNC_ATTRIBUTE_FORMAT -DHAVE_FUNC_ATTRIBUTE_PACKED -DHAVE_FUNC_ATTRIBUTE_RETURNS_NONNULL -DHAVE_FUNC_ATTRIBUTE_ALIAS -DHAVE_FUNC_ATTRIBUTE_NORETURN -DHAVE_FUNC_ATTRIBUTE_VISIBILITY -DHAVE_UINT128 -DHAVE_FMEMOPEN -D_GNU_SOURCE -DUSE_GCC_ATOMIC_BUILTINS -DUSE_AARCH64_ASM -DMAJOR_IN_SYSMACROS -DHAS_SCHED_H -DHAS_SCHED_GETAFFINITY -DHAVE_LINUX_FUTEX_H -DHAVE_ENDIAN_H -DHAVE_DLFCN_H -DHAVE_SYS_SHM_H -DHAVE_CET_H -DHAVE_SYS_INOTIFY_H -DHAVE_STRTOF -DHAVE_MKOSTEMP -DHAVE_FLOCK -DHAVE_STRTOK_R -DHAVE_POSIX_FALLOCATE -DHAVE_STRUCT_TIMESPEC -DHAVE_POSIX_MEMALIGN -DHAVE_DIRENT_D_TYPE -Wl,-rpath=/data/data/com.termux/files/usr/lib -fopenmp -static-openmp -fno-openmp-implicit-rpath -Wl,--enable-new-dtags -Wl,--as-needed -Wl,-z,relro,-z,now -landroid-shmem` -> 0
stderr:
/home/builder/.termux-build/mesa/build/meson-private/tmph506mus8/testfile.c:2:13: warning: '_GNU_SOURCE' macro redefined [-Wmacro-redefined]
    #define _GNU_SOURCE
            ^
<command line>:63:9: note: previous definition is here
#define _GNU_SOURCE 1
        ^
1 warning generated.
-----------
Checking if "strtod has locale support" : links: YES 
Running compile:
Working directory:  /home/builder/.termux-build/mesa/build/meson-private/tmphz32skq6
Code:
 int main() { return 0; }
-----------
Command line: `aarch64-linux-android-clang -L/data/data/com.termux/files/usr/lib -I/data/data/com.termux/files/usr/include /home/builder/.termux-build/mesa/build/meson-private/tmphz32skq6/testfile.c -o /home/builder/.termux-build/mesa/build/meson-private/tmphz32skq6/output.exe -fstack-protector-strong -Oz -D__USE_GNU -D_FILE_OFFSET_BITS=64 -O0 -Werror=implicit-function-declaration -std=c11 -Wl,-Bsymbolic -Wl,-rpath=/data/data/com.termux/files/usr/lib -fopenmp -static-openmp -fno-openmp-implicit-rpath -Wl,--enable-new-dtags -Wl,--as-needed -Wl,-z,relro,-z,now -landroid-shmem` -> 0
Checking if "Bsymbolic" : links: YES 
Running compile:
Working directory:  /home/builder/.termux-build/mesa/build/meson-private/tmpibi9k6jy
Code:
 int main() { return 0; }
-----------
Command line: `aarch64-linux-android-clang -L/data/data/com.termux/files/usr/lib -I/data/data/com.termux/files/usr/include /home/builder/.termux-build/mesa/build/meson-private/tmpibi9k6jy/testfile.c -o /home/builder/.termux-build/mesa/build/meson-private/tmpibi9k6jy/output.exe -fstack-protector-strong -Oz -D__USE_GNU -D_FILE_OFFSET_BITS=64 -O0 -Werror=implicit-function-declaration -std=c11 -Wl,--version-script=/home/builder/.termux-build/mesa/src/build-support/conftest.map -Wl,-rpath=/data/data/com.termux/files/usr/lib -fopenmp -static-openmp -fno-openmp-implicit-rpath -Wl,--enable-new-dtags -Wl,--as-needed -Wl,-z,relro,-z,now -landroid-shmem` -> 0
Checking if "version-script" : links: YES 
Running compile:
Working directory:  /home/builder/.termux-build/mesa/build/meson-private/tmppkpw4g4o
Code:
 int main() { return 0; }
-----------
Command line: `aarch64-linux-android-clang -L/data/data/com.termux/files/usr/lib -I/data/data/com.termux/files/usr/include /home/builder/.termux-build/mesa/build/meson-private/tmppkpw4g4o/testfile.c -o /home/builder/.termux-build/mesa/build/meson-private/tmppkpw4g4o/output.exe -fstack-protector-strong -Oz -D__USE_GNU -D_FILE_OFFSET_BITS=64 -O0 -Werror=implicit-function-declaration -std=c11 -Wl,--dynamic-list=/home/builder/.termux-build/mesa/src/build-support/conftest.dyn -Wl,-rpath=/data/data/com.termux/files/usr/lib -fopenmp -static-openmp -fno-openmp-implicit-rpath -Wl,--enable-new-dtags -Wl,--as-needed -Wl,-z,relro,-z,now -landroid-shmem` -> 0
Checking if "dynamic-list" : links: YES 
Running compile:
Working directory:  /home/builder/.termux-build/mesa/build/meson-private/tmpvddxf66k
Code:
 int main(void) { return 0; }

-----------
Command line: `aarch64-linux-android-clang -L/data/data/com.termux/files/usr/lib -I/data/data/com.termux/files/usr/include /home/builder/.termux-build/mesa/build/meson-private/tmpvddxf66k/testfile.c -o /home/builder/.termux-build/mesa/build/meson-private/tmpvddxf66k/output.exe -fstack-protector-strong -Oz -D__USE_GNU -D_FILE_OFFSET_BITS=64 -O0 -Werror=implicit-function-declaration -Wl,--fatal-warnings -Wl,--build-id=sha1 -Wl,-rpath=/data/data/com.termux/files/usr/lib -fopenmp -static-openmp -fno-openmp-implicit-rpath -Wl,--enable-new-dtags -Wl,--as-needed -Wl,-z,relro,-z,now -landroid-shmem` -> 0
Compiler for C supports link arguments -Wl,--build-id=sha1: YES 
Running compile:
Working directory:  /home/builder/.termux-build/mesa/build/meson-private/tmpog1fhjq0
Code:
 
        #define dlopen meson_disable_define_of_dlopen
        
        #include <limits.h>
        #undef dlopen
        
        #ifdef __cplusplus
        extern "C"
        #endif
        char dlopen (void);
        
        #if defined __stub_dlopen || defined __stub___dlopen
        fail fail fail this function is not going to work
        #endif
        
        int main(void) {
          return dlopen ();
        }
-----------
Command line: `aarch64-linux-android-clang -L/data/data/com.termux/files/usr/lib -I/data/data/com.termux/files/usr/include /home/builder/.termux-build/mesa/build/meson-private/tmpog1fhjq0/testfile.c -o /home/builder/.termux-build/mesa/build/meson-private/tmpog1fhjq0/output.exe -fstack-protector-strong -Oz -D__USE_GNU -D_FILE_OFFSET_BITS=64 -O0 -Werror=implicit-function-declaration -std=c11 -Wl,-rpath=/data/data/com.termux/files/usr/lib -fopenmp -static-openmp -fno-openmp-implicit-rpath -Wl,--enable-new-dtags -Wl,--as-needed -Wl,-z,relro,-z,now -landroid-shmem` -> 0
Checking for function "dlopen" : YES 
Running compile:
Working directory:  /home/builder/.termux-build/mesa/build/meson-private/tmpzgrjr8dn
Code:
 
        #define dladdr meson_disable_define_of_dladdr
        
        #include <limits.h>
        #undef dladdr
        
        #ifdef __cplusplus
        extern "C"
        #endif
        char dladdr (void);
        
        #if defined __stub_dladdr || defined __stub___dladdr
        fail fail fail this function is not going to work
        #endif
        
        int main(void) {
          return dladdr ();
        }
-----------
Command line: `aarch64-linux-android-clang -L/data/data/com.termux/files/usr/lib -I/data/data/com.termux/files/usr/include /home/builder/.termux-build/mesa/build/meson-private/tmpzgrjr8dn/testfile.c -o /home/builder/.termux-build/mesa/build/meson-private/tmpzgrjr8dn/output.exe -fstack-protector-strong -Oz -D__USE_GNU -D_FILE_OFFSET_BITS=64 -O0 -Werror=implicit-function-declaration -std=c11 -Wl,-rpath=/data/data/com.termux/files/usr/lib -fopenmp -static-openmp -fno-openmp-implicit-rpath -Wl,--enable-new-dtags -Wl,--as-needed -Wl,-z,relro,-z,now -landroid-shmem` -> 0
Checking for function "dladdr" with dependency : YES 
Running compile:
Working directory:  /home/builder/.termux-build/mesa/build/meson-private/tmp5em6r7yq
Code:
 
        #define dl_iterate_phdr meson_disable_define_of_dl_iterate_phdr
        
        #include <limits.h>
        #undef dl_iterate_phdr
        
        #ifdef __cplusplus
        extern "C"
        #endif
        char dl_iterate_phdr (void);
        
        #if defined __stub_dl_iterate_phdr || defined __stub___dl_iterate_phdr
        fail fail fail this function is not going to work
        #endif
        
        int main(void) {
          return dl_iterate_phdr ();
        }
-----------
Command line: `aarch64-linux-android-clang -L/data/data/com.termux/files/usr/lib -I/data/data/com.termux/files/usr/include /home/builder/.termux-build/mesa/build/meson-private/tmp5em6r7yq/testfile.c -o /home/builder/.termux-build/mesa/build/meson-private/tmp5em6r7yq/output.exe -fstack-protector-strong -Oz -D__USE_GNU -D_FILE_OFFSET_BITS=64 -O0 -Werror=implicit-function-declaration -std=c11 -Wl,-rpath=/data/data/com.termux/files/usr/lib -fopenmp -static-openmp -fno-openmp-implicit-rpath -Wl,--enable-new-dtags -Wl,--as-needed -Wl,-z,relro,-z,now -landroid-shmem` -> 0
Checking for function "dl_iterate_phdr" : YES 
Running compile:
Working directory:  /home/builder/.termux-build/mesa/build/meson-private/tmprg09146u
Code:
 
        #define clock_gettime meson_disable_define_of_clock_gettime
        
        #include <limits.h>
        #undef clock_gettime
        
        #ifdef __cplusplus
        extern "C"
        #endif
        char clock_gettime (void);
        
        #if defined __stub_clock_gettime || defined __stub___clock_gettime
        fail fail fail this function is not going to work
        #endif
        
        int main(void) {
          return clock_gettime ();
        }
-----------
Command line: `aarch64-linux-android-clang -L/data/data/com.termux/files/usr/lib -I/data/data/com.termux/files/usr/include /home/builder/.termux-build/mesa/build/meson-private/tmprg09146u/testfile.c -o /home/builder/.termux-build/mesa/build/meson-private/tmprg09146u/output.exe -fstack-protector-strong -Oz -D__USE_GNU -D_FILE_OFFSET_BITS=64 -O0 -Werror=implicit-function-declaration -std=c11 -Wl,-rpath=/data/data/com.termux/files/usr/lib -fopenmp -static-openmp -fno-openmp-implicit-rpath -Wl,--enable-new-dtags -Wl,--as-needed -Wl,-z,relro,-z,now -landroid-shmem` -> 0
Checking for function "clock_gettime" : YES 
Determining dependency 'zlib' with pkg-config executable '/home/builder/.termux-build/mesa/build/_wrapper/bin/pkg-config'
env[PKG_CONFIG_LIBDIR]: /data/data/com.termux/files/usr/lib/pkgconfig:/data/data/com.termux/files/usr/share/pkgconfig
env[PKG_CONFIG]: /home/builder/.termux-build/mesa/build/_wrapper/bin/pkg-config
env[PKG_CONFIG_PATH]: 
-----------
Called: `/home/builder/.termux-build/mesa/build/_wrapper/bin/pkg-config --modversion zlib` -> 0
stdout:
1.3.1
-----------
env[PKG_CONFIG_LIBDIR]: /data/data/com.termux/files/usr/lib/pkgconfig:/data/data/com.termux/files/usr/share/pkgconfig
env[PKG_CONFIG]: /home/builder/.termux-build/mesa/build/_wrapper/bin/pkg-config
env[PKG_CONFIG_PATH]: 
-----------
Called: `/home/builder/.termux-build/mesa/build/_wrapper/bin/pkg-config --cflags zlib` -> 0
stdout:
-I/data/data/com.termux/files/usr/include
-----------
env[PKG_CONFIG_LIBDIR]: /data/data/com.termux/files/usr/lib/pkgconfig:/data/data/com.termux/files/usr/share/pkgconfig
env[PKG_CONFIG]: /home/builder/.termux-build/mesa/build/_wrapper/bin/pkg-config
env[PKG_CONFIG_ALLOW_SYSTEM_LIBS]: 1
env[PKG_CONFIG_PATH]: 
-----------
Called: `/home/builder/.termux-build/mesa/build/_wrapper/bin/pkg-config --libs zlib` -> 0
stdout:
-L/data/data/com.termux/files/usr/lib -lz
-----------
env[PKG_CONFIG_LIBDIR]: /data/data/com.termux/files/usr/lib/pkgconfig:/data/data/com.termux/files/usr/share/pkgconfig
env[PKG_CONFIG]: /home/builder/.termux-build/mesa/build/_wrapper/bin/pkg-config
env[PKG_CONFIG_PATH]: 
-----------
Called: `/home/builder/.termux-build/mesa/build/_wrapper/bin/pkg-config --libs zlib` -> 0
stdout:
-L/data/data/com.termux/files/usr/lib -lz
-----------
Running compile:
Working directory:  /home/builder/.termux-build/mesa/build/meson-private/tmp_audpywi
Code:
 
        #include <stddef.h>
        int main(void) {
            void * something;
            return 0;
        }
-----------
Command line: `aarch64-linux-android-clang++ -I/data/data/com.termux/files/usr/include /home/builder/.termux-build/mesa/build/meson-private/tmp_audpywi/testfile.cpp -o /home/builder/.termux-build/mesa/build/meson-private/tmp_audpywi/output.obj -c -fstack-protector-strong -Oz -D__USE_GNU -D_FILE_OFFSET_BITS=64 -O0 -fpermissive -Werror=implicit-function-declaration -Werror=unknown-warning-option -Werror=unused-command-line-argument -Werror=ignored-optimization-argument` -> 0
Running compile:
Working directory:  /home/builder/.termux-build/mesa/build/meson-private/tmp4v6lu8fv
Code:
 
        #include <stddef.h>
        int main(void) { static int a[1-2*!(sizeof(void *) >= 0)]; a[0]=0; return 0; }
-----------
Command line: `aarch64-linux-android-clang++ -I/data/data/com.termux/files/usr/include /home/builder/.termux-build/mesa/build/meson-private/tmp4v6lu8fv/testfile.cpp -o /home/builder/.termux-build/mesa/build/meson-private/tmp4v6lu8fv/output.obj -c -fstack-protector-strong -Oz -D__USE_GNU -D_FILE_OFFSET_BITS=64 -O0 -fpermissive -Werror=implicit-function-declaration -Werror=unknown-warning-option -Werror=unused-command-line-argument -Werror=ignored-optimization-argument` -> 0
Running compile:
Working directory:  /home/builder/.termux-build/mesa/build/meson-private/tmpk4qrgic3
Code:
 
        #include <stddef.h>
        int main(void) { static int a[1-2*!(sizeof(void *) > 0)]; a[0]=0; return 0; }
-----------
Command line: `aarch64-linux-android-clang++ -I/data/data/com.termux/files/usr/include /home/builder/.termux-build/mesa/build/meson-private/tmpk4qrgic3/testfile.cpp -o /home/builder/.termux-build/mesa/build/meson-private/tmpk4qrgic3/output.obj -c -fstack-protector-strong -Oz -D__USE_GNU -D_FILE_OFFSET_BITS=64 -O0 -fpermissive -Werror=implicit-function-declaration -Werror=unknown-warning-option -Werror=unused-command-line-argument -Werror=ignored-optimization-argument` -> 0
Running compile:
Working directory:  /home/builder/.termux-build/mesa/build/meson-private/tmpoqvv_6dz
Code:
 
        #include <stddef.h>
        int main(void) { static int a[1-2*!(sizeof(void *) > 1)]; a[0]=0; return 0; }
-----------
Command line: `aarch64-linux-android-clang++ -I/data/data/com.termux/files/usr/include /home/builder/.termux-build/mesa/build/meson-private/tmpoqvv_6dz/testfile.cpp -o /home/builder/.termux-build/mesa/build/meson-private/tmpoqvv_6dz/output.obj -c -fstack-protector-strong -Oz -D__USE_GNU -D_FILE_OFFSET_BITS=64 -O0 -fpermissive -Werror=implicit-function-declaration -Werror=unknown-warning-option -Werror=unused-command-line-argument -Werror=ignored-optimization-argument` -> 0
Running compile:
Working directory:  /home/builder/.termux-build/mesa/build/meson-private/tmpgoha92pr
Code:
 
        #include <stddef.h>
        int main(void) { static int a[1-2*!(sizeof(void *) > 3)]; a[0]=0; return 0; }
-----------
Command line: `aarch64-linux-android-clang++ -I/data/data/com.termux/files/usr/include /home/builder/.termux-build/mesa/build/meson-private/tmpgoha92pr/testfile.cpp -o /home/builder/.termux-build/mesa/build/meson-private/tmpgoha92pr/output.obj -c -fstack-protector-strong -Oz -D__USE_GNU -D_FILE_OFFSET_BITS=64 -O0 -fpermissive -Werror=implicit-function-declaration -Werror=unknown-warning-option -Werror=unused-command-line-argument -Werror=ignored-optimization-argument` -> 0
Running compile:
Working directory:  /home/builder/.termux-build/mesa/build/meson-private/tmp57a262yw
Code:
 
        #include <stddef.h>
        int main(void) { static int a[1-2*!(sizeof(void *) > 7)]; a[0]=0; return 0; }
-----------
Command line: `aarch64-linux-android-clang++ -I/data/data/com.termux/files/usr/include /home/builder/.termux-build/mesa/build/meson-private/tmp57a262yw/testfile.cpp -o /home/builder/.termux-build/mesa/build/meson-private/tmp57a262yw/output.obj -c -fstack-protector-strong -Oz -D__USE_GNU -D_FILE_OFFSET_BITS=64 -O0 -fpermissive -Werror=implicit-function-declaration -Werror=unknown-warning-option -Werror=unused-command-line-argument -Werror=ignored-optimization-argument` -> 0
Running compile:
Working directory:  /home/builder/.termux-build/mesa/build/meson-private/tmppfw8_1lx
Code:
 
        #include <stddef.h>
        int main(void) { static int a[1-2*!(sizeof(void *) > 15)]; a[0]=0; return 0; }
-----------
Command line: `aarch64-linux-android-clang++ -I/data/data/com.termux/files/usr/include /home/builder/.termux-build/mesa/build/meson-private/tmppfw8_1lx/testfile.cpp -o /home/builder/.termux-build/mesa/build/meson-private/tmppfw8_1lx/output.obj -c -fstack-protector-strong -Oz -D__USE_GNU -D_FILE_OFFSET_BITS=64 -O0 -fpermissive -Werror=implicit-function-declaration -Werror=unknown-warning-option -Werror=unused-command-line-argument -Werror=ignored-optimization-argument` -> 1
stderr:
/home/builder/.termux-build/mesa/build/meson-private/tmppfw8_1lx/testfile.cpp:3:39: error: 'a' declared as an array with a negative size
        int main(void) { static int a[1-2*!(sizeof(void *) > 15)]; a[0]=0; return 0; }
                                      ^~~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
-----------
Running compile:
Working directory:  /home/builder/.termux-build/mesa/build/meson-private/tmppwiqtpcp
Code:
 
        #include <stddef.h>
        int main(void) { static int a[1-2*!(sizeof(void *) <= 11)]; a[0]=0; return 0; }
-----------
Command line: `aarch64-linux-android-clang++ -I/data/data/com.termux/files/usr/include /home/builder/.termux-build/mesa/build/meson-private/tmppwiqtpcp/testfile.cpp -o /home/builder/.termux-build/mesa/build/meson-private/tmppwiqtpcp/output.obj -c -fstack-protector-strong -Oz -D__USE_GNU -D_FILE_OFFSET_BITS=64 -O0 -fpermissive -Werror=implicit-function-declaration -Werror=unknown-warning-option -Werror=unused-command-line-argument -Werror=ignored-optimization-argument` -> 0
Running compile:
Working directory:  /home/builder/.termux-build/mesa/build/meson-private/tmp46yzknna
Code:
 
        #include <stddef.h>
        int main(void) { static int a[1-2*!(sizeof(void *) <= 9)]; a[0]=0; return 0; }
-----------
Command line: `aarch64-linux-android-clang++ -I/data/data/com.termux/files/usr/include /home/builder/.termux-build/mesa/build/meson-private/tmp46yzknna/testfile.cpp -o /home/builder/.termux-build/mesa/build/meson-private/tmp46yzknna/output.obj -c -fstack-protector-strong -Oz -D__USE_GNU -D_FILE_OFFSET_BITS=64 -O0 -fpermissive -Werror=implicit-function-declaration -Werror=unknown-warning-option -Werror=unused-command-line-argument -Werror=ignored-optimization-argument` -> 0
Running compile:
Working directory:  /home/builder/.termux-build/mesa/build/meson-private/tmpiz3lo1be
Code:
 
        #include <stddef.h>
        int main(void) { static int a[1-2*!(sizeof(void *) <= 8)]; a[0]=0; return 0; }
-----------
Command line: `aarch64-linux-android-clang++ -I/data/data/com.termux/files/usr/include /home/builder/.termux-build/mesa/build/meson-private/tmpiz3lo1be/testfile.cpp -o /home/builder/.termux-build/mesa/build/meson-private/tmpiz3lo1be/output.obj -c -fstack-protector-strong -Oz -D__USE_GNU -D_FILE_OFFSET_BITS=64 -O0 -fpermissive -Werror=implicit-function-declaration -Werror=unknown-warning-option -Werror=unused-command-line-argument -Werror=ignored-optimization-argument` -> 0
Running compile:
Working directory:  /home/builder/.termux-build/mesa/build/meson-private/tmp3m_5x10q
Code:
 
-----------
Command line: `aarch64-linux-android-clang++ -I/data/data/com.termux/files/usr/include /home/builder/.termux-build/mesa/build/meson-private/tmp3m_5x10q/testfile.cpp -o /home/builder/.termux-build/mesa/build/meson-private/tmp3m_5x10q/output.obj -c -fstack-protector-strong -Oz -D__USE_GNU -D_FILE_OFFSET_BITS=64 -O0 -fpermissive -Werror=implicit-function-declaration -Werror=unknown-warning-option -Werror=unused-command-line-argument -Werror=ignored-optimization-argument --print-search-dirs` -> 0
stdout:
programs: =/home/builder/.termux-build/_cache/android-r26b-api-24-v4/bin
libraries: =/home/builder/.termux-build/_cache/android-r26b-api-24-v4/lib/clang/17:/home/builder/.termux-build/_cache/android-r26b-api-24-v4/lib/clang/17/lib/linux/aarch64:/home/builder/.termux-build/_cache/android-r26b-api-24-v4/bin/../sysroot/usr/lib/aarch64-linux-android/24:/home/builder/.termux-build/_cache/android-r26b-api-24-v4/bin/../sysroot/usr/lib/aarch64-linux-android:/home/builder/.termux-build/_cache/android-r26b-api-24-v4/bin/../sysroot/usr/lib
-----------
Run-time dependency zlib found: YES 1.3.1
Determining dependency 'libzstd' with pkg-config executable '/home/builder/.termux-build/mesa/build/_wrapper/bin/pkg-config'
env[PKG_CONFIG_LIBDIR]: /data/data/com.termux/files/usr/lib/pkgconfig:/data/data/com.termux/files/usr/share/pkgconfig
env[PKG_CONFIG]: /home/builder/.termux-build/mesa/build/_wrapper/bin/pkg-config
env[PKG_CONFIG_PATH]: 
-----------
Called: `/home/builder/.termux-build/mesa/build/_wrapper/bin/pkg-config --modversion libzstd` -> 0
stdout:
1.5.6
-----------
env[PKG_CONFIG_LIBDIR]: /data/data/com.termux/files/usr/lib/pkgconfig:/data/data/com.termux/files/usr/share/pkgconfig
env[PKG_CONFIG]: /home/builder/.termux-build/mesa/build/_wrapper/bin/pkg-config
env[PKG_CONFIG_PATH]: 
-----------
Called: `/home/builder/.termux-build/mesa/build/_wrapper/bin/pkg-config --cflags libzstd` -> 0
stdout:
-I/data/data/com.termux/files/usr/include
-----------
env[PKG_CONFIG_LIBDIR]: /data/data/com.termux/files/usr/lib/pkgconfig:/data/data/com.termux/files/usr/share/pkgconfig
env[PKG_CONFIG]: /home/builder/.termux-build/mesa/build/_wrapper/bin/pkg-config
env[PKG_CONFIG_ALLOW_SYSTEM_LIBS]: 1
env[PKG_CONFIG_PATH]: 
-----------
Called: `/home/builder/.termux-build/mesa/build/_wrapper/bin/pkg-config --libs libzstd` -> 0
stdout:
-L/data/data/com.termux/files/usr/lib -lzstd
-----------
env[PKG_CONFIG_LIBDIR]: /data/data/com.termux/files/usr/lib/pkgconfig:/data/data/com.termux/files/usr/share/pkgconfig
env[PKG_CONFIG]: /home/builder/.termux-build/mesa/build/_wrapper/bin/pkg-config
env[PKG_CONFIG_PATH]: 
-----------
Called: `/home/builder/.termux-build/mesa/build/_wrapper/bin/pkg-config --libs libzstd` -> 0
stdout:
-L/data/data/com.termux/files/usr/lib -lzstd
-----------
Run-time dependency libzstd found: YES 1.5.6
Run-time dependency threads found: YES
Running compile:
Working directory:  /home/builder/.termux-build/mesa/build/meson-private/tmp9i_61t6_
Code:
 #include <pthread.h>
#include <limits.h>

        #if defined __stub_pthread_setaffinity_np || defined __stub___pthread_setaffinity_np
        fail fail fail this function is not going to work
        #endif
        
int main(void) {
            void *a = (void*) &pthread_setaffinity_np;
            long long b = (long long) a;
            return (int) b;
        }
-----------
Command line: `aarch64-linux-android-clang -L/data/data/com.termux/files/usr/lib -I/data/data/com.termux/files/usr/include /home/builder/.termux-build/mesa/build/meson-private/tmp9i_61t6_/testfile.c -o /home/builder/.termux-build/mesa/build/meson-private/tmp9i_61t6_/output.exe -pthread -fstack-protector-strong -Oz -D__USE_GNU -D_FILE_OFFSET_BITS=64 -O0 -Werror=implicit-function-declaration -std=c11 -D_GNU_SOURCE -Wl,-rpath=/data/data/com.termux/files/usr/lib -fopenmp -static-openmp -fno-openmp-implicit-rpath -Wl,--enable-new-dtags -Wl,--as-needed -Wl,-z,relro,-z,now -landroid-shmem` -> 1
stderr:
/home/builder/.termux-build/mesa/build/meson-private/tmp9i_61t6_/testfile.c:9:32: error: use of undeclared identifier 'pthread_setaffinity_np'
            void *a = (void*) &pthread_setaffinity_np;
                               ^
1 error generated.
-----------
Running compile:
Working directory:  /home/builder/.termux-build/mesa/build/meson-private/tmpufk4b6gp
Code:
 #include <pthread.h>
        int main(void) {

        /* With some toolchains (MSYS2/mingw for example) the compiler
         * provides various builtins which are not really implemented and
         * fall back to the stdlib where they aren't provided and fail at
         * build/link time. In case the user provides a header, including
         * the header didn't lead to the function being defined, and the
         * function we are checking isn't a builtin itself we assume the
         * builtin is not functional and we just error out. */
        #if !0 && !defined(pthread_setaffinity_np) && !0
            #error "No definition for __builtin_pthread_setaffinity_np found in the prefix"
        #endif

        #ifdef __has_builtin
            #if !__has_builtin(__builtin_pthread_setaffinity_np)
                #error "__builtin_pthread_setaffinity_np not found"
            #endif
        #elif ! defined(pthread_setaffinity_np)
            __builtin_pthread_setaffinity_np;
        #endif
        return 0;
        }
-----------
Command line: `aarch64-linux-android-clang -L/data/data/com.termux/files/usr/lib -I/data/data/com.termux/files/usr/include /home/builder/.termux-build/mesa/build/meson-private/tmpufk4b6gp/testfile.c -o /home/builder/.termux-build/mesa/build/meson-private/tmpufk4b6gp/output.exe -pthread -fstack-protector-strong -Oz -D__USE_GNU -D_FILE_OFFSET_BITS=64 -O0 -Werror=implicit-function-declaration -std=c11 -D_GNU_SOURCE -Wl,-rpath=/data/data/com.termux/files/usr/lib -fopenmp -static-openmp -fno-openmp-implicit-rpath -Wl,--enable-new-dtags -Wl,--as-needed -Wl,-z,relro,-z,now -landroid-shmem` -> 1
stderr:
/home/builder/.termux-build/mesa/build/meson-private/tmpufk4b6gp/testfile.c:12:14: error: "No definition for __builtin_pthread_setaffinity_np found in the prefix"
            #error "No definition for __builtin_pthread_setaffinity_np found in the prefix"
             ^
/home/builder/.termux-build/mesa/build/meson-private/tmpufk4b6gp/testfile.c:17:18: error: "__builtin_pthread_setaffinity_np not found"
                #error "__builtin_pthread_setaffinity_np not found"
                 ^
2 errors generated.
-----------
Checking for function "pthread_setaffinity_np" with dependency threads: NO 
Determining dependency 'expat' with pkg-config executable '/home/builder/.termux-build/mesa/build/_wrapper/bin/pkg-config'
env[PKG_CONFIG_LIBDIR]: /data/data/com.termux/files/usr/lib/pkgconfig:/data/data/com.termux/files/usr/share/pkgconfig
env[PKG_CONFIG]: /home/builder/.termux-build/mesa/build/_wrapper/bin/pkg-config
env[PKG_CONFIG_PATH]: 
-----------
Called: `/home/builder/.termux-build/mesa/build/_wrapper/bin/pkg-config --modversion expat` -> 0
stdout:
2.6.2
-----------
env[PKG_CONFIG_LIBDIR]: /data/data/com.termux/files/usr/lib/pkgconfig:/data/data/com.termux/files/usr/share/pkgconfig
env[PKG_CONFIG]: /home/builder/.termux-build/mesa/build/_wrapper/bin/pkg-config
env[PKG_CONFIG_PATH]: 
-----------
Called: `/home/builder/.termux-build/mesa/build/_wrapper/bin/pkg-config --cflags expat` -> 0
stdout:
-I/data/data/com.termux/files/usr/include
-----------
env[PKG_CONFIG_LIBDIR]: /data/data/com.termux/files/usr/lib/pkgconfig:/data/data/com.termux/files/usr/share/pkgconfig
env[PKG_CONFIG]: /home/builder/.termux-build/mesa/build/_wrapper/bin/pkg-config
env[PKG_CONFIG_ALLOW_SYSTEM_LIBS]: 1
env[PKG_CONFIG_PATH]: 
-----------
Called: `/home/builder/.termux-build/mesa/build/_wrapper/bin/pkg-config --libs expat` -> 0
stdout:
-L/data/data/com.termux/files/usr/lib -lexpat
-----------
env[PKG_CONFIG_LIBDIR]: /data/data/com.termux/files/usr/lib/pkgconfig:/data/data/com.termux/files/usr/share/pkgconfig
env[PKG_CONFIG]: /home/builder/.termux-build/mesa/build/_wrapper/bin/pkg-config
env[PKG_CONFIG_PATH]: 
-----------
Called: `/home/builder/.termux-build/mesa/build/_wrapper/bin/pkg-config --libs expat` -> 0
stdout:
-L/data/data/com.termux/files/usr/lib -lexpat
-----------
Run-time dependency expat found: YES 2.6.2
Running compile:
Working directory:  /home/builder/.termux-build/mesa/build/meson-private/tmp3_5hr7kh
Code:
 int main(void) { return 0; }

-----------
Command line: `aarch64-linux-android-clang -L/data/data/com.termux/files/usr/lib -I/data/data/com.termux/files/usr/include /home/builder/.termux-build/mesa/build/meson-private/tmp3_5hr7kh/testfile.c -o /home/builder/.termux-build/mesa/build/meson-private/tmp3_5hr7kh/output.exe -fstack-protector-strong -Oz -D__USE_GNU -D_FILE_OFFSET_BITS=64 -O0 -Werror=implicit-function-declaration -Wl,--start-group -lm -Wl,--allow-shlib-undefined -Wl,-rpath=/data/data/com.termux/files/usr/lib -fopenmp -static-openmp -fno-openmp-implicit-rpath -Wl,--enable-new-dtags -Wl,--as-needed -Wl,-z,relro,-z,now -landroid-shmem -Wl,--end-group` -> 0
Library m found: YES
Determining dependency 'libdrm' with pkg-config executable '/home/builder/.termux-build/mesa/build/_wrapper/bin/pkg-config'
env[PKG_CONFIG_LIBDIR]: /data/data/com.termux/files/usr/lib/pkgconfig:/data/data/com.termux/files/usr/share/pkgconfig
env[PKG_CONFIG]: /home/builder/.termux-build/mesa/build/_wrapper/bin/pkg-config
env[PKG_CONFIG_PATH]: 
-----------
Called: `/home/builder/.termux-build/mesa/build/_wrapper/bin/pkg-config --modversion libdrm` -> 0
stdout:
2.4.120
-----------
env[PKG_CONFIG_LIBDIR]: /data/data/com.termux/files/usr/lib/pkgconfig:/data/data/com.termux/files/usr/share/pkgconfig
env[PKG_CONFIG]: /home/builder/.termux-build/mesa/build/_wrapper/bin/pkg-config
env[PKG_CONFIG_PATH]: 
-----------
Called: `/home/builder/.termux-build/mesa/build/_wrapper/bin/pkg-config --cflags libdrm` -> 0
stdout:
-I/data/data/com.termux/files/usr/include -I/data/data/com.termux/files/usr/include/libdrm
-----------
env[PKG_CONFIG_LIBDIR]: /data/data/com.termux/files/usr/lib/pkgconfig:/data/data/com.termux/files/usr/share/pkgconfig
env[PKG_CONFIG]: /home/builder/.termux-build/mesa/build/_wrapper/bin/pkg-config
env[PKG_CONFIG_ALLOW_SYSTEM_LIBS]: 1
env[PKG_CONFIG_PATH]: 
-----------
Called: `/home/builder/.termux-build/mesa/build/_wrapper/bin/pkg-config --libs libdrm` -> 0
stdout:
-L/data/data/com.termux/files/usr/lib -ldrm
-----------
env[PKG_CONFIG_LIBDIR]: /data/data/com.termux/files/usr/lib/pkgconfig:/data/data/com.termux/files/usr/share/pkgconfig
env[PKG_CONFIG]: /home/builder/.termux-build/mesa/build/_wrapper/bin/pkg-config
env[PKG_CONFIG_PATH]: 
-----------
Called: `/home/builder/.termux-build/mesa/build/_wrapper/bin/pkg-config --libs libdrm` -> 0
stdout:
-L/data/data/com.termux/files/usr/lib -ldrm
-----------
Run-time dependency libdrm found: YES 2.4.120
Determining dependency 'libudev' with pkg-config executable '/home/builder/.termux-build/mesa/build/_wrapper/bin/pkg-config'
env[PKG_CONFIG_LIBDIR]: /data/data/com.termux/files/usr/lib/pkgconfig:/data/data/com.termux/files/usr/share/pkgconfig
env[PKG_CONFIG]: /home/builder/.termux-build/mesa/build/_wrapper/bin/pkg-config
env[PKG_CONFIG_PATH]: 
-----------
Called: `/home/builder/.termux-build/mesa/build/_wrapper/bin/pkg-config --modversion libudev` -> 1
stderr:
Package libudev was not found in the pkg-config search path.
Perhaps you should add the directory containing `libudev.pc'
to the PKG_CONFIG_PATH environment variable
No package 'libudev' found
-----------
CMake binary for host machine is cached.
Preliminary CMake check failed. Aborting.
Run-time dependency libudev found: NO (tried pkgconfig and cmake)
llvm-config binary for host machine specified from cross file, native file, or env var as ['/data/data/com.termux/files/usr/bin/llvm-config']
llvm-config found: NO need ['>= 5.0.0']
Run-time dependency LLVM found: NO (tried config-tool)
Looking for a fallback subproject for the dependency llvm (modules: bitwriter, engine, mcdisassembler, mcjit, core, executionengine, scalaropts, transformutils, instcombine, native)
Building fallback subproject with default_library=static

../src/meson.build:1749:13: ERROR: Neither a subproject directory nor a llvm.wrap file was found.

@xoureldeen
Copy link
Author

i will try to build it on aarch64 machine

@FacuM
Copy link

FacuM commented May 27, 2024

I did get a build failure on mesa-24.0.8, however it doesn't match the one you got. I'm getting:

llvm-config found: NO need ['>= 5.0.0']
Run-time dependency LLVM found: NO (tried config-tool)
Looking for a fallback subproject for the dependency llvm (modules: bitwriter, engine, mcdisassembler, mcjit, core, executionengine, scalaropts, transformutils, instcombine, native)
Building fallback subproject with default_library=static

../src/meson.build:1749:13: ERROR: Neither a subproject directory nor a llvm.wrap file was found.

A full log can be found at /home/builder/.termux-build/mesa/build/meson-logs/meson-log.txt

Full meson log

Hello @TomJo2000, I'm the one who got the LLVM-related error first. The build system seems to be broken when cross-compiling. The build script is trying to do something that just doesn't make sense: it's trying to run an incompatible llvm-config to modify binaries from an incompatible target plaform (ex.: x86_64 => aarch64).

For the time being, I'm trying to set up a buildx-based build environment where I'm gonna iterate through each of the possible architectures that we're trying to target, this should ensure that we're building from a host architecture to the same architecture and, with that change, workaround the build script bug.

Edit: I actually forgot to explain how I got the issue in the first place. Just remove the -I flag to build everything from the source and you'll find the same bug.

@Biswa96
Copy link
Member

Biswa96 commented May 28, 2024

I can not reproduce the mesa build failure with ./build-package -I mesa command in termux-package-builder container.

@FacuM
Copy link

FacuM commented May 28, 2024

I can not reproduce the mesa build failure with ./build-package -I mesa command in termux-package-builder container.

You sure won't, @TomJo2000 was probably buildiing mesa from source.

@Biswa96
Copy link
Member

Biswa96 commented May 28, 2024

@TomJo2000 was probably buildiing mesa from source.

So do I. Does the issue only happen without -I option?

@TomJo2000
Copy link
Member

I was building without -I since it wasn't part of the reproduction steps.

@TomJo2000
Copy link
Member

I can not reproduce the mesa build failure with ./build-package -I mesa command in termux-package-builder container.

You sure won't, @TomJo2000 was probably buildiing mesa from source.

Well it's always building the specified target packages from source.
-I makes it download the required dependencies from the repos.
I suspect it wasn't used in the reproduction steps because the user seems to be building packages for a fork, so the regular repo packages wouldn't be compatible with the fork's prefix.

@Biswa96
Copy link
Member

Biswa96 commented May 28, 2024

Something is wrong in OP's build environment.

/data/data/com.vectras.x11/files/usr/bin/llvm-config: ELF 64-bit LSB pie executable, ARM aarch64, version 1 (SYSV), dynamically linked, interpreter /system/bin/linker64, not stripped

But in termux-package-builder container 👇

builder@4c11dc641c43:~/termux-packages$ file /data/data/com.termux/files/usr/bin/llvm-config
/data/data/com.termux/files/usr/bin/llvm-config: Bourne-Again shell script, ASCII text executable

@2096779623
Copy link
Member

26da480

source "$TERMUX_SCRIPTDIR/scripts/build/termux_step_override_config_scripts.sh"

# as it is going to be invoked during LDC CMake config.

@robertkirkman
Copy link

robertkirkman commented Aug 7, 2024

I also encountered this while building a fork. In my case the function termux_step_override_config_scripts() that 2096779623 linked failed to complete correctly during the build of mesa because TERMUX_INSTALL_DEPS is set to false by the TERMUX_REPO_PACKAGE not matching the TERMUX_APP_PACKAGE, preventing the correct implementation of llvm-config for cross-compiling from being installed to the crossbuild host prefix (/data/data/$TERMUX_APP_PACKAGE/files/usr/ within the termux-package-builder Docker container)

# Dependencies should be used from repo only if they are built for
# same package name.
if [ "$TERMUX_REPO_PACKAGE" != "$TERMUX_APP_PACKAGE" ]; then
echo "Ignoring -i option to download dependencies since repo package name ($TERMUX_REPO_PACKAGE) does not equal app package name ($TERMUX_APP_PACKAGE)"
TERMUX_INSTALL_DEPS=false
fi

if [ "$TERMUX_INSTALL_DEPS" = false ]; then
return
fi

The obvious solution to me seemed to be to comment out the 2nd block of code above and proceed. That has worked for me to bypass the build error while cross-compiling mesa after changing the string TERMUX_APP_PACKAGE in scripts/properties.sh.

@agnostic-apollo
Copy link
Member

agnostic-apollo commented Aug 8, 2024

I don't fully understand the llvm-config shenanigans, but since there is already a condition that only creates the file if llvm is a dependency of current package to replace the $TERMUX_PREFIX/bin/llvm-config binary from the llvm package with the packages/libllvm/llvm-config.in script so that execution is possible in docker (off-device), I am pretty sure it should be fine to remove the TERMUX_INSTALL_DEPS = false condition. It shouldn't matter if llvm package was downloaded (TERMUX_INSTALL_DEPS=true ) and $TERMUX_PREFIX/bin/llvm-config file was installed, or llvm package got built (TERMUX_INSTALL_DEPS=false ) and file was installed.

@twaik
Copy link
Member

twaik commented Oct 19, 2024

Superseeded by #21130.

@twaik twaik closed this as completed Oct 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug report Something is not working properly
Projects
None yet
Development

Successfully merging a pull request may close this issue.

8 participants