Open xoureldeen opened 3 months ago
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.
Currently trying to replicate this locally.
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$
Currently trying to replicate this locally.
what do you mean?
I am building the packages locally with the reproduction steps you have provided to see if the problem occurs for me as well.
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
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.
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
```st
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
i will try to build it on aarch64 machine
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.
I can not reproduce the mesa build failure with ./build-package -I mesa
command in termux-package-builder container.
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.
@TomJo2000 was probably buildiing
mesa
from source.
So do I. Does the issue only happen without -I
option?
I was building without -I
since it wasn't part of the reproduction steps.
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.
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 :point_down:
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
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)
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
.
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.
Problem description
Log
```st 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?
System information