https://sourceware.org/bugzilla/show_bug.cgi?id=28122
Bug ID: 28122 Summary: [gold] Use of deleted constructor with latest GCC Product: binutils Version: 2.38 (HEAD) Status: NEW Severity: normal Priority: P2 Component: gold Assignee: ccoutant at gmail dot com Reporter: msc at linux dot ibm.com CC: ian at airs dot com Target Milestone: --- Building binutils with latest GCC causes issues when building gold. Reproduced with: arch: ppc64le Using GCC: 8bf5b49ebd2176b8c535147377381dd07fbdd643 binutils: f878836265702be977ad9d1ea6d4fbdc4dac64cf Steps to reproduce: $ cd ~/build/gcc $ ~/src/gcc/configure --prefix=/home/mscastanho/usr --enable-languages=c,c++ --with-glibc-version=2.33 --disable-bootstrap CC=gcc-11 CXX=g++-11 && make -j20 &> _make; make install $ cd ~/build/binutils $ myusr=/home/mscastanho/usr/; CC=${myusr}/bin/gcc CXX=${myusr}/bin/g++ CFLAGS="-g -O2 -Wno-error=array-bounds" CXXFLAGS="-g -O2" ~/src/binutils-gdb/configure --prefix=${myusr} --disable-gdb --disable-gdbserver --disable-readline --disable-libdecnumber --disable-sim --disable-nls --enable-shared --enable-plugins --enable-install-libiberty=./ --enable-gold --enable-follow-debug-links=no && make -j16 Error: /home/mscastanho/src/binutils-gdb/gold/merge.h:283:7: required from here /home/mscastanho/usr/include/c++/12.0.0/bits/hashtable.h:487:49: error: use of deleted function ‘std::_Enable_special_members<false, true, true, true, true, true, std::__detail::_Hash_node_base>::_Enable_special_members()’ 487 | __hashtable_alloc(__node_alloc_type(__a)) | ^ In file included from /home/mscastanho/usr/include/c++/12.0.0/bits/hashtable.h:36, from /home/mscastanho/usr/include/c++/12.0.0/unordered_set:46, from /home/mscastanho/src/binutils-gdb/gold/system.h:68, from /home/mscastanho/src/binutils-gdb/gold/gold.h:35, from /home/mscastanho/src/binutils-gdb/gold/ehframe.cc:23: /home/mscastanho/usr/include/c++/12.0.0/bits/enable_special_members.h:99:10: note: ‘std::_Enable_special_members<false, true, true, true, true, true, std::__detail::_Hash_node_base>::_Enable_special_members()’ is implicitly deleted because the default definition would be ill-formed: 99 | struct _Enable_special_members | ^~~~~~~~~~~~~~~~~~~~~~~ /home/mscastanho/usr/include/c++/12.0.0/bits/enable_special_members.h:99:10: error: use of deleted function ‘constexpr std::_Enable_default_constructor<false, _Tag>::_Enable_default_constructor() [with _Tag = std::__detail::_Hash_node_base]’ /home/mscastanho/usr/include/c++/12.0.0/bits/enable_special_members.h:112:15: note: declared here 112 | constexpr _Enable_default_constructor() noexcept = delete; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ This is likely related to GCC commit: commit 89ec3b67dbe856a447d068b053bc19559f136f43 Author: Jonathan Wakely <jwak...@redhat.com> Date: Tue Jul 20 15:20:41 2021 +0100 libstdc++: fix is_default_constructible for hash containers [PR 100863] -- You are receiving this mail because: You are on the CC list for the bug.