Giter Club home page Giter Club logo

Comments (3)

Blank10492 avatar Blank10492 commented on June 26, 2024

While build on macOS with target=android-aarch64,

[INFO] build protobuf in /Users/blank/Desktop/bolt-master/third_party/android-aarch64/protobuf...
CMake Error at /Applications/CMake.app/Contents/share/cmake-3.22/Modules/CMakeTestCCompiler.cmake:69 (message):
The C compiler

"/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang"

is not able to compile a simple test program.

It fails with the following output:

Change Dir: /Users/blank/Desktop/bolt-master/third_party/android-aarch64/protobuf/protobuf-3.14.0/build/CMakeFiles/CMakeTmp

Run Build Command(s):/usr/bin/make -f Makefile cmTC_9c965/fast && make  -f CMakeFiles/cmTC_9c965.dir/build.make CMakeFiles/cmTC_9c965.dir/build
Building C object CMakeFiles/cmTC_9c965.dir/testCCompiler.c.o
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang  --target=aarch64-linux-android21   --target=aarch64-linux-android21  --target=aarch64-linux-android21  -MD -MT CMakeFiles/cmTC_9c965.dir/testCCompiler.c.o -MF CMakeFiles/cmTC_9c965.dir/testCCompiler.c.o.d -o CMakeFiles/cmTC_9c965.dir/testCCompiler.c.o -c /Users/blank/Desktop/bolt-master/third_party/android-aarch64/protobuf/protobuf-3.14.0/build/CMakeFiles/CMakeTmp/testCCompiler.c
Linking C executable cmTC_9c965
/Applications/CMake.app/Contents/bin/cmake -E cmake_link_script CMakeFiles/cmTC_9c965.dir/link.txt --verbose=1
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang  --target=aarch64-linux-android21 --target=aarch64-linux-android21  --target=aarch64-linux-android21  -rdynamic CMakeFiles/cmTC_9c965.dir/testCCompiler.c.o -o cmTC_9c965
ld: unknown option: -z
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[1]: *** [cmTC_9c965] Error 1
make: *** [cmTC_9c965/fast] Error 2

CMake will not be able to correctly generate this project.
Call Stack (most recent call first):
CMakeLists.txt:20 (project)

from bolt.

yuxianzhi avatar yuxianzhi commented on June 26, 2024

when build for android using android-aarch64 target, you need to set ANDROID_NDK_ROOT shell environment to find ndk toolchains in ${ANDROID_NDK_ROOT}/toolchains/llvm/prebuilt/darwin-x86_64/bin

from bolt.

yuxianzhi avatar yuxianzhi commented on June 26, 2024

Can you give more information for windows build? you can refer bolt windows workflow in https://github.com/huawei-noah/bolt/blob/master/.github/workflows/windows-x86-avx2.yml

you can use --converter=off to close converter build.

from bolt.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.