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

H.J. Lu <hjl.tools at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Last reconfirmed|                            |2025-06-03
     Ever confirmed|0                           |1
             Status|UNCONFIRMED                 |WAITING

--- Comment #1 from H.J. Lu <hjl.tools at gmail dot com> ---
(In reply to Joseph S. Myers from comment #0)
> Created attachment 61565 [details]
> preprocessed source
> 
> Build the attached test (from glibc) with an s390x-linux-gnu compiler with
> options: -m31 -fgnu89-inline -g -O2 -fPIC
> 
> commit 2da641d01700907d600ff9027ecfc82500342428
> Author: H.J. Lu <hjl.to...@gmail.com>
> Date:   Sun Jun 1 09:29:48 2025 +0800
> 
>     Move get_call_rtx_from to final.c
> 
> results in the following ICE from this test:
> 
> during RTL pass: vartrack
> memusage.c: In function ‘update_data’:
> memusage.c:223:1: internal compiler error: Segmentation fault
>   223 | }
>       | ^
> 0x1c75e9f internal_error(char const*, ...)
>        
> /notnfs/josmyers/glibc-manual/src/gcc/gcc/diagnostic-global-context.cc:517
> 0xda5cef crash_signal
>         /notnfs/josmyers/glibc-manual/src/gcc/gcc/toplev.cc:321
> 0x119242a prepare_call_arguments
>         /notnfs/josmyers/glibc-manual/src/gcc/gcc/var-tracking.cc:6277
> 0x119242a vt_initialize
>         /notnfs/josmyers/glibc-manual/src/gcc/gcc/var-tracking.cc:10297
> 0x1197863 variable_tracking_main_1
>         /notnfs/josmyers/glibc-manual/src/gcc/gcc/var-tracking.cc:10526
> 0x1197a0b variable_tracking_main()
>         /notnfs/josmyers/glibc-manual/src/gcc/gcc/var-tracking.cc:10579
> 0x1197a0b execute
>         /notnfs/josmyers/glibc-manual/src/gcc/gcc/var-tracking.cc:10616
> Please submit a full bug report, with preprocessed source (by using
> -freport-bug).
> Please include the complete backtrace with any bug report.
> See <https://gcc.gnu.org/bugs/> for instructions.

I got

In file included from ../include/stdlib.h:16,
                 from ../sysdeps/s390/nptl/tls.h:27,
                 from ../include/link.h:51,
                 from ../include/dlfcn.h:4,
                 from memusage.c:20:
../stdlib/stdlib.h:153:8: error: ‘_Float128’ is not supported on this target
../stdlib/stdlib.h:165:8: error: ‘_Float64x’ is not supported on this target
../stdlib/stdlib.h:311:4: error: ‘_Float128’ is not supported on this target
../stdlib/stdlib.h:323:4: error: ‘_Float64x’ is not supported on this target
../stdlib/stdlib.h:450:8: error: ‘_Float128’ is not supported on this target
../stdlib/stdlib.h:464:8: error: ‘_Float64x’ is not supported on this target

with a cross compiler on x86-64:

$ ./xgcc -v
Using built-in specs.
COLLECT_GCC=./xgcc
Target: s390x-glibc-linux-gnu
Configured with: /export/gnu/import/git/sources/gcc-test/configure
--with-demangler-in-ld --target=s390x-glibc-linux-gnu
--prefix=/usr/gcc-16.0.0-s390x-linux --with-local-prefix=/usr/local
--with-system-zlib --disable-libcc1 --disable-libcilkrts --disable-libsanitizer
--disable-libmpx --enable-s390-excess-float-precision --enable-languages=c,c++
Thread model: posix
Supported LTO compression algorithms: zlib zstd
gcc version 16.0.0 20250601 (experimental) (GCC) 

How can I configure the cross compiler to compile this?

Reply via email to