Bug 27011 - building profiledboort
Summary: building profiledboort
Status: RESOLVED DUPLICATE of bug 22313
Alias: None
Product: gcc
Classification: Unclassified
Component: bootstrap (show other bugs)
Version: 4.2.0
: P3 normal
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords:
: 27010 (view as bug list)
Depends on:
Blocks:
 
Reported: 2006-04-03 20:57 UTC by Alexander Monakov
Modified: 2006-04-03 22:05 UTC (History)
9 users (show)

See Also:
Host: i686-pc-linux-gnu
Target: i686-pc-linux-gnu
Build: i686-pc-linux-gnu
Known to work:
Known to fail:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alexander Monakov 2006-04-03 20:57:09 UTC
 
Comment 1 Andrew Pinski 2006-04-03 21:02:18 UTC
*** Bug 27010 has been marked as a duplicate of this bug. ***
Comment 2 Andrew Pinski 2006-04-03 21:05:18 UTC
So what is wrong?
Comment 3 Alexander Monakov 2006-04-03 21:25:08 UTC
(In reply to comment #2)
> So what is wrong?
> 

Oh, sorry for the mess. Shame on me.

Building profiledbootstrap with checking enabled produces ICEing compiler (make profiledbootstrap stops trying to compile crtsuff.c)

Compiler version is 4.2.0 20060330

Configured with:
../gcc/configure   --prefix=/home/alex/gcc/inst-checking/ --enable-checking --enable-languages=c,c++

After stagefeedback compiler has been built, make runs
/home/alex/gcc/build/./gcc/xgcc -B/home/alex/gcc/build/./gcc/ -B/home/alex/gcc/inst-checking//i686-pc-linux-gnu/bin/ -B/home/alex/gcc/inst-checking//i686-pc-linux-gnu/lib/ -isystem /home/alex/gcc/inst-checking//i686-pc-linux-gnu/include -isystem /home/alex/gcc/inst-checking//i686-pc-linux-gnu/sys-include -O2 -O2 -g -O2  -DIN_GCC    -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition  -isystem ./include  -I. -I. -I../../gcc/gcc -I../../gcc/gcc/. -I../../gcc/gcc/../include -I../../gcc/gcc/../libcpp/include  -I../../gcc/gcc/../libdecnumber -I../libdecnumber  -g0 -finhibit-size-directive -fno-inline-functions -fno-exceptions -fno-zero-initialized-in-bss -fno-toplevel-reorder  -fno-omit-frame-pointer \
          -c ../../gcc/gcc/crtstuff.c -DCRT_BEGIN \
          -o crtbegin.o

which results in 
<built-in>:0: internal compiler error: in calculate_allocation, at vec.c:58
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.

Running 
gdb -args  /home/alex/gcc/build/./gcc/cc1 -quiet -v -I. -I. -I../../gcc/gcc -I../../gcc/gcc/. -I../../gcc/gcc/../include -I../../gcc/gcc/../libcpp/include -I../../gcc/gcc/../libdecnumber -I../libdecnumber -iprefix /home/alex/gcc/build/gcc/../lib/gcc/i686-pc-linux-gnu/4.2.0/ -isystem /home/alex/gcc/build/./gcc/include -DIN_GCC -DCRT_BEGIN -isystem /home/alex/gcc/inst-checking//i686-pc-linux-gnu/include -isystem /home/alex/gcc/inst-checking//i686-pc-linux-gnu/sys-include -isystem ./include ../../gcc/gcc/crtstuff.c -quiet -dumpbase crtstuff.c -mtune=generic -auxbase-strip crtbegin.o -g -g0 -O2 -O2 -O2 -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -version -finhibit-size-directive -fno-inline-functions -fno-exceptions -fno-zero-initialized-in-bss -fno-toplevel-reorder -fno-omit-frame-pointer -o /tmp/ccGc5pyT.s

shows that assertion in gcc/vec.c:58 (in vec_heap_o_reserve) fails:
Breakpoint 1, fancy_abort (file=0x85e2e16 "../../gcc/gcc/vec.c", line=58, function=0x85e2e2a "calculate_allocation")
    at ../../gcc/gcc/diagnostic.c:641
641     {
(gdb) bt 
#0  fancy_abort (file=0x85e2e16 "../../gcc/gcc/vec.c", line=58, function=0x85e2e2a "calculate_allocation")
    at ../../gcc/gcc/diagnostic.c:641
During symbol reading, unsupported tag: 'DW_TAG_const_type'.
#1  0x0840aa94 in vec_heap_o_reserve (vec=<value optimized out>, reserve=1, vec_offset=8, elt_size=4)
    at ../../gcc/gcc/vec.c:58
During symbol reading, unsupported tag: 'DW_TAG_const_type'.
#2  0x0804c044 in c_register_pragma_1 (space=0x0, name=0x8555d15 "pack", handler=0x804c9fb <handle_pragma_pack>, 
    allow_expansion=0 '\0') at ../../gcc/gcc/c-pragma.c:729
#3  0x0804c153 in init_pragma () at ../../gcc/gcc/c-pragma.c:815
During symbol reading, unsupported tag: 'DW_TAG_const_type'.
During symbol reading, unsupported tag: 'DW_TAG_const_type'.
During symbol reading, unsupported tag: 'DW_TAG_const_type'.
#4  0x0809f4cb in c_common_init () at ../../gcc/gcc/c-opts.c:1134
During symbol reading, unsupported tag: 'DW_TAG_const_type'.
During symbol reading, unsupported tag: 'DW_TAG_const_type'.
#5  0x080a913d in c_objc_common_init () at ../../gcc/gcc/c-objc-common.c:130
During symbol reading, unsupported tag: 'DW_TAG_const_type'.
During symbol reading, unsupported tag: 'DW_TAG_const_type'.
During symbol reading, unsupported tag: 'DW_TAG_const_type'.
During symbol reading, unsupported tag: 'DW_TAG_const_type'.
#6  0x083df613 in toplev_main (argc=50, argv=0xbfeb1994) at ../../gcc/gcc/toplev.c:1864
#7  0x080bfc4f in main (argc=1398167381, argv=0x8d2cec83) at ../../gcc/gcc/main.c:35
(gdb) up
#1  0x0840aa94 in vec_heap_o_reserve (vec=<value optimized out>, reserve=1, vec_offset=8, elt_size=4)
    at ../../gcc/gcc/vec.c:58
58        gcc_assert (alloc - num < (unsigned)(reserve < 0 ? -reserve : reserve));
(gdb) l
53          /* If there's no prefix, and we've not requested anything, then we
54             will create a NULL vector.  */
55          return 0;
56        
57        /* We must have run out of room.  */
58        gcc_assert (alloc - num < (unsigned)(reserve < 0 ? -reserve : reserve));
59        
60        if (reserve < 0)
61          /* Exact size.  */
62          alloc = num + -reserve;

When configuring with checking disabled, make profiledbootstrap finishes successfully.
Comment 4 Andrew Pinski 2006-04-03 22:05:09 UTC
This is all recorded under PR 22313.

*** This bug has been marked as a duplicate of 22313 ***