public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/48215] New: internal compiler error: in vinsn_detach, at sel-sched-ir.c:1268 on IA-64
@ 2011-03-21 11:34 sebastian.hegler@tu-dresden.de
  2011-03-21 15:03 ` [Bug rtl-optimization/48215] " sebastian.hegler@tu-dresden.de
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: sebastian.hegler@tu-dresden.de @ 2011-03-21 11:34 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48215

           Summary: internal compiler error: in vinsn_detach, at
                    sel-sched-ir.c:1268 on IA-64
           Product: gcc
           Version: 4.5.2
            Status: UNCONFIRMED
          Severity: blocker
          Priority: P3
         Component: c++
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: sebastian.hegler@tu-dresden.de


Created attachment 23734
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=23734
The preprocessed file (*.i*) that triggers the bug, generated by adding
-save-temps to the complete compilation command, compressed with gzip.

I am trying to compile boost v1.44.0 ("www.boost.org") library on IA-64, which
fails with: 

/home/h0/radar-08/modules-ia64/gcc/4.5.2/bin/../lib/gcc/ia64-unknown-linux-gnu/4.5.2/../../../../include/c++/4.5.2/bits/stl_algobase.h:553:2:
internal compiler error: in vinsn_detach, at sel-sched-ir.c:1268


Important here seems to be the fact that I built GCC with
"--enable-build-with-cxx". Without that option, building my stuff fails
somewhat later on, see bug #48191.



Continuing as per "http://gcc.gnu.org/bugs/#report". Full Terminal output
follows here, the output from "-save-temps" comes as an attachment.

$g++ -v -save-temps -ftemplate-depth-128 -O3 -finline-functions -Wno-inline
-Wall -pthread -fPIC -fvisibility=hidden -Winvalid-pch -DBOOST_ALL_NO_LIB=1
-DBOOST_BUILD_PCH_ENABLED -DBOOST_MATH_TR1_DYN_LINK=1 -DNDEBUG
-I"bin.v2/libs/math/build/gcc-4.5.2/release/threading-multi/../src/tr1" -I"."
-I"libs/math/src/tr1" -c -o
"bin.v2/libs/math/build/gcc-4.5.2/release/threading-multi/cyl_neumann.o"
"libs/math/build/../src/tr1/cyl_neumann.cpp" 
Using built-in specs.
COLLECT_GCC=g++
COLLECT_LTO_WRAPPER=/home/h0/radar-08/modules-ia64/gcc/4.5.2/bin/../libexec/gcc/ia64-unknown-linux-gnu/4.5.2/lto-wrapper
Target: ia64-unknown-linux-gnu
Configured with: ../gcc-4.5.2/configure
--prefix=/home/radar-08/modules-ia64/gcc/4.5.2
--with--mpfr=/home/radar-08/modules-ia64/gcc/4.5.2
--with-gmp=/home/radar-08/modules-ia64/gcc/4.5.2
--with-mpc=/home/radar-08/modules-ia64/gcc/4.5.2
--with-libelf=/home/radar-08/modules-ia64/gcc/4.5.2 --enable-lto --enable-gold
--enable-bootstrap --enable-build-with-cxx
Thread model: posix
gcc version 4.5.2 (GCC) 
COLLECT_GCC_OPTIONS='-v' '-save-temps' '-ftemplate-depth-128' '-O3'
'-finline-functions' '-Wno-inline' '-Wall' '-pthread' '-fPIC'
'-fvisibility=hidden' '-Winvalid-pch' '-DBOOST_ALL_NO_LIB=1'
'-DBOOST_BUILD_PCH_ENABLED' '-DBOOST_MATH_TR1_DYN_LINK=1' '-DNDEBUG'
'-Ibin.v2/libs/math/build/gcc-4.5.2/release/threading-multi/../src/tr1' '-I.'
'-Ilibs/math/src/tr1' '-c' '-o'
'bin.v2/libs/math/build/gcc-4.5.2/release/threading-multi/cyl_neumann.o'
'-shared-libgcc'

/home/h0/radar-08/modules-ia64/gcc/4.5.2/bin/../libexec/gcc/ia64-unknown-linux-gnu/4.5.2/cc1plus
-E -quiet -v
-Ibin.v2/libs/math/build/gcc-4.5.2/release/threading-multi/../src/tr1 -I.
-Ilibs/math/src/tr1 -iprefix
/home/h0/radar-08/modules-ia64/gcc/4.5.2/bin/../lib/gcc/ia64-unknown-linux-gnu/4.5.2/
-D_GNU_SOURCE -D_REENTRANT -DBOOST_ALL_NO_LIB=1 -DBOOST_BUILD_PCH_ENABLED
-DBOOST_MATH_TR1_DYN_LINK=1 -DNDEBUG libs/math/build/../src/tr1/cyl_neumann.cpp
-Wno-inline -Wall -Winvalid-pch -ftemplate-depth-128 -finline-functions -fPIC
-fvisibility=hidden -O3 -fpch-preprocess -o cyl_neumann.ii
ignoring nonexistent directory
"/home/h0/radar-08/modules-ia64/gcc/4.5.2/bin/../lib/gcc/ia64-unknown-linux-gnu/4.5.2/../../../../ia64-unknown-linux-gnu/include"
ignoring duplicate directory
"/home/h0/radar-08/modules-ia64/gcc/4.5.2/bin/../lib/gcc/../../lib/gcc/ia64-unknown-linux-gnu/4.5.2/../../../../include/c++/4.5.2"
ignoring duplicate directory
"/home/h0/radar-08/modules-ia64/gcc/4.5.2/bin/../lib/gcc/../../lib/gcc/ia64-unknown-linux-gnu/4.5.2/../../../../include/c++/4.5.2/ia64-unknown-linux-gnu"
ignoring duplicate directory
"/home/h0/radar-08/modules-ia64/gcc/4.5.2/bin/../lib/gcc/../../lib/gcc/ia64-unknown-linux-gnu/4.5.2/../../../../include/c++/4.5.2/backward"
ignoring duplicate directory
"/home/h0/radar-08/modules-ia64/gcc/4.5.2/bin/../lib/gcc/../../lib/gcc/ia64-unknown-linux-gnu/4.5.2/include"
ignoring duplicate directory
"/home/h0/radar-08/modules-ia64/gcc/4.5.2/bin/../lib/gcc/../../lib/gcc/ia64-unknown-linux-gnu/4.5.2/include-fixed"
ignoring nonexistent directory
"/home/h0/radar-08/modules-ia64/gcc/4.5.2/bin/../lib/gcc/../../lib/gcc/ia64-unknown-linux-gnu/4.5.2/../../../../ia64-unknown-linux-gnu/include"
#include "..." search starts here:
#include <...> search starts here:
 bin.v2/libs/math/build/gcc-4.5.2/release/threading-multi/../src/tr1
 .
 libs/math/src/tr1

/home/h0/radar-08/modules-ia64/gcc/4.5.2/bin/../lib/gcc/ia64-unknown-linux-gnu/4.5.2/../../../../include/c++/4.5.2

/home/h0/radar-08/modules-ia64/gcc/4.5.2/bin/../lib/gcc/ia64-unknown-linux-gnu/4.5.2/../../../../include/c++/4.5.2/ia64-unknown-linux-gnu

/home/h0/radar-08/modules-ia64/gcc/4.5.2/bin/../lib/gcc/ia64-unknown-linux-gnu/4.5.2/../../../../include/c++/4.5.2/backward

/home/h0/radar-08/modules-ia64/gcc/4.5.2/bin/../lib/gcc/ia64-unknown-linux-gnu/4.5.2/include

/home/h0/radar-08/modules-ia64/gcc/4.5.2/bin/../lib/gcc/ia64-unknown-linux-gnu/4.5.2/include-fixed
 /usr/local/include
 /home/h0/radar-08/modules-ia64/gcc/4.5.2/bin/../lib/gcc/../../include
 /usr/include
End of search list.
COLLECT_GCC_OPTIONS='-v' '-save-temps' '-ftemplate-depth-128' '-O3'
'-finline-functions' '-Wno-inline' '-Wall' '-pthread' '-fPIC'
'-fvisibility=hidden' '-Winvalid-pch' '-DBOOST_ALL_NO_LIB=1'
'-DBOOST_BUILD_PCH_ENABLED' '-DBOOST_MATH_TR1_DYN_LINK=1' '-DNDEBUG'
'-Ibin.v2/libs/math/build/gcc-4.5.2/release/threading-multi/../src/tr1' '-I.'
'-Ilibs/math/src/tr1' '-c' '-o'
'bin.v2/libs/math/build/gcc-4.5.2/release/threading-multi/cyl_neumann.o'
'-shared-libgcc'

/home/h0/radar-08/modules-ia64/gcc/4.5.2/bin/../libexec/gcc/ia64-unknown-linux-gnu/4.5.2/cc1plus
-fpreprocessed cyl_neumann.ii -quiet -dumpbase cyl_neumann.cpp -auxbase-strip
bin.v2/libs/math/build/gcc-4.5.2/release/threading-multi/cyl_neumann.o -O3
-Wno-inline -Wall -Winvalid-pch -version -ftemplate-depth-128
-finline-functions -fPIC -fvisibility=hidden -o cyl_neumann.s
GNU C++ (GCC) version 4.5.2 (ia64-unknown-linux-gnu)
    compiled by GNU C version 4.5.2, GMP version 4.3.2, MPFR version 3.0.0, MPC
version 0.8.2
GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
GNU C++ (GCC) version 4.5.2 (ia64-unknown-linux-gnu)
    compiled by GNU C version 4.5.2, GMP version 4.3.2, MPFR version 3.0.0, MPC
version 0.8.2
GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
Compiler executable checksum: fe38f2592db8fa8848b9206a0a324f31
In file included from
/home/h0/radar-08/modules-ia64/gcc/4.5.2/bin/../lib/gcc/ia64-unknown-linux-gnu/4.5.2/../../../../include/c++/4.5.2/algorithm:62:0,
                 from ./boost/math/tools/config.hpp:16,
                 from ./boost/math/policies/policy.hpp:22,
                 from ./boost/math/tools/precision.hpp:19,
                 from ./boost/math/special_functions/acosh.hpp:20,
                 from ./boost/math/special_functions.hpp:15,
                 from libs/math/build/../src/tr1/pch.hpp:9:
/home/h0/radar-08/modules-ia64/gcc/4.5.2/bin/../lib/gcc/ia64-unknown-linux-gnu/4.5.2/../../../../include/c++/4.5.2/bits/stl_algobase.h:
In static member function ‘static _BI2 std::__copy_move_backward<false, false,
std::random_access_iterator_tag>::__copy_move_b(_BI1, _BI1, _BI2) [with _BI1 =
boost::io::detail::format_item<char, std::char_traits<char>,
std::allocator<char> >*, _BI2 = boost::io::detail::format_item<char,
std::char_traits<char>, std::allocator<char> >*]’:
/home/h0/radar-08/modules-ia64/gcc/4.5.2/bin/../lib/gcc/ia64-unknown-linux-gnu/4.5.2/../../../../include/c++/4.5.2/bits/stl_algobase.h:553:2:
internal compiler error: in vinsn_detach, at sel-sched-ir.c:1268
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.


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

* [Bug rtl-optimization/48215] internal compiler error: in vinsn_detach, at sel-sched-ir.c:1268 on IA-64
  2011-03-21 11:34 [Bug c++/48215] New: internal compiler error: in vinsn_detach, at sel-sched-ir.c:1268 on IA-64 sebastian.hegler@tu-dresden.de
@ 2011-03-21 15:03 ` sebastian.hegler@tu-dresden.de
  2011-03-21 15:33 ` sebastian.hegler@tu-dresden.de
                   ` (5 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: sebastian.hegler@tu-dresden.de @ 2011-03-21 15:03 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48215

--- Comment #1 from sebastian.hegler@tu-dresden.de 2011-03-21 14:46:07 UTC ---
There's actually a plethora of ICEs popping up when using a gcc compiled with
"--enable-build-with-cxx".

I'll file separate reports on those, and mention them here when I'm done.


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

* [Bug rtl-optimization/48215] internal compiler error: in vinsn_detach, at sel-sched-ir.c:1268 on IA-64
  2011-03-21 11:34 [Bug c++/48215] New: internal compiler error: in vinsn_detach, at sel-sched-ir.c:1268 on IA-64 sebastian.hegler@tu-dresden.de
  2011-03-21 15:03 ` [Bug rtl-optimization/48215] " sebastian.hegler@tu-dresden.de
@ 2011-03-21 15:33 ` sebastian.hegler@tu-dresden.de
  2011-03-21 16:07 ` amonakov at gcc dot gnu.org
                   ` (4 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: sebastian.hegler@tu-dresden.de @ 2011-03-21 15:33 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48215

--- Comment #2 from sebastian.hegler@tu-dresden.de 2011-03-21 15:23:52 UTC ---
I have now submitted PR 48218 and PR 48219, which may or may not be related to
this issue. 

What these three have in common is that they only appear when gcc is built with
"--enable-build-with-cxx".


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

* [Bug rtl-optimization/48215] internal compiler error: in vinsn_detach, at sel-sched-ir.c:1268 on IA-64
  2011-03-21 11:34 [Bug c++/48215] New: internal compiler error: in vinsn_detach, at sel-sched-ir.c:1268 on IA-64 sebastian.hegler@tu-dresden.de
  2011-03-21 15:03 ` [Bug rtl-optimization/48215] " sebastian.hegler@tu-dresden.de
  2011-03-21 15:33 ` sebastian.hegler@tu-dresden.de
@ 2011-03-21 16:07 ` amonakov at gcc dot gnu.org
  2011-03-22 12:08 ` sebastian.hegler@tu-dresden.de
                   ` (3 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: amonakov at gcc dot gnu.org @ 2011-03-21 16:07 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48215

--- Comment #3 from Alexander Monakov <amonakov at gcc dot gnu.org> 2011-03-21 15:53:43 UTC ---
Looks like PR 46518 (the fix was not propagated from trunk to 4.5-branch).  Can
you please check whether below patch fixes these problems?

diff --git a/gcc/sel-sched-ir.c b/gcc/sel-sched-ir.c
index e169276..71c02c4 100644
--- a/gcc/sel-sched-ir.c
+++ b/gcc/sel-sched-ir.c
@@ -1595,7 +1595,7 @@ static void
 init_expr (expr_t expr, vinsn_t vi, int spec, int use, int priority,
        int sched_times, int orig_bb_index, ds_t spec_done_ds,
        ds_t spec_to_check_ds, int orig_sched_cycle,
-       VEC(expr_history_def, heap) *history, bool target_available,
+       VEC(expr_history_def, heap) *history, signed char target_available,
            bool was_substituted, bool was_renamed, bool needs_spec_check_p,
            bool cant_move)
 {
diff --git a/gcc/sel-sched.c b/gcc/sel-sched.c
index 8550fcc..cb3c379 100644
--- a/gcc/sel-sched.c
+++ b/gcc/sel-sched.c
@@ -3735,7 +3735,7 @@ fill_vec_av_set (av_set_t av, blist_t bnds, fence_t
fence,
     {
       expr_t expr = VEC_index (expr_t, vec_av_set, n);
       insn_t insn = EXPR_INSN_RTX (expr);
-      char target_available;
+      signed char target_available;
       bool is_orig_reg_p = true;
       int need_cycles, new_prio;


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

* [Bug rtl-optimization/48215] internal compiler error: in vinsn_detach, at sel-sched-ir.c:1268 on IA-64
  2011-03-21 11:34 [Bug c++/48215] New: internal compiler error: in vinsn_detach, at sel-sched-ir.c:1268 on IA-64 sebastian.hegler@tu-dresden.de
                   ` (2 preceding siblings ...)
  2011-03-21 16:07 ` amonakov at gcc dot gnu.org
@ 2011-03-22 12:08 ` sebastian.hegler@tu-dresden.de
  2011-03-22 12:08 ` sebastian.hegler@tu-dresden.de
                   ` (2 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: sebastian.hegler@tu-dresden.de @ 2011-03-22 12:08 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48215

--- Comment #4 from sebastian.hegler@tu-dresden.de 2011-03-22 12:06:17 UTC ---
(In reply to comment #3)
> Looks like PR 46518 (the fix was not propagated from trunk to 4.5-branch). 
> Can you please check whether below patch fixes these problems?
Yes, this fixes this one, and also the other two (PR 48218 and PR 48219). 

Thanks!


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

* [Bug rtl-optimization/48215] internal compiler error: in vinsn_detach, at sel-sched-ir.c:1268 on IA-64
  2011-03-21 11:34 [Bug c++/48215] New: internal compiler error: in vinsn_detach, at sel-sched-ir.c:1268 on IA-64 sebastian.hegler@tu-dresden.de
                   ` (3 preceding siblings ...)
  2011-03-22 12:08 ` sebastian.hegler@tu-dresden.de
@ 2011-03-22 12:08 ` sebastian.hegler@tu-dresden.de
  2011-03-22 12:40 ` sebastian.hegler@tu-dresden.de
  2011-04-07  7:16 ` abel at gcc dot gnu.org
  6 siblings, 0 replies; 8+ messages in thread
From: sebastian.hegler@tu-dresden.de @ 2011-03-22 12:08 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48215

--- Comment #5 from sebastian.hegler@tu-dresden.de 2011-03-22 12:07:01 UTC ---
*** Bug 48218 has been marked as a duplicate of this bug. ***


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

* [Bug rtl-optimization/48215] internal compiler error: in vinsn_detach, at sel-sched-ir.c:1268 on IA-64
  2011-03-21 11:34 [Bug c++/48215] New: internal compiler error: in vinsn_detach, at sel-sched-ir.c:1268 on IA-64 sebastian.hegler@tu-dresden.de
                   ` (4 preceding siblings ...)
  2011-03-22 12:08 ` sebastian.hegler@tu-dresden.de
@ 2011-03-22 12:40 ` sebastian.hegler@tu-dresden.de
  2011-04-07  7:16 ` abel at gcc dot gnu.org
  6 siblings, 0 replies; 8+ messages in thread
From: sebastian.hegler@tu-dresden.de @ 2011-03-22 12:40 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48215

--- Comment #6 from sebastian.hegler@tu-dresden.de 2011-03-22 12:07:13 UTC ---
*** Bug 48219 has been marked as a duplicate of this bug. ***


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

* [Bug rtl-optimization/48215] internal compiler error: in vinsn_detach, at sel-sched-ir.c:1268 on IA-64
  2011-03-21 11:34 [Bug c++/48215] New: internal compiler error: in vinsn_detach, at sel-sched-ir.c:1268 on IA-64 sebastian.hegler@tu-dresden.de
                   ` (5 preceding siblings ...)
  2011-03-22 12:40 ` sebastian.hegler@tu-dresden.de
@ 2011-04-07  7:16 ` abel at gcc dot gnu.org
  6 siblings, 0 replies; 8+ messages in thread
From: abel at gcc dot gnu.org @ 2011-04-07  7:16 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48215

Andrey Belevantsev <abel at gcc dot gnu.org> changed:

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

--- Comment #7 from Andrey Belevantsev <abel at gcc dot gnu.org> 2011-04-07 07:15:53 UTC ---
I have backported the patch for PR 46518 to 4.5, so fixed.


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

end of thread, other threads:[~2011-04-07  7:16 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-03-21 11:34 [Bug c++/48215] New: internal compiler error: in vinsn_detach, at sel-sched-ir.c:1268 on IA-64 sebastian.hegler@tu-dresden.de
2011-03-21 15:03 ` [Bug rtl-optimization/48215] " sebastian.hegler@tu-dresden.de
2011-03-21 15:33 ` sebastian.hegler@tu-dresden.de
2011-03-21 16:07 ` amonakov at gcc dot gnu.org
2011-03-22 12:08 ` sebastian.hegler@tu-dresden.de
2011-03-22 12:08 ` sebastian.hegler@tu-dresden.de
2011-03-22 12:40 ` sebastian.hegler@tu-dresden.de
2011-04-07  7:16 ` abel 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).