For devel/freebsd-gcc9 at powerpc64 and devel/binutils at powerpc64 use: internal compiler error: in rs6000_pltseq_template, at config/rs6000/rs6000.c:21873

Mark Millard marklmi at yahoo.com
Sun Dec 22 02:40:39 UTC 2019



On 2019-Dec-21, at 16:40, Mark Millard <marklmi at yahoo.com> wrote:

> This was for a amd64->powerpc64 buildworld for a head
> -r355976 based context.
> 
> The there is lots of command argument information from
> the gcc toolchain being used with -v. The .meta report
> also shows such.
> 
> ===> lib/csu/powerpc64 (all)
> Building /usr/obj/powerpc64vtsc_xtoolchain-gcc/powerpc.powerpc64/usr/src/powerpc.powerpc64/lib/csu/powerpc64/crt1.s
> Using built-in specs.
> COLLECT_GCC=/usr/local/bin/powerpc64-unknown-freebsd13.0-gcc9
> Target: powerpc64-unknown-freebsd13.0
> Configured with: /wrkdirs/usr/ports/devel/freebsd-gcc9/work-powerpc64/gcc-9.2.0/configure --target=powerpc64-unknown-freebsd13.0 --disable-nls --enable-languages=c,c++ --enable-gnu-indirect-function --enable-initfini-array --program-prefix=powerpc64-unknown-freebsd13.0- --program-suffix=9 --without-headers --with-gmp=/usr/local --with-pkgversion='FreeBSD Ports Collection for powerpc64' --with-system-zlib --with-gxx-include-dir=/usr/include/c++/v1/ --with-sysroot=/ --with-as=/usr/local/bin/powerpc64-unknown-freebsd13.0-as --with-ld=/usr/local/bin/powerpc64-unknown-freebsd13.0-ld --prefix=/usr/local --localstatedir=/var --mandir=/usr/local/man --infodir=/usr/local/share/info/ --build=x86_64-unknown-freebsd13.0
> Thread model: posix
> gcc version 9.2.0 (FreeBSD Ports Collection for powerpc64) 
> COLLECT_GCC_OPTIONS='-gdwarf-2' '-B' '/usr/local/powerpc64-unknown-freebsd13.0/bin/' '-O2' '-pipe' '-I' '/usr/src/lib/csu/powerpc64' '-I' '/usr/src/lib/csu/common' '-I' '/usr/src/lib/libc/include' '-mlongcall' '-D' 'CRT_IRELOC_RELA' '-g' '-std=gnu99' '-Wno-format-zero-length' '-Wsystem-headers' '-Wall' '-Wno-format-y2k' '-Wextra' '-Wstrict-prototypes' '-Wmissing-prototypes' '-Wpointer-arith' '-Wreturn-type' '-Wcast-qual' '-Wwrite-strings' '-Wswitch' '-Wshadow' '-Wunused-parameter' '-Wcast-align' '-Wchar-subscripts' '-Winline' '-Wnested-externs' '-Wredundant-decls' '-Wold-style-definition' '-Wno-pointer-sign' '-Wno-error=address' '-Wno-error=array-bounds' '-Wno-error=attributes' '-Wno-error=bool-compare' '-Wno-error=cast-align' '-Wno-error=clobbered' '-Wno-error=deprecated-declarations' '-Wno-error=enum-compare' '-Wno-error=extra' '-Wno-error=inline' '-Wno-error=logical-not-parentheses' '-Wno-error=strict-aliasing' '-Wno-error=uninitialized' '-Wno-error=unused-but-set-variable' '-Wno-error=unused-function' '-Wno-error=unused-value' '-Wno-error=misleading-indentation' '-Wno-error=nonnull-compare' '-Wno-error=shift-negative-value' '-Wno-error=tautological-compare' '-Wno-error=unused-const-variable' '-Wno-error=bool-operation' '-Wno-error=deprecated' '-Wno-error=expansion-to-defined' '-Wno-error=format-overflow' '-Wno-error=format-truncation' '-Wno-error=implicit-fallthrough' '-Wno-error=int-in-bool-context' '-Wno-error=memset-elt-size' '-Wno-error=noexcept-type' '-Wno-error=nonnull' '-Wno-error=pointer-compare' '-Wno-error=stringop-overflow' '-Wno-error=aggressive-loop-optimizations' '-Wno-error=cast-function-type' '-Wno-error=catch-value' '-Wno-error=multistatement-macros' '-Wno-error=restrict' '-Wno-error=sizeof-pointer-memaccess' '-Wno-error=stringop-truncation' '-v' '-S' '-o' 'crt1.s'
> /usr/local/libexec/gcc/powerpc64-unknown-freebsd13.0/9.2.0/cc1 -quiet -v -I /usr/src/lib/csu/powerpc64 -I /usr/src/lib/csu/common -I /usr/src/lib/libc/include -isysroot /usr/obj/powerpc64vtsc_xtoolchain-gcc/powerpc.powerpc64/usr/src/powerpc.powerpc64/tmp -D CRT_IRELOC_RELA /usr/src/lib/csu/powerpc64/crt1.c -quiet -dumpbase crt1.c -mlongcall -auxbase-strip crt1.s -gdwarf-2 -g -O2 -Wno-format-zero-length -Wsystem-headers -Wall -Wno-format-y2k -Wextra -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wreturn-type -Wcast-qual -Wwrite-strings -Wswitch -Wshadow -Wunused-parameter -Wcast-align -Wchar-subscripts -Winline -Wnested-externs -Wredundant-decls -Wold-style-definition -Wno-pointer-sign -Wno-error=address -Wno-error=array-bounds -Wno-error=attributes -Wno-error=bool-compare -Wno-error=cast-align -Wno-error=clobbered -Wno-error=deprecated-declarations -Wno-error=enum-compare -Wno-error=extra -Wno-error=inline -Wno-error=logical-not-parentheses -Wno-error=strict-aliasing -Wno-error=uninitialized -Wno-error=unused-but-set-variable -Wno-error=unused-function -Wno-error=unused-value -Wno-error=misleading-indentation -Wno-error=nonnull-compare -Wno-error=shift-negative-value -Wno-error=tautological-compare -Wno-error=unused-const-variable -Wno-error=bool-operation -Wno-error=deprecated -Wno-error=expansion-to-defined -Wno-error=format-overflow -Wno-error=format-truncation -Wno-error=implicit-fallthrough -Wno-error=int-in-bool-context -Wno-error=memset-elt-size -Wno-error=noexcept-type -Wno-error=nonnull -Wno-error=pointer-compare -Wno-error=stringop-overflow -Wno-error=aggressive-loop-optimizations -Wno-error=cast-function-type -Wno-error=catch-value -Wno-error=multistatement-macros -Wno-error=restrict -Wno-error=sizeof-pointer-memaccess -Wno-error=stringop-truncation -std=gnu99 -version -o crt1.s
> GNU C99 (FreeBSD Ports Collection for powerpc64) version 9.2.0 (powerpc64-unknown-freebsd13.0)
> 	compiled by GNU C version FreeBSD Clang 9.0.0 (tags/RELEASE_900/final 372316), GMP version 6.1.2, MPFR version 4.0.2, MPC version 1.1.0, isl version none
> GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
> ignoring nonexistent directory "/usr/local/lib/gcc/powerpc64-unknown-freebsd13.0/9.2.0/include-fixed"
> ignoring nonexistent directory "/usr/local/lib/gcc/powerpc64-unknown-freebsd13.0/9.2.0/../../../../powerpc64-unknown-freebsd13.0/include"
> #include "..." search starts here:
> #include <...> search starts here:
> /usr/src/lib/csu/powerpc64
> /usr/src/lib/csu/common
> /usr/src/lib/libc/include
> /usr/local/lib/gcc/powerpc64-unknown-freebsd13.0/9.2.0/include
> /usr/obj/powerpc64vtsc_xtoolchain-gcc/powerpc.powerpc64/usr/src/powerpc.powerpc64/tmp/usr/include
> End of search list.
> GNU C99 (FreeBSD Ports Collection for powerpc64) version 9.2.0 (powerpc64-unknown-freebsd13.0)
> 	compiled by GNU C version FreeBSD Clang 9.0.0 (tags/RELEASE_900/final 372316), GMP version 6.1.2, MPFR version 4.0.2, MPC version 1.1.0, isl version none
> GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
> Compiler executable checksum: c6b29a72d44037ade47bd096976b7211
> during RTL pass: final
> In file included from /usr/src/lib/csu/powerpc64/crt1.c:56:
> /usr/src/lib/csu/common/ignore_init.c: In function 'finalizer':
> /usr/src/lib/csu/common/ignore_init.c:100:1: internal compiler error: in rs6000_pltseq_template, at config/rs6000/rs6000.c:21873
>  100 | }
>      | ^
> no stack trace because unwind library not available
> Please submit a full bug report,
> with preprocessed source if appropriate.
> See <https://gcc.gnu.org/bugs/> for instructions.
> *** Error code 1
> 
> Stop.
> make[5]: stopped in /usr/src/lib/csu/powerpc64
> ===> lib/csu/powerpc64 (all)
> Building /usr/obj/powerpc64vtsc_xtoolchain-gcc/powerpc.powerpc64/usr/src/powerpc.powerpc64/lib/csu/powerpc64/crt1.s
> Using built-in specs.
> COLLECT_GCC=/usr/local/bin/powerpc64-unknown-freebsd13.0-gcc9
> Target: powerpc64-unknown-freebsd13.0
> Configured with: /wrkdirs/usr/ports/devel/freebsd-gcc9/work-powerpc64/gcc-9.2.0/configure --target=powerpc64-unknown-freebsd13.0 --disable-nls --enable-languages=c,c++ --enable-gnu-indirect-function --enable-initfini-array --program-prefix=powerpc64-unknown-freebsd13.0- --program-suffix=9 --without-headers --with-gmp=/usr/local --with-pkgversion='FreeBSD Ports Collection for powerpc64' --with-system-zlib --with-gxx-include-dir=/usr/include/c++/v1/ --with-sysroot=/ --with-as=/usr/local/bin/powerpc64-unknown-freebsd13.0-as --with-ld=/usr/local/bin/powerpc64-unknown-freebsd13.0-ld --prefix=/usr/local --localstatedir=/var --mandir=/usr/local/man --infodir=/usr/local/share/info/ --build=x86_64-unknown-freebsd13.0
> Thread model: posix
> gcc version 9.2.0 (FreeBSD Ports Collection for powerpc64) 
> COLLECT_GCC_OPTIONS='-gdwarf-2' '-B' '/usr/local/powerpc64-unknown-freebsd13.0/bin/' '-O2' '-pipe' '-I' '/usr/src/lib/csu/powerpc64' '-I' '/usr/src/lib/csu/common' '-I' '/usr/src/lib/libc/include' '-mlongcall' '-D' 'CRT_IRELOC_RELA' '-g' '-std=gnu99' '-Wno-format-zero-length' '-Wsystem-headers' '-Wall' '-Wno-format-y2k' '-Wextra' '-Wstrict-prototypes' '-Wmissing-prototypes' '-Wpointer-arith' '-Wreturn-type' '-Wcast-qual' '-Wwrite-strings' '-Wswitch' '-Wshadow' '-Wunused-parameter' '-Wcast-align' '-Wchar-subscripts' '-Winline' '-Wnested-externs' '-Wredundant-decls' '-Wold-style-definition' '-Wno-pointer-sign' '-Wno-error=address' '-Wno-error=array-bounds' '-Wno-error=attributes' '-Wno-error=bool-compare' '-Wno-error=cast-align' '-Wno-error=clobbered' '-Wno-error=deprecated-declarations' '-Wno-error=enum-compare' '-Wno-error=extra' '-Wno-error=inline' '-Wno-error=logical-not-parentheses' '-Wno-error=strict-aliasing' '-Wno-error=uninitialized' '-Wno-error=unused-but-set-variable' '-Wno-error=unused-function' '-Wno-error=unused-value' '-Wno-error=misleading-indentation' '-Wno-error=nonnull-compare' '-Wno-error=shift-negative-value' '-Wno-error=tautological-compare' '-Wno-error=unused-const-variable' '-Wno-error=bool-operation' '-Wno-error=deprecated' '-Wno-error=expansion-to-defined' '-Wno-error=format-overflow' '-Wno-error=format-truncation' '-Wno-error=implicit-fallthrough' '-Wno-error=int-in-bool-context' '-Wno-error=memset-elt-size' '-Wno-error=noexcept-type' '-Wno-error=nonnull' '-Wno-error=pointer-compare' '-Wno-error=stringop-overflow' '-Wno-error=aggressive-loop-optimizations' '-Wno-error=cast-function-type' '-Wno-error=catch-value' '-Wno-error=multistatement-macros' '-Wno-error=restrict' '-Wno-error=sizeof-pointer-memaccess' '-Wno-error=stringop-truncation' '-v' '-S' '-o' 'crt1.s'
> /usr/local/libexec/gcc/powerpc64-unknown-freebsd13.0/9.2.0/cc1 -quiet -v -I /usr/src/lib/csu/powerpc64 -I /usr/src/lib/csu/common -I /usr/src/lib/libc/include -isysroot /usr/obj/powerpc64vtsc_xtoolchain-gcc/powerpc.powerpc64/usr/src/powerpc.powerpc64/tmp -D CRT_IRELOC_RELA /usr/src/lib/csu/powerpc64/crt1.c -quiet -dumpbase crt1.c -mlongcall -auxbase-strip crt1.s -gdwarf-2 -g -O2 -Wno-format-zero-length -Wsystem-headers -Wall -Wno-format-y2k -Wextra -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wreturn-type -Wcast-qual -Wwrite-strings -Wswitch -Wshadow -Wunused-parameter -Wcast-align -Wchar-subscripts -Winline -Wnested-externs -Wredundant-decls -Wold-style-definition -Wno-pointer-sign -Wno-error=address -Wno-error=array-bounds -Wno-error=attributes -Wno-error=bool-compare -Wno-error=cast-align -Wno-error=clobbered -Wno-error=deprecated-declarations -Wno-error=enum-compare -Wno-error=extra -Wno-error=inline -Wno-error=logical-not-parentheses -Wno-error=strict-aliasing -Wno-error=uninitialized -Wno-error=unused-but-set-variable -Wno-error=unused-function -Wno-error=unused-value -Wno-error=misleading-indentation -Wno-error=nonnull-compare -Wno-error=shift-negative-value -Wno-error=tautological-compare -Wno-error=unused-const-variable -Wno-error=bool-operation -Wno-error=deprecated -Wno-error=expansion-to-defined -Wno-error=format-overflow -Wno-error=format-truncation -Wno-error=implicit-fallthrough -Wno-error=int-in-bool-context -Wno-error=memset-elt-size -Wno-error=noexcept-type -Wno-error=nonnull -Wno-error=pointer-compare -Wno-error=stringop-overflow -Wno-error=aggressive-loop-optimizations -Wno-error=cast-function-type -Wno-error=catch-value -Wno-error=multistatement-macros -Wno-error=restrict -Wno-error=sizeof-pointer-memaccess -Wno-error=stringop-truncation -std=gnu99 -version -o crt1.s
> GNU C99 (FreeBSD Ports Collection for powerpc64) version 9.2.0 (powerpc64-unknown-freebsd13.0)
> 	compiled by GNU C version FreeBSD Clang 9.0.0 (tags/RELEASE_900/final 372316), GMP version 6.1.2, MPFR version 4.0.2, MPC version 1.1.0, isl version none
> GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
> ignoring nonexistent directory "/usr/local/lib/gcc/powerpc64-unknown-freebsd13.0/9.2.0/include-fixed"
> ignoring nonexistent directory "/usr/local/lib/gcc/powerpc64-unknown-freebsd13.0/9.2.0/../../../../powerpc64-unknown-freebsd13.0/include"
> #include "..." search starts here:
> #include <...> search starts here:
> /usr/src/lib/csu/powerpc64
> /usr/src/lib/csu/common
> /usr/src/lib/libc/include
> /usr/local/lib/gcc/powerpc64-unknown-freebsd13.0/9.2.0/include
> /usr/obj/powerpc64vtsc_xtoolchain-gcc/powerpc.powerpc64/usr/src/powerpc.powerpc64/tmp/usr/include
> End of search list.
> GNU C99 (FreeBSD Ports Collection for powerpc64) version 9.2.0 (powerpc64-unknown-freebsd13.0)
> 	compiled by GNU C version FreeBSD Clang 9.0.0 (tags/RELEASE_900/final 372316), GMP version 6.1.2, MPFR version 4.0.2, MPC version 1.1.0, isl version none
> GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
> Compiler executable checksum: c6b29a72d44037ade47bd096976b7211
> during RTL pass: final
> In file included from /usr/src/lib/csu/powerpc64/crt1.c:56:
> /usr/src/lib/csu/common/ignore_init.c: In function 'finalizer':
> /usr/src/lib/csu/common/ignore_init.c:100:1: internal compiler error: in rs6000_pltseq_template, at config/rs6000/rs6000.c:21873
>  100 | }
>      | ^
> no stack trace because unwind library not available
> Please submit a full bug report,
> with preprocessed source if appropriate.
> See <https://gcc.gnu.org/bugs/> for instructions.
> *** Error code 1
> 
> Stop.
> make[5]: stopped in /usr/src/lib/csu/powerpc64
> 

I got basic backtrace information from running cc1
in gdb, breakpointing at internal_error:

(gdb) bt
#0  internal_error (gmsgid=0x369c77 "in %s, at %s:%d") at /wrkdirs/usr/ports/devel/freebsd-gcc9/work-powerpc64/gcc-9.2.0/gcc/diagnostic.c:1536
#1  0x0000000001601f87 in fancy_abort (file=<optimized out>, line=21873, function=0x399fa2 "rs6000_pltseq_template")
    at /wrkdirs/usr/ports/devel/freebsd-gcc9/work-powerpc64/gcc-9.2.0/gcc/diagnostic.c:1607
#2  0x00000000015b2450 in rs6000_pltseq_template (operands=<optimized out>, which=1) at /wrkdirs/usr/ports/devel/freebsd-gcc9/work-powerpc64/gcc-9.2.0/gcc/config/rs6000/rs6000.c:21873
#3  0x0000000000d5f719 in get_insn_template (code=<optimized out>, insn=0x8028bfb00) at /wrkdirs/usr/ports/devel/freebsd-gcc9/work-powerpc64/gcc-9.2.0/gcc/final.c:2071
#4  final_scan_insn_1 (insn=<optimized out>, file=0x801aebf70, optimize_p=<optimized out>, nopeepholes=<optimized out>, seen=0x7fffffffcd3c)
    at /wrkdirs/usr/ports/devel/freebsd-gcc9/work-powerpc64/gcc-9.2.0/gcc/final.c:3040
#5  0x0000000000d5df1b in final_scan_insn (insn=<optimized out>, file=0x801aebf70, optimize_p=2, nopeepholes=0, seen=0x7fffffffcd3c)
    at /wrkdirs/usr/ports/devel/freebsd-gcc9/work-powerpc64/gcc-9.2.0/gcc/final.c:3153
#6  final_1 (first=0x8028b6968, file=0x801aebf70, seen=3, optimize_p=2) at /wrkdirs/usr/ports/devel/freebsd-gcc9/work-powerpc64/gcc-9.2.0/gcc/final.c:2021
#7  0x0000000000d61c40 in rest_of_handle_final () at /wrkdirs/usr/ports/devel/freebsd-gcc9/work-powerpc64/gcc-9.2.0/gcc/final.c:4659
#8  (anonymous namespace)::pass_final::execute (this=<optimized out>) at /wrkdirs/usr/ports/devel/freebsd-gcc9/work-powerpc64/gcc-9.2.0/gcc/final.c:4737
#9  0x0000000001102921 in execute_one_pass (pass=0x80262d860) at /wrkdirs/usr/ports/devel/freebsd-gcc9/work-powerpc64/gcc-9.2.0/gcc/passes.c:2488
#10 0x00000000011038a1 in execute_pass_list_1 (pass=0x80262d860) at /wrkdirs/usr/ports/devel/freebsd-gcc9/work-powerpc64/gcc-9.2.0/gcc/passes.c:2574
#11 0x00000000011038b3 in execute_pass_list_1 (pass=0x80262d3e0) at /wrkdirs/usr/ports/devel/freebsd-gcc9/work-powerpc64/gcc-9.2.0/gcc/passes.c:2575
#12 0x00000000011038b3 in execute_pass_list_1 (pass=0x80262b820) at /wrkdirs/usr/ports/devel/freebsd-gcc9/work-powerpc64/gcc-9.2.0/gcc/passes.c:2575
#13 0x00000000010f532a in execute_pass_list (fn=0x802773790, pass=0x399fa2) at /wrkdirs/usr/ports/devel/freebsd-gcc9/work-powerpc64/gcc-9.2.0/gcc/passes.c:2585
#14 0x0000000000c36564 in cgraph_node::expand (this=0x80287d5a0) at /wrkdirs/usr/ports/devel/freebsd-gcc9/work-powerpc64/gcc-9.2.0/gcc/cgraphunit.c:2198
#15 0x0000000000c3906c in expand_all_functions () at /wrkdirs/usr/ports/devel/freebsd-gcc9/work-powerpc64/gcc-9.2.0/gcc/cgraphunit.c:2336
#16 symbol_table::compile (this=0x802406000) at /wrkdirs/usr/ports/devel/freebsd-gcc9/work-powerpc64/gcc-9.2.0/gcc/cgraphunit.c:2687
#17 0x0000000000c3960e in symbol_table::finalize_compilation_unit (this=0x802406000) at /wrkdirs/usr/ports/devel/freebsd-gcc9/work-powerpc64/gcc-9.2.0/gcc/cgraphunit.c:2865
#18 0x00000000012951e1 in compile_file () at /wrkdirs/usr/ports/devel/freebsd-gcc9/work-powerpc64/gcc-9.2.0/gcc/toplev.c:481
#19 0x0000000001294c3d in do_compile () at /wrkdirs/usr/ports/devel/freebsd-gcc9/work-powerpc64/gcc-9.2.0/gcc/toplev.c:2205
#20 toplev::main (this=<optimized out>, argc=<optimized out>, argv=<optimized out>) at /wrkdirs/usr/ports/devel/freebsd-gcc9/work-powerpc64/gcc-9.2.0/gcc/toplev.c:2340
#21 0x00000000015ee27d in main (argc=3776418, argv=0x403dc4) at /wrkdirs/usr/ports/devel/freebsd-gcc9/work-powerpc64/gcc-9.2.0/gcc/main.c:39



===
Mark Millard
marklmi at yahoo.com
( dsl-only.net went
away in early 2018-Mar)



More information about the freebsd-ppc mailing list