z-anderson opened a new issue, #7664:
URL: https://github.com/apache/incubator-gluten/issues/7664
### Problem description
I'm trying to build gluten and velox on aarch64 architecture. I'm running
the script `./dev/builddeps-veloxbe.sh --enable_vcpkg=ON --spark_version=3.5` .
I get the error below. I see that these options `-mavx2 -mfma -mavx -mf16c
-mlzcnt -mbmi2` are only for x86_64, so they won't work on aarch64. Do you know
how I can build gluten for aarch64 please? (In version 1.1.x.x., we were able
to build for both aarch64 and x86_64).
I manually installed cmake 3.28.3 (since the default was 3.16 and vcpkg
needs at least 3.21), but I don't think that's related.
```
CMake Error at
/usr/local/share/cmake-3.28/Modules/CMakeTestCCompiler.cmake:67 (message):
The C compiler
"/usr/bin/cc"
is not able to compile a simple test program.
It fails with the following output:
Change Dir:
'/home/circleci/project/dev/vcpkg/.vcpkg/buildtrees/detect_compiler/x64-linux-avx-rel/CMakeFiles/CMakeScratch/TryCompile-9obttD'
Run Build Command(s): /usr/bin/ninja -v cmTC_32844
[1/2] /usr/bin/cc -fPIC -mavx2 -mfma -mavx -mf16c -mlzcnt -mbmi2 -o
CMakeFiles/cmTC_32844.dir/testCCompiler.c.o -c
/home/circleci/project/dev/vcpkg/.vcpkg/buildtrees/detect_compiler/x64-linux-avx-rel/CMakeFiles/CMakeScratch/TryCompile-9obttD/testCCompiler.c
FAILED: CMakeFiles/cmTC_32844.dir/testCCompiler.c.o
/usr/bin/cc -fPIC -mavx2 -mfma -mavx -mf16c -mlzcnt -mbmi2 -o
CMakeFiles/cmTC_32844.dir/testCCompiler.c.o -c
/home/circleci/project/dev/vcpkg/.vcpkg/buildtrees/detect_compiler/x64-linux-avx-rel/CMakeFiles/CMakeScratch/TryCompile-9obttD/testCCompiler.c
cc: error: unrecognized command line option ‘-mavx2’
cc: error: unrecognized command line option ‘-mfma’
cc: error: unrecognized command line option ‘-mavx’
cc: error: unrecognized command line option ‘-mf16c’
cc: error: unrecognized command line option ‘-mlzcnt’
cc: error: unrecognized command line option ‘-mbmi2’
ninja: build stopped: subcommand failed.
CMake will not be able to correctly generate this project.
Call Stack (most recent call first):
CMakeLists.txt:11 (enable_language)
```
### System information
Velox System Info v0.0.2
Commit: 69a6bb9602c97050cc3459a09c846b84182ecb9c
CMake Version: 3.28.3
System: Linux-5.15.0-1070-aws
Arch: aarch64
CPU Name: Model name: Neoverse-N1
C++ Compiler: /usr/bin/c++
C++ Compiler Version: 9.4.0
C Compiler: /usr/bin/cc
C Compiler Version: 9.4.0
CMake Prefix Path:
/usr/local;/usr;/;/usr/local;/usr/local;/usr/X11R6;/usr/pkg;/opt
\nThe results will be copied to your clipboard if xclip is installed.
### CMake log
_No response_
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]