On FreeBSD 13.2, the build fails with a compilation error:

  CC       src/libwc_avx512_a-wc_avx512.o
fatal error: error in backend: Cannot select: 0x8311d4a90: v8i64 = 
X86ISD::PCMPEQ 0x8311d4820, 0x8311d79c0, ../src/wc_avx512.c:56:15
  0x8311d4820: v8i64,ch = load<(load (s64) from %ir.66, align 1, !tbaa !86), 
zext from v8i8> 0x82edce568, 0x8311d7068, undef:i64, ../src/wc_avx512.c:56:18
    0x8311d7068: i64 = add 0x8311d7138, Constant:i64<8>, 
../src/wc_avx512.c:56:18
      0x8311d7138: i64 = add 0x8311d4888, 0x8311d47b8, ../src/wc_avx512.c:56:18
        0x8311d4888: i64,ch = CopyFromReg 0x82edce568, Register:i64 %17, 
../src/wc_avx512.c:54:19
          0x8311d4b60: i64 = Register %17
        0x8311d47b8: i64,ch = CopyFromReg 0x82edce568, Register:i64 %25, 
../src/wc_avx512.c:56:18
          0x8311d4f70: i64 = Register %25
      0x8311d4340: i64 = Constant<8>
    0x8311d7270: i64 = undef
  0x8311d79c0: v8i64,ch = X86ISD::VBROADCAST_LOAD<(load (s64) from 
constant-pool)> 0x82edce568, 0x8311d7618, ../src/wc_avx512.c:56:15
    0x8311d7618: i64 = X86ISD::Wrapper TargetConstantPool:i64<i64 10> 0
      0x8311d70d0: i64 = TargetConstantPool<i64 10> 0
In function: wc_lines_avx512
PLEASE submit a bug report to https://bugs.freebsd.org/submit/ and include the 
crash backtrace, preprocessed source, and associated run script.
Stack dump:
0.      Program arguments: cc -ferror-limit=0 -I. -I.. -I./lib -Ilib -I../lib 
-Isrc -I../src -I/home/bruno/include -I/usr/local/include -Wall -D_THREAD_SAFE 
-mavx512bw -mavx512f -g -O2 -MT src/libwc_avx512_a-wc_avx512.o -MD -MP -MF 
src/.deps/libwc_avx512_a-wc_avx512.Tpo -c -o src/libwc_avx512_a-wc_avx512.o 
../src/wc_avx512.c
1.      <eof> parser at end of file
2.      Code generation
3.      Running pass 'Function Pass Manager' on module '../src/wc_avx512.c'.
4.      Running pass 'X86 DAG->DAG Instruction Selection' on function 
'@wc_lines_avx512'
 #0 0x00000000049a2481 (/usr/bin/cc+0x49a2481)
 #1 0x00000000049a0875 (/usr/bin/cc+0x49a0875)
 #2 0x000000000494d388 (/usr/bin/cc+0x494d388)
 #3 0x000000000494d32e (/usr/bin/cc+0x494d32e)
 #4 0x0000000004994c3c (/usr/bin/cc+0x4994c3c)
 #5 0x00000000021f6ad9 (/usr/bin/cc+0x21f6ad9)
 #6 0x0000000004953eee (/usr/bin/cc+0x4953eee)
 #7 0x0000000004c8321d (/usr/bin/cc+0x4c8321d)
 #8 0x0000000004c829ed (/usr/bin/cc+0x4c829ed)
 #9 0x000000000557d55d (/usr/bin/cc+0x557d55d)
#10 0x0000000004c7b88f (/usr/bin/cc+0x4c7b88f)
#11 0x0000000004c7af09 (/usr/bin/cc+0x4c7af09)
#12 0x0000000004c7a45c (/usr/bin/cc+0x4c7a45c)
#13 0x0000000004c782b7 (/usr/bin/cc+0x4c782b7)
#14 0x000000000557479e (/usr/bin/cc+0x557479e)
#15 0x000000000427712e (/usr/bin/cc+0x427712e)
#16 0x000000000463f613 (/usr/bin/cc+0x463f613)
#17 0x00000000046455b3 (/usr/bin/cc+0x46455b3)
#18 0x000000000463fbe9 (/usr/bin/cc+0x463fbe9)
#19 0x0000000002965893 (/usr/bin/cc+0x2965893)
#20 0x0000000002c26f91 (/usr/bin/cc+0x2c26f91)
#21 0x00000000030b9a24 (/usr/bin/cc+0x30b9a24)
#22 0x0000000002b76f56 (/usr/bin/cc+0x2b76f56)
#23 0x0000000002b08a26 (/usr/bin/cc+0x2b08a26)
#24 0x0000000002c20c1e (/usr/bin/cc+0x2c20c1e)
#25 0x00000000021f67d4 (/usr/bin/cc+0x21f67d4)
#26 0x0000000002203308 (/usr/bin/cc+0x2203308)
#27 0x00000000029d8097 (/usr/bin/cc+0x29d8097)
#28 0x000000000494d30a (/usr/bin/cc+0x494d30a)
#29 0x00000000029d7d1e (/usr/bin/cc+0x29d7d1e)
#30 0x00000000029a8872 (/usr/bin/cc+0x29a8872)
#31 0x00000000029a8c9c (/usr/bin/cc+0x29a8c9c)
#32 0x00000000029bca2c (/usr/bin/cc+0x29bca2c)
cc: error: clang frontend command failed with exit code 70 (use -v to see 
invocation)
FreeBSD clang version 14.0.5 (https://github.com/llvm/llvm-project.git 
llvmorg-14.0.5-0-gc12386ae247c)
Target: x86_64-unknown-freebsd13.2
Thread model: posix
InstalledDir: /usr/bin
cc: note: diagnostic msg: 
********************

PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
Preprocessed source(s) and associated run script(s) are located at:
cc: note: diagnostic msg: /tmp/wc_avx512-56fa0b.c
cc: note: diagnostic msg: /tmp/wc_avx512-56fa0b.sh
cc: note: diagnostic msg: 

********************
*** Error code 70

Stop.
make[2]: stopped in /usr/home/bruno/coreutils-9.10.289-a8598/build
*** Error code 1


The compiler is:
$ cc -v
FreeBSD clang version 14.0.5 (https://github.com/llvm/llvm-project.git 
llvmorg-14.0.5-0-gc12386ae247c)
Target: x86_64-unknown-freebsd13.2
Thread model: posix
InstalledDir: /usr/bin




Reply via email to