xumingming opened a new issue, #5027:
URL: https://github.com/apache/incubator-gluten/issues/5027

   ### Problem description
   
   Build command:
   
   ```
   ./dev/buildbundle-veloxbe.sh --build_type=RelWithDebInfo
   ```
   
   Error message:
   
   ```
   clang: error: the clang compiler does not support '-march=native'
   clang: error: the clang compiler does not support '-march=native'
   clang: error: the clang compiler does not support '-march=native'
   make[2]: *** 
[core/CMakeFiles/gluten.dir/proto/substrait/extended_expression.pb.cc.o] Error 1
   make[2]: *** Waiting for unfinished jobs....
   clang: error: the clang compiler does not support '-march=native'
   make[2]: *** [core/CMakeFiles/gluten.dir/proto/substrait/function.pb.cc.o] 
Error 1
   make[2]: *** 
[core/CMakeFiles/gluten.dir/proto/substrait/extensions/extensions.pb.cc.o] 
Error 1
   make[2]: *** 
[core/CMakeFiles/gluten.dir/proto/substrait/capabilities.pb.cc.o] Error 1
   clang: error: the clang compiler does not support '-march=native'
   make[2]: *** [core/CMakeFiles/gluten.dir/proto/substrait/ddl.pb.cc.o] Error 1
   clang: error: the clang compiler does not support '-march=native'
   make[2]: *** [core/CMakeFiles/gluten.dir/proto/substrait/algebra.pb.cc.o] 
Error 1
   make[1]: *** [core/CMakeFiles/gluten.dir/all] Error 2
   make: *** [all] Error 2
   ```
   
   The root cause is `-march=native` is not supported by `AppleClang` which I 
am using on MacOS, we should fail fast when we detect that the compiler is not 
supported, rather than throwing errors later.
   
   ### System information
   
   MacOS + AppleClang
   
   ### 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]

Reply via email to