Project

General

Profile

Bug #18065

Updated by Nathan Cutler over 7 years ago

When building 11.0.2 for aarch64 we are getting the following FTBFS: 

 /home/abuild/rpmbuild/BUILD/ceph-11.0.2+git.1480105120.6b8e9e5/build/src/rocksdb/build_version.cc:1:0: error: unknown value 'native' for -march 
 #include "build_version.h" 
 ^ 
 CMakeFiles/build_version.dir/build.make:62: recipe for target 'CMakeFiles/build_version.dir/build_version.cc.o' failed 

 Theories for why this This is happening: 

 1. happening because the build machine is emulated aarch64, not native 
 2. the compiler is very old native. 

 The rocksdb documentation at https://github.com/facebook/rocksdb/blob/master/INSTALL.md has the following to say: 

 > By default the binary we produce is optimized for the platform you're compiling on (-march=native or the equivalent). If you want to build a portable binary, add 'PORTABLE=1' before your make commands

Back