* gcd_1.c:188:13: runtime error: shift exponent 64 is too large for 64-bit type 'long unsigned int'
@ 2022-02-01 21:03 Toon Moene
2022-02-01 21:44 ` Marc Glisse
0 siblings, 1 reply; 5+ messages in thread
From: Toon Moene @ 2022-02-01 21:03 UTC (permalink / raw)
To: gcc mailing list
I just ran a "ubsan" build on my x86_64-linux-gnu system.
See: https://gcc.gnu.org/pipermail/gcc-testresults/2022-February/754454.html
This is an interesting failure:
Executing on host:
/home/toon/scratch/bld1142336/gcc/testsuite/gfortran29/../../gfortran
-B/home/toon/scratch/bld1142336/gcc/testsuite/gfortran29/../../
-B/home/toon/scratch/bld1142336/x86_64-pc-linux-gnu/./libgfortran/
/home/toon/compilers/gcc/gcc/testsuite/gfortran.dg/graphite/pr39516.f
-fdiagnostics-plain-output -fdiagnostics-plain-output -O -O2
-ftree-loop-linear -S -o pr39516.s (timeout = 300)
spawn -ignore SIGHUP
/home/toon/scratch/bld1142336/gcc/testsuite/gfortran29/../../gfortran
-B/home/toon/scratch/bld1142336/gcc/testsuite/gfortran29/../../
-B/home/toon/scratch/bld1142336/x86_64-pc-linux-gnu/./libgfortran/
/home/toon/compilers/gcc/gcc/testsuite/gfortran.dg/graphite/pr39516.f
-fdiagnostics-plain-output -fdiagnostics-plain-output -O -O2
-ftree-loop-linear -S -o pr39516.s
gcd_1.c:188:13: runtime error: shift exponent 64 is too large for 64-bit
type 'long unsigned int'
FAIL: gfortran.dg/graphite/pr39516.f -O (test for excess errors)
Excess errors:
gcd_1.c:188:13: runtime error: shift exponent 64 is too large for 64-bit
type 'long unsigned int'
Note that the test case is pure Fortran source. The undefined error
seems to come from a function inside the graphite library ...
Kind regards,
--
Toon Moene - e-mail: toon@moene.org - phone: +31 346 214290
Saturnushof 14, 3738 XG Maartensdijk, The Netherlands
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: gcd_1.c:188:13: runtime error: shift exponent 64 is too large for 64-bit type 'long unsigned int'
2022-02-01 21:03 gcd_1.c:188:13: runtime error: shift exponent 64 is too large for 64-bit type 'long unsigned int' Toon Moene
@ 2022-02-01 21:44 ` Marc Glisse
2022-02-02 8:57 ` Toon Moene
0 siblings, 1 reply; 5+ messages in thread
From: Marc Glisse @ 2022-02-01 21:44 UTC (permalink / raw)
To: Toon Moene; +Cc: gcc mailing list
On Tue, 1 Feb 2022, Toon Moene wrote:
> I just ran a "ubsan" build on my x86_64-linux-gnu system.
>
> See: https://gcc.gnu.org/pipermail/gcc-testresults/2022-February/754454.html
>
> This is an interesting failure:
>
> Executing on host:
> /home/toon/scratch/bld1142336/gcc/testsuite/gfortran29/../../gfortran
> -B/home/toon/scratch/bld1142336/gcc/testsuite/gfortran29/../../
> -B/home/toon/scratch/bld1142336/x86_64-pc-linux-gnu/./libgfortran/
> /home/toon/compilers/gcc/gcc/testsuite/gfortran.dg/graphite/pr39516.f
> -fdiagnostics-plain-output -fdiagnostics-plain-output -O -O2
> -ftree-loop-linear -S -o pr39516.s (timeout = 300)
> spawn -ignore SIGHUP
> /home/toon/scratch/bld1142336/gcc/testsuite/gfortran29/../../gfortran
> -B/home/toon/scratch/bld1142336/gcc/testsuite/gfortran29/../../
> -B/home/toon/scratch/bld1142336/x86_64-pc-linux-gnu/./libgfortran/
> /home/toon/compilers/gcc/gcc/testsuite/gfortran.dg/graphite/pr39516.f
> -fdiagnostics-plain-output -fdiagnostics-plain-output -O -O2
> -ftree-loop-linear -S -o pr39516.s
> gcd_1.c:188:13: runtime error: shift exponent 64 is too large for 64-bit type
> 'long unsigned int'
> FAIL: gfortran.dg/graphite/pr39516.f -O (test for excess errors)
> Excess errors:
> gcd_1.c:188:13: runtime error: shift exponent 64 is too large for 64-bit type
> 'long unsigned int'
>
> Note that the test case is pure Fortran source. The undefined error seems to
> come from a function inside the graphite library ...
Maybe try with a more recent version of GMP first? gcd_1.c has only 103
lines in release 6.2.1.
A stack trace (UBSAN_OPTIONS=print_stacktrace=1) would make it easier to
guess where this is coming from.
--
Marc Glisse
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: gcd_1.c:188:13: runtime error: shift exponent 64 is too large for 64-bit type 'long unsigned int'
2022-02-01 21:44 ` Marc Glisse
@ 2022-02-02 8:57 ` Toon Moene
2022-02-02 9:11 ` Marc Glisse
0 siblings, 1 reply; 5+ messages in thread
From: Toon Moene @ 2022-02-02 8:57 UTC (permalink / raw)
To: gcc mailing list
On 2/1/22 22:44, Marc Glisse wrote:
> On Tue, 1 Feb 2022, Toon Moene wrote:
>
>> I just ran a "ubsan" build on my x86_64-linux-gnu system.
> Maybe try with a more recent version of GMP first? gcd_1.c has only 103
> lines in release 6.2.1.
>
> A stack trace (UBSAN_OPTIONS=print_stacktrace=1) would make it easier to
> guess where this is coming from.
Fascinating. My gcc directory had both gmp-6.2.1 and -6.1.0, but the
symbolic link 'gmp' pointed to the old one. A similar problem for mpc,
mpfr and isl ... I will retest.
Thanks !
--
Toon Moene - e-mail: toon@moene.org - phone: +31 346 214290
Saturnushof 14, 3738 XG Maartensdijk, The Netherlands
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: gcd_1.c:188:13: runtime error: shift exponent 64 is too large for 64-bit type 'long unsigned int'
2022-02-02 8:57 ` Toon Moene
@ 2022-02-02 9:11 ` Marc Glisse
2022-02-02 9:21 ` Toon Moene
0 siblings, 1 reply; 5+ messages in thread
From: Marc Glisse @ 2022-02-02 9:11 UTC (permalink / raw)
To: Toon Moene; +Cc: gcc mailing list
On Wed, 2 Feb 2022, Toon Moene wrote:
> Fascinating. My gcc directory had both gmp-6.2.1 and -6.1.0, but the symbolic
> link 'gmp' pointed to the old one. A similar problem for mpc, mpfr and isl
> ...
You need to pass --force to contrib/download_prerequisites if you want
them to be updated.
--
Marc Glisse
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: gcd_1.c:188:13: runtime error: shift exponent 64 is too large for 64-bit type 'long unsigned int'
2022-02-02 9:11 ` Marc Glisse
@ 2022-02-02 9:21 ` Toon Moene
0 siblings, 0 replies; 5+ messages in thread
From: Toon Moene @ 2022-02-02 9:21 UTC (permalink / raw)
To: gcc mailing list
On 2/2/22 10:11, Marc Glisse wrote:
> On Wed, 2 Feb 2022, Toon Moene wrote:
>
>> Fascinating. My gcc directory had both gmp-6.2.1 and -6.1.0, but the
>> symbolic link 'gmp' pointed to the old one. A similar problem for mpc,
>> mpfr and isl ...
>
> You need to pass --force to contrib/download_prerequisites if you want
> them to be updated.
>
Ah, that's useful, didn't know that.
--
Toon Moene - e-mail: toon@moene.org - phone: +31 346 214290
Saturnushof 14, 3738 XG Maartensdijk, The Netherlands
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2022-02-02 9:21 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-02-01 21:03 gcd_1.c:188:13: runtime error: shift exponent 64 is too large for 64-bit type 'long unsigned int' Toon Moene
2022-02-01 21:44 ` Marc Glisse
2022-02-02 8:57 ` Toon Moene
2022-02-02 9:11 ` Marc Glisse
2022-02-02 9:21 ` Toon Moene
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).