Debian Linux SPARC64 issue with FAIL t-printf (exit status: 139)

Dennis Clarke dclarke at blastwave.org
Fri Dec 4 13:00:59 UTC 2020


On 11/23/20 12:53 AM, Vincent Lefevre wrote:
> On 2020-11-23 01:00:30 +0100, Vincent Lefevre wrote:
>> FYI, no failures on gcc202.fsffrance.org with
>>
>>   ./configure ABI=64 --enable-cxx --disable-assembly --enable-shared --enable-static --enable-fft
>>
>> Linux gcc202 5.9.0-2-sparc64-smp #1 SMP Debian 5.9.6-1 (2020-11-08) sparc64 GNU/Linux
>>
>> Also a Debian sid with
>>
>> vinc17 at gcc202:~$ gcc --version
>> gcc (Debian 10.2.0-17) 10.2.0
> 
> But note that I get an ICE with UBsan. My bug report with a very
> simple testcase:
> 
>   https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97939
> 

Fixed !!

root at ceres:~#
root at ceres:~#
root at ceres:~# uname -a
Linux ceres 5.9.0-4-sparc64-smp #1 SMP Debian 5.9.11-1 (2020-11-27)
sparc64 GNU/Linux
root at ceres:~#
root at ceres:~# cat /proc/cpuinfo
cpu             : TI UltraSparc IIi (Sabre)
fpu             : UltraSparc IIi integrated FPU
pmu             : ultra12
prom            : OBP 3.10.27 2000/06/22 16:45
type            : sun4u
ncpus probed    : 1
ncpus active    : 1
D$ parity tl1   : 0
I$ parity tl1   : 0
cpucaps         : flush,stbar,swap,muldiv,v9,mul32,div32,v8plus,vis
Cpu0ClkTck      : 000000001a3a1e16
MMU Type        : Spitfire
MMU PGSZs       : 8K,64K,512K,4MB
State:
CPU0:           online
root at ceres:~#
root at ceres:~# cat foo.c

long f (long i)
{
  return i + 4096;
}

root at ceres:~#
root at ceres:~# /usr/bin/gcc-10 --version
gcc-10 (Debian 10.2.0-23) 10.2.0
Copyright (C) 2020 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

root at ceres:~# /usr/bin/gcc-10 -v
Using built-in specs.
COLLECT_GCC=/usr/bin/gcc-10
COLLECT_LTO_WRAPPER=/usr/lib/gcc/sparc64-linux-gnu/10/lto-wrapper
Target: sparc64-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Debian
10.2.0-23' --with-bugurl=file:///usr/share/doc/gcc-10/README.Bugs
--enable-languages=c,ada,c++,go,d,fortran,objc,obj-c++,m2 --prefix=/usr
--with-gcc-major-version-only --program-suffix=-10
--program-prefix=sparc64-linux-gnu- --enable-shared
--enable-linker-build-id --libexecdir=/usr/lib
--without-included-gettext --enable-threads=posix --libdir=/usr/lib
--enable-nls --enable-bootstrap --enable-clocale=gnu
--enable-libstdcxx-debug --enable-libstdcxx-time=yes
--with-default-libstdcxx-abi=new --enable-gnu-unique-object
--disable-libquadmath --disable-libquadmath-support --enable-plugin
--enable-default-pie --with-system-zlib --disable-libphobos
--enable-objc-gc=auto --enable-multiarch --disable-werror
--with-cpu-32=ultrasparc --enable-targets=all --with-long-double-128
--enable-multilib --enable-checking=release --build=sparc64-linux-gnu
--host=sparc64-linux-gnu --target=sparc64-linux-gnu
Thread model: posix
Supported LTO compression algorithms: zlib zstd
gcc version 10.2.0 (Debian 10.2.0-23)
root at ceres:~#
root at ceres:~#
root at ceres:~# /usr/bin/gcc-10 -v -fsanitize=undefined -v -c foo.c
Using built-in specs.
COLLECT_GCC=/usr/bin/gcc-10
Target: sparc64-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Debian
10.2.0-23' --with-bugurl=file:///usr/share/doc/gcc-10/README.Bugs
--enable-languages=c,ada,c++,go,d,fortran,objc,obj-c++,m2 --prefix=/usr
--with-gcc-major-version-only --program-suffix=-10
--program-prefix=sparc64-linux-gnu- --enable-shared
--enable-linker-build-id --libexecdir=/usr/lib
--without-included-gettext --enable-threads=posix --libdir=/usr/lib
--enable-nls --enable-bootstrap --enable-clocale=gnu
--enable-libstdcxx-debug --enable-libstdcxx-time=yes
--with-default-libstdcxx-abi=new --enable-gnu-unique-object
--disable-libquadmath --disable-libquadmath-support --enable-plugin
--enable-default-pie --with-system-zlib --disable-libphobos
--enable-objc-gc=auto --enable-multiarch --disable-werror
--with-cpu-32=ultrasparc --enable-targets=all --with-long-double-128
--enable-multilib --enable-checking=release --build=sparc64-linux-gnu
--host=sparc64-linux-gnu --target=sparc64-linux-gnu
Thread model: posix
Supported LTO compression algorithms: zlib zstd
gcc version 10.2.0 (Debian 10.2.0-23)
COLLECT_GCC_OPTIONS='-v' '-fsanitize=undefined' '-v' '-c' '-mcpu=v9'
 /usr/lib/gcc/sparc64-linux-gnu/10/cc1 -quiet -v -v -imultiarch
sparc64-linux-gnu -D__sparc_v9__ -D__arch64__ foo.c -quiet -dumpbase
foo.c -mcpu=v9 -auxbase foo -version -fsanitize=undefined -o /tmp/ccngg5fZ.s
GNU C17 (Debian 10.2.0-23) version 10.2.0 (sparc64-linux-gnu)
        compiled by GNU C version 10.2.0, GMP version 6.2.1, MPFR
version 4.1.0, MPC version 1.2.0, isl version isl-0.23-GMP

GGC heuristics: --param ggc-min-expand=97 --param ggc-min-heapsize=127133
ignoring nonexistent directory "/usr/local/include/sparc64-linux-gnu"
ignoring nonexistent directory
"/usr/lib/gcc/sparc64-linux-gnu/10/include-fixed"
ignoring nonexistent directory
"/usr/lib/gcc/sparc64-linux-gnu/10/../../../../sparc64-linux-gnu/include"
#include "..." search starts here:
#include <...> search starts here:
 /usr/lib/gcc/sparc64-linux-gnu/10/include
 /usr/local/include
 /usr/include/sparc64-linux-gnu
 /usr/include
End of search list.
GNU C17 (Debian 10.2.0-23) version 10.2.0 (sparc64-linux-gnu)
        compiled by GNU C version 10.2.0, GMP version 6.2.1, MPFR
version 4.1.0, MPC version 1.2.0, isl version isl-0.23-GMP

GGC heuristics: --param ggc-min-expand=97 --param ggc-min-heapsize=127133
Compiler executable checksum: cafff3a7c98fd704fb364e25e7dbfea3
COLLECT_GCC_OPTIONS='-v' '-fsanitize=undefined' '-v' '-c' '-mcpu=v9'
 as -v -v -s -K PIC -Av9 -64 -no-undeclared-regs -relax -o foo.o
/tmp/ccngg5fZ.s
GNU assembler version 2.35.1 (sparc64-linux-gnu) using BFD version (GNU
Binutils for Debian) 2.35.1
COMPILER_PATH=/usr/lib/gcc/sparc64-linux-gnu/10/:/usr/lib/gcc/sparc64-linux-gnu/10/:/usr/lib/gcc/sparc64-linux-gnu/:/usr/lib/gcc/sparc64-linux-gnu/10/:/usr/lib/gcc/sparc64-linux-gnu/
LIBRARY_PATH=/usr/lib/gcc/sparc64-linux-gnu/10/:/usr/lib/gcc/sparc64-linux-gnu/10/../../../sparc64-linux-gnu/:/usr/lib/gcc/sparc64-linux-gnu/10/../../../../lib/:/lib/sparc64-linux-gnu/:/lib/../lib/:/usr/lib/sparc64-linux-gnu/:/usr/lib/../lib/:/usr/lib/gcc/sparc64-linux-gnu/10/../../../:/lib/:/usr/lib/
COLLECT_GCC_OPTIONS='-v' '-fsanitize=undefined' '-v' '-c' '-mcpu=v9'
root at ceres:~#

That was fast.

I will build libgmp 6.2.1 and run the tests on this new install and
updated gcc.

-- 
Dennis Clarke
RISC-V/SPARC/PPC/ARM/CISC
UNIX and Linux spoken
GreyBeard and suspenders optional


More information about the gmp-bugs mailing list