https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81495

--- Comment #2 from John Paul Adrian Glaubitz <glaubitz at physik dot 
fu-berlin.de> ---
(In reply to Eric Botcazou from comment #1)
> You're on your own here; try maybe to compare with a bootstrap on x86.

Looks like the compiler itself is not functioning properly. I have tried
building libgmpada, for example, and when trying to compile
src/gnu_multiple_precision-big_integers.adb, the compiler is constantly
generating segfaults:

root@pacman:/build/libgmpada/libgmpada-1.1# strace -p 25950
strace: Process 25950 attached
--- SIGSEGV {si_signo=SIGSEGV, si_code=SEGV_MAPERR, si_addr=0x20398130} ---
--- SIGSEGV {si_signo=SIGSEGV, si_code=SEGV_MAPERR, si_addr=0x20398130} ---
--- SIGSEGV {si_signo=SIGSEGV, si_code=SEGV_MAPERR, si_addr=0x20398130} ---
--- SIGSEGV {si_signo=SIGSEGV, si_code=SEGV_MAPERR, si_addr=0x20398130} ---
--- SIGSEGV {si_signo=SIGSEGV, si_code=SEGV_MAPERR, si_addr=0x20398130} ---
--- SIGSEGV {si_signo=SIGSEGV, si_code=SEGV_MAPERR, si_addr=0x20398130} ---
--- SIGSEGV {si_signo=SIGSEGV, si_code=SEGV_MAPERR, si_addr=0x20398130} ---
--- SIGSEGV {si_signo=SIGSEGV, si_code=SEGV_MAPERR, si_addr=0x20398130} ---
(...)
--- SIGSEGV {si_signo=SIGSEGV, si_code=SEGV_MAPERR, si_addr=0x20398130} ---
--- SIGSEGV {si_signo=SIGSEGV, si_code=SEGV_MAPERR, si_addr=0x20398130} ---
--- SIGSEGV {si_signo=SIGSEGV, si_code=SEGV_MAPERR, si_addr=0x20398130} ---
--- SIGSEGV {si_signo=SIGSEGV, si_code=SEGV_MAPERR, si_addr=0x20398130} ---
--- SIGSEGV {si_signo=SIGSEGV, si_code=SEGV_MAPERR, si_addr=0x20398130} ---
--- SIGSEGV {si_signo=SIGSEGV, si_code=SEGV_MAPERR, si_addr=0x20398130} ---
--- SIGSEGV {si_signo=SIGSEGV, si_code=SEGV_MAPERR, si_addr=0x20398130} ---
root@pacman:/build/libgmpada/libgmpada-1.1#

I also noticed that Support_Atomic_Primitives is set True for Linux m68k but I
have no idea how reliable the atomics work here. So, I am bootstrapping again
with "Support_Atomic_Primitives := True" removed which is true for many other
Linux targets like hppa and sh4.

Reply via email to