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 over 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

Also available in: Atom PDF