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

Build failed when set Android #958

Open
liangzelang opened this issue Sep 11, 2024 · 0 comments
Open

Build failed when set Android #958

liangzelang opened this issue Sep 11, 2024 · 0 comments

Comments

@liangzelang
Copy link

I want run vulkan ops test on Android , so I build this project, but build failed.

mkdir build && cd build
(ggml_py310) [root@engine-liangzelang-sicicc-0 build]$cmake .. -DCMAKE_SYSTEM_NAME=Android -DCMAKE_SYSTEM_VERSION=33 -DCMAKE_ANDROID_ARCH_ABI=arm64-v8a    -DCMAKE_ANDROID_NDK=/workspace/download/android-ndk-r26c -DCMAKE_ANDROID_STL_TYPE=c++_shared -DGGML_VULKAN=ON
-- Android: Targeting API '33' with architecture 'arm64', ABI 'arm64-v8a', and processor 'aarch64'
-- Android: Selected unified Clang toolchain
-- The C compiler identification is Clang 17.0.2
-- The CXX compiler identification is Clang 17.0.2
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /workspace/download/android-ndk-r26c/toolchains/llvm/prebuilt/linux-x86_64/bin/clang - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /workspace/download/android-ndk-r26c/toolchains/llvm/prebuilt/linux-x86_64/bin/clang++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Failed
-- Check if compiler accepts -pthread
-- Check if compiler accepts -pthread - yes
-- Found Threads: TRUE
-- Found OpenMP_C: -fopenmp=libomp (found version "5.0")
-- Found OpenMP_CXX: -fopenmp=libomp (found version "5.0")
-- Found OpenMP: TRUE (found version "5.0")
-- OpenMP found
-- Found Vulkan: /workspace/download/1.3.290.0/x86_64/lib/libvulkan.so
-- Vulkan found
-- ccache found, compilation results will be cached. Disable with GGML_CCACHE=OFF.
-- CMAKE_SYSTEM_PROCESSOR: aarch64
-- ARM detected
-- Performing Test COMPILER_SUPPORTS_FP16_FORMAT_I3E
-- Performing Test COMPILER_SUPPORTS_FP16_FORMAT_I3E - Failed
-- ARM detected
-- Configuring done
-- Generating done
-- Build files have been written to: /workspace/codes/ggml/build
(ggml_py310) [root@engine-liangzelang-sicicc-0 build]$cmake --build . --config Release -j 8                                              Scanning dependencies of target vulkan-shaders-gen
Scanning dependencies of target common
[  1%] Building CXX object src/vulkan-shaders/CMakeFiles/vulkan-shaders-gen.dir/vulkan-shaders-gen.cpp.o
[  2%] Building CXX object examples/CMakeFiles/common.dir/common.cpp.o
[  3%] Linking CXX executable ../../bin/vulkan-shaders-gen
[  3%] Built target vulkan-shaders-gen
[  4%] Generate vulkan shaders
/bin/sh: 1: vulkan-shaders-gen: not found
make[2]: *** [src/CMakeFiles/ggml.dir/build.make:143: src/ggml-vulkan-shaders.hpp] Error 127
make[1]: *** [CMakeFiles/Makefile2:388: src/CMakeFiles/ggml.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
[  5%] Linking CXX static library libcommon.a
[  5%] Built target common
make: *** [Makefile:160: all] Error 2
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

1 participant