Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

2.30.2 fails to compile with GCC-14 #1067

Open
NHOrus opened this issue Dec 30, 2024 · 0 comments
Open

2.30.2 fails to compile with GCC-14 #1067

NHOrus opened this issue Dec 30, 2024 · 0 comments

Comments

@NHOrus
Copy link

NHOrus commented Dec 30, 2024

Found on Gentoo, our bug: https://bugs.gentoo.org/932357

Error:

FAILED: CMakeFiles/_core.dir/extern/root/math/minuit2/src/MnPlot.cxx.o 
/usr/bin/x86_64-pc-linux-gnu-g++ -DPYBIND11_DETAILED_ERROR_MESSAGES=1 -D_core_EXPORTS -I/var/tmp/portage/dev-python/iminuit-2.30.1/work/iminuit-2.30.1/extern/root/math/minuit2/inc -isystem /usr/include/python3.12 -isystem /usr/lib/python3.12/site-packages/pybind11/include -O3 -pipe -march=native -frecord-gcc-switches -fno-diagnostics-color -fmessage-length=0  -UNDEBUG -std=c++14 -fPIC -fvisibility=hidden -fvisibility-inlines-hidden -Wall -Wextra -Werror -Werror=odr -Werror=lto-type-mismatch -Werror=strict-aliasing -pedantic -fstrict-aliasing -MD -MT CMakeFiles/_core.dir/extern/root/math/minuit2/src/MnPlot.cxx.o -MF CMakeFiles/_core.dir/extern/root/math/minuit2/src/MnPlot.cxx.o.d -o CMakeFiles/_core.dir/extern/root/math/minuit2/src/MnPlot.cxx.o -c /var/tmp/portage/dev-python/iminuit-2.30.1/work/iminuit-2.30.1/extern/root/math/minuit2/src/MnPlot.cxx
In file included from /usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/x86_64-pc-linux-gnu/bits/c++allocator.h:33,
                 from /usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/bits/allocator.h:46,
                 from /usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/vector:63,
                 from /var/tmp/portage/dev-python/iminuit-2.30.1/work/iminuit-2.30.1/extern/root/math/minuit2/inc/Minuit2/MnPlot.h:14,
                 from /var/tmp/portage/dev-python/iminuit-2.30.1/work/iminuit-2.30.1/extern/root/math/minuit2/src/MnPlot.cxx:10:
In member function ‘void std::__new_allocator<_Tp>::deallocate(_Tp*, size_type) [with _Tp = char]’,
    inlined from ‘static void std::allocator_traits<std::allocator<_Tp1> >::deallocate(allocator_type&, pointer, size_type) [with _Tp = char]’ at /usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/bits/alloc_traits.h:544:23,
    inlined from ‘std::vector<_Tp, _Alloc>::_M_realloc_append(_Args&& ...)::_Guard::~_Guard() [with _Args = {char}; _Tp = char; _Alloc = std::allocator<char>]’ at /usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/bits/vector.tcc:616:18,
    inlined from ‘void std::vector<_Tp, _Alloc>::_M_realloc_append(_Args&& ...) [with _Args = {char}; _Tp = char; _Alloc = std::allocator<char>]’ at /usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/bits/vector.tcc:688:7,
    inlined from ‘void std::vector<_Tp, _Alloc>::emplace_back(_Args&& ...) [with _Args = {char}; _Tp = char; _Alloc = std::allocator<char>]’ at /usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/bits/vector.tcc:123:21,
    inlined from ‘void std::vector<_Tp, _Alloc>::push_back(value_type&&) [with _Tp = char; _Alloc = std::allocator<char>]’ at /usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/bits/stl_vector.h:1301:21,
    inlined from ‘void ROOT::Minuit2::MnPlot::operator()(double, double, const std::vector<std::pair<double, double> >&) const’ at /var/tmp/portage/dev-python/iminuit-2.30.1/work/iminuit-2.30.1/extern/root/math/minuit2/src/MnPlot.cxx:51:18:
/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/bits/new_allocator.h:172:33: error: ‘void operator delete(void*, std::size_t)’ called on pointer ‘<unknown>’ with nonzero offset [1, 576460752303423489] [-Werror=free-nonheap-object]
  172 |         _GLIBCXX_OPERATOR_DELETE(_GLIBCXX_SIZED_DEALLOC(__p, __n));
      |                                 ^
In member function ‘_Tp* std::__new_allocator<_Tp>::allocate(size_type, const void*) [with _Tp = char]’,
    inlined from ‘static _Tp* std::allocator_traits<std::allocator<_Tp1> >::allocate(allocator_type&, size_type) [with _Tp = char]’ at /usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/bits/alloc_traits.h:509:28,
    inlined from ‘std::_Vector_base<_Tp, _Alloc>::pointer std::_Vector_base<_Tp, _Alloc>::_M_allocate(std::size_t) [with _Tp = char; _Alloc = std::allocator<char>]’ at /usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/bits/stl_vector.h:380:33,
    inlined from ‘void std::vector<_Tp, _Alloc>::reserve(size_type) [with _Tp = char; _Alloc = std::allocator<char>]’ at /usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/bits/vector.tcc:79:33,
    inlined from ‘void ROOT::Minuit2::MnPlot::operator()(double, double, const std::vector<std::pair<double, double> >&) const’ at /var/tmp/portage/dev-python/iminuit-2.30.1/work/iminuit-2.30.1/extern/root/math/minuit2/src/MnPlot.cxx:50:16:
/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/bits/new_allocator.h:151:55: note: returned from ‘void* operator new(std::size_t)’
  151 |         return static_cast<_Tp*>(_GLIBCXX_OPERATOR_NEW(__n * sizeof(_Tp)));
      |                                                       ^
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant