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

Compiling with clang on Android #164

Open
defencedog opened this issue Jan 26, 2024 · 0 comments
Open

Compiling with clang on Android #164

defencedog opened this issue Jan 26, 2024 · 0 comments

Comments

@defencedog
Copy link

It's one of dependancy to install thermohubclient & I am trying to build it using termux

Help will be appreciated

~/.../velocypack/build $ MATHLIB=m cmake ..  -DCMAKE_CXX_FLAGS=-I/data/data/com.termux/files/usr/include -DCMAKE_INSTALL_PREFIX=$PREFIX/local -DCMAKE_BUILD_TYPE=Release -DBuildTools=OFF -DBuildVelocyPackExamples=OFF -DEnableSSE=OFF
-- The CXX compiler identification is Clang 17.0.6
-- The C compiler identification is Clang 17.0.6
-- Detecting CXX compiler ABI info                      -- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /data/data/com.termux/files/usr/bin/c++ - skipped                            -- Detecting CXX compile features
-- Detecting CXX compile features - done                -- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done                 -- Check for working C compiler: /data/data/com.termux/files/usr/bin/cc - skipped                               -- Detecting C compile features
-- Detecting C compile features - done                  -- Require C++20
-- VelocyPack build mode: Release
-- VelocyPack interprocedural optimizations: True
-- VelocyPack install base directory: /data/data/com.termux/files/usr/local                                     -- Hardware support for SSE4.2 on this machine:
-- Compiler type CLANG: /data/data/com.termux/files/usr/bin/c++
-- Building with SSE 4.2 optimizations enabled: OFF     -- VelocyPack Building with hash type: xxhash
-- VelocyPack building bench performance test suite: OFF-- VelocyPack building support programs and tools: OFF
-- VelocyPack building examples: OFF                    -- VelocyPack building test suite: OFF
-- VelocyPack building large tests: OFF                 -- VelocyPack building assembler test suite: OFF
-- Configuring done (2.5s)
-- Generating done (0.0s)
-- Build files have been written to: /data/data/com.termux/files/home/Reaktoro_dev/velocypack/build
~/.../velocypack/build $ make -j4                       [  3%] Building CXX object CMakeFiles/velocypack.dir/src/velocypack-common.cpp.o                                [  7%] Building CXX object CMakeFiles/velocypack.dir/src/Builder.cpp.o
[ 11%] Building CXX object CMakeFiles/velocypack.dir/src/AttributeTranslator.cpp.o
[ 14%] Building CXX object CMakeFiles/velocypack.dir/src/Collection.cpp.o
[ 18%] Building CXX object CMakeFiles/velocypack.dir/src/Compare.cpp.o
[ 22%] Building CXX object CMakeFiles/velocypack.dir/src/Dumper.cpp.o
[ 25%] Building CXX object CMakeFiles/velocypack.dir/src/Exception.cpp.o
[ 29%] Building CXX object CMakeFiles/velocypack.dir/src/HashedStringRef.cpp.o                                  [ 33%] Building CXX object CMakeFiles/velocypack.dir/src/HexDump.cpp.o                                          [ 37%] Building CXX object CMakeFiles/velocypack.dir/src/Iterator.cpp.o                                         [ 40%] Building CXX object CMakeFiles/velocypack.dir/src/Options.cpp.o                                          [ 44%] Building CXX object CMakeFiles/velocypack.dir/src/Parser.cpp.o                                           [ 48%] Building CXX object CMakeFiles/velocypack.dir/src/Serializable.cpp.o
[ 51%] Building CXX object CMakeFiles/velocypack.dir/src/SharedSlice.cpp.o
[ 55%] Building CXX object CMakeFiles/velocypack.dir/src/Slice.cpp.o
[ 59%] Building CXX object CMakeFiles/velocypack.dir/src/Utf8Helper.cpp.o
[ 62%] Building CXX object CMakeFiles/velocypack.dir/src/Validator.cpp.o
[ 66%] Building CXX object CMakeFiles/velocypack.dir/src/Value.cpp.o
[ 70%] Building CXX object CMakeFiles/velocypack.dir/src/ValueType.cpp.o                                        [ 74%] Building CXX object CMakeFiles/velocypack.dir/src/Version.cpp.o
[ 77%] Building CXX object CMakeFiles/velocypack.dir/src/asm-functions.cpp.o
[ 81%] Building CXX object CMakeFiles/velocypack.dir/src/asm-utf8check.cpp.o
[ 85%] Building CXX object CMakeFiles/velocypack.dir/src/fpconv.cpp.o
In file included from /data/data/com.termux/files/home/Reaktoro_dev/velocypack/src/asm-utf8check.cpp:30:
In file included from /data/data/com.termux/files/usr/lib/clang/17/include/x86intrin.h:13:
/data/data/com.termux/files/usr/lib/clang/17/include/ia32intrin.h:200:10: error: use of undeclared identifier '__builtin_ia32_readeflags_u32'
  200 |   return __builtin_ia32_readeflags_u32();
      |          ^
/data/data/com.termux/files/usr/lib/clang/17/include/ia32intrin.h:206:3: error: use of undeclared identifier '__builtin_ia32_writeeflags_u32'
  206 |   __builtin_ia32_writeeflags_u32(__f);                |   ^
/data/data/com.termux/files/usr/lib/clang/17/include/ia32intrin.h:288:10: error: use of undeclared identifier '__builtin_ia32_crc32qi'
@defencedog defencedog changed the title Compiling with clang on Amdroid Compiling with clang on Android Jan 26, 2024
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