Project

General

Profile

Actions

Bug #18065

closed

kraken aarch64 build fails, complains about -march=native

Added by Nathan Cutler over 7 years ago. Updated over 7 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
-
Target version:
-
% Done:

0%

Source:
Tags:
Backport:
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):

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

Actions

Also available in: Atom PDF