https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86820
Bug ID: 86820 Summary: [8, regression] gcc-8 miscompiles binutils on m68k Product: gcc Version: 8.2.0 URL: https://sourceware.org/bugzilla/show_bug.cgi?id=23471 Status: UNCONFIRMED Severity: normal Priority: P3 Component: target Assignee: unassigned at gcc dot gnu.org Reporter: glaubitz at physik dot fu-berlin.de CC: jason.duerstock at gmail dot com, jrtc27 at jrtc27 dot com, sch...@linux-m68k.org Target Milestone: --- Target: m68k-*-* Building binutils from git master on m68k with gcc-8 results in utilities like strip or objcop failing with "memory exhausted": For example, building wireshark on Debian m68k fails with: dh_strip --ddeb-migration="wireshark-dbg (<< 2.0.1+g59ea380-12.0.1+g59ea380-2~)" || dh_strip /usr/bin/objcopy:debian/libwireshark11/usr/lib/m68k-linux-gnu/libwireshark.so.11.1.2: memory exhausted dh_strip: objcopy --only-keep-debug --compress-debug-sections debian/libwireshark11/usr/lib/m68k-linux-gnu/libwireshark.so.11.1.2 debian/.debhelper/libwireshark11/dbgsym-root/usr/lib/debug/.build-id/8d/574eed1bdf861517258e43eb7c77408493c40e.debug returned exit code 1 dh_strip: Aborting due to earlier error /usr/bin/objcopy:debian/libwireshark11/usr/lib/m68k-linux-gnu/libwireshark.so.11.1.2: memory exhausted dh_strip: objcopy --only-keep-debug --compress-debug-sections debian/libwireshark11/usr/lib/m68k-linux-gnu/libwireshark.so.11.1.2 debian/.debhelper/libwireshark11/dbgsym-root/usr/lib/debug/.build-id/8d/574eed1bdf861517258e43eb7c77408493c40e.debug returned exit code 1 dh_strip: Aborting due to earlier error Full log: https://buildd.debian.org/status/fetch.php?pkg=wireshark&arch=m68k&ver=2.6.2-2&stamp=1533058050&raw=0 Building haskell-yaml on Debian m68k fails with: debian/hlibrary.setup copy --builddir=dist-ghc --destdir=debian/tmp-inst-ghc Installing library in debian/tmp-inst-ghc/usr/lib/haskell-packages/ghc/lib/m68k-linux-ghc-8.2.2/yaml-0.8.31.1-EX4SEGT1sRZ4D4BySsFjv1 Installing executable yaml2json in debian/tmp-inst-ghc/usr/bin Warning: The directory debian/tmp-inst-ghc/usr/bin is not in the system search path. /usr/bin/strip:debian/tmp-inst-ghc/usr/bin/yaml2json: memory exhausted make: *** [/usr/share/cdbs/1/class/hlibrary.mk:188: debian/tmp-inst-ghc] Error 1 Full log: https://buildd.debian.org/status/fetch.php?pkg=haskell-yaml&arch=m68k&ver=0.8.31.1-1&stamp=1533003205&raw=0 Building the same version of binutils with gcc-7 results in working strip and objcopy binaries which don't bail out with the above memory exhausted error.