Fix #41739
closedAdd missing header cmath to test/mon/test_mon_memory_target.cc
0%
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.
Updated by Nathan Cutler over 4 years ago
- Status changed from New to Fix Under Review
- Pull request ID set to 30284
Updated by Yuri Weinstein about 4 years ago
Updated by Nathan Cutler about 4 years ago
- Status changed from Fix Under Review to Pending Backport
- Backport set to nautilus
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
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".