Project

General

Profile

Actions

Fix #41739

closed

Add missing header cmath to test/mon/test_mon_memory_target.cc

Added by Su Yue over 4 years ago. Updated about 4 years ago.

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

0%

Source:
Tags:
Backport:
nautilus
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):

Description

While building ceph:

[ 86%] Building CXX object src/test/mon/CMakeFiles/ceph_test_mon_memory_target.dir/test_mon_memory_target.cc.o
/root/ceph/src/test/mon/test_mon_memory_target.cc: In function ‘int main(int, char**)’:
/root/ceph/src/test/mon/test_mon_memory_target.cc:66:16: error: ‘sqrt’ was not declared in this scope
66 | auto stdev = sqrt(sump / results.size()); | ^~~~
make2: * [src/test/mon/CMakeFiles/ceph_test_mon_memory_target.dir/build.make:63: src/test/mon/CMakeFiles/ceph_test_mon_memory_target.dir/test_mon_memory_target.cc.o] Error 1
make1:
[CMakeFiles/Makefile2:15575: src/test/mon/CMakeFiles/ceph_test_mon_memory_target.dir/all] Error 2
make: *
* [Makefile:141: all] Error 2

Adding the header cmath to the test file will fix it.


Related issues 1 (0 open1 closed)

Copied to Ceph - Backport #43870: nautilus: Add missing header cmath to test/mon/test_mon_memory_target.ccResolvedActions
Actions #1

Updated by Su Yue over 4 years ago

I can't edit the PR ID. The ID is 30284.

Actions #2

Updated by Nathan Cutler over 4 years ago

  • Status changed from New to Fix Under Review
  • Pull request ID set to 30284
Actions #4

Updated by Nathan Cutler about 4 years ago

  • Status changed from Fix Under Review to Pending Backport
  • Backport set to nautilus
Actions #5

Updated by Nathan Cutler about 4 years ago

  • Copied to Backport #43870: nautilus: Add missing header cmath to test/mon/test_mon_memory_target.cc added
Actions #6

Updated by Nathan Cutler about 4 years ago

  • Status changed from Pending Backport to Resolved

While running with --resolve-parent, the script "backport-create-issue" noticed that all backports of this issue are in status "Resolved" or "Rejected".

Actions

Also available in: Atom PDF