Bug #18065
closedkraken aarch64 build fails, complains about -march=native
0%
Description
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 is happening:
1. the build machine is emulated aarch64, not native
2. the compiler is very old
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
Updated by Nathan Cutler over 7 years ago
- Status changed from New to Fix Under Review
master PR: https://github.com/ceph/ceph/pull/12214
Updated by Nathan Cutler over 7 years ago
- Status changed from Fix Under Review to 12
I tested Kefu's suggestion to build latest master on aarch64 and it succeeds. The real fix, then, will be to backport https://github.com/ceph/ceph/commit/4b2046eb686f5af9dfbff5712abf63b85c6ce1ca to kraken.
Updated by Nathan Cutler over 7 years ago
- Status changed from 12 to Resolved
Fixed when https://github.com/ceph/ceph/commit/4b2046eb686f5af9dfbff5712abf63b85c6ce1ca was merged into kraken.