Trying to build GDB-8.2 (gdb-8.2-branch) on RPI3. Here is the GDB configuration: $ configure --disable-werror --disable-nls --disable-binutils --disable-gprof --disable-gas --disable-ld --disable-gold --disable-gdbtk --prefix=<path> clang++: error: unable to execute command: Killed clang++: error: clang frontend command failed due to signal (use -v to see invocation) FreeBSD clang version 6.0.0 (tags/RELEASE_600/final 326565) (based on LLVM 6.0.0) Target: aarch64-unknown-freebsd12.0 Thread model: posix InstalledDir: /usr/bin clang++: note: diagnostic msg: PLEASE submit a bug report to https://bugs.freebsd.org/submit/ and include the crash backtrace, preprocessed source, and associated run script. CXX bcache.o CXX bfd-target.o clang++: note: diagnostic msg: ******************** PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT: Preprocessed source(s) and associated run script(s) are located at: clang++: note: diagnostic msg: /tmp/mi-interp-0c056e.cpp clang++: note: diagnostic msg: /tmp/mi-interp-0c056e.sh clang++: note: diagnostic msg: ********************
Can you reproduce this if you cross-compile gdb? If so, perhaps you can use creduce to get it down to a test case? (When I test gdb and kgdb on my RPI I cross-build gdb using the 'gdb/build' script from github/bsdjhb/kgdb.git.
The error messages indicate that clang++ was killed due to an out-of-memory condition. This could be a result of a bug in LLVM itself (a memory leak perhaps), but without further clues it's hard to say. Please feel free to re-open if you're able to trigger this on 12.1 or 12.2 and believe it's a bug.