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 #1

Updated by Nathan Cutler over 7 years ago

  • Description updated (diff)
Actions #2

Updated by Nathan Cutler over 7 years ago

  • Status changed from New to Fix Under Review
Actions #3

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.

Actions #4

Updated by Nathan Cutler over 7 years ago

  • Release set to kraken
Actions #5

Updated by Nathan Cutler over 7 years ago

  • Status changed from 12 to Resolved
Actions

Also available in: Atom PDF