Project

General

Profile

Bug #16628

Ceph build broken in AArm64

Added by Anonymous over 7 years ago. Updated over 7 years ago.

Status:
Closed
Priority:
High
Assignee:
-
Category:
-
Target version:
-
% Done:

0%

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

Description

Try to build the Ceph (Jewel 10.2.1) based on the latest version in master branch, but failed with the below error.

./include/rocksdb/options.h:69:32: error: enumerator value -1 is outside the range of underlying type ‘char’
kDisableCompressionOption = -1,
^

./include/rocksdb/perf_level.h:17:21: error: enumerator value -1 is outside the range of underlying type ‘char’
kUninitialized = -1, // unknown setting
^

History

#1 Updated by Anonymous over 7 years ago

The build commands are:
./do_cmake.sh
cd build
make
The same as the mention in the README file.

#2 Updated by Anonymous over 7 years ago

  • Project changed from Ceph-deploy to Ceph
  • Assignee set to Anonymous

#3 Updated by Anonymous over 7 years ago

In ARM the "char" type is treated as "unsigned char", its value range is from 0 to 255. In the two files options.h and perf_level.h, the value of the enum item is assigned to "-1".
It is out of the scope. Ceph build will be broken because of the error.
The code has been updated to fix the issue. Please help to review.
https://github.com/ceph/rocksdb/pull/9

#4 Updated by Kefu Chai over 7 years ago

  • Status changed from New to Fix Under Review

#5 Updated by Anonymous over 7 years ago

Change the PR to https://github.com/ceph/rocksdb/pull/10
The previous one (#9) has been closed by accident.
Please have a review.
Sorry for the inconvenient.

#6 Updated by Sage Weil over 7 years ago

  • Status changed from Fix Under Review to Closed

This should be fixed now?

Also available in: Atom PDF