NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

toolchain/53176: 6.4 gcc fails to compile VAX kernels



>Number:         53176
>Category:       toolchain
>Synopsis:       6.4 gcc fails to compile VAX kernels
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    toolchain-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Apr 12 16:25:00 +0000 2018
>Originator:     Martin Husemann
>Release:        NetBSD 8.99.14
>Organization:
The NetBSD Foundation, Inc.
>Environment:
System: NetBSD seven-days-to-the-wolves.aprisoft.de 8.99.14 NetBSD 8.99.14 (GENERIC) #205: Mon Mar 26 16:49:32 CEST 2018 martin%seven-days-to-the-wolves.aprisoft.de@localhost:/work/src/sys/arch/amd64/compile/GENERIC amd64
Architecture: x86_64
Machine: amd64
>Description:

Trying to cross-build a vax kernel with latest -current
fails for me reproducably. Gcc is:

 > /work/tools/bin/vax--netbsdelf-gcc -v
Using built-in specs.
COLLECT_GCC=/work/tools/bin/vax--netbsdelf-gcc
COLLECT_LTO_WRAPPER=/work/tools/libexec/gcc/vax--netbsdelf/6.4.0/lto-wrapper
Target: vax--netbsdelf
Configured with: /work/src/tools/gcc/../../external/gpl3/gcc/dist/configure --target=vax--netbsdelf --enable-long-long --enable-threads --with-bugurl=http://www.NetBSD.org/Misc/send-pr.html --with-pkgversion='NetBSD nb2 20180327' --with-system-zlib --disable-libstdcxx-dual-abi --enable-__cxa_atexit --enable-libstdcxx-time=rt --enable-libstdcxx-threads --with-diagnostics-color=auto-if-env --with-sysroot=/work/hosts/vax --with-mpc=/work/tools --with-mpfr=/work/tools --with-gmp=/work/tools --disable-nls --disable-multilib --program-transform-name=s,^,vax--netbsdelf-, --enable-languages='c c++ objc' --prefix=/work/tools
Thread model: posix
gcc version 6.4.0 (NetBSD nb2 20180327) 


I am using a stripped down kernel config, with makeoptions DEBUG="-g".

#   compile  DEAD/ip_icmp.o
/work/tools/bin/vax--netbsdelf-gcc -pipe -fno-pic -ffreestanding -fno-zero-initialized-in-bss -fno-delete-null-pointer-checks -g -O2 -fno-strict-aliasing -fno-common -std=gnu99 -Werror -Wall -Wno-main -Wno-format-zero-length -Wpointer-arith -Wmissing-prototypes -Wstrict-prototypes -Wold-style-definition -Wswitch -Wshadow -Wcast-qual -Wwrite-strings -Wno-unreachable-code -Wno-pointer-sign -Wno-attributes -Wno-sign-compare --sysroot=/work/hosts/vax -D_VAX_INLINE_ -I. -I../../../../../common/lib/libx86emu -I../../../../../common/include -I../../../../arch -I../../../.. -nostdinc -DDIAGNOSTIC -DP1003_1B_SEMAPHORE -D_KERNEL -D_KERNEL_OPT -std=gnu99 -I../../../../lib/libkern/../../../common/lib/libc/quad -I../../../../lib/libkern/../../../common/lib/libc/string -I../../../../lib/libkern/../../../common/lib/libc/arch/vax/string -c ../../../../netinet/ip_icmp.c -o ip_icmp.o
../../../../netinet/ip_icmp.c: In function 'icmp_reflect':
../../../../netinet/ip_icmp.c:983:1: internal compiler error: Segmentation fault
 }
 ^
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://www.NetBSD.org/Misc/send-pr.html> for instructions.

*** Failed target:  ip_icmp.o
*** Failed command: echo '# ' "compile DEAD/ip_icmp.o" && echo /work/tools/bin/vax--netbsdelf-gcc -pipe -fno-pic -ffreestanding -fno-zero-initialized-in-bss -fno-delete-null-pointer-checks -g -O2 -fno-strict-aliasing -fno-common -std=gnu99 -Werror -Wall -Wno-main -Wno-format-zero-length -Wpointer-arith -Wmissing-prototypes -Wstrict-prototypes -Wold-style-definition -Wswitch -Wshadow -Wcast-qual -Wwrite-strings -Wno-unreachable-code -Wno-pointer-sign -Wno-attributes -Wno-sign-compare --sysroot=/work/hosts/vax -D_VAX_INLINE_ -I. -I../../../../../common/lib/libx86emu -I../../../../../common/include -I../../../../arch -I../../../.. -nostdinc -DDIAGNOSTIC -DP1003_1B_SEMAPHORE -D_KERNEL -D_KERNEL_OPT -std=gnu99 -I../../../../lib/libkern/../../../common/lib/libc/quad -I../../../../lib/libkern/../../../common/lib/libc/string -I../../../../lib/libkern/../../../common/lib/libc/arch/vax/string -c ../../../../netinet/ip_icmp.c -o ip_icmp.o && /work/tools/bin/vax--netbsdelf-gcc -pipe -fno-pic -ff
 reestanding -fno-zero-initialized-in-bss -fno-delete-null-pointer-checks -g -O2 -fno-strict-aliasing -fno-common -std=gnu99 -Werror -Wall -Wno-main -Wno-format-zero-length -Wpointer-arith -Wmissing-prototypes -Wstrict-prototypes -Wold-style-definition -Wswitch -Wshadow -Wcast-qual -Wwrite-strings -Wno-unreachable-code -Wno-pointer-sign -Wno-attributes -Wno-sign-compare --sysroot=/work/hosts/vax -D_VAX_INLINE_ -I. -I../../../../../common/lib/libx86emu -I../../../../../common/include -I../../../../arch -I../../../.. -nostdinc -DDIAGNOSTIC -DP1003_1B_SEMAPHORE -D_KERNEL -D_KERNEL_OPT -std=gnu99 -I../../../../lib/libkern/../../../common/lib/libc/quad -I../../../../lib/libkern/../../../common/lib/libc/string -I../../../../lib/libkern/../../../common/lib/libc/arch/vax/string -c ../../../../netinet/ip_icmp.c -o ip_icmp.o && :
*** Error code 1

Stop.
nbmake: stopped in /work/src/sys/arch/vax/compile/DEAD


>How-To-Repeat:
s/a

>Fix:
n/a



Home | Main Index | Thread Index | Old Index