public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/101241] New: Internal compiler error from MathFunctions.h in the eigen library
@ 2021-06-28 13:21 r.langer at itv dot rwth-aachen.de
2021-06-28 13:59 ` [Bug c++/101241] " mpolacek at gcc dot gnu.org
` (11 more replies)
0 siblings, 12 replies; 13+ messages in thread
From: r.langer at itv dot rwth-aachen.de @ 2021-06-28 13:21 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101241
Bug ID: 101241
Summary: Internal compiler error from MathFunctions.h in the
eigen library
Product: gcc
Version: 11.1.1
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: r.langer at itv dot rwth-aachen.de
Target Milestone: ---
I used a docker image of Clean Linux (version 34790) and installed gcc 11.1.1
with:
swupd bundle-add c-basic wget
The following commands produce the error:
wget https://gitlab.com/libeigen/eigen/-/archive/3.4-rc1/eigen-3.4-rc1.tar.bz2
tar -xf eigen-3.4-rc1.tar.bz2
printf "#include <Eigen/Core>\n int main(int,char const*[]){}\n" >
eigen_bug.cpp
g++ eigen_bug.cpp -Ieigen-3.4-rc1/ -Ofast -ffast-math
Expected output from the last command:
In file included from eigen-3.4-rc1/Eigen/Core:171,
from eigen_bug.cpp:1:
eigen-3.4-rc1/Eigen/src/Core/MathFunctions.h:1036:71: internal compiler error:
in maybe_default_option, at opts.c:332
1036 | template<> EIGEN_TMP_NOOPT_ATTRIB bool isnan_impl(const long double& x)
{ return __builtin_isnan(x); }
| ^
Please submit a full bug report,
with preprocessed source if appropriate.
See <https://gcc.gnu.org/bugs/> for instructions.
The following works fine:
g++ eigen_bug.cpp -Ieigen-3.4-rc1/ -O3 -ffast-math
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug c++/101241] Internal compiler error from MathFunctions.h in the eigen library
2021-06-28 13:21 [Bug c++/101241] New: Internal compiler error from MathFunctions.h in the eigen library r.langer at itv dot rwth-aachen.de
@ 2021-06-28 13:59 ` mpolacek at gcc dot gnu.org
2021-06-28 15:05 ` r.langer at itv dot rwth-aachen.de
` (10 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: mpolacek at gcc dot gnu.org @ 2021-06-28 13:59 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101241
Marek Polacek <mpolacek at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |mpolacek at gcc dot gnu.org
--- Comment #1 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
Can you provide the preprocessed source? Use -save-temps to get it.
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug c++/101241] Internal compiler error from MathFunctions.h in the eigen library
2021-06-28 13:21 [Bug c++/101241] New: Internal compiler error from MathFunctions.h in the eigen library r.langer at itv dot rwth-aachen.de
2021-06-28 13:59 ` [Bug c++/101241] " mpolacek at gcc dot gnu.org
@ 2021-06-28 15:05 ` r.langer at itv dot rwth-aachen.de
2021-06-28 15:30 ` mpolacek at gcc dot gnu.org
` (9 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: r.langer at itv dot rwth-aachen.de @ 2021-06-28 15:05 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101241
--- Comment #2 from Raymond Langer <r.langer at itv dot rwth-aachen.de> ---
Created attachment 51072
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=51072&action=edit
preprocessed output
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug c++/101241] Internal compiler error from MathFunctions.h in the eigen library
2021-06-28 13:21 [Bug c++/101241] New: Internal compiler error from MathFunctions.h in the eigen library r.langer at itv dot rwth-aachen.de
2021-06-28 13:59 ` [Bug c++/101241] " mpolacek at gcc dot gnu.org
2021-06-28 15:05 ` r.langer at itv dot rwth-aachen.de
@ 2021-06-28 15:30 ` mpolacek at gcc dot gnu.org
2021-06-28 17:07 ` r.langer at itv dot rwth-aachen.de
` (8 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: mpolacek at gcc dot gnu.org @ 2021-06-28 15:30 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101241
--- Comment #3 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
I cannot reproduce this:
$ xg++ -c a-eigen_bug.ii -O3 -ffast-math -march=haswell
compiles.
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug c++/101241] Internal compiler error from MathFunctions.h in the eigen library
2021-06-28 13:21 [Bug c++/101241] New: Internal compiler error from MathFunctions.h in the eigen library r.langer at itv dot rwth-aachen.de
` (2 preceding siblings ...)
2021-06-28 15:30 ` mpolacek at gcc dot gnu.org
@ 2021-06-28 17:07 ` r.langer at itv dot rwth-aachen.de
2021-06-28 17:13 ` r.langer at itv dot rwth-aachen.de
` (7 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: r.langer at itv dot rwth-aachen.de @ 2021-06-28 17:07 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101241
--- Comment #4 from Raymond Langer <r.langer at itv dot rwth-aachen.de> ---
(In reply to Marek Polacek from comment #3)
> I cannot reproduce this:
>
> $ xg++ -c a-eigen_bug.ii -O3 -ffast-math -march=haswell
> compiles.
Yes,
g++ -c a-eigen_bug.ii -O3 -ffast-math -march=haswell
compiles.
However, -Ofast does not work together with -ffast-math:
g++ -c a-eigen_bug.ii -Ofast -ffast-math -march=haswell
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug c++/101241] Internal compiler error from MathFunctions.h in the eigen library
2021-06-28 13:21 [Bug c++/101241] New: Internal compiler error from MathFunctions.h in the eigen library r.langer at itv dot rwth-aachen.de
` (3 preceding siblings ...)
2021-06-28 17:07 ` r.langer at itv dot rwth-aachen.de
@ 2021-06-28 17:13 ` r.langer at itv dot rwth-aachen.de
2021-06-28 18:30 ` jakub at gcc dot gnu.org
` (6 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: r.langer at itv dot rwth-aachen.de @ 2021-06-28 17:13 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101241
--- Comment #5 from Raymond Langer <r.langer at itv dot rwth-aachen.de> ---
Using only -Ofast doesn't work either:
g++ -c a-eigen_bug.ii -Ofast
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug c++/101241] Internal compiler error from MathFunctions.h in the eigen library
2021-06-28 13:21 [Bug c++/101241] New: Internal compiler error from MathFunctions.h in the eigen library r.langer at itv dot rwth-aachen.de
` (4 preceding siblings ...)
2021-06-28 17:13 ` r.langer at itv dot rwth-aachen.de
@ 2021-06-28 18:30 ` jakub at gcc dot gnu.org
2021-06-28 22:24 ` [Bug target/101241] " pinskia at gcc dot gnu.org
` (5 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: jakub at gcc dot gnu.org @ 2021-06-28 18:30 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101241
Jakub Jelinek <jakub at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |jakub at gcc dot gnu.org
--- Comment #6 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Can't reproduce with -Ofast -ffast-math -march=haswell either.
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug target/101241] Internal compiler error from MathFunctions.h in the eigen library
2021-06-28 13:21 [Bug c++/101241] New: Internal compiler error from MathFunctions.h in the eigen library r.langer at itv dot rwth-aachen.de
` (5 preceding siblings ...)
2021-06-28 18:30 ` jakub at gcc dot gnu.org
@ 2021-06-28 22:24 ` pinskia at gcc dot gnu.org
2021-06-28 22:38 ` r.langer at itv dot rwth-aachen.de
` (4 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: pinskia at gcc dot gnu.org @ 2021-06-28 22:24 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101241
--- Comment #7 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
How did you configure GCC?
Also what revision is your 11.1.1 at?
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug target/101241] Internal compiler error from MathFunctions.h in the eigen library
2021-06-28 13:21 [Bug c++/101241] New: Internal compiler error from MathFunctions.h in the eigen library r.langer at itv dot rwth-aachen.de
` (6 preceding siblings ...)
2021-06-28 22:24 ` [Bug target/101241] " pinskia at gcc dot gnu.org
@ 2021-06-28 22:38 ` r.langer at itv dot rwth-aachen.de
2021-06-28 22:46 ` pinskia at gcc dot gnu.org
` (3 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: r.langer at itv dot rwth-aachen.de @ 2021-06-28 22:38 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101241
--- Comment #8 from Raymond Langer <r.langer at itv dot rwth-aachen.de> ---
I didn't configure gcc myself. I run gcc in a Clean Linux docker container:
docker run -it clearlinux /bin/bash
In the docker container, I run:
swupd bundle-add c-basic
gcc --version
gcc (Clear Linux OS for Intel Architecture) 11.1.1 20210617
releases/gcc-11.1.0-303-ge86ad5ad01
Copyright (C) 2021 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.
The uploaded file does not compile with:
g++ -c a-eigen_bug.ii -Ofast
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug target/101241] Internal compiler error from MathFunctions.h in the eigen library
2021-06-28 13:21 [Bug c++/101241] New: Internal compiler error from MathFunctions.h in the eigen library r.langer at itv dot rwth-aachen.de
` (7 preceding siblings ...)
2021-06-28 22:38 ` r.langer at itv dot rwth-aachen.de
@ 2021-06-28 22:46 ` pinskia at gcc dot gnu.org
2021-06-30 9:13 ` r.langer at itv dot rwth-aachen.de
` (2 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: pinskia at gcc dot gnu.org @ 2021-06-28 22:46 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101241
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |WAITING
Last reconfirmed| |2021-06-28
Ever confirmed|0 |1
--- Comment #9 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
(In reply to Raymond Langer from comment #8)
> releases/gcc-11.1.0-303-ge86ad5ad01
This does not make sense. object ge86ad5ad01 does not exist in
origin/releases/gcc-11 branch at all.
You are going to have to report this to the Clear Linux OS folks.
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug target/101241] Internal compiler error from MathFunctions.h in the eigen library
2021-06-28 13:21 [Bug c++/101241] New: Internal compiler error from MathFunctions.h in the eigen library r.langer at itv dot rwth-aachen.de
` (8 preceding siblings ...)
2021-06-28 22:46 ` pinskia at gcc dot gnu.org
@ 2021-06-30 9:13 ` r.langer at itv dot rwth-aachen.de
2021-06-30 13:10 ` hjl.tools at gmail dot com
2021-06-30 18:25 ` pinskia at gcc dot gnu.org
11 siblings, 0 replies; 13+ messages in thread
From: r.langer at itv dot rwth-aachen.de @ 2021-06-30 9:13 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101241
--- Comment #10 from Raymond Langer <r.langer at itv dot rwth-aachen.de> ---
I've reported the bug here:
https://github.com/clearlinux/distribution/issues/2393
The problem seems to be a Clear Linux patch.
Thanks for your support!
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug target/101241] Internal compiler error from MathFunctions.h in the eigen library
2021-06-28 13:21 [Bug c++/101241] New: Internal compiler error from MathFunctions.h in the eigen library r.langer at itv dot rwth-aachen.de
` (9 preceding siblings ...)
2021-06-30 9:13 ` r.langer at itv dot rwth-aachen.de
@ 2021-06-30 13:10 ` hjl.tools at gmail dot com
2021-06-30 18:25 ` pinskia at gcc dot gnu.org
11 siblings, 0 replies; 13+ messages in thread
From: hjl.tools at gmail dot com @ 2021-06-30 13:10 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101241
H.J. Lu <hjl.tools at gmail dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|WAITING |RESOLVED
Resolution|--- |INVALID
--- Comment #11 from H.J. Lu <hjl.tools at gmail dot com> ---
Not a GCC bug.
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug target/101241] Internal compiler error from MathFunctions.h in the eigen library
2021-06-28 13:21 [Bug c++/101241] New: Internal compiler error from MathFunctions.h in the eigen library r.langer at itv dot rwth-aachen.de
` (10 preceding siblings ...)
2021-06-30 13:10 ` hjl.tools at gmail dot com
@ 2021-06-30 18:25 ` pinskia at gcc dot gnu.org
11 siblings, 0 replies; 13+ messages in thread
From: pinskia at gcc dot gnu.org @ 2021-06-30 18:25 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101241
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Resolution|INVALID |MOVED
^ permalink raw reply [flat|nested] 13+ messages in thread
end of thread, other threads:[~2021-06-30 18:25 UTC | newest]
Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-06-28 13:21 [Bug c++/101241] New: Internal compiler error from MathFunctions.h in the eigen library r.langer at itv dot rwth-aachen.de
2021-06-28 13:59 ` [Bug c++/101241] " mpolacek at gcc dot gnu.org
2021-06-28 15:05 ` r.langer at itv dot rwth-aachen.de
2021-06-28 15:30 ` mpolacek at gcc dot gnu.org
2021-06-28 17:07 ` r.langer at itv dot rwth-aachen.de
2021-06-28 17:13 ` r.langer at itv dot rwth-aachen.de
2021-06-28 18:30 ` jakub at gcc dot gnu.org
2021-06-28 22:24 ` [Bug target/101241] " pinskia at gcc dot gnu.org
2021-06-28 22:38 ` r.langer at itv dot rwth-aachen.de
2021-06-28 22:46 ` pinskia at gcc dot gnu.org
2021-06-30 9:13 ` r.langer at itv dot rwth-aachen.de
2021-06-30 13:10 ` hjl.tools at gmail dot com
2021-06-30 18:25 ` 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).