gm2
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Fixing testsuite failures: arithX.mod


From: Gaius Mulley
Subject: Re: Fixing testsuite failures: arithX.mod
Date: Thu, 06 May 2021 15:27:02 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux)

Brian Callahan <bcallah@protonmail.com> writes:

> Hello --
>
> There are many testsuite failures on OpenBSD in the arithX.mod
> compilation. They all boil down to the same issue: CMPLX is being
> used in a CONST assignment but gm2 does not believe that is valid.
>
> Attached is the full error message for arith3.mod. If there are
> any pointers, I can go fix it.
>
> Thanks.
>
> ~Brian

Hi Brian,

I'm curious as to the contents of <builddir>/gcc/testsuite/gm2/gm2.log
regarding arith3.mod.  On my debian buster amd64 system I have the following:

spawn -ignore SIGHUP
/home/gaius/GM2/graft-combine/build-gm2-master-enabled/gcc/gm2
-B/home/gaius/GM2/graft-combine/build-gm2-master-enabled/gcc
-I/home/gaius/GM2/graft-combine/build-gm2-master-enabled/x86_64-pc-linux-gnu/./libgm2/libm2iso:/home/gaius/GM2/graft-combine/gm2-floppsie/gcc/testsuite/../m2/gm2-libs-iso
-I/home/gaius/GM2/graft-combine/build-gm2-master-enabled/x86_64-pc-linux-gnu/./libgm2/libm2cor:/home/gaius/GM2/graft-combine/gm2-floppsie/gcc/testsuite/../m2/gm2-libs-coroutines
-I/home/gaius/GM2/graft-combine/build-gm2-master-enabled/x86_64-pc-linux-gnu/./libgm2/libm2pim:/home/gaius/GM2/graft-combine/gm2-floppsie/gcc/testsuite/../m2/gm2-libs
-fiso
-L/home/gaius/GM2/graft-combine/build-gm2-master-enabled/x86_64-pc-linux-gnu/./libgm2/libm2iso/.libs
-L/home/gaius/GM2/graft-combine/build-gm2-master-enabled/x86_64-pc-linux-gnu/./libgm2/libm2cor/.libs
-L/home/gaius/GM2/graft-combine/build-gm2-master-enabled/x86_64-pc-linux-gnu/./libgm2/libm2pim/.libs
-fno-diagnostics-show-caret -fno-diagnostics-show-line-numbers
-fdiagnostics-color=never -g -c -o
/home/gaius/GM2/graft-combine/build-gm2-master-enabled/gcc/testsuite/gm2/arith3.o
/home/gaius/GM2/graft-combine/gm2-floppsie/gcc/testsuite/gm2/complex/pass/arith3.mod

the item of particular interest is the -fiso switch - which should be
present and will enable CMPLX to be utilised in a constant expression.
Without -fiso I get the same error - and the testsuite should be running
these tests with the boilerplate iso configuration.

In summary:

gm2 -g -c arith3.mod

will gives me the same error whereas

gm2 -g -c -fiso arith3.mod

is successful.  An interesting problem!


regards,
Gaius



reply via email to

[Prev in Thread] Current Thread [Next in Thread]