[Bug gold/26585] New: gold: call to deprecated mallinfo raises -Werror=deprecated-declarations with latest glibc
https://sourceware.org/bugzilla/show_bug.cgi?id=26585 Bug ID: 26585 Summary: gold: call to deprecated mallinfo raises -Werror=deprecated-declarations with latest glibc Product: binutils Version: 2.36 (HEAD) Status: UNCONFIRMED 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: --- glibc recently deprecated mallinfo and introduced mallinfo2 instead: https://sourceware.org/git/?p=glibc.git;a=commit;h=e3960d1c57e57f33e0e846d615788f4ede73b945 https://sourceware.org/git/?p=glibc.git;a=commit;h=30e5069c7d4b51288d3e6f75f53a6ad2f5e71b0f Building binutils with latest glibc causes issues while compiling gold: /home/tcbot/bot-slave/at/src/at14.0-0.redhat-8_ppc64le_ppc64le/sources/binutils/gold/main.cc: In function ‘int main(int, char**)’: /home/tcbot/bot-slave/at/src/at14.0-0.redhat-8_ppc64le_ppc64le/sources/binutils/gold/main.cc:294:36: error: ‘mallinfo mallinfo()’ is deprecated [-Werror=deprecated-declarations] 294 | struct mallinfo m = mallinfo(); |^ In file included from /home/tcbot/bot-slave/at/src/at14.0-0.redhat-8_ppc64le_ppc64le/sources/binutils/gold/main.cc:29: /home/tcbot/bot-slave/at_opt/at14.0/include/malloc.h:118:24: note: declared here 118 | extern struct mallinfo mallinfo (void) __THROW __MALLOC_DEPRECATED; |^~~~ -- You are receiving this mail because: You are on the CC list for the bug.
[Bug gold/27815] New: gold fails to build with latest GCC
https://sourceware.org/bugzilla/show_bug.cgi?id=27815 Bug ID: 27815 Summary: gold fails to build with latest GCC Product: binutils Version: 2.37 (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 gold with upstream GCC started to fail after GCC commit: commit d96db15967e78d7cecea3b1cf3169ceb924678ac Author: Jonathan Wakely Date: Wed Apr 28 17:46:01 2021 +0100 libstdc++: Deprecate non-standard std::pair constructors [PR 99957] gold/gc.h is using one of the deprecated std::pair constructors to create an empty Section_id in some cases: binutils/gold/gc.h:250:37: error: ISO C++ says that these are ambiguous, even though the worst conversion for the first is better than the worst conversion for the second: [-Werror] 250 | (*secvec).push_back(Section_id(NULL, 0)); | ^~~ -- You are receiving this mail because: You are on the CC list for the bug.
[Bug gold/27815] gold fails to build with latest GCC
https://sourceware.org/bugzilla/show_bug.cgi?id=27815 --- Comment #2 from Matheus Castanho --- Yes, that sounds right. I tested that and it's enough to get past the error with upstream GCC. I didn't have the chance to test with the oldest supported GCC though. -- You are receiving this mail because: You are on the CC list for the bug.
[Bug gold/28122] New: [gold] Use of deleted constructor with latest GCC
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::_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::_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::_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 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.
[Bug gold/28122] [gold] Use of deleted constructor with latest GCC
https://sourceware.org/bugzilla/show_bug.cgi?id=28122 Matheus Castanho changed: What|Removed |Added Status|NEW |RESOLVED Resolution|--- |NOTABUG --- Comment #1 from Matheus Castanho --- Sorry, this was actually a GCC bug. It has been fixed already, so I'm closing this. -- You are receiving this mail because: You are on the CC list for the bug.