NVC Compiler Error Terminated on SIGNAL 11

As an experiment I tried to build “binutils” standard library using nvc. And it crashes

The following is one line…
CC=/opt/nvidia/hpc_sdk/Linux_x86_64/22.11/compilers/bin/nvc
LD=/opt/nvidia/hpc_sdk/Linux_x86_64/22.11/compilers/bin/nvc CFLAGS=“-O0 -g -V --disable-werror -noswitcherror” …/configure

make

Error message:…

NVC++/x86-64 Linux 22.11-0
Copyright (c) 2019-2021, NVIDIA CORPORATION. All rights reserved.
nvc-Fatal-/opt/nvidia/hpc_sdk/Linux_x86_64/22.11/compilers/bin/tools/cpp2 TERMINATED by signal 11

Arguments to /opt/nvidia/hpc_sdk/Linux_x86_64/22.11/compilers/bin/tools/cpp2
/opt/nvidia/hpc_sdk/Linux_x86_64/22.11/compilers/bin/tools/cpp2 …/…/opcodes/i386-opc.c -debug -x 120 0x8000 -opt 0 -version -terse 1 -inform warn -x 119 0xa10000 -x 122 0x40 -x 123 0x1000 -x 127 4 -x 127 17 -x 19 0x400000 -x 28 0x40000 -x 120 0x10000000 -x 70 0x8000 -x 122 1 -x 125 0x20000 -quad -x 59 4 -tp haswell -astype 0 -x 121 1 -fn …/…/opcodes/i386-opc.c -il /tmp/nvcLJO0jVQJt8NKL.il -x 123 0x80000000 -x 123 4 -x 2 0x400 -x 119 0x20 -def __pgnu_vsn=100300 -x 70 0x40000000 -x 183 4 -x 121 0x800 -x 6 0x20000 -x 122 0x400000 -y 125 0x100000 -x 249 140 -x 120 0x200000 -x 70 0x40000000 -x 8 0x40000000 -x 164 0x800000 -x 71 0x2000 -x 71 0x4000 -x 34 0x40000000 -x 83 0x1 -x 85 0x1 -x 206 0x02 -x 120 0x1000000 -x 68 0x1 -x 39 4 -x 56 0x10 -x 26 0x10 -x 26 1 -x 56 0x4000 -x 197 0 -x 175 0 -x 203 0 -x 204 0 -y 163 0xc0000000 -x 163 0x800000 -x 189 0x10 -y 189 0x4000000 -x 60 512 -gnuvsn 100300 -x 69 0x200 -x 123 0x400 -x 119 0x08 -cmdline ‘+nvc /tmp/nvcLJO0jVQJt8NKL.il -V -DHAVE_CONFIG_H -I. -I…/…/opcodes -I. -I…/…/opcodes -I…/bfd -I…/…/opcodes/…/include -I…/…/opcodes/…/bfd -W -Wextra -Wall -Wstrict-prototypes -Wmissing-prototypes -Wshadow -g -noswitcherror -c -MD -MF .deps/i386-opc.TPlo -o i386-opc.o’ -asm /tmp/nvc1JO0jFfjLD40e.ll
make[4]: *** [Makefile:1093: i386-opc.lo] Error 1

Thanks for the report jimaf.

I was able to reproduce the error using the source from https://ftp.gnu.org/gnu/binutils/binutils-2.39.tar.xz

It seems to only occur when “-g” is used, and I was able to compile the “i386-opc.c” file after removing this flag.

Now I do see other issues but these look more to do with the use of GNU extensions. Probably best to stick to using gcc for this.

-Mat

Thank – so much for portability of those tools.

Forgot to mention that I filed a problem report for this, TPR #32835.

so much for portability of those tools.

Yes, and no. System utilities and things like the Linux kernel are tightly integrated with the GNU tool chain. It’s not about portability across compilers but rather adding elements to the GNU toolchain that allow them to work.

Other compilers could add this support as well, and some have, but for us, we focus on HPC computing and have little interest in becoming a base system compiler.