User account creation filtered due to spam.

Bug 80843 - [8 Regression] bootstrap fails in stage1 on powerpc-linux-gnu
Summary: [8 Regression] bootstrap fails in stage1 on powerpc-linux-gnu
Status: UNCONFIRMED
Alias: None
Product: gcc
Classification: Unclassified
Component: bootstrap (show other bugs)
Version: 8.0
: P3 normal
Target Milestone: 8.0
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-05-20 19:56 UTC by Matthias Klose
Modified: 2017-05-24 14:41 UTC (History)
1 user (show)

See Also:
Host:
Target: powerpc-linux-gnu
Build:
Known to work: 7.1.0
Known to fail: 8.0
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Matthias Klose 2017-05-20 19:56:13 UTC
seen with trunk 20170520, trunk 20170512 succeeded to build.

original build log at
https://buildd.debian.org/status/fetch.php?pkg=gcc-snapshot&arch=powerpc&ver=20170520-1&stamp=1495309132&raw=0

/«PKGBUILDDIR»/build/./gcc/xgcc -B/«PKGBUILDDIR»/build/./gcc/ -B/usr/lib/gcc-snapshot/powerpc-linux-gnu/bin/ -B/usr/lib/gcc-snapshot/powerpc-linux-gnu/lib/ -isystem /usr/lib/gcc-snapshot/powerpc-linux-gnu/include -isystem /usr/lib/gcc-snapshot/powerpc-linux-gnu/sys-include    -g -O2 -O2  -g -O2 -DIN_GCC    -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wno-format -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition  -isystem ./include   -fPIC -mlong-double-128 -mno-minimal-toc -g -DIN_LIBGCC2 -fbuilding-libgcc -fno-stack-protector   -fPIC -mlong-double-128 -mno-minimal-toc -I. -I. -I../.././gcc -I../../../src/libgcc -I../../../src/libgcc/. -I../../../src/libgcc/../gcc -I../../../src/libgcc/../include -I../../../src/libgcc/../libdecnumber/dpd -I../../../src/libgcc/../libdecnumber -DHAVE_CC_TLS  -Wno-type-limits -mvsx -mfloat128 -mno-float128-hardware -I../../../src/libgcc/soft-fp -I../../../src/libgcc/config/rs6000  -o _mulkc3.o -MT _mulkc3.o -MD -MP -MF _mulkc3.dep  -c ../../../src/libgcc/config/rs6000/_mulkc3.c -fvisibility=hidden -DHIDE_EXPORTS
*** Error in `/«PKGBUILDDIR»/build/./gcc/cc1': free(): invalid next size (fast): 0x124eb500 ***
======= Backtrace: =========
/lib/powerpc-linux-gnu/libc.so.6(+0x81adc)[0xf971adc]
/lib/powerpc-linux-gnu/libc.so.6(+0x8b254)[0xf97b254]
/lib/powerpc-linux-gnu/libc.so.6(+0x8bd74)[0xf97bd74]
/«PKGBUILDDIR»/build/./gcc/cc1(_Z12sbitmap_freeP17simple_bitmap_def+0x20)[0x104d2d2c]
/«PKGBUILDDIR»/build/./gcc/cc1[0x10c40ea4]
/«PKGBUILDDIR»/build/./gcc/cc1(_Z28try_shrink_wrapping_separateP15basic_block_def+0x3d8)[0x10c43f2c]
/«PKGBUILDDIR»/build/./gcc/cc1(_Z34thread_prologue_and_epilogue_insnsv+0xc0)[0x107adbc8]
/«PKGBUILDDIR»/build/./gcc/cc1[0x107aee34]
/«PKGBUILDDIR»/build/./gcc/cc1[0x107aef18]
/«PKGBUILDDIR»/build/./gcc/cc1(_Z16execute_one_passP8opt_pass+0x318)[0x10b0be00]
/«PKGBUILDDIR»/build/./gcc/cc1[0x10b0c1f8]
/«PKGBUILDDIR»/build/./gcc/cc1[0x10b0c238]
/«PKGBUILDDIR»/build/./gcc/cc1[0x10b0c238]
/«PKGBUILDDIR»/build/./gcc/cc1(_Z17execute_pass_listP8functionP8opt_pass+0x50)[0x10b0c2c0]
/«PKGBUILDDIR»/build/./gcc/cc1(_ZN11cgraph_node6expandEv+0x224)[0x105b1360]
/«PKGBUILDDIR»/build/./gcc/cc1[0x105b1ae4]
/«PKGBUILDDIR»/build/./gcc/cc1(_ZN12symbol_table7compileEv+0x2f4)[0x105b297c]
/«PKGBUILDDIR»/build/./gcc/cc1(_ZN12symbol_table25finalize_compilation_unitEv+0x150)[0x105b2c34]
/«PKGBUILDDIR»/build/./gcc/cc1[0x10c9206c]
/«PKGBUILDDIR»/build/./gcc/cc1[0x10c957e8]
/«PKGBUILDDIR»/build/./gcc/cc1(_ZN6toplev4mainEiPPc+0x1bc)[0x10c95c04]
/«PKGBUILDDIR»/build/./gcc/cc1(main+0x48)[0x118983c4]
/lib/powerpc-linux-gnu/libc.so.6(+0x21274)[0xf911274]
/lib/powerpc-linux-gnu/libc.so.6(__libc_start_main+0xdc)[0xf91147c]
======= Memory map: ========
00100000-00120000 r-xp 00000000 00:00 0                                  [vdso]
0f8f0000-0fa80000 r-xp 00000000 00:1c 21642306                           /lib/powerpc-linux-gnu/libc-2.24.so
0fa80000-0fa90000 r--p 00180000 00:1c 21642306                           /lib/powerpc-linux-gnu/libc-2.24.so
0fa90000-0faa0000 rw-p 00190000 00:1c 21642306                           /lib/powerpc-linux-gnu/libc-2.24.so
0fab0000-0fb80000 r-xp 00000000 00:1c 21642302                           /lib/powerpc-linux-gnu/libm-2.24.so
0fb80000-0fb90000 r--p 000c0000 00:1c 21642302                           /lib/powerpc-linux-gnu/libm-2.24.so
0fb90000-0fba0000 rw-p 000d0000 00:1c 21642302                           /lib/powerpc-linux-gnu/libm-2.24.so
0fbb0000-0fbd0000 r-xp 00000000 00:1c 21642231                           /lib/powerpc-linux-gnu/libz.so.1.2.8
0fbd0000-0fbe0000 r--p 00010000 00:1c 21642231                           /lib/powerpc-linux-gnu/libz.so.1.2.8
0fbe0000-0fbf0000 rw-p 00020000 00:1c 21642231                           /lib/powerpc-linux-gnu/libz.so.1.2.8
0fc00000-0fc10000 r-xp 00000000 00:1c 21642303                           /lib/powerpc-linux-gnu/libdl-2.24.so
0fc10000-0fc20000 r--p 00000000 00:1c 21642303                           /lib/powerpc-linux-gnu/libdl-2.24.so
0fc20000-0fc30000 rw-p 00010000 00:1c 21642303                           /lib/powerpc-linux-gnu/libdl-2.24.so
0fc40000-0fcd0000 r-xp 00000000 00:1c 21621381                           /usr/lib/powerpc-linux-gnu/libgmp.so.10.3.2
0fcd0000-0fce0000 r--p 00080000 00:1c 21621381                           /usr/lib/powerpc-linux-gnu/libgmp.so.10.3.2
0fce0000-0fcf0000 rw-p 00090000 00:1c 21621381                           /usr/lib/powerpc-linux-gnu/libgmp.so.10.3.2
0fd00000-0fd80000 r-xp 00000000 00:1c 21621375                           /usr/lib/powerpc-linux-gnu/libmpfr.so.4.1.5
0fd80000-0fd90000 r--p 00070000 00:1c 21621375                           /usr/lib/powerpc-linux-gnu/libmpfr.so.4.1.5
0fd90000-0fda0000 rw-p 00080000 00:1c 21621375                           /usr/lib/powerpc-linux-gnu/libmpfr.so.4.1.5
0fdb0000-0fdd0000 r-xp 00000000 00:1c 21621377                           /usr/lib/powerpc-linux-gnu/libmpc.so.3.0.0
0fdd0000-0fde0000 r--p 00010000 00:1c 21621377                           /usr/lib/powerpc-linux-gnu/libmpc.so.3.0.0
0fde0000-0fdf0000 rw-p 00020000 00:1c 21621377                           /usr/lib/powerpc-linux-gnu/libmpc.so.3.0.0
0fe00000-0ffd0000 r-xp 00000000 00:1c 21621379                           /usr/lib/powerpc-linux-gnu/libisl.so.15.3.0
0ffd0000-0ffe0000 r--p 001c0000 00:1c 21621379                           /usr/lib/powerpc-linux-gnu/libisl.so.15.3.0
0ffe0000-0fff0000 rw-p 001d0000 00:1c 21621379                           /usr/lib/powerpc-linux-gnu/libisl.so.15.3.0
10000000-12180000 r-xp 00000000 00:1c 21765005                           /«PKGBUILDDIR»/build/gcc/cc1
12190000-121a0000 r--p 02180000 00:1c 21765005                           /«PKGBUILDDIR»/build/gcc/cc1
121a0000-121b0000 rw-p 02190000 00:1c 21765005                           /«PKGBUILDDIR»/build/gcc/cc1
121b0000-12290000 rwxp 00000000 00:00 0 
12440000-12700000 rwxp 00000000 00:00 0                                  [heap]
f58e0000-f7900000 rw-p 00000000 00:00 0 
f7900000-f7930000 r-xp 00000000 00:1c 21642310                           /lib/powerpc-linux-gnu/ld-2.24.so
f7930000-f7940000 r--p 00020000 00:1c 21642310                           /lib/powerpc-linux-gnu/ld-2.24.so
f7940000-f7950000 rw-p 00030000 00:1c 21642310                           /lib/powerpc-linux-gnu/ld-2.24.so
ffbf0000-ffc20000 rw-p 00000000 00:00 0                                  [stack]
*** Error in `/«PKGBUILDDIR»/build/./gcc/cc1': free(): invalid next size (fast): 0x1272bdc0 ***
======= Backtrace: =========
/lib/powerpc-linux-gnu/libc.so.6(+0x81adc)[0xf971adc]
/lib/powerpc-linux-gnu/libc.so.6(+0x8b254)[0xf97b254]
/lib/powerpc-linux-gnu/libc.so.6(+0x8bd74)[0xf97bd74]
../../../src/libgcc/config/rs6000/extendkftf2-sw.c: In function '__extendkftf2':
../../../src/libgcc/config/rs6000/extendkftf2-sw.c:53:1: internal compiler error: Aborted
Comment 1 Segher Boessenkool 2017-05-24 14:33:44 UTC
Author: segher
Date: Wed May 24 14:33:11 2017
New Revision: 248421

URL: https://gcc.gnu.org/viewcvs?rev=248421&root=gcc&view=rev
Log:
rs6000: Fix for separate shrink-wrapping for fp (PR80860, PR80843)

After my r248256, rs6000_components_for_bb allocates an sbitmap of size
only 32 while it can use up to 64.  This patch fixes it.  It moves the
n_components variable into the machine_function struct so that other
hooks can use it.


	PR bootstrap/80860
	PR bootstrap/80843
	* config/rs6000/rs6000.c (struct machine_function): Add new field
	n_components.
	(rs6000_get_separate_components): Init that field, use it.
	(rs6000_components_for_bb): Use the field.

Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/config/rs6000/rs6000.c
Comment 2 Segher Boessenkool 2017-05-24 14:41:43 UTC
I suspect my patch for PR80860 has fixed this as well; Matthias, can
you check please?