public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/106978] New: Internal compiler error including unordered_map
@ 2022-09-20 14:27 ben at benfulton dot net
  2022-09-20 14:34 ` [Bug c++/106978] " redi at gcc dot gnu.org
  2022-09-20 14:41 ` ben at benfulton dot net
  0 siblings, 2 replies; 3+ messages in thread
From: ben at benfulton dot net @ 2022-09-20 14:27 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106978

            Bug ID: 106978
           Summary: Internal compiler error including unordered_map
           Product: gcc
           Version: 12.1.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: ben at benfulton dot net
  Target Milestone: ---

Created attachment 53593
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=53593&action=edit
ii file

$ gcc -v -save-temps temp.cpp
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/geode2/soft/hps/rhel7/gcc/12.1.0/bin/../libexec/gcc/x86_64-pc-linux-gnu/12.1.0/lto-wrapper
Target: x86_64-pc-linux-gnu
Configured with: ./configure --prefix=/N/soft/rhel7/gcc/12.1.0
--with-long-double-128 --enable-host-shared --disable-multilib --enable-threads
Thread model: posix
Supported LTO compression algorithms: zlib
gcc version 12.1.0 (GCC) 
COLLECT_GCC_OPTIONS='-v' '-save-temps' '-mtune=generic' '-march=x86-64'
'-dumpdir' 'a-'

/geode2/soft/hps/rhel7/gcc/12.1.0/bin/../libexec/gcc/x86_64-pc-linux-gnu/12.1.0/cc1plus
-E -quiet -v -iprefix
/geode2/soft/hps/rhel7/gcc/12.1.0/bin/../lib/gcc/x86_64-pc-linux-gnu/12.1.0/
-D_GNU_SOURCE temp.cpp -mtune=generic -march=x86-64 -fpch-preprocess -o
a-temp.ii
ignoring nonexistent directory
"/geode2/soft/hps/rhel7/gcc/12.1.0/bin/../lib/gcc/x86_64-pc-linux-gnu/12.1.0/../../../../x86_64-pc-linux-gnu/include"
ignoring duplicate directory
"/geode2/soft/hps/rhel7/gcc/12.1.0/bin/../lib/gcc/../../lib/gcc/x86_64-pc-linux-gnu/12.1.0/../../../../include/c++/12.1.0"
ignoring duplicate directory
"/geode2/soft/hps/rhel7/gcc/12.1.0/bin/../lib/gcc/../../lib/gcc/x86_64-pc-linux-gnu/12.1.0/../../../../include/c++/12.1.0/x86_64-pc-linux-gnu"
ignoring duplicate directory
"/geode2/soft/hps/rhel7/gcc/12.1.0/bin/../lib/gcc/../../lib/gcc/x86_64-pc-linux-gnu/12.1.0/../../../../include/c++/12.1.0/backward"
ignoring duplicate directory
"/geode2/soft/hps/rhel7/gcc/12.1.0/bin/../lib/gcc/../../lib/gcc/x86_64-pc-linux-gnu/12.1.0/include"
ignoring duplicate directory
"/geode2/soft/hps/rhel7/gcc/12.1.0/bin/../lib/gcc/../../lib/gcc/x86_64-pc-linux-gnu/12.1.0/include-fixed"
ignoring nonexistent directory
"/geode2/soft/hps/rhel7/gcc/12.1.0/bin/../lib/gcc/../../lib/gcc/x86_64-pc-linux-gnu/12.1.0/../../../../x86_64-pc-linux-gnu/include"
ignoring duplicate directory "/N/soft/rhel7/gcc/12.1.0/include"
  as it is a non-system directory that duplicates a system directory
ignoring duplicate directory
"/N/soft/rhel7/gcc/12.1.0/include/c++/12.1.0/x86_64-pc-linux-gnu"
  as it is a non-system directory that duplicates a system directory
#include "..." search starts here:
#include <...> search starts here:

/geode2/soft/hps/rhel7/gcc/12.1.0/bin/../lib/gcc/x86_64-pc-linux-gnu/12.1.0/../../../../include/c++/12.1.0

/geode2/soft/hps/rhel7/gcc/12.1.0/bin/../lib/gcc/x86_64-pc-linux-gnu/12.1.0/../../../../include/c++/12.1.0/x86_64-pc-linux-gnu

/geode2/soft/hps/rhel7/gcc/12.1.0/bin/../lib/gcc/x86_64-pc-linux-gnu/12.1.0/../../../../include/c++/12.1.0/backward

/geode2/soft/hps/rhel7/gcc/12.1.0/bin/../lib/gcc/x86_64-pc-linux-gnu/12.1.0/include

/geode2/soft/hps/rhel7/gcc/12.1.0/bin/../lib/gcc/x86_64-pc-linux-gnu/12.1.0/include-fixed
 /usr/local/include
 /geode2/soft/hps/rhel7/gcc/12.1.0/bin/../lib/gcc/../../include
 /usr/include
End of search list.
COLLECT_GCC_OPTIONS='-v' '-save-temps' '-mtune=generic' '-march=x86-64'
'-dumpdir' 'a-'

/geode2/soft/hps/rhel7/gcc/12.1.0/bin/../libexec/gcc/x86_64-pc-linux-gnu/12.1.0/cc1plus
-fpreprocessed a-temp.ii -quiet -dumpdir a- -dumpbase temp.cpp -dumpbase-ext
.cpp -mtune=generic -march=x86-64 -version -o a-temp.s
GNU C++17 (GCC) version 12.1.0 (x86_64-pc-linux-gnu)
        compiled by GNU C version 12.1.0, GMP version 6.2.1, MPFR version
4.1.0, MPC version 1.2.1, isl version isl-0.23-GMP

GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
GNU C++17 (GCC) version 12.1.0 (x86_64-pc-linux-gnu)
        compiled by GNU C version 12.1.0, GMP version 6.2.1, MPFR version
4.1.0, MPC version 1.2.1, isl version isl-0.23-GMP

GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
Compiler executable checksum: 0073d495d55b480decdde07e31290358
In file included from
/geode2/soft/hps/rhel7/gcc/12.1.0/include/c++/12.1.0/bits/hashtable.h:35,
                 from
/geode2/soft/hps/rhel7/gcc/12.1.0/include/c++/12.1.0/unordered_map:46,
                 from temp.cpp:1:
/geode2/soft/hps/rhel7/gcc/12.1.0/include/c++/12.1.0/bits/hashtable_policy.h:502:5:
internal compiler error: Illegal instruction
  502 |     _Prime_rehash_policy(float __z = 1.0) noexcept
      |     ^~~~~~~~~~~~~~~~~~~~
0xd96f16 crash_signal
        ../.././gcc/toplev.cc:322
0xd02913 real_from_string(real_value*, char const*)
        ../.././gcc/real.cc:2110
0xd032eb real_from_string3(real_value*, char const*, format_helper)
        ../.././gcc/real.cc:2176
0x8d0a3d interpret_float
        ../.././gcc/c-family/c-lex.cc:1035
0x8d20f8 c_lex_with_flags(tree_node**, unsigned int*, unsigned char*, int)
        ../.././gcc/c-family/c-lex.cc:517
0x7afb36 cp_lexer_get_preprocessor_token
        ../.././gcc/cp/parser.cc:864
0x7febcf cp_lexer_new_main
        ../.././gcc/cp/parser.cc:663
0x7febcf c_parse_file()
        ../.././gcc/cp/parser.cc:48064
0x8eaf19 c_common_parse_file()
        ../.././gcc/c-family/c-opts.cc:1240
Please submit a full bug report, with preprocessed source (by using
-freport-bug).
Please include the complete backtrace with any bug report.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [Bug c++/106978] Internal compiler error including unordered_map
  2022-09-20 14:27 [Bug c++/106978] New: Internal compiler error including unordered_map ben at benfulton dot net
@ 2022-09-20 14:34 ` redi at gcc dot gnu.org
  2022-09-20 14:41 ` ben at benfulton dot net
  1 sibling, 0 replies; 3+ messages in thread
From: redi at gcc dot gnu.org @ 2022-09-20 14:34 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106978

--- Comment #1 from Jonathan Wakely <redi at gcc dot gnu.org> ---
(In reply to Ben Fulton from comment #0)
> 502:5: internal compiler error: Illegal instruction

This is not a GCC bug, it means your gcc executables were compiled for a
different CPU and use instructions that are not supported on your machine. It's
probably not GCC itself using those instructions, but something in the libgmp
or libmpfr or libmpc support libraries that GCC links to.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [Bug c++/106978] Internal compiler error including unordered_map
  2022-09-20 14:27 [Bug c++/106978] New: Internal compiler error including unordered_map ben at benfulton dot net
  2022-09-20 14:34 ` [Bug c++/106978] " redi at gcc dot gnu.org
@ 2022-09-20 14:41 ` ben at benfulton dot net
  1 sibling, 0 replies; 3+ messages in thread
From: ben at benfulton dot net @ 2022-09-20 14:41 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106978

Ben Fulton <ben at benfulton dot net> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|---                         |INVALID

--- Comment #2 from Ben Fulton <ben at benfulton dot net> ---
Ah, you're right. Mixed hardware using the same OS :/

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2022-09-20 14:41 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-09-20 14:27 [Bug c++/106978] New: Internal compiler error including unordered_map ben at benfulton dot net
2022-09-20 14:34 ` [Bug c++/106978] " redi at gcc dot gnu.org
2022-09-20 14:41 ` ben at benfulton dot net

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).