Actions
Task #5106
closedVery noisy psabi warning on armv7 with gcc >= 7
Start date:
Due date:
% Done:
100%
Estimated time:
Description
Building ndn-cxx on armhf with gcc 7.5.0 produces hundreds of warnings similar to the following:
In file included from /usr/include/c++/7/vector:69:0,
from /usr/include/boost/stacktrace/stacktrace.hpp:19,
from ../ndn-cxx/util/exception.hpp:36,
from ../ndn-cxx/detail/common.hpp:122,
from ../ndn-cxx/name-component.hpp:25,
from ../ndn-cxx/name.hpp:29,
from ../ndn-cxx/mgmt/nfd/status-dataset.hpp:25,
from ../ndn-cxx/mgmt/nfd/status-dataset.cpp:22:
/usr/include/c++/7/bits/vector.tcc: In member function 'void std::vector<_Tp, _Alloc>::_M_realloc_insert(std::vector<_Tp, _Alloc>::iterator, _Args&& ...) [with _Args = {ndn::Block&}; _Tp = ndn::nfd::FaceStatus; _Alloc = std::allocator<ndn::nfd::FaceStatus>]':
/usr/include/c++/7/bits/vector.tcc:394:7: note: parameter passing for argument of type 'std::vector<ndn::nfd::FaceStatus>::iterator {aka __gnu_cxx::__normal_iterator<ndn::nfd::FaceStatus*, std::vector<ndn::nfd::FaceStatus> >}' changed in GCC 7.1
vector<_Tp, _Alloc>::
^~~~~~~~~~~~~~~~~~~
/usr/include/c++/7/bits/vector.tcc: In member function 'ndn::nfd::FaceDatasetBase::ResultType ndn::nfd::FaceDatasetBase::parseResult(ndn::ConstBufferPtr) const':
/usr/include/c++/7/bits/vector.tcc:105:21: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator<ndn::nfd::FaceStatus*, std::vector<ndn::nfd::FaceStatus> >' changed in GCC 7.1
_M_realloc_insert(end(), std::forward<_Args>(__args)...);
~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-Wno-psabi
silences the warning (there's nothing else we can do about it).
The warning comes from a Boost header, so it's very likely that all ndn-cxx-based projects are affected.
Updated by Davide Pesavento over 4 years ago
- Subject changed from Very noisy psabi warning on armhf with gcc 7.x to Very noisy psabi warning on armv7 with gcc >= 7
GCC 8 is also affected.
Updated by Davide Pesavento over 4 years ago
Updated by Davide Pesavento over 4 years ago
- Status changed from In Progress to Code review
- % Done changed from 50 to 100
Updated by Davide Pesavento over 4 years ago
- Status changed from Code review to Closed
Actions