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

[Android] NDK r17c fails to build the opengles 3.2 cts #499

Open
Mathias-Boulay opened this issue Nov 27, 2024 · 2 comments
Open

[Android] NDK r17c fails to build the opengles 3.2 cts #499

Mathias-Boulay opened this issue Nov 27, 2024 · 2 comments

Comments

@Mathias-Boulay
Copy link

Mathias-Boulay commented Nov 27, 2024

Tested on commit e9a562c from master branch

Hey there, I tried to build the android target with the ndk r17c.

It failed to build files inside the glslang and spirv-tools projects, which uses c++ 17 standard libraries.
The command lines use the std=c++1z value as the last std value, so I'm not sure why it fails fetching said libraries specifically.

Click here for to expand the full command

[5/1830] Building CXX object external/glslang/src/glslang/CMakeFiles/glslang.dir/cmake_pch.hxx.pch
FAILED: external/glslang/src/glslang/CMakeFiles/glslang.dir/cmake_pch.hxx.pch
/home/spse/Android/Sdk/ndk/17c/toolchains/llvm/prebuilt/linux-x86_64/bin/clang++ --target=armv7-none-linux-androideabi --gcc-toolchain=/home/spse/Android/Sdk/ndk/17c/toolchai
ns/arm-linux-androideabi-4.9/prebuilt/linux-x86_64 --sysroot=/home/spse/Android/Sdk/ndk/17c/sysroot -DDE_ANDROID_API=28 -DDE_ASSERT_FAILURE_CALLBACK -DDE_COMPILER=DE_COMPILER
CLANG -DDE_CPU=DE_CPU_ARM -DDE_DEBUG -DDE_FENV_ACCESS_ON="" -DDE_MINGW=0 -DDE_OS=DE_OS_ANDROID -DDE_PTR_SIZE=4 -DENABLE_HLSL -DENABLE_OPT=1 -DENABLE_SPIRV -DGLSLANG_OSINCLUD
E_UNIX -I/opt/repositories/VK-GL-CTS/framework/delibs/debase -I/opt/repositories/VK-GL-CTS/framework/delibs/decpp -I/opt/repositories/VK-GL-CTS/framework/delibs/depool -I/opt
/repositories/VK-GL-CTS/framework/delibs/dethread -I/opt/repositories/VK-GL-CTS/framework/delibs/deutil -I/opt/repositories/VK-GL-CTS/framework/delibs/destream -I/opt/reposit
ories/VK-GL-CTS/execserver -I/opt/repositories/VK-GL-CTS/external/glslang/src/glslang/.. -I/tmp/deqp-android-build/armeabi-v7a-RelWithAsserts-28/include -I/opt/repositories/V
K-GL-CTS/external/glslang/src/glslang/../External -I/opt/repositories/VK-GL-CTS/external/spirv-tools/src/include -I/opt/repositories/VK-GL-CTS/external/spirv-tools/../spirv-h
eaders/src/include -isystem /home/spse/Android/Sdk/ndk/17c/sources/cxx-stl/llvm-libc++/include -isystem /home/spse/Android/Sdk/ndk/17c/sources/android/support/include -isyste
m /home/spse/Android/Sdk/ndk/17c/sources/cxx-stl/llvm-libc++abi/include -Wall -Wextra -Wno-long-long -Wshadow -Wundef -Wconversion -Wno-sign-conversion -isystem /home/spse/An
droid/Sdk/ndk/17c/sysroot/usr/include/arm-linux-androideabi -D__ANDROID_API
_=28 -g -DANDROID -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefi
xes -march=armv7-a -mfloat-abi=softfp -mfpu=vfpv3-d16 -mthumb -Wa,--noexecstack -Wformat -Werror=format-security -std=c++11 -frtti -fexceptions -Werror -fwrapv -fvisibility=h
idden -fvisibility-inlines-hidden -w -Os -DNDEBUG -std=c++1z -fPIC -Wall -Wuninitialized -Wunused -Wunused-local-typedefs -Wimplicit-fallthrough -Wunused-parameter -Wunused
-value -Wunused-variable -fno-rtti -fno-exceptions -Winvalid-pch -Xclang -emit-pch -Xclang -include -Xclang /tmp/deqp-android-build/armeabi-v7a-RelWithAsserts-28/external/gls
lang/src/glslang/CMakeFiles/glslang.dir/cmake_pch.hxx -x c++-header -MD -MT external/glslang/src/glslang/CMakeFiles/glslang.dir/cmake_pch.hxx.pch -MF external/glslang/src/gls
lang/CMakeFiles/glslang.dir/cmake_pch.hxx.pch.d -o external/glslang/src/glslang/CMakeFiles/glslang.dir/cmake_pch.hxx.pch -c /tmp/deqp-android-build/armeabi-v7a-RelWithAsserts
-28/external/glslang/src/glslang/CMakeFiles/glslang.dir/cmake_pch.hxx.cxx
In file included from :1:
In file included from /tmp/deqp-android-build/armeabi-v7a-RelWithAsserts-28/external/glslang/src/glslang/CMakeFiles/glslang.dir/cmake_pch.hxx:5:
In file included from /opt/repositories/VK-GL-CTS/external/glslang/src/glslang/MachineIndependent/pch.h:44:
In file included from /opt/repositories/VK-GL-CTS/external/glslang/src/glslang/MachineIndependent/SymbolTable.h:70:
/opt/repositories/VK-GL-CTS/external/glslang/src/glslang/MachineIndependent/../Include/InfoSink.h:39:10: fatal error: 'filesystem' file not found
#include
^~~~~~~~~~~~
1 error generated.


[6/1830] Building CXX object external/spirv-tools/spirv-tools/source/opt/CMakeFiles/SPIRV-Tools-opt.dir/optimizer.cpp.o
FAILED: external/spirv-tools/spirv-tools/source/opt/CMakeFiles/SPIRV-Tools-opt.dir/optimizer.cpp.o
/home/spse/Android/Sdk/ndk/17c/toolchains/llvm/prebuilt/linux-x86_64/bin/clang++ --target=armv7-none-linux-androideabi --gcc-toolchain=/home/spse/Android/Sdk/ndk/17c/toolchai
ns/arm-linux-androideabi-4.9/prebuilt/linux-x86_64 --sysroot=/home/spse/Android/Sdk/ndk/17c/sysroot -DDE_ANDROID_API=28 -DDE_ASSERT_FAILURE_CALLBACK -DDE_COMPILER=DE_COMPILER
CLANG -DDE_CPU=DE_CPU_ARM -DDE_DEBUG -DDE_FENV_ACCESS_ON="" -DDE_MINGW=0 -DDE_OS=DE_OS_ANDROID -DDE_PTR_SIZE=4 -DSPIRV_ANDROID -DSPIRV_COLOR_TERMINAL -DSPIRV_TIMER_ENABLED -
I/opt/repositories/VK-GL-CTS/framework/delibs/debase -I/opt/repositories/VK-GL-CTS/framework/delibs/decpp -I/opt/repositories/VK-GL-CTS/framework/delibs/depool -I/opt/reposit
ories/VK-GL-CTS/framework/delibs/dethread -I/opt/repositories/VK-GL-CTS/framework/delibs/deutil -I/opt/repositories/VK-GL-CTS/framework/delibs/destream -I/opt/repositories/VK
-GL-CTS/execserver -I/opt/repositories/VK-GL-CTS/external/spirv-tools/src -I/opt/repositories/VK-GL-CTS/external/spirv-tools/src/include -I/opt/repositories/VK-GL-CTS/externa
l/spirv-tools/../spirv-headers/src/include -I/tmp/deqp-android-build/armeabi-v7a-RelWithAsserts-28/external/spirv-tools/spirv-tools -isystem /home/spse/Android/Sdk/ndk/17c/so
urces/cxx-stl/llvm-libc++/include -isystem /home/spse/Android/Sdk/ndk/17c/sources/android/support/include -isystem /home/spse/Android/Sdk/ndk/17c/sources/cxx-stl/llvm-libc++a
bi/include -Wall -Wextra -Wno-long-long -Wshadow -Wundef -Wconversion -Wno-sign-conversion -isystem /home/spse/Android/Sdk/ndk/17c/sysroot/usr/include/arm-linux-androideabi -
D__ANDROID_API
_=28 -g -DANDROID -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -march=armv7-a -mfloat-abi=softfp -mfpu=vfpv3-d16 -mthumb
-Wa,--noexecstack -Wformat -Werror=format-security -std=c++11 -frtti -fexceptions -Werror -fwrapv -fvisibility=hidden -fvisibility-inlines-hidden -w -Os -DNDEBUG -std=c++1
z -fPIC -Wextra-semi -Wall -Wextra -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-self-assign -Werror -Wno-long-long -Wshadow -Wundef -Wconversion -Wno-sign-conversi
on -fno-exceptions -ftemplate-depth=1024 -MD -MT external/spirv-tools/spirv-tools/source/opt/CMakeFiles/SPIRV-Tools-opt.dir/optimizer.cpp.o -MF external/spirv-tools/spirv-too
ls/source/opt/CMakeFiles/SPIRV-Tools-opt.dir/optimizer.cpp.o.d -o external/spirv-tools/spirv-tools/source/opt/CMakeFiles/SPIRV-Tools-opt.dir/optimizer.cpp.o -c /opt/repositor
ies/VK-GL-CTS/external/spirv-tools/src/source/opt/optimizer.cpp
/opt/repositories/VK-GL-CTS/external/spirv-tools/src/source/opt/optimizer.cpp:18:10: fatal error: 'charconv' file not found
#include
^~~~~~~~~~

@jsyishan
Copy link

Same here
compiled from M1 Pro
-- Build files have been written to: /private/var/folders/87/58_9llyj5b727kf78sr8msgm0000gn/T/deqp-android-build/armeabi-v7a-RelWithAsserts-28 [161/2127] Building CXX object externa...es/SPIRV-Tools-opt.dir/optimizer.cpp.o FAILED: external/spirv-tools/spirv-tools/source/opt/CMakeFiles/SPIRV-Tools-opt.dir/optimizer.cpp.o /opt/homebrew/bin/ccache /Users/xxx/Library/Android/ndk/android-ndk-r17c/toolchains/llvm/prebuilt/darwin-x86_64/bin/clang++ --target=armv7-none-linux-androideabi --gcc-toolchain=/Users/xxx/Library/Android/ndk/android-ndk-r17c/toolchains/arm-linux-androideabi-4.9/prebuilt/darwin-x86_64 --sysroot=/Users/xxx/Library/Android/ndk/android-ndk-r17c/sysroot -DDE_ANDROID_API=28 -DDE_ASSERT_FAILURE_CALLBACK -DDE_COMPILER=DE_COMPILER_CLANG -DDE_CPU=DE_CPU_ARM -DDE_DEBUG -DDE_FENV_ACCESS_ON="" -DDE_MINGW=0 -DDE_OS=DE_OS_ANDROID -DDE_PTR_SIZE=4 -DSPIRV_COLOR_TERMINAL -DSPIRV_TIMER_ENABLED -I/Users/xxx/VK-GL-CTS/framework/delibs/debase -I/Users/xxx/VK-GL-CTS/framework/delibs/decpp -I/Users/xxx/VK-GL-CTS/framework/delibs/depool -I/Users/xxx/VK-GL-CTS/framework/delibs/dethread -I/Users/xxx/VK-GL-CTS/framework/delibs/deutil -I/Users/xxx/VK-GL-CTS/framework/delibs/destream -I/Users/xxx/VK-GL-CTS/execserver -I/Users/xxx/VK-GL-CTS/external/spirv-tools/src -I/Users/xxx/VK-GL-CTS/external/spirv-tools/src/include -I/Users/xxx/VK-GL-CTS/external/spirv-tools/../spirv-headers/src/include -I/private/var/folders/87/58_9llyj5b727kf78sr8msgm0000gn/T/deqp-android-build/armeabi-v7a-RelWithAsserts-28/external/spirv-tools/spirv-tools -isystem /Users/xxx/Library/Android/ndk/android-ndk-r17c/sources/cxx-stl/llvm-libc++/include -isystem /Users/xxx/Library/Android/ndk/android-ndk-r17c/sources/android/support/include -isystem /Users/xxx/Library/Android/ndk/android-ndk-r17c/sources/cxx-stl/llvm-libc++abi/include -Wall -Wextra -Wno-long-long -Wshadow -Wundef -Wconversion -Wno-sign-conversion -isystem /Users/xxx/Library/Android/ndk/android-ndk-r17c/sysroot/usr/include/arm-linux-androideabi -D__ANDROID_API__=28 -g -DANDROID -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -march=armv7-a -mfloat-abi=softfp -mfpu=vfpv3-d16 -mthumb -Wa,--noexecstack -Wformat -Werror=format-security -std=c++11 -frtti -fexceptions -Werror -fwrapv -fvisibility=hidden -fvisibility-inlines-hidden -w -Os -DNDEBUG -std=c++1z -fPIC -Wextra-semi -Wall -Wextra -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-self-assign -Werror -Wno-long-long -Wshadow -Wundef -Wconversion -Wno-sign-conversion -fno-exceptions -ftemplate-depth=1024 -MD -MT external/spirv-tools/spirv-tools/source/opt/CMakeFiles/SPIRV-Tools-opt.dir/optimizer.cpp.o -MF external/spirv-tools/spirv-tools/source/opt/CMakeFiles/SPIRV-Tools-opt.dir/optimizer.cpp.o.d -o external/spirv-tools/spirv-tools/source/opt/CMakeFiles/SPIRV-Tools-opt.dir/optimizer.cpp.o -c /Users/xxx/VK-GL-CTS/external/spirv-tools/src/source/opt/optimizer.cpp /Users/xxx/VK-GL-CTS/external/spirv-tools/src/source/opt/optimizer.cpp:18:10: fatal error: 'charconv' file not found #include <charconv> ^~~~~~~~~~ 1 error generated. [172/2127] Building CXX object externa...-Tools-opt.dir/merge_return_pass.cpp.o ninja: build stopped: subcommand failed. Traceback (most recent call last): File "scripts/android/build_apk.py", line 1046, in <module> executeSteps(config, steps) File "scripts/android/build_apk.py", line 396, in executeSteps step.update(config) File "scripts/android/build_apk.py", line 460, in update buildNativeLibrary(config, self.abi) File "scripts/android/build_apk.py", line 391, in buildNativeLibrary build(buildConfig, config.cmakeGenerator, ["deqp"]) File "/Users/xxx/VK-GL-CTS/scripts/android/../ctsbuild/build.py", line 70, in build

@Mathias-Boulay
Copy link
Author

Glad to see I'm not the only one with said issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants