public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/100360] New: scalar operation fails the compilation
@ 2021-04-30 18:08 aliaga at uji dot es
2021-04-30 20:59 ` [Bug c/100360] " pinskia at gcc dot gnu.org
` (4 more replies)
0 siblings, 5 replies; 6+ messages in thread
From: aliaga at uji dot es @ 2021-04-30 18:08 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100360
Bug ID: 100360
Summary: scalar operation fails the compilation
Product: gcc
Version: 9.3.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c
Assignee: unassigned at gcc dot gnu.org
Reporter: aliaga at uji dot es
Target Milestone: ---
Created attachment 50720
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=50720&action=edit
Simple C file
Hi,
Really short code generates a internal error.
This is the code,
======================
#include <stdio.h>
#include <stdlib.h>
void main(){
double q = 1.0 / 16.0;
printf ("%f\n", q);
}
======================
The attachment contains the execution of the next command:
gcc -v -save-temps error.c -o error.x 2> bug.txt
Best regards,
José I. Aliaga
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug c/100360] scalar operation fails the compilation
2021-04-30 18:08 [Bug c/100360] New: scalar operation fails the compilation aliaga at uji dot es
@ 2021-04-30 20:59 ` pinskia at gcc dot gnu.org
2021-04-30 23:15 ` aliaga at uji dot es
` (3 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: pinskia at gcc dot gnu.org @ 2021-04-30 20:59 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100360
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Ever confirmed|0 |1
Target| |x86_64-linux-gnu
Status|UNCONFIRMED |WAITING
Last reconfirmed| |2021-04-30
--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
This is most likely due to this:
warning: GMP header version 6.2.0 differs from library version 6.2.1.
Can you make sure you have the correct version of GMP installed and such.
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug c/100360] scalar operation fails the compilation
2021-04-30 18:08 [Bug c/100360] New: scalar operation fails the compilation aliaga at uji dot es
2021-04-30 20:59 ` [Bug c/100360] " pinskia at gcc dot gnu.org
@ 2021-04-30 23:15 ` aliaga at uji dot es
2021-05-03 7:33 ` rguenth at gcc dot gnu.org
` (2 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: aliaga at uji dot es @ 2021-04-30 23:15 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100360
--- Comment #2 from aliaga at uji dot es ---
(In reply to Andrew Pinski from comment #1)
> This is most likely due to this:
> warning: GMP header version 6.2.0 differs from library version 6.2.1.
>
> Can you make sure you have the correct version of GMP installed and such.
Hi,
Thank you very much for your quick answer!!
I downloaded and installed the version 6.2.1 of GMP library in a local
directory, but the code attached in the bug doesn't use the GMP library.
Therefore, why does this error happen?
In any case, I have recompiled the codes, and now the error doesn't occur. I
don't understand why.
It is true that the first error occurred in a larger code where GMP 6.2.1 was
used. From this, I reduced the code trying to isolate the problem, removing the
use of GMP and generating a really short code. The only reasoning to justify
the solution could be that I have reconnected to the machine, but it is rare.
Given that the error no longer occurs, I want to thank you again your help.
Best regards,
José I. Aliaga
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug c/100360] scalar operation fails the compilation
2021-04-30 18:08 [Bug c/100360] New: scalar operation fails the compilation aliaga at uji dot es
2021-04-30 20:59 ` [Bug c/100360] " pinskia at gcc dot gnu.org
2021-04-30 23:15 ` aliaga at uji dot es
@ 2021-05-03 7:33 ` rguenth at gcc dot gnu.org
2021-05-03 10:07 ` aliaga at uji dot es
2021-07-19 23:18 ` pinskia at gcc dot gnu.org
4 siblings, 0 replies; 6+ messages in thread
From: rguenth at gcc dot gnu.org @ 2021-05-03 7:33 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100360
--- Comment #3 from Richard Biener <rguenth at gcc dot gnu.org> ---
It's more likely that mpfr and/or GMP were configured with a wrong CPU and thus
run into the illegal instruction. In the end this is unlikely a GCC problem.
Please verify with a debugger.
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug c/100360] scalar operation fails the compilation
2021-04-30 18:08 [Bug c/100360] New: scalar operation fails the compilation aliaga at uji dot es
` (2 preceding siblings ...)
2021-05-03 7:33 ` rguenth at gcc dot gnu.org
@ 2021-05-03 10:07 ` aliaga at uji dot es
2021-07-19 23:18 ` pinskia at gcc dot gnu.org
4 siblings, 0 replies; 6+ messages in thread
From: aliaga at uji dot es @ 2021-05-03 10:07 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100360
--- Comment #4 from aliaga at uji dot es ---
Hi,
I have two different compiled versions of GMP. Initially, it is possible that I
tried to use the wrong version, but the simplest code doesn't use GMP,
therefore it doesn't matter the version which I chose.
Unfortunately, the error no longer occurs, and I can't to use the debugger.
In any case, thank you for your efforts.
Best regards,
José I. Aliaga
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug c/100360] scalar operation fails the compilation
2021-04-30 18:08 [Bug c/100360] New: scalar operation fails the compilation aliaga at uji dot es
` (3 preceding siblings ...)
2021-05-03 10:07 ` aliaga at uji dot es
@ 2021-07-19 23:18 ` pinskia at gcc dot gnu.org
4 siblings, 0 replies; 6+ messages in thread
From: pinskia at gcc dot gnu.org @ 2021-07-19 23:18 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100360
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Resolution|--- |INVALID
Status|WAITING |RESOLVED
--- Comment #5 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Works when using the same GMP as being compiled with so closing as invalid.
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2021-07-19 23:18 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-04-30 18:08 [Bug c/100360] New: scalar operation fails the compilation aliaga at uji dot es
2021-04-30 20:59 ` [Bug c/100360] " pinskia at gcc dot gnu.org
2021-04-30 23:15 ` aliaga at uji dot es
2021-05-03 7:33 ` rguenth at gcc dot gnu.org
2021-05-03 10:07 ` aliaga at uji dot es
2021-07-19 23:18 ` pinskia at gcc dot gnu.org
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).