Skip to content

[X86][BF16] Add libcall for F80 -> BF16 #109116

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Sep 18, 2024
Merged

[X86][BF16] Add libcall for F80 -> BF16 #109116

merged 2 commits into from
Sep 18, 2024

Conversation

phoebewang
Copy link
Contributor

This fixes #108936, but the calling convention doesn't match with GCC. I doubt we have such a lib function for now, so leave the calling convention as is.

This fixes llvm#108936, but the calling convention doesn't match with GCC. I
doubt we have such a lib function for now, so leave the calling
convention as is.
@llvmbot
Copy link
Member

llvmbot commented Sep 18, 2024

@llvm/pr-subscribers-llvm-ir

@llvm/pr-subscribers-backend-x86

Author: Phoebe Wang (phoebewang)

Changes

This fixes #108936, but the calling convention doesn't match with GCC. I doubt we have such a lib function for now, so leave the calling convention as is.


Full diff: https://github.com/llvm/llvm-project/pull/109116.diff

3 Files Affected:

  • (modified) llvm/include/llvm/IR/RuntimeLibcalls.def (+1)
  • (modified) llvm/lib/CodeGen/TargetLoweringBase.cpp (+2)
  • (modified) llvm/test/CodeGen/X86/bfloat.ll (+22)
diff --git a/llvm/include/llvm/IR/RuntimeLibcalls.def b/llvm/include/llvm/IR/RuntimeLibcalls.def
index c3d5ef9f4e4f82..69cf43140ad4bd 100644
--- a/llvm/include/llvm/IR/RuntimeLibcalls.def
+++ b/llvm/include/llvm/IR/RuntimeLibcalls.def
@@ -367,6 +367,7 @@ HANDLE_LIBCALL(FPROUND_F128_F16, "__trunctfhf2")
 HANDLE_LIBCALL(FPROUND_PPCF128_F16, "__trunctfhf2")
 HANDLE_LIBCALL(FPROUND_F32_BF16, "__truncsfbf2")
 HANDLE_LIBCALL(FPROUND_F64_BF16, "__truncdfbf2")
+HANDLE_LIBCALL(FPROUND_F80_BF16, "__truncxfbf2")
 HANDLE_LIBCALL(FPROUND_F64_F32, "__truncdfsf2")
 HANDLE_LIBCALL(FPROUND_F80_F32, "__truncxfsf2")
 HANDLE_LIBCALL(FPROUND_F128_F32, "__trunctfsf2")
diff --git a/llvm/lib/CodeGen/TargetLoweringBase.cpp b/llvm/lib/CodeGen/TargetLoweringBase.cpp
index eb3190c7cd247a..9fdde454559171 100644
--- a/llvm/lib/CodeGen/TargetLoweringBase.cpp
+++ b/llvm/lib/CodeGen/TargetLoweringBase.cpp
@@ -169,6 +169,8 @@ RTLIB::Libcall RTLIB::getFPROUND(EVT OpVT, EVT RetVT) {
       return FPROUND_F32_BF16;
     if (OpVT == MVT::f64)
       return FPROUND_F64_BF16;
+    if (OpVT == MVT::f80)
+      return FPROUND_F80_BF16;
   } else if (RetVT == MVT::f32) {
     if (OpVT == MVT::f64)
       return FPROUND_F64_F32;
diff --git a/llvm/test/CodeGen/X86/bfloat.ll b/llvm/test/CodeGen/X86/bfloat.ll
index 3759909a2ccc8e..3144fd56d9ccf3 100644
--- a/llvm/test/CodeGen/X86/bfloat.ll
+++ b/llvm/test/CodeGen/X86/bfloat.ll
@@ -1953,3 +1953,25 @@ define void @PR92471(ptr %0, ptr %1) nounwind {
   store <7 x float> %4, ptr %1, align 4
   ret void
 }
+
+define bfloat @PR108936(x86_fp80 %0) nounwind {
+; X86-LABEL: PR108936:
+; X86:       # %bb.0:
+; X86-NEXT:    subl $12, %esp
+; X86-NEXT:    fldt {{[0-9]+}}(%esp)
+; X86-NEXT:    fstpt (%esp)
+; X86-NEXT:    calll __truncxfbf2
+; X86-NEXT:    addl $12, %esp
+; X86-NEXT:    retl
+;
+; CHECK-LABEL: PR108936:
+; CHECK:       # %bb.0:
+; CHECK-NEXT:    subq $24, %rsp
+; CHECK-NEXT:    fldt {{[0-9]+}}(%rsp)
+; CHECK-NEXT:    fstpt (%rsp)
+; CHECK-NEXT:    callq __truncxfbf2@PLT
+; CHECK-NEXT:    addq $24, %rsp
+; CHECK-NEXT:    retq
+  %2 = fptrunc x86_fp80 %0 to bfloat
+  ret bfloat %2
+}

Copy link
Member

@d0k d0k left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If GCC already has the method people will eventually end up linking with libgcc and run into calling convention differences. Why are they different?

@phoebewang
Copy link
Contributor Author

If GCC already has the method people will eventually end up linking with libgcc and run into calling convention differences. Why are they different?

Sorry, I mixed up. We have the same behavior with GCC. GCC supports it since 13.1 https://godbolt.org/z/dnhaeGvf7

@phoebewang phoebewang merged commit 76eda76 into llvm:main Sep 18, 2024
8 of 10 checks passed
@phoebewang phoebewang deleted the bf16 branch September 18, 2024 13:23
@llvm-ci
Copy link
Collaborator

llvm-ci commented Sep 18, 2024

LLVM Buildbot has detected a new failure on builder openmp-offload-sles-build-only running on rocm-worker-hw-04-sles while building compiler-rt,llvm at step 5 "compile-openmp".

Full details are available at: https://lab.llvm.org/buildbot/#/builders/140/builds/6849

Here is the relevant piece of the build log for the reference
Step 5 (compile-openmp) failure: build (failure)
...
0.201 [1/22/150] Building ASM object CMakeFiles/clang_rt.builtins-x86_64.dir/x86_64/floatundisf.S.o
0.202 [1/21/151] Building C object CMakeFiles/clang_rt.builtins-x86_64.dir/addtf3.c.o
0.203 [1/20/152] Building C object CMakeFiles/clang_rt.builtins-x86_64.dir/divxc3.c.o
0.203 [1/19/153] Building C object CMakeFiles/clang_rt.builtins-x86_64.dir/trunctfdf2.c.o
0.204 [1/18/154] Building C object CMakeFiles/clang_rt.builtins-x86_64.dir/floattixf.c.o
0.205 [1/17/155] Building C object CMakeFiles/clang_rt.builtins-x86_64.dir/x86_64/floatdixf.c.o
0.206 [1/16/156] Building C object CMakeFiles/clang_rt.builtins-x86_64.dir/extendxftf2.c.o
0.206 [1/15/157] Building C object CMakeFiles/clang_rt.builtins-x86_64.dir/powixf2.c.o
0.207 [1/14/158] Building C object clang_rt.crtbegin.o
0.209 [1/13/159] Building C object CMakeFiles/clang_rt.builtins-x86_64.dir/truncxfbf2.c.o
FAILED: CMakeFiles/clang_rt.builtins-x86_64.dir/truncxfbf2.c.o 
/home/botworker/bbot/builds/openmp-offload-sles-build/llvm.build/./bin/clang --target=x86_64-unknown-linux-gnu -DVISIBILITY_HIDDEN  -O3 -DNDEBUG -m64 -fno-lto -std=c11 -fPIC -fno-builtin -fvisibility=hidden -fomit-frame-pointer -DCOMPILER_RT_HAS_FLOAT16 -MD -MT CMakeFiles/clang_rt.builtins-x86_64.dir/truncxfbf2.c.o -MF CMakeFiles/clang_rt.builtins-x86_64.dir/truncxfbf2.c.o.d -o CMakeFiles/clang_rt.builtins-x86_64.dir/truncxfbf2.c.o -c /home/botworker/bbot/builds/openmp-offload-sles-build/llvm.src/compiler-rt/lib/builtins/truncxfbf2.c
In file included from /home/botworker/bbot/builds/openmp-offload-sles-build/llvm.src/compiler-rt/lib/builtins/truncxfbf2.c:11:
In file included from /home/botworker/bbot/builds/openmp-offload-sles-build/llvm.src/compiler-rt/lib/builtins/fp_trunc_impl.inc:39:
/home/botworker/bbot/builds/openmp-offload-sles-build/llvm.src/compiler-rt/lib/builtins/fp_trunc.h:49:2: error: Source should be double precision or quad precision!
   49 | #error Source should be double precision or quad precision!
      |  ^
/home/botworker/bbot/builds/openmp-offload-sles-build/llvm.src/compiler-rt/lib/builtins/fp_trunc.h:114:15: error: unknown type name 'src_rep_t'; did you mean 'dst_rep_t'?
  114 | static inline src_rep_t extract_sign_from_src(src_rep_t x) {
      |               ^~~~~~~~~
      |               dst_rep_t
/home/botworker/bbot/builds/openmp-offload-sles-build/llvm.src/compiler-rt/lib/builtins/fp_trunc.h:99:18: note: 'dst_rep_t' declared here
   99 | typedef uint16_t dst_rep_t;
      |                  ^
/home/botworker/bbot/builds/openmp-offload-sles-build/llvm.src/compiler-rt/lib/builtins/fp_trunc.h:114:47: error: unknown type name 'src_rep_t'; did you mean 'dst_rep_t'?
  114 | static inline src_rep_t extract_sign_from_src(src_rep_t x) {
      |                                               ^~~~~~~~~
      |                                               dst_rep_t
/home/botworker/bbot/builds/openmp-offload-sles-build/llvm.src/compiler-rt/lib/builtins/fp_trunc.h:99:18: note: 'dst_rep_t' declared here
   99 | typedef uint16_t dst_rep_t;
      |                  ^
/home/botworker/bbot/builds/openmp-offload-sles-build/llvm.src/compiler-rt/lib/builtins/fp_trunc.h:115:9: error: unknown type name 'src_rep_t'; did you mean 'dst_rep_t'?
  115 |   const src_rep_t srcSignMask = SRC_REP_C(1) << (srcBits - 1);
      |         ^~~~~~~~~
      |         dst_rep_t
/home/botworker/bbot/builds/openmp-offload-sles-build/llvm.src/compiler-rt/lib/builtins/fp_trunc.h:99:18: note: 'dst_rep_t' declared here
   99 | typedef uint16_t dst_rep_t;
      |                  ^
/home/botworker/bbot/builds/openmp-offload-sles-build/llvm.src/compiler-rt/lib/builtins/fp_trunc.h:115:33: error: call to undeclared function 'SRC_REP_C'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
  115 |   const src_rep_t srcSignMask = SRC_REP_C(1) << (srcBits - 1);
      |                                 ^
/home/botworker/bbot/builds/openmp-offload-sles-build/llvm.src/compiler-rt/lib/builtins/fp_trunc.h:115:50: error: use of undeclared identifier 'srcBits'; did you mean 'dstBits'?
  115 |   const src_rep_t srcSignMask = SRC_REP_C(1) << (srcBits - 1);
      |                                                  ^~~~~~~
      |                                                  dstBits
/home/botworker/bbot/builds/openmp-offload-sles-build/llvm.src/compiler-rt/lib/builtins/fp_trunc.h:101:18: note: 'dstBits' declared here
  101 | static const int dstBits = sizeof(dst_t) * CHAR_BIT;
      |                  ^
/home/botworker/bbot/builds/openmp-offload-sles-build/llvm.src/compiler-rt/lib/builtins/fp_trunc.h:116:32: error: use of undeclared identifier 'srcBits'; did you mean 'dstBits'?

@llvm-ci
Copy link
Collaborator

llvm-ci commented Sep 18, 2024

LLVM Buildbot has detected a new failure on builder sanitizer-aarch64-linux-fuzzer running on sanitizer-buildbot11 while building compiler-rt,llvm at step 2 "annotate".

Full details are available at: https://lab.llvm.org/buildbot/#/builders/159/builds/6335

Here is the relevant piece of the build log for the reference
Step 2 (annotate) failure: 'python ../sanitizer_buildbot/sanitizers/zorg/buildbot/builders/sanitizers/buildbot_selector.py' (failure)
...
-- Builtin supported architectures: aarch64
-- AArch64 SME ABI routines enabled
-- Performing additional configure checks with target flags: -march=armv8-a
-- For aarch64 builtins preferring aarch64/fp_mode.c to fp_mode.c
-- Configuring done (0.3s)
-- Generating done (0.0s)
-- Build files have been written to: /home/b/sanitizer-aarch64-linux-fuzzer/build/llvm_build0/runtimes/builtins-bins
[824/838] Linking CXX executable bin/c-index-test
[825/838] Performing build step for 'builtins'
[1/2] Building C object CMakeFiles/clang_rt.builtins-aarch64.dir/truncxfbf2.c.o
FAILED: CMakeFiles/clang_rt.builtins-aarch64.dir/truncxfbf2.c.o 
/home/b/sanitizer-aarch64-linux-fuzzer/build/llvm_build0/./bin/clang --target=aarch64-unknown-linux-gnu -DHAS_ASM_LSE -DVISIBILITY_HIDDEN  -O3 -DNDEBUG -march=armv8-a -fno-lto -std=c11 -fPIC -fno-builtin -fvisibility=hidden -fomit-frame-pointer -DCOMPILER_RT_HAS_FLOAT16 -MD -MT CMakeFiles/clang_rt.builtins-aarch64.dir/truncxfbf2.c.o -MF CMakeFiles/clang_rt.builtins-aarch64.dir/truncxfbf2.c.o.d -o CMakeFiles/clang_rt.builtins-aarch64.dir/truncxfbf2.c.o -c /home/b/sanitizer-aarch64-linux-fuzzer/build/llvm-project/compiler-rt/lib/builtins/truncxfbf2.c
In file included from /home/b/sanitizer-aarch64-linux-fuzzer/build/llvm-project/compiler-rt/lib/builtins/truncxfbf2.c:11:
In file included from /home/b/sanitizer-aarch64-linux-fuzzer/build/llvm-project/compiler-rt/lib/builtins/fp_trunc_impl.inc:39:
/home/b/sanitizer-aarch64-linux-fuzzer/build/llvm-project/compiler-rt/lib/builtins/fp_trunc.h:49:2: error: Source should be double precision or quad precision!
   49 | #error Source should be double precision or quad precision!
      |  ^
/home/b/sanitizer-aarch64-linux-fuzzer/build/llvm-project/compiler-rt/lib/builtins/fp_trunc.h:114:15: error: unknown type name 'src_rep_t'; did you mean 'dst_rep_t'?
  114 | static inline src_rep_t extract_sign_from_src(src_rep_t x) {
      |               ^~~~~~~~~
      |               dst_rep_t
/home/b/sanitizer-aarch64-linux-fuzzer/build/llvm-project/compiler-rt/lib/builtins/fp_trunc.h:99:18: note: 'dst_rep_t' declared here
   99 | typedef uint16_t dst_rep_t;
      |                  ^
/home/b/sanitizer-aarch64-linux-fuzzer/build/llvm-project/compiler-rt/lib/builtins/fp_trunc.h:114:47: error: unknown type name 'src_rep_t'; did you mean 'dst_rep_t'?
  114 | static inline src_rep_t extract_sign_from_src(src_rep_t x) {
      |                                               ^~~~~~~~~
      |                                               dst_rep_t
/home/b/sanitizer-aarch64-linux-fuzzer/build/llvm-project/compiler-rt/lib/builtins/fp_trunc.h:99:18: note: 'dst_rep_t' declared here
   99 | typedef uint16_t dst_rep_t;
      |                  ^
/home/b/sanitizer-aarch64-linux-fuzzer/build/llvm-project/compiler-rt/lib/builtins/fp_trunc.h:115:9: error: unknown type name 'src_rep_t'; did you mean 'dst_rep_t'?
  115 |   const src_rep_t srcSignMask = SRC_REP_C(1) << (srcBits - 1);
      |         ^~~~~~~~~
      |         dst_rep_t
/home/b/sanitizer-aarch64-linux-fuzzer/build/llvm-project/compiler-rt/lib/builtins/fp_trunc.h:99:18: note: 'dst_rep_t' declared here
   99 | typedef uint16_t dst_rep_t;
      |                  ^
/home/b/sanitizer-aarch64-linux-fuzzer/build/llvm-project/compiler-rt/lib/builtins/fp_trunc.h:115:33: error: call to undeclared function 'SRC_REP_C'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
  115 |   const src_rep_t srcSignMask = SRC_REP_C(1) << (srcBits - 1);
      |                                 ^
/home/b/sanitizer-aarch64-linux-fuzzer/build/llvm-project/compiler-rt/lib/builtins/fp_trunc.h:115:50: error: use of undeclared identifier 'srcBits'; did you mean 'dstBits'?
  115 |   const src_rep_t srcSignMask = SRC_REP_C(1) << (srcBits - 1);
      |                                                  ^~~~~~~
      |                                                  dstBits
/home/b/sanitizer-aarch64-linux-fuzzer/build/llvm-project/compiler-rt/lib/builtins/fp_trunc.h:101:18: note: 'dstBits' declared here
  101 | static const int dstBits = sizeof(dst_t) * CHAR_BIT;
      |                  ^
/home/b/sanitizer-aarch64-linux-fuzzer/build/llvm-project/compiler-rt/lib/builtins/fp_trunc.h:116:32: error: use of undeclared identifier 'srcBits'; did you mean 'dstBits'?
Step 7 (stage1 build all) failure: stage1 build all (failure)
...
-- Builtin supported architectures: aarch64
-- AArch64 SME ABI routines enabled
-- Performing additional configure checks with target flags: -march=armv8-a
-- For aarch64 builtins preferring aarch64/fp_mode.c to fp_mode.c
-- Configuring done (0.3s)
-- Generating done (0.0s)
-- Build files have been written to: /home/b/sanitizer-aarch64-linux-fuzzer/build/llvm_build0/runtimes/builtins-bins
[824/838] Linking CXX executable bin/c-index-test
[825/838] Performing build step for 'builtins'
[1/2] Building C object CMakeFiles/clang_rt.builtins-aarch64.dir/truncxfbf2.c.o
FAILED: CMakeFiles/clang_rt.builtins-aarch64.dir/truncxfbf2.c.o 
/home/b/sanitizer-aarch64-linux-fuzzer/build/llvm_build0/./bin/clang --target=aarch64-unknown-linux-gnu -DHAS_ASM_LSE -DVISIBILITY_HIDDEN  -O3 -DNDEBUG -march=armv8-a -fno-lto -std=c11 -fPIC -fno-builtin -fvisibility=hidden -fomit-frame-pointer -DCOMPILER_RT_HAS_FLOAT16 -MD -MT CMakeFiles/clang_rt.builtins-aarch64.dir/truncxfbf2.c.o -MF CMakeFiles/clang_rt.builtins-aarch64.dir/truncxfbf2.c.o.d -o CMakeFiles/clang_rt.builtins-aarch64.dir/truncxfbf2.c.o -c /home/b/sanitizer-aarch64-linux-fuzzer/build/llvm-project/compiler-rt/lib/builtins/truncxfbf2.c
In file included from /home/b/sanitizer-aarch64-linux-fuzzer/build/llvm-project/compiler-rt/lib/builtins/truncxfbf2.c:11:
In file included from /home/b/sanitizer-aarch64-linux-fuzzer/build/llvm-project/compiler-rt/lib/builtins/fp_trunc_impl.inc:39:
/home/b/sanitizer-aarch64-linux-fuzzer/build/llvm-project/compiler-rt/lib/builtins/fp_trunc.h:49:2: error: Source should be double precision or quad precision!
   49 | #error Source should be double precision or quad precision!
      |  ^
/home/b/sanitizer-aarch64-linux-fuzzer/build/llvm-project/compiler-rt/lib/builtins/fp_trunc.h:114:15: error: unknown type name 'src_rep_t'; did you mean 'dst_rep_t'?
  114 | static inline src_rep_t extract_sign_from_src(src_rep_t x) {
      |               ^~~~~~~~~
      |               dst_rep_t
/home/b/sanitizer-aarch64-linux-fuzzer/build/llvm-project/compiler-rt/lib/builtins/fp_trunc.h:99:18: note: 'dst_rep_t' declared here
   99 | typedef uint16_t dst_rep_t;
      |                  ^
/home/b/sanitizer-aarch64-linux-fuzzer/build/llvm-project/compiler-rt/lib/builtins/fp_trunc.h:114:47: error: unknown type name 'src_rep_t'; did you mean 'dst_rep_t'?
  114 | static inline src_rep_t extract_sign_from_src(src_rep_t x) {
      |                                               ^~~~~~~~~
      |                                               dst_rep_t
/home/b/sanitizer-aarch64-linux-fuzzer/build/llvm-project/compiler-rt/lib/builtins/fp_trunc.h:99:18: note: 'dst_rep_t' declared here
   99 | typedef uint16_t dst_rep_t;
      |                  ^
/home/b/sanitizer-aarch64-linux-fuzzer/build/llvm-project/compiler-rt/lib/builtins/fp_trunc.h:115:9: error: unknown type name 'src_rep_t'; did you mean 'dst_rep_t'?
  115 |   const src_rep_t srcSignMask = SRC_REP_C(1) << (srcBits - 1);
      |         ^~~~~~~~~
      |         dst_rep_t
/home/b/sanitizer-aarch64-linux-fuzzer/build/llvm-project/compiler-rt/lib/builtins/fp_trunc.h:99:18: note: 'dst_rep_t' declared here
   99 | typedef uint16_t dst_rep_t;
      |                  ^
/home/b/sanitizer-aarch64-linux-fuzzer/build/llvm-project/compiler-rt/lib/builtins/fp_trunc.h:115:33: error: call to undeclared function 'SRC_REP_C'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
  115 |   const src_rep_t srcSignMask = SRC_REP_C(1) << (srcBits - 1);
      |                                 ^
/home/b/sanitizer-aarch64-linux-fuzzer/build/llvm-project/compiler-rt/lib/builtins/fp_trunc.h:115:50: error: use of undeclared identifier 'srcBits'; did you mean 'dstBits'?
  115 |   const src_rep_t srcSignMask = SRC_REP_C(1) << (srcBits - 1);
      |                                                  ^~~~~~~
      |                                                  dstBits
/home/b/sanitizer-aarch64-linux-fuzzer/build/llvm-project/compiler-rt/lib/builtins/fp_trunc.h:101:18: note: 'dstBits' declared here
  101 | static const int dstBits = sizeof(dst_t) * CHAR_BIT;
      |                  ^
/home/b/sanitizer-aarch64-linux-fuzzer/build/llvm-project/compiler-rt/lib/builtins/fp_trunc.h:116:32: error: use of undeclared identifier 'srcBits'; did you mean 'dstBits'?

@llvm-ci
Copy link
Collaborator

llvm-ci commented Sep 18, 2024

LLVM Buildbot has detected a new failure on builder clang-ve-ninja running on hpce-ve-main while building compiler-rt,llvm at step 4 "annotate".

Full details are available at: https://lab.llvm.org/buildbot/#/builders/12/builds/6066

Here is the relevant piece of the build log for the reference
Step 4 (annotate) failure: 'python ../llvm-zorg/zorg/buildbot/builders/annotated/ve-linux.py ...' (failure)
...
[141/172] Building C object CMakeFiles/clang_rt.builtins-x86_64.dir/fixunsxfdi.c.o
[142/172] Building ASM object CMakeFiles/clang_rt.builtins-x86_64.dir/x86_64/floatundixf.S.o
[143/172] Building C object CMakeFiles/clang_rt.builtins-x86_64.dir/fixunsxfsi.c.o
[144/172] Building C object clang_rt.crtend.o
[145/172] Building C object CMakeFiles/clang_rt.builtins-x86_64.dir/fixtfti.c.o
[146/172] Building C object CMakeFiles/clang_rt.builtins-x86_64.dir/x86_64/floatdixf.c.o
[147/172] Building C object CMakeFiles/clang_rt.builtins-x86_64.dir/floatuntitf.c.o
[148/172] Building C object CMakeFiles/clang_rt.builtins-x86_64.dir/multc3.c.o
[149/172] Building C object CMakeFiles/clang_rt.builtins-x86_64.dir/emutls.c.o
[150/172] Building C object CMakeFiles/clang_rt.builtins-x86_64.dir/truncxfbf2.c.o
FAILED: CMakeFiles/clang_rt.builtins-x86_64.dir/truncxfbf2.c.o 
/scratch/buildbot/bothome/clang-ve-ninja/build/build_llvm/./bin/clang --target=x86_64-unknown-linux-gnu -DVISIBILITY_HIDDEN  -O2 -g -DNDEBUG -fno-lto -std=c11 -fPIC -fno-builtin -fvisibility=hidden -fomit-frame-pointer -DCOMPILER_RT_HAS_FLOAT16 -MD -MT CMakeFiles/clang_rt.builtins-x86_64.dir/truncxfbf2.c.o -MF CMakeFiles/clang_rt.builtins-x86_64.dir/truncxfbf2.c.o.d -o CMakeFiles/clang_rt.builtins-x86_64.dir/truncxfbf2.c.o -c /scratch/buildbot/bothome/clang-ve-ninja/llvm-project/compiler-rt/lib/builtins/truncxfbf2.c
In file included from /scratch/buildbot/bothome/clang-ve-ninja/llvm-project/compiler-rt/lib/builtins/truncxfbf2.c:11:
In file included from /scratch/buildbot/bothome/clang-ve-ninja/llvm-project/compiler-rt/lib/builtins/fp_trunc_impl.inc:39:
/scratch/buildbot/bothome/clang-ve-ninja/llvm-project/compiler-rt/lib/builtins/fp_trunc.h:49:2: error: Source should be double precision or quad precision!
   49 | #error Source should be double precision or quad precision!
      |  ^
/scratch/buildbot/bothome/clang-ve-ninja/llvm-project/compiler-rt/lib/builtins/fp_trunc.h:114:15: error: unknown type name 'src_rep_t'; did you mean 'dst_rep_t'?
  114 | static inline src_rep_t extract_sign_from_src(src_rep_t x) {
      |               ^~~~~~~~~
      |               dst_rep_t
/scratch/buildbot/bothome/clang-ve-ninja/llvm-project/compiler-rt/lib/builtins/fp_trunc.h:99:18: note: 'dst_rep_t' declared here
   99 | typedef uint16_t dst_rep_t;
      |                  ^
/scratch/buildbot/bothome/clang-ve-ninja/llvm-project/compiler-rt/lib/builtins/fp_trunc.h:114:47: error: unknown type name 'src_rep_t'; did you mean 'dst_rep_t'?
  114 | static inline src_rep_t extract_sign_from_src(src_rep_t x) {
      |                                               ^~~~~~~~~
      |                                               dst_rep_t
/scratch/buildbot/bothome/clang-ve-ninja/llvm-project/compiler-rt/lib/builtins/fp_trunc.h:99:18: note: 'dst_rep_t' declared here
   99 | typedef uint16_t dst_rep_t;
      |                  ^
/scratch/buildbot/bothome/clang-ve-ninja/llvm-project/compiler-rt/lib/builtins/fp_trunc.h:115:9: error: unknown type name 'src_rep_t'; did you mean 'dst_rep_t'?
  115 |   const src_rep_t srcSignMask = SRC_REP_C(1) << (srcBits - 1);
      |         ^~~~~~~~~
      |         dst_rep_t
/scratch/buildbot/bothome/clang-ve-ninja/llvm-project/compiler-rt/lib/builtins/fp_trunc.h:99:18: note: 'dst_rep_t' declared here
   99 | typedef uint16_t dst_rep_t;
      |                  ^
/scratch/buildbot/bothome/clang-ve-ninja/llvm-project/compiler-rt/lib/builtins/fp_trunc.h:115:33: error: call to undeclared function 'SRC_REP_C'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
  115 |   const src_rep_t srcSignMask = SRC_REP_C(1) << (srcBits - 1);
      |                                 ^
/scratch/buildbot/bothome/clang-ve-ninja/llvm-project/compiler-rt/lib/builtins/fp_trunc.h:115:50: error: use of undeclared identifier 'srcBits'; did you mean 'dstBits'?
  115 |   const src_rep_t srcSignMask = SRC_REP_C(1) << (srcBits - 1);
      |                                                  ^~~~~~~
      |                                                  dstBits
/scratch/buildbot/bothome/clang-ve-ninja/llvm-project/compiler-rt/lib/builtins/fp_trunc.h:101:18: note: 'dstBits' declared here
  101 | static const int dstBits = sizeof(dst_t) * CHAR_BIT;
      |                  ^
/scratch/buildbot/bothome/clang-ve-ninja/llvm-project/compiler-rt/lib/builtins/fp_trunc.h:116:32: error: use of undeclared identifier 'srcBits'; did you mean 'dstBits'?
Step 7 (build-llvm) failure: build-llvm (failure)
...
[141/172] Building C object CMakeFiles/clang_rt.builtins-x86_64.dir/fixunsxfdi.c.o
[142/172] Building ASM object CMakeFiles/clang_rt.builtins-x86_64.dir/x86_64/floatundixf.S.o
[143/172] Building C object CMakeFiles/clang_rt.builtins-x86_64.dir/fixunsxfsi.c.o
[144/172] Building C object clang_rt.crtend.o
[145/172] Building C object CMakeFiles/clang_rt.builtins-x86_64.dir/fixtfti.c.o
[146/172] Building C object CMakeFiles/clang_rt.builtins-x86_64.dir/x86_64/floatdixf.c.o
[147/172] Building C object CMakeFiles/clang_rt.builtins-x86_64.dir/floatuntitf.c.o
[148/172] Building C object CMakeFiles/clang_rt.builtins-x86_64.dir/multc3.c.o
[149/172] Building C object CMakeFiles/clang_rt.builtins-x86_64.dir/emutls.c.o
[150/172] Building C object CMakeFiles/clang_rt.builtins-x86_64.dir/truncxfbf2.c.o
FAILED: CMakeFiles/clang_rt.builtins-x86_64.dir/truncxfbf2.c.o 
/scratch/buildbot/bothome/clang-ve-ninja/build/build_llvm/./bin/clang --target=x86_64-unknown-linux-gnu -DVISIBILITY_HIDDEN  -O2 -g -DNDEBUG -fno-lto -std=c11 -fPIC -fno-builtin -fvisibility=hidden -fomit-frame-pointer -DCOMPILER_RT_HAS_FLOAT16 -MD -MT CMakeFiles/clang_rt.builtins-x86_64.dir/truncxfbf2.c.o -MF CMakeFiles/clang_rt.builtins-x86_64.dir/truncxfbf2.c.o.d -o CMakeFiles/clang_rt.builtins-x86_64.dir/truncxfbf2.c.o -c /scratch/buildbot/bothome/clang-ve-ninja/llvm-project/compiler-rt/lib/builtins/truncxfbf2.c
In file included from /scratch/buildbot/bothome/clang-ve-ninja/llvm-project/compiler-rt/lib/builtins/truncxfbf2.c:11:
In file included from /scratch/buildbot/bothome/clang-ve-ninja/llvm-project/compiler-rt/lib/builtins/fp_trunc_impl.inc:39:
/scratch/buildbot/bothome/clang-ve-ninja/llvm-project/compiler-rt/lib/builtins/fp_trunc.h:49:2: error: Source should be double precision or quad precision!
   49 | #error Source should be double precision or quad precision!
      |  ^
/scratch/buildbot/bothome/clang-ve-ninja/llvm-project/compiler-rt/lib/builtins/fp_trunc.h:114:15: error: unknown type name 'src_rep_t'; did you mean 'dst_rep_t'?
  114 | static inline src_rep_t extract_sign_from_src(src_rep_t x) {
      |               ^~~~~~~~~
      |               dst_rep_t
/scratch/buildbot/bothome/clang-ve-ninja/llvm-project/compiler-rt/lib/builtins/fp_trunc.h:99:18: note: 'dst_rep_t' declared here
   99 | typedef uint16_t dst_rep_t;
      |                  ^
/scratch/buildbot/bothome/clang-ve-ninja/llvm-project/compiler-rt/lib/builtins/fp_trunc.h:114:47: error: unknown type name 'src_rep_t'; did you mean 'dst_rep_t'?
  114 | static inline src_rep_t extract_sign_from_src(src_rep_t x) {
      |                                               ^~~~~~~~~
      |                                               dst_rep_t
/scratch/buildbot/bothome/clang-ve-ninja/llvm-project/compiler-rt/lib/builtins/fp_trunc.h:99:18: note: 'dst_rep_t' declared here
   99 | typedef uint16_t dst_rep_t;
      |                  ^
/scratch/buildbot/bothome/clang-ve-ninja/llvm-project/compiler-rt/lib/builtins/fp_trunc.h:115:9: error: unknown type name 'src_rep_t'; did you mean 'dst_rep_t'?
  115 |   const src_rep_t srcSignMask = SRC_REP_C(1) << (srcBits - 1);
      |         ^~~~~~~~~
      |         dst_rep_t
/scratch/buildbot/bothome/clang-ve-ninja/llvm-project/compiler-rt/lib/builtins/fp_trunc.h:99:18: note: 'dst_rep_t' declared here
   99 | typedef uint16_t dst_rep_t;
      |                  ^
/scratch/buildbot/bothome/clang-ve-ninja/llvm-project/compiler-rt/lib/builtins/fp_trunc.h:115:33: error: call to undeclared function 'SRC_REP_C'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
  115 |   const src_rep_t srcSignMask = SRC_REP_C(1) << (srcBits - 1);
      |                                 ^
/scratch/buildbot/bothome/clang-ve-ninja/llvm-project/compiler-rt/lib/builtins/fp_trunc.h:115:50: error: use of undeclared identifier 'srcBits'; did you mean 'dstBits'?
  115 |   const src_rep_t srcSignMask = SRC_REP_C(1) << (srcBits - 1);
      |                                                  ^~~~~~~
      |                                                  dstBits
/scratch/buildbot/bothome/clang-ve-ninja/llvm-project/compiler-rt/lib/builtins/fp_trunc.h:101:18: note: 'dstBits' declared here
  101 | static const int dstBits = sizeof(dst_t) * CHAR_BIT;
      |                  ^
/scratch/buildbot/bothome/clang-ve-ninja/llvm-project/compiler-rt/lib/builtins/fp_trunc.h:116:32: error: use of undeclared identifier 'srcBits'; did you mean 'dstBits'?

@llvm-ci
Copy link
Collaborator

llvm-ci commented Sep 18, 2024

LLVM Buildbot has detected a new failure on builder clang-hip-vega20 running on hip-vega20-0 while building compiler-rt,llvm at step 3 "annotate".

Full details are available at: https://lab.llvm.org/buildbot/#/builders/123/builds/5859

Here is the relevant piece of the build log for the reference
Step 3 (annotate) failure: '../llvm-zorg/zorg/buildbot/builders/annotated/hip-build.sh --jobs=' (failure)
...
-- For x86_64 builtins preferring x86_64/floatdidf.c to floatdidf.c
-- For x86_64 builtins preferring x86_64/floatdisf.c to floatdisf.c
-- For x86_64 builtins preferring x86_64/floatundidf.S to floatundidf.c
-- For x86_64 builtins preferring x86_64/floatundisf.S to floatundisf.c
-- For x86_64 builtins preferring x86_64/floatdixf.c to floatdixf.c
-- For x86_64 builtins preferring x86_64/floatundixf.S to floatundixf.c
-- Configuring done
-- Generating done
-- Build files have been written to: /buildbot/hip-vega20-0/clang-hip-vega20/llvm/runtimes/builtins-bins
[1/4] /buildbot/hip-vega20-0/clang-hip-vega20/llvm/./bin/clang --target=x86_64-unknown-linux-gnu -DVISIBILITY_HIDDEN  -O3 -DNDEBUG -m32 -fno-lto -std=c11 -fPIC -fno-builtin -fvisibility=hidden -fomit-frame-pointer -DCOMPILER_RT_HAS_FLOAT16 -MD -MT CMakeFiles/clang_rt.builtins-i386.dir/truncxfbf2.c.o -MF CMakeFiles/clang_rt.builtins-i386.dir/truncxfbf2.c.o.d -o CMakeFiles/clang_rt.builtins-i386.dir/truncxfbf2.c.o -c /buildbot/llvm-project/compiler-rt/lib/builtins/truncxfbf2.c
FAILED: CMakeFiles/clang_rt.builtins-i386.dir/truncxfbf2.c.o 
/buildbot/hip-vega20-0/clang-hip-vega20/llvm/./bin/clang --target=x86_64-unknown-linux-gnu -DVISIBILITY_HIDDEN  -O3 -DNDEBUG -m32 -fno-lto -std=c11 -fPIC -fno-builtin -fvisibility=hidden -fomit-frame-pointer -DCOMPILER_RT_HAS_FLOAT16 -MD -MT CMakeFiles/clang_rt.builtins-i386.dir/truncxfbf2.c.o -MF CMakeFiles/clang_rt.builtins-i386.dir/truncxfbf2.c.o.d -o CMakeFiles/clang_rt.builtins-i386.dir/truncxfbf2.c.o -c /buildbot/llvm-project/compiler-rt/lib/builtins/truncxfbf2.c
In file included from /buildbot/llvm-project/compiler-rt/lib/builtins/truncxfbf2.c:11:
In file included from /buildbot/llvm-project/compiler-rt/lib/builtins/fp_trunc_impl.inc:39:
/buildbot/llvm-project/compiler-rt/lib/builtins/fp_trunc.h:49:2: error: Source should be double precision or quad precision!
   49 | #error Source should be double precision or quad precision!
      |  ^
/buildbot/llvm-project/compiler-rt/lib/builtins/fp_trunc.h:114:15: error: unknown type name 'src_rep_t'; did you mean 'dst_rep_t'?
  114 | static inline src_rep_t extract_sign_from_src(src_rep_t x) {
      |               ^~~~~~~~~
      |               dst_rep_t
/buildbot/llvm-project/compiler-rt/lib/builtins/fp_trunc.h:99:18: note: 'dst_rep_t' declared here
   99 | typedef uint16_t dst_rep_t;
      |                  ^
/buildbot/llvm-project/compiler-rt/lib/builtins/fp_trunc.h:114:47: error: unknown type name 'src_rep_t'; did you mean 'dst_rep_t'?
  114 | static inline src_rep_t extract_sign_from_src(src_rep_t x) {
      |                                               ^~~~~~~~~
      |                                               dst_rep_t
/buildbot/llvm-project/compiler-rt/lib/builtins/fp_trunc.h:99:18: note: 'dst_rep_t' declared here
   99 | typedef uint16_t dst_rep_t;
      |                  ^
/buildbot/llvm-project/compiler-rt/lib/builtins/fp_trunc.h:115:9: error: unknown type name 'src_rep_t'; did you mean 'dst_rep_t'?
  115 |   const src_rep_t srcSignMask = SRC_REP_C(1) << (srcBits - 1);
      |         ^~~~~~~~~
      |         dst_rep_t
/buildbot/llvm-project/compiler-rt/lib/builtins/fp_trunc.h:99:18: note: 'dst_rep_t' declared here
   99 | typedef uint16_t dst_rep_t;
      |                  ^
/buildbot/llvm-project/compiler-rt/lib/builtins/fp_trunc.h:115:33: error: call to undeclared function 'SRC_REP_C'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
  115 |   const src_rep_t srcSignMask = SRC_REP_C(1) << (srcBits - 1);
      |                                 ^
/buildbot/llvm-project/compiler-rt/lib/builtins/fp_trunc.h:115:50: error: use of undeclared identifier 'srcBits'; did you mean 'dstBits'?
  115 |   const src_rep_t srcSignMask = SRC_REP_C(1) << (srcBits - 1);
      |                                                  ^~~~~~~
      |                                                  dstBits
/buildbot/llvm-project/compiler-rt/lib/builtins/fp_trunc.h:101:18: note: 'dstBits' declared here
  101 | static const int dstBits = sizeof(dst_t) * CHAR_BIT;
      |                  ^
/buildbot/llvm-project/compiler-rt/lib/builtins/fp_trunc.h:116:32: error: use of undeclared identifier 'srcBits'; did you mean 'dstBits'?
Step 7 (Building LLVM) failure: Building LLVM (failure)
...
-- For x86_64 builtins preferring x86_64/floatdidf.c to floatdidf.c
-- For x86_64 builtins preferring x86_64/floatdisf.c to floatdisf.c
-- For x86_64 builtins preferring x86_64/floatundidf.S to floatundidf.c
-- For x86_64 builtins preferring x86_64/floatundisf.S to floatundisf.c
-- For x86_64 builtins preferring x86_64/floatdixf.c to floatdixf.c
-- For x86_64 builtins preferring x86_64/floatundixf.S to floatundixf.c
-- Configuring done
-- Generating done
-- Build files have been written to: /buildbot/hip-vega20-0/clang-hip-vega20/llvm/runtimes/builtins-bins
[1/4] /buildbot/hip-vega20-0/clang-hip-vega20/llvm/./bin/clang --target=x86_64-unknown-linux-gnu -DVISIBILITY_HIDDEN  -O3 -DNDEBUG -m32 -fno-lto -std=c11 -fPIC -fno-builtin -fvisibility=hidden -fomit-frame-pointer -DCOMPILER_RT_HAS_FLOAT16 -MD -MT CMakeFiles/clang_rt.builtins-i386.dir/truncxfbf2.c.o -MF CMakeFiles/clang_rt.builtins-i386.dir/truncxfbf2.c.o.d -o CMakeFiles/clang_rt.builtins-i386.dir/truncxfbf2.c.o -c /buildbot/llvm-project/compiler-rt/lib/builtins/truncxfbf2.c
FAILED: CMakeFiles/clang_rt.builtins-i386.dir/truncxfbf2.c.o 
/buildbot/hip-vega20-0/clang-hip-vega20/llvm/./bin/clang --target=x86_64-unknown-linux-gnu -DVISIBILITY_HIDDEN  -O3 -DNDEBUG -m32 -fno-lto -std=c11 -fPIC -fno-builtin -fvisibility=hidden -fomit-frame-pointer -DCOMPILER_RT_HAS_FLOAT16 -MD -MT CMakeFiles/clang_rt.builtins-i386.dir/truncxfbf2.c.o -MF CMakeFiles/clang_rt.builtins-i386.dir/truncxfbf2.c.o.d -o CMakeFiles/clang_rt.builtins-i386.dir/truncxfbf2.c.o -c /buildbot/llvm-project/compiler-rt/lib/builtins/truncxfbf2.c
In file included from /buildbot/llvm-project/compiler-rt/lib/builtins/truncxfbf2.c:11:
In file included from /buildbot/llvm-project/compiler-rt/lib/builtins/fp_trunc_impl.inc:39:
/buildbot/llvm-project/compiler-rt/lib/builtins/fp_trunc.h:49:2: error: Source should be double precision or quad precision!
   49 | #error Source should be double precision or quad precision!
      |  ^
/buildbot/llvm-project/compiler-rt/lib/builtins/fp_trunc.h:114:15: error: unknown type name 'src_rep_t'; did you mean 'dst_rep_t'?
  114 | static inline src_rep_t extract_sign_from_src(src_rep_t x) {
      |               ^~~~~~~~~
      |               dst_rep_t
/buildbot/llvm-project/compiler-rt/lib/builtins/fp_trunc.h:99:18: note: 'dst_rep_t' declared here
   99 | typedef uint16_t dst_rep_t;
      |                  ^
/buildbot/llvm-project/compiler-rt/lib/builtins/fp_trunc.h:114:47: error: unknown type name 'src_rep_t'; did you mean 'dst_rep_t'?
  114 | static inline src_rep_t extract_sign_from_src(src_rep_t x) {
      |                                               ^~~~~~~~~
      |                                               dst_rep_t
/buildbot/llvm-project/compiler-rt/lib/builtins/fp_trunc.h:99:18: note: 'dst_rep_t' declared here
   99 | typedef uint16_t dst_rep_t;
      |                  ^
/buildbot/llvm-project/compiler-rt/lib/builtins/fp_trunc.h:115:9: error: unknown type name 'src_rep_t'; did you mean 'dst_rep_t'?
  115 |   const src_rep_t srcSignMask = SRC_REP_C(1) << (srcBits - 1);
      |         ^~~~~~~~~
      |         dst_rep_t
/buildbot/llvm-project/compiler-rt/lib/builtins/fp_trunc.h:99:18: note: 'dst_rep_t' declared here
   99 | typedef uint16_t dst_rep_t;
      |                  ^
/buildbot/llvm-project/compiler-rt/lib/builtins/fp_trunc.h:115:33: error: call to undeclared function 'SRC_REP_C'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
  115 |   const src_rep_t srcSignMask = SRC_REP_C(1) << (srcBits - 1);
      |                                 ^
/buildbot/llvm-project/compiler-rt/lib/builtins/fp_trunc.h:115:50: error: use of undeclared identifier 'srcBits'; did you mean 'dstBits'?
  115 |   const src_rep_t srcSignMask = SRC_REP_C(1) << (srcBits - 1);
      |                                                  ^~~~~~~
      |                                                  dstBits
/buildbot/llvm-project/compiler-rt/lib/builtins/fp_trunc.h:101:18: note: 'dstBits' declared here
  101 | static const int dstBits = sizeof(dst_t) * CHAR_BIT;
      |                  ^
/buildbot/llvm-project/compiler-rt/lib/builtins/fp_trunc.h:116:32: error: use of undeclared identifier 'srcBits'; did you mean 'dstBits'?

@llvm-ci
Copy link
Collaborator

llvm-ci commented Sep 18, 2024

LLVM Buildbot has detected a new failure on builder llvm-clang-x86_64-gcc-ubuntu running on sie-linux-worker3 while building compiler-rt,llvm at step 5 "build-unified-tree".

Full details are available at: https://lab.llvm.org/buildbot/#/builders/174/builds/5337

Here is the relevant piece of the build log for the reference
Step 5 (build-unified-tree) failure: build (failure)
...
0.310 [1/22/150] Building C object CMakeFiles/clang_rt.builtins-x86_64.dir/fixunsxfdi.c.o
0.312 [1/21/151] Building C object CMakeFiles/clang_rt.builtins-x86_64.dir/divxc3.c.o
0.312 [1/20/152] Building C object CMakeFiles/clang_rt.builtins-x86_64.dir/x86_64/floatdixf.c.o
0.313 [1/19/153] Building C object CMakeFiles/clang_rt.builtins-x86_64.dir/fixxfti.c.o
0.316 [1/18/154] Building C object CMakeFiles/clang_rt.builtins-x86_64.dir/powixf2.c.o
0.318 [1/17/155] Building C object clang_rt.crtend.o
0.318 [1/16/156] Building ASM object CMakeFiles/clang_rt.builtins-x86_64.dir/x86_64/floatundidf.S.o
0.322 [1/15/157] Building C object CMakeFiles/clang_rt.builtins-x86_64.dir/floatuntixf.c.o
0.323 [1/14/158] Building C object CMakeFiles/clang_rt.builtins-x86_64.dir/mulxc3.c.o
0.323 [1/13/159] Building C object CMakeFiles/clang_rt.builtins-x86_64.dir/truncxfbf2.c.o
FAILED: CMakeFiles/clang_rt.builtins-x86_64.dir/truncxfbf2.c.o 
/home/buildbot/buildbot-root/llvm-clang-x86_64-gcc-ubuntu/build/./bin/clang --target=x86_64-unknown-linux-gnu -DVISIBILITY_HIDDEN  -O3 -DNDEBUG -m64 -fno-lto -std=c11 -fPIC -fno-builtin -fvisibility=hidden -fomit-frame-pointer -DCOMPILER_RT_HAS_FLOAT16 -MD -MT CMakeFiles/clang_rt.builtins-x86_64.dir/truncxfbf2.c.o -MF CMakeFiles/clang_rt.builtins-x86_64.dir/truncxfbf2.c.o.d -o CMakeFiles/clang_rt.builtins-x86_64.dir/truncxfbf2.c.o -c /home/buildbot/buildbot-root/llvm-clang-x86_64-gcc-ubuntu/llvm-project/compiler-rt/lib/builtins/truncxfbf2.c
In file included from /home/buildbot/buildbot-root/llvm-clang-x86_64-gcc-ubuntu/llvm-project/compiler-rt/lib/builtins/truncxfbf2.c:11:
In file included from /home/buildbot/buildbot-root/llvm-clang-x86_64-gcc-ubuntu/llvm-project/compiler-rt/lib/builtins/fp_trunc_impl.inc:39:
/home/buildbot/buildbot-root/llvm-clang-x86_64-gcc-ubuntu/llvm-project/compiler-rt/lib/builtins/fp_trunc.h:49:2: error: Source should be double precision or quad precision!
   49 | #error Source should be double precision or quad precision!
      |  ^
/home/buildbot/buildbot-root/llvm-clang-x86_64-gcc-ubuntu/llvm-project/compiler-rt/lib/builtins/fp_trunc.h:114:15: error: unknown type name 'src_rep_t'; did you mean 'dst_rep_t'?
  114 | static inline src_rep_t extract_sign_from_src(src_rep_t x) {
      |               ^~~~~~~~~
      |               dst_rep_t
/home/buildbot/buildbot-root/llvm-clang-x86_64-gcc-ubuntu/llvm-project/compiler-rt/lib/builtins/fp_trunc.h:99:18: note: 'dst_rep_t' declared here
   99 | typedef uint16_t dst_rep_t;
      |                  ^
/home/buildbot/buildbot-root/llvm-clang-x86_64-gcc-ubuntu/llvm-project/compiler-rt/lib/builtins/fp_trunc.h:114:47: error: unknown type name 'src_rep_t'; did you mean 'dst_rep_t'?
  114 | static inline src_rep_t extract_sign_from_src(src_rep_t x) {
      |                                               ^~~~~~~~~
      |                                               dst_rep_t
/home/buildbot/buildbot-root/llvm-clang-x86_64-gcc-ubuntu/llvm-project/compiler-rt/lib/builtins/fp_trunc.h:99:18: note: 'dst_rep_t' declared here
   99 | typedef uint16_t dst_rep_t;
      |                  ^
/home/buildbot/buildbot-root/llvm-clang-x86_64-gcc-ubuntu/llvm-project/compiler-rt/lib/builtins/fp_trunc.h:115:9: error: unknown type name 'src_rep_t'; did you mean 'dst_rep_t'?
  115 |   const src_rep_t srcSignMask = SRC_REP_C(1) << (srcBits - 1);
      |         ^~~~~~~~~
      |         dst_rep_t
/home/buildbot/buildbot-root/llvm-clang-x86_64-gcc-ubuntu/llvm-project/compiler-rt/lib/builtins/fp_trunc.h:99:18: note: 'dst_rep_t' declared here
   99 | typedef uint16_t dst_rep_t;
      |                  ^
/home/buildbot/buildbot-root/llvm-clang-x86_64-gcc-ubuntu/llvm-project/compiler-rt/lib/builtins/fp_trunc.h:115:33: error: call to undeclared function 'SRC_REP_C'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
  115 |   const src_rep_t srcSignMask = SRC_REP_C(1) << (srcBits - 1);
      |                                 ^
/home/buildbot/buildbot-root/llvm-clang-x86_64-gcc-ubuntu/llvm-project/compiler-rt/lib/builtins/fp_trunc.h:115:50: error: use of undeclared identifier 'srcBits'; did you mean 'dstBits'?
  115 |   const src_rep_t srcSignMask = SRC_REP_C(1) << (srcBits - 1);
      |                                                  ^~~~~~~
      |                                                  dstBits
/home/buildbot/buildbot-root/llvm-clang-x86_64-gcc-ubuntu/llvm-project/compiler-rt/lib/builtins/fp_trunc.h:101:18: note: 'dstBits' declared here
  101 | static const int dstBits = sizeof(dst_t) * CHAR_BIT;
      |                  ^
/home/buildbot/buildbot-root/llvm-clang-x86_64-gcc-ubuntu/llvm-project/compiler-rt/lib/builtins/fp_trunc.h:116:32: error: use of undeclared identifier 'srcBits'; did you mean 'dstBits'?

phoebewang added a commit to phoebewang/llvm-project that referenced this pull request Sep 18, 2024
This reverts commit ababfee78714313a0cad87591b819f0944b90d09.
@llvm-ci
Copy link
Collaborator

llvm-ci commented Sep 18, 2024

LLVM Buildbot has detected a new failure on builder clang-x86_64-linux-abi-test running on sie-linux-worker2 while building compiler-rt,llvm at step 6 "build-unified-tree".

Full details are available at: https://lab.llvm.org/buildbot/#/builders/8/builds/4662

Here is the relevant piece of the build log for the reference
Step 6 (build-unified-tree) failure: build (failure)
...
2.092 [4/10/159] Building C object CMakeFiles/clang_rt.builtins-x86_64.dir/floatuntixf.c.o
2.101 [3/10/160] Building C object CMakeFiles/clang_rt.builtins-x86_64.dir/x86_64/floatdixf.c.o
2.124 [2/10/161] Building C object CMakeFiles/clang_rt.builtins-x86_64.dir/fixunsxfti.c.o
2.125 [1/10/162] Building C object CMakeFiles/clang_rt.builtins-x86_64.dir/mulxc3.c.o
2.131 [1/9/163] Building C object CMakeFiles/clang_rt.builtins-x86_64.dir/powixf2.c.o
2.173 [1/8/164] Building C object CMakeFiles/clang_rt.builtins-x86_64.dir/truncdfbf2.c.o
2.173 [1/7/165] Building C object clang_rt.crtbegin.o
2.197 [1/6/166] Building ASM object CMakeFiles/clang_rt.builtins-x86_64.dir/x86_64/floatundixf.S.o
2.198 [1/5/167] Building C object CMakeFiles/clang_rt.builtins-x86_64.dir/extendbfsf2.c.o
2.201 [1/4/168] Building C object CMakeFiles/clang_rt.builtins-x86_64.dir/truncxfbf2.c.o
FAILED: CMakeFiles/clang_rt.builtins-x86_64.dir/truncxfbf2.c.o 
/home/buildbot/buildbot-root/abi-test/build/./bin/clang --target=x86_64-unknown-linux-gnu -DVISIBILITY_HIDDEN  -O3 -DNDEBUG -m64 -fno-lto -std=c11 -fPIC -fno-builtin -fvisibility=hidden -fomit-frame-pointer -DCOMPILER_RT_HAS_FLOAT16 -MD -MT CMakeFiles/clang_rt.builtins-x86_64.dir/truncxfbf2.c.o -MF CMakeFiles/clang_rt.builtins-x86_64.dir/truncxfbf2.c.o.d -o CMakeFiles/clang_rt.builtins-x86_64.dir/truncxfbf2.c.o -c /home/buildbot/buildbot-root/abi-test/llvm/compiler-rt/lib/builtins/truncxfbf2.c
In file included from /home/buildbot/buildbot-root/abi-test/llvm/compiler-rt/lib/builtins/truncxfbf2.c:11:
In file included from /home/buildbot/buildbot-root/abi-test/llvm/compiler-rt/lib/builtins/fp_trunc_impl.inc:39:
/home/buildbot/buildbot-root/abi-test/llvm/compiler-rt/lib/builtins/fp_trunc.h:49:2: error: Source should be double precision or quad precision!
   49 | #error Source should be double precision or quad precision!
      |  ^
/home/buildbot/buildbot-root/abi-test/llvm/compiler-rt/lib/builtins/fp_trunc.h:114:15: error: unknown type name 'src_rep_t'; did you mean 'dst_rep_t'?
  114 | static inline src_rep_t extract_sign_from_src(src_rep_t x) {
      |               ^~~~~~~~~
      |               dst_rep_t
/home/buildbot/buildbot-root/abi-test/llvm/compiler-rt/lib/builtins/fp_trunc.h:99:18: note: 'dst_rep_t' declared here
   99 | typedef uint16_t dst_rep_t;
      |                  ^
/home/buildbot/buildbot-root/abi-test/llvm/compiler-rt/lib/builtins/fp_trunc.h:114:47: error: unknown type name 'src_rep_t'; did you mean 'dst_rep_t'?
  114 | static inline src_rep_t extract_sign_from_src(src_rep_t x) {
      |                                               ^~~~~~~~~
      |                                               dst_rep_t
/home/buildbot/buildbot-root/abi-test/llvm/compiler-rt/lib/builtins/fp_trunc.h:99:18: note: 'dst_rep_t' declared here
   99 | typedef uint16_t dst_rep_t;
      |                  ^
/home/buildbot/buildbot-root/abi-test/llvm/compiler-rt/lib/builtins/fp_trunc.h:115:9: error: unknown type name 'src_rep_t'; did you mean 'dst_rep_t'?
  115 |   const src_rep_t srcSignMask = SRC_REP_C(1) << (srcBits - 1);
      |         ^~~~~~~~~
      |         dst_rep_t
/home/buildbot/buildbot-root/abi-test/llvm/compiler-rt/lib/builtins/fp_trunc.h:99:18: note: 'dst_rep_t' declared here
   99 | typedef uint16_t dst_rep_t;
      |                  ^
/home/buildbot/buildbot-root/abi-test/llvm/compiler-rt/lib/builtins/fp_trunc.h:115:33: error: call to undeclared function 'SRC_REP_C'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
  115 |   const src_rep_t srcSignMask = SRC_REP_C(1) << (srcBits - 1);
      |                                 ^
/home/buildbot/buildbot-root/abi-test/llvm/compiler-rt/lib/builtins/fp_trunc.h:115:50: error: use of undeclared identifier 'srcBits'; did you mean 'dstBits'?
  115 |   const src_rep_t srcSignMask = SRC_REP_C(1) << (srcBits - 1);
      |                                                  ^~~~~~~
      |                                                  dstBits
/home/buildbot/buildbot-root/abi-test/llvm/compiler-rt/lib/builtins/fp_trunc.h:101:18: note: 'dstBits' declared here
  101 | static const int dstBits = sizeof(dst_t) * CHAR_BIT;
      |                  ^
/home/buildbot/buildbot-root/abi-test/llvm/compiler-rt/lib/builtins/fp_trunc.h:116:32: error: use of undeclared identifier 'srcBits'; did you mean 'dstBits'?

@llvm-ci
Copy link
Collaborator

llvm-ci commented Sep 18, 2024

LLVM Buildbot has detected a new failure on builder openmp-offload-libc-amdgpu-runtime running on omp-vega20-1 while building compiler-rt,llvm at step 5 "compile-openmp".

Full details are available at: https://lab.llvm.org/buildbot/#/builders/73/builds/5720

Here is the relevant piece of the build log for the reference
Step 5 (compile-openmp) failure: build (failure)
...
0.249 [142/34/143] Building C object CMakeFiles/clang_rt.builtins-x86_64.dir/addvsi3.c.o
0.250 [141/34/144] Building C object CMakeFiles/clang_rt.builtins-x86_64.dir/ashlti3.c.o
0.251 [140/34/145] Building C object CMakeFiles/clang_rt.builtins-x86_64.dir/ashrdi3.c.o
0.252 [139/34/146] Building ASM object CMakeFiles/clang_rt.builtins-i386.dir/i386/floatdixf.S.o
0.252 [138/34/147] Building ASM object CMakeFiles/clang_rt.builtins-i386.dir/i386/floatundixf.S.o
0.252 [137/34/148] Building C object CMakeFiles/clang_rt.builtins-x86_64.dir/addvti3.c.o
0.252 [136/34/149] Building C object CMakeFiles/clang_rt.builtins-x86_64.dir/ashrti3.c.o
0.257 [135/34/150] Building C object CMakeFiles/clang_rt.builtins-x86_64.dir/bswapsi2.c.o
0.258 [134/34/151] Building C object CMakeFiles/clang_rt.builtins-i386.dir/mulxc3.c.o
0.258 [133/34/152] Building C object CMakeFiles/clang_rt.builtins-i386.dir/truncxfbf2.c.o
FAILED: CMakeFiles/clang_rt.builtins-i386.dir/truncxfbf2.c.o 
/home/ompworker/bbot/openmp-offload-libc-amdgpu-runtime/llvm.build/./bin/clang --target=x86_64-unknown-linux-gnu -DVISIBILITY_HIDDEN  -O3 -DNDEBUG -m32 -fno-lto -std=c11 -fPIC -fno-builtin -fvisibility=hidden -fomit-frame-pointer -DCOMPILER_RT_HAS_FLOAT16 -MD -MT CMakeFiles/clang_rt.builtins-i386.dir/truncxfbf2.c.o -MF CMakeFiles/clang_rt.builtins-i386.dir/truncxfbf2.c.o.d -o CMakeFiles/clang_rt.builtins-i386.dir/truncxfbf2.c.o -c /home/ompworker/bbot/openmp-offload-libc-amdgpu-runtime/llvm.src/compiler-rt/lib/builtins/truncxfbf2.c
In file included from /home/ompworker/bbot/openmp-offload-libc-amdgpu-runtime/llvm.src/compiler-rt/lib/builtins/truncxfbf2.c:11:
In file included from /home/ompworker/bbot/openmp-offload-libc-amdgpu-runtime/llvm.src/compiler-rt/lib/builtins/fp_trunc_impl.inc:39:
/home/ompworker/bbot/openmp-offload-libc-amdgpu-runtime/llvm.src/compiler-rt/lib/builtins/fp_trunc.h:49:2: error: Source should be double precision or quad precision!
   49 | #error Source should be double precision or quad precision!
      |  ^
/home/ompworker/bbot/openmp-offload-libc-amdgpu-runtime/llvm.src/compiler-rt/lib/builtins/fp_trunc.h:114:15: error: unknown type name 'src_rep_t'; did you mean 'dst_rep_t'?
  114 | static inline src_rep_t extract_sign_from_src(src_rep_t x) {
      |               ^~~~~~~~~
      |               dst_rep_t
/home/ompworker/bbot/openmp-offload-libc-amdgpu-runtime/llvm.src/compiler-rt/lib/builtins/fp_trunc.h:99:18: note: 'dst_rep_t' declared here
   99 | typedef uint16_t dst_rep_t;
      |                  ^
/home/ompworker/bbot/openmp-offload-libc-amdgpu-runtime/llvm.src/compiler-rt/lib/builtins/fp_trunc.h:114:47: error: unknown type name 'src_rep_t'; did you mean 'dst_rep_t'?
  114 | static inline src_rep_t extract_sign_from_src(src_rep_t x) {
      |                                               ^~~~~~~~~
      |                                               dst_rep_t
/home/ompworker/bbot/openmp-offload-libc-amdgpu-runtime/llvm.src/compiler-rt/lib/builtins/fp_trunc.h:99:18: note: 'dst_rep_t' declared here
   99 | typedef uint16_t dst_rep_t;
      |                  ^
/home/ompworker/bbot/openmp-offload-libc-amdgpu-runtime/llvm.src/compiler-rt/lib/builtins/fp_trunc.h:115:9: error: unknown type name 'src_rep_t'; did you mean 'dst_rep_t'?
  115 |   const src_rep_t srcSignMask = SRC_REP_C(1) << (srcBits - 1);
      |         ^~~~~~~~~
      |         dst_rep_t
/home/ompworker/bbot/openmp-offload-libc-amdgpu-runtime/llvm.src/compiler-rt/lib/builtins/fp_trunc.h:99:18: note: 'dst_rep_t' declared here
   99 | typedef uint16_t dst_rep_t;
      |                  ^
/home/ompworker/bbot/openmp-offload-libc-amdgpu-runtime/llvm.src/compiler-rt/lib/builtins/fp_trunc.h:115:33: error: call to undeclared function 'SRC_REP_C'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
  115 |   const src_rep_t srcSignMask = SRC_REP_C(1) << (srcBits - 1);
      |                                 ^
/home/ompworker/bbot/openmp-offload-libc-amdgpu-runtime/llvm.src/compiler-rt/lib/builtins/fp_trunc.h:115:50: error: use of undeclared identifier 'srcBits'; did you mean 'dstBits'?
  115 |   const src_rep_t srcSignMask = SRC_REP_C(1) << (srcBits - 1);
      |                                                  ^~~~~~~
      |                                                  dstBits
/home/ompworker/bbot/openmp-offload-libc-amdgpu-runtime/llvm.src/compiler-rt/lib/builtins/fp_trunc.h:101:18: note: 'dstBits' declared here
  101 | static const int dstBits = sizeof(dst_t) * CHAR_BIT;
      |                  ^
/home/ompworker/bbot/openmp-offload-libc-amdgpu-runtime/llvm.src/compiler-rt/lib/builtins/fp_trunc.h:116:32: error: use of undeclared identifier 'srcBits'; did you mean 'dstBits'?

@llvm-ci
Copy link
Collaborator

llvm-ci commented Sep 18, 2024

LLVM Buildbot has detected a new failure on builder fuchsia-x86_64-linux running on fuchsia-debian-64-us-central1-a-1 while building compiler-rt,llvm at step 4 "annotate".

Full details are available at: https://lab.llvm.org/buildbot/#/builders/11/builds/5213

Here is the relevant piece of the build log for the reference
Step 4 (annotate) failure: 'python ../llvm-zorg/zorg/buildbot/builders/annotated/fuchsia-linux.py ...' (failure)
...
[141/166] Building C object CMakeFiles/clang_rt.builtins-x86_64.dir/extendxftf2.c.obj
[142/166] Building C object CMakeFiles/clang_rt.builtins-x86_64.dir/x86_64/floatdidf.c.obj
[143/166] Building C object CMakeFiles/clang_rt.builtins-x86_64.dir/i386/fp_mode.c.obj
[144/166] Building C object CMakeFiles/clang_rt.builtins-x86_64.dir/x86_64/floatdisf.c.obj
[145/166] Building C object CMakeFiles/clang_rt.builtins-x86_64.dir/fixunsxfdi.c.obj
[146/166] Building C object CMakeFiles/clang_rt.builtins-x86_64.dir/trunctfxf2.c.obj
[147/166] Building C object CMakeFiles/clang_rt.builtins-x86_64.dir/x86_64/floatdixf.c.obj
[148/166] Building C object CMakeFiles/clang_rt.builtins-x86_64.dir/fixunsxfsi.c.obj
[149/166] Building C object CMakeFiles/clang_rt.builtins-x86_64.dir/fixxfdi.c.obj
[150/166] Building C object CMakeFiles/clang_rt.builtins-x86_64.dir/truncxfbf2.c.obj
FAILED: CMakeFiles/clang_rt.builtins-x86_64.dir/truncxfbf2.c.obj 
/var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-3jb98ptq/bin/clang --target=x86_64-unknown-fuchsia --sysroot=/usr/local/fuchsia/sdk/arch/x64/sysroot -DVISIBILITY_HIDDEN  --target=x86_64-unknown-fuchsia -I/usr/local/fuchsia/sdk/pkg/sync/include -I/usr/local/fuchsia/sdk/pkg/fdio/include -O2 -g -DNDEBUG -fno-lto -std=c11 -fPIC -fno-builtin -fvisibility=hidden -fomit-frame-pointer -DCOMPILER_RT_HAS_FLOAT16 -MD -MT CMakeFiles/clang_rt.builtins-x86_64.dir/truncxfbf2.c.obj -MF CMakeFiles/clang_rt.builtins-x86_64.dir/truncxfbf2.c.obj.d -o CMakeFiles/clang_rt.builtins-x86_64.dir/truncxfbf2.c.obj -c /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/compiler-rt/lib/builtins/truncxfbf2.c
In file included from /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/compiler-rt/lib/builtins/truncxfbf2.c:11:
In file included from /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/compiler-rt/lib/builtins/fp_trunc_impl.inc:39:
/var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/compiler-rt/lib/builtins/fp_trunc.h:49:2: error: Source should be double precision or quad precision!
   49 | #error Source should be double precision or quad precision!
      |  ^
/var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/compiler-rt/lib/builtins/fp_trunc.h:114:15: error: unknown type name 'src_rep_t'; did you mean 'dst_rep_t'?
  114 | static inline src_rep_t extract_sign_from_src(src_rep_t x) {
      |               ^~~~~~~~~
      |               dst_rep_t
/var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/compiler-rt/lib/builtins/fp_trunc.h:99:18: note: 'dst_rep_t' declared here
   99 | typedef uint16_t dst_rep_t;
      |                  ^
/var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/compiler-rt/lib/builtins/fp_trunc.h:114:47: error: unknown type name 'src_rep_t'; did you mean 'dst_rep_t'?
  114 | static inline src_rep_t extract_sign_from_src(src_rep_t x) {
      |                                               ^~~~~~~~~
      |                                               dst_rep_t
/var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/compiler-rt/lib/builtins/fp_trunc.h:99:18: note: 'dst_rep_t' declared here
   99 | typedef uint16_t dst_rep_t;
      |                  ^
/var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/compiler-rt/lib/builtins/fp_trunc.h:115:9: error: unknown type name 'src_rep_t'; did you mean 'dst_rep_t'?
  115 |   const src_rep_t srcSignMask = SRC_REP_C(1) << (srcBits - 1);
      |         ^~~~~~~~~
      |         dst_rep_t
/var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/compiler-rt/lib/builtins/fp_trunc.h:99:18: note: 'dst_rep_t' declared here
   99 | typedef uint16_t dst_rep_t;
      |                  ^
/var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/compiler-rt/lib/builtins/fp_trunc.h:115:33: error: call to undeclared function 'SRC_REP_C'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
  115 |   const src_rep_t srcSignMask = SRC_REP_C(1) << (srcBits - 1);
      |                                 ^
/var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/compiler-rt/lib/builtins/fp_trunc.h:115:50: error: use of undeclared identifier 'srcBits'; did you mean 'dstBits'?
  115 |   const src_rep_t srcSignMask = SRC_REP_C(1) << (srcBits - 1);
      |                                                  ^~~~~~~
      |                                                  dstBits
/var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/compiler-rt/lib/builtins/fp_trunc.h:101:18: note: 'dstBits' declared here
  101 | static const int dstBits = sizeof(dst_t) * CHAR_BIT;
      |                  ^
/var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/compiler-rt/lib/builtins/fp_trunc.h:116:32: error: use of undeclared identifier 'srcBits'; did you mean 'dstBits'?
Step 6 (build) failure: build (failure)
...
[141/166] Building C object CMakeFiles/clang_rt.builtins-x86_64.dir/extendxftf2.c.obj
[142/166] Building C object CMakeFiles/clang_rt.builtins-x86_64.dir/x86_64/floatdidf.c.obj
[143/166] Building C object CMakeFiles/clang_rt.builtins-x86_64.dir/i386/fp_mode.c.obj
[144/166] Building C object CMakeFiles/clang_rt.builtins-x86_64.dir/x86_64/floatdisf.c.obj
[145/166] Building C object CMakeFiles/clang_rt.builtins-x86_64.dir/fixunsxfdi.c.obj
[146/166] Building C object CMakeFiles/clang_rt.builtins-x86_64.dir/trunctfxf2.c.obj
[147/166] Building C object CMakeFiles/clang_rt.builtins-x86_64.dir/x86_64/floatdixf.c.obj
[148/166] Building C object CMakeFiles/clang_rt.builtins-x86_64.dir/fixunsxfsi.c.obj
[149/166] Building C object CMakeFiles/clang_rt.builtins-x86_64.dir/fixxfdi.c.obj
[150/166] Building C object CMakeFiles/clang_rt.builtins-x86_64.dir/truncxfbf2.c.obj
FAILED: CMakeFiles/clang_rt.builtins-x86_64.dir/truncxfbf2.c.obj 
/var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-3jb98ptq/bin/clang --target=x86_64-unknown-fuchsia --sysroot=/usr/local/fuchsia/sdk/arch/x64/sysroot -DVISIBILITY_HIDDEN  --target=x86_64-unknown-fuchsia -I/usr/local/fuchsia/sdk/pkg/sync/include -I/usr/local/fuchsia/sdk/pkg/fdio/include -O2 -g -DNDEBUG -fno-lto -std=c11 -fPIC -fno-builtin -fvisibility=hidden -fomit-frame-pointer -DCOMPILER_RT_HAS_FLOAT16 -MD -MT CMakeFiles/clang_rt.builtins-x86_64.dir/truncxfbf2.c.obj -MF CMakeFiles/clang_rt.builtins-x86_64.dir/truncxfbf2.c.obj.d -o CMakeFiles/clang_rt.builtins-x86_64.dir/truncxfbf2.c.obj -c /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/compiler-rt/lib/builtins/truncxfbf2.c
In file included from /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/compiler-rt/lib/builtins/truncxfbf2.c:11:
In file included from /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/compiler-rt/lib/builtins/fp_trunc_impl.inc:39:
/var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/compiler-rt/lib/builtins/fp_trunc.h:49:2: error: Source should be double precision or quad precision!
   49 | #error Source should be double precision or quad precision!
      |  ^
/var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/compiler-rt/lib/builtins/fp_trunc.h:114:15: error: unknown type name 'src_rep_t'; did you mean 'dst_rep_t'?
  114 | static inline src_rep_t extract_sign_from_src(src_rep_t x) {
      |               ^~~~~~~~~
      |               dst_rep_t
/var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/compiler-rt/lib/builtins/fp_trunc.h:99:18: note: 'dst_rep_t' declared here
   99 | typedef uint16_t dst_rep_t;
      |                  ^
/var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/compiler-rt/lib/builtins/fp_trunc.h:114:47: error: unknown type name 'src_rep_t'; did you mean 'dst_rep_t'?
  114 | static inline src_rep_t extract_sign_from_src(src_rep_t x) {
      |                                               ^~~~~~~~~
      |                                               dst_rep_t
/var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/compiler-rt/lib/builtins/fp_trunc.h:99:18: note: 'dst_rep_t' declared here
   99 | typedef uint16_t dst_rep_t;
      |                  ^
/var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/compiler-rt/lib/builtins/fp_trunc.h:115:9: error: unknown type name 'src_rep_t'; did you mean 'dst_rep_t'?
  115 |   const src_rep_t srcSignMask = SRC_REP_C(1) << (srcBits - 1);
      |         ^~~~~~~~~
      |         dst_rep_t
/var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/compiler-rt/lib/builtins/fp_trunc.h:99:18: note: 'dst_rep_t' declared here
   99 | typedef uint16_t dst_rep_t;
      |                  ^
/var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/compiler-rt/lib/builtins/fp_trunc.h:115:33: error: call to undeclared function 'SRC_REP_C'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
  115 |   const src_rep_t srcSignMask = SRC_REP_C(1) << (srcBits - 1);
      |                                 ^
/var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/compiler-rt/lib/builtins/fp_trunc.h:115:50: error: use of undeclared identifier 'srcBits'; did you mean 'dstBits'?
  115 |   const src_rep_t srcSignMask = SRC_REP_C(1) << (srcBits - 1);
      |                                                  ^~~~~~~
      |                                                  dstBits
/var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/compiler-rt/lib/builtins/fp_trunc.h:101:18: note: 'dstBits' declared here
  101 | static const int dstBits = sizeof(dst_t) * CHAR_BIT;
      |                  ^
/var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/compiler-rt/lib/builtins/fp_trunc.h:116:32: error: use of undeclared identifier 'srcBits'; did you mean 'dstBits'?

@llvm-ci
Copy link
Collaborator

llvm-ci commented Sep 18, 2024

LLVM Buildbot has detected a new failure on builder sanitizer-x86_64-linux-fuzzer running on sanitizer-buildbot5 while building compiler-rt,llvm at step 2 "annotate".

Full details are available at: https://lab.llvm.org/buildbot/#/builders/32/builds/5156

Here is the relevant piece of the build log for the reference
Step 2 (annotate) failure: 'python ../sanitizer_buildbot/sanitizers/zorg/buildbot/builders/sanitizers/buildbot_selector.py' (failure)
...
-- For x86_64 builtins preferring x86_64/floatdidf.c to floatdidf.c
-- For x86_64 builtins preferring x86_64/floatdisf.c to floatdisf.c
-- For x86_64 builtins preferring x86_64/floatundidf.S to floatundidf.c
-- For x86_64 builtins preferring x86_64/floatundisf.S to floatundisf.c
-- For x86_64 builtins preferring x86_64/floatdixf.c to floatdixf.c
-- For x86_64 builtins preferring x86_64/floatundixf.S to floatundixf.c
-- Configuring done (0.3s)
-- Generating done (0.0s)
-- Build files have been written to: /home/b/sanitizer-x86_64-linux-fuzzer/build/llvm_build0/runtimes/builtins-bins
[1/4] Building C object CMakeFiles/clang_rt.builtins-i386.dir/truncxfbf2.c.o
FAILED: CMakeFiles/clang_rt.builtins-i386.dir/truncxfbf2.c.o 
/home/b/sanitizer-x86_64-linux-fuzzer/build/llvm_build0/./bin/clang --target=x86_64-unknown-linux-gnu -DVISIBILITY_HIDDEN  -O3 -DNDEBUG -m32 -fno-lto -std=c11 -fPIC -fno-builtin -fvisibility=hidden -fomit-frame-pointer -DCOMPILER_RT_HAS_FLOAT16 -MD -MT CMakeFiles/clang_rt.builtins-i386.dir/truncxfbf2.c.o -MF CMakeFiles/clang_rt.builtins-i386.dir/truncxfbf2.c.o.d -o CMakeFiles/clang_rt.builtins-i386.dir/truncxfbf2.c.o -c /home/b/sanitizer-x86_64-linux-fuzzer/build/llvm-project/compiler-rt/lib/builtins/truncxfbf2.c
In file included from /home/b/sanitizer-x86_64-linux-fuzzer/build/llvm-project/compiler-rt/lib/builtins/truncxfbf2.c:11:
In file included from /home/b/sanitizer-x86_64-linux-fuzzer/build/llvm-project/compiler-rt/lib/builtins/fp_trunc_impl.inc:39:
/home/b/sanitizer-x86_64-linux-fuzzer/build/llvm-project/compiler-rt/lib/builtins/fp_trunc.h:49:2: error: Source should be double precision or quad precision!
   49 | #error Source should be double precision or quad precision!
      |  ^
/home/b/sanitizer-x86_64-linux-fuzzer/build/llvm-project/compiler-rt/lib/builtins/fp_trunc.h:114:15: error: unknown type name 'src_rep_t'; did you mean 'dst_rep_t'?
  114 | static inline src_rep_t extract_sign_from_src(src_rep_t x) {
      |               ^~~~~~~~~
      |               dst_rep_t
/home/b/sanitizer-x86_64-linux-fuzzer/build/llvm-project/compiler-rt/lib/builtins/fp_trunc.h:99:18: note: 'dst_rep_t' declared here
   99 | typedef uint16_t dst_rep_t;
      |                  ^
/home/b/sanitizer-x86_64-linux-fuzzer/build/llvm-project/compiler-rt/lib/builtins/fp_trunc.h:114:47: error: unknown type name 'src_rep_t'; did you mean 'dst_rep_t'?
  114 | static inline src_rep_t extract_sign_from_src(src_rep_t x) {
      |                                               ^~~~~~~~~
      |                                               dst_rep_t
/home/b/sanitizer-x86_64-linux-fuzzer/build/llvm-project/compiler-rt/lib/builtins/fp_trunc.h:99:18: note: 'dst_rep_t' declared here
   99 | typedef uint16_t dst_rep_t;
      |                  ^
/home/b/sanitizer-x86_64-linux-fuzzer/build/llvm-project/compiler-rt/lib/builtins/fp_trunc.h:115:9: error: unknown type name 'src_rep_t'; did you mean 'dst_rep_t'?
  115 |   const src_rep_t srcSignMask = SRC_REP_C(1) << (srcBits - 1);
      |         ^~~~~~~~~
      |         dst_rep_t
/home/b/sanitizer-x86_64-linux-fuzzer/build/llvm-project/compiler-rt/lib/builtins/fp_trunc.h:99:18: note: 'dst_rep_t' declared here
   99 | typedef uint16_t dst_rep_t;
      |                  ^
/home/b/sanitizer-x86_64-linux-fuzzer/build/llvm-project/compiler-rt/lib/builtins/fp_trunc.h:115:33: error: call to undeclared function 'SRC_REP_C'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
  115 |   const src_rep_t srcSignMask = SRC_REP_C(1) << (srcBits - 1);
      |                                 ^
/home/b/sanitizer-x86_64-linux-fuzzer/build/llvm-project/compiler-rt/lib/builtins/fp_trunc.h:115:50: error: use of undeclared identifier 'srcBits'; did you mean 'dstBits'?
  115 |   const src_rep_t srcSignMask = SRC_REP_C(1) << (srcBits - 1);
      |                                                  ^~~~~~~
      |                                                  dstBits
/home/b/sanitizer-x86_64-linux-fuzzer/build/llvm-project/compiler-rt/lib/builtins/fp_trunc.h:101:18: note: 'dstBits' declared here
  101 | static const int dstBits = sizeof(dst_t) * CHAR_BIT;
      |                  ^
/home/b/sanitizer-x86_64-linux-fuzzer/build/llvm-project/compiler-rt/lib/builtins/fp_trunc.h:116:32: error: use of undeclared identifier 'srcBits'; did you mean 'dstBits'?
Step 7 (stage1 build all) failure: stage1 build all (failure)
...
-- For x86_64 builtins preferring x86_64/floatdidf.c to floatdidf.c
-- For x86_64 builtins preferring x86_64/floatdisf.c to floatdisf.c
-- For x86_64 builtins preferring x86_64/floatundidf.S to floatundidf.c
-- For x86_64 builtins preferring x86_64/floatundisf.S to floatundisf.c
-- For x86_64 builtins preferring x86_64/floatdixf.c to floatdixf.c
-- For x86_64 builtins preferring x86_64/floatundixf.S to floatundixf.c
-- Configuring done (0.3s)
-- Generating done (0.0s)
-- Build files have been written to: /home/b/sanitizer-x86_64-linux-fuzzer/build/llvm_build0/runtimes/builtins-bins
[1/4] Building C object CMakeFiles/clang_rt.builtins-i386.dir/truncxfbf2.c.o
FAILED: CMakeFiles/clang_rt.builtins-i386.dir/truncxfbf2.c.o 
/home/b/sanitizer-x86_64-linux-fuzzer/build/llvm_build0/./bin/clang --target=x86_64-unknown-linux-gnu -DVISIBILITY_HIDDEN  -O3 -DNDEBUG -m32 -fno-lto -std=c11 -fPIC -fno-builtin -fvisibility=hidden -fomit-frame-pointer -DCOMPILER_RT_HAS_FLOAT16 -MD -MT CMakeFiles/clang_rt.builtins-i386.dir/truncxfbf2.c.o -MF CMakeFiles/clang_rt.builtins-i386.dir/truncxfbf2.c.o.d -o CMakeFiles/clang_rt.builtins-i386.dir/truncxfbf2.c.o -c /home/b/sanitizer-x86_64-linux-fuzzer/build/llvm-project/compiler-rt/lib/builtins/truncxfbf2.c
In file included from /home/b/sanitizer-x86_64-linux-fuzzer/build/llvm-project/compiler-rt/lib/builtins/truncxfbf2.c:11:
In file included from /home/b/sanitizer-x86_64-linux-fuzzer/build/llvm-project/compiler-rt/lib/builtins/fp_trunc_impl.inc:39:
/home/b/sanitizer-x86_64-linux-fuzzer/build/llvm-project/compiler-rt/lib/builtins/fp_trunc.h:49:2: error: Source should be double precision or quad precision!
   49 | #error Source should be double precision or quad precision!
      |  ^
/home/b/sanitizer-x86_64-linux-fuzzer/build/llvm-project/compiler-rt/lib/builtins/fp_trunc.h:114:15: error: unknown type name 'src_rep_t'; did you mean 'dst_rep_t'?
  114 | static inline src_rep_t extract_sign_from_src(src_rep_t x) {
      |               ^~~~~~~~~
      |               dst_rep_t
/home/b/sanitizer-x86_64-linux-fuzzer/build/llvm-project/compiler-rt/lib/builtins/fp_trunc.h:99:18: note: 'dst_rep_t' declared here
   99 | typedef uint16_t dst_rep_t;
      |                  ^
/home/b/sanitizer-x86_64-linux-fuzzer/build/llvm-project/compiler-rt/lib/builtins/fp_trunc.h:114:47: error: unknown type name 'src_rep_t'; did you mean 'dst_rep_t'?
  114 | static inline src_rep_t extract_sign_from_src(src_rep_t x) {
      |                                               ^~~~~~~~~
      |                                               dst_rep_t
/home/b/sanitizer-x86_64-linux-fuzzer/build/llvm-project/compiler-rt/lib/builtins/fp_trunc.h:99:18: note: 'dst_rep_t' declared here
   99 | typedef uint16_t dst_rep_t;
      |                  ^
/home/b/sanitizer-x86_64-linux-fuzzer/build/llvm-project/compiler-rt/lib/builtins/fp_trunc.h:115:9: error: unknown type name 'src_rep_t'; did you mean 'dst_rep_t'?
  115 |   const src_rep_t srcSignMask = SRC_REP_C(1) << (srcBits - 1);
      |         ^~~~~~~~~
      |         dst_rep_t
/home/b/sanitizer-x86_64-linux-fuzzer/build/llvm-project/compiler-rt/lib/builtins/fp_trunc.h:99:18: note: 'dst_rep_t' declared here
   99 | typedef uint16_t dst_rep_t;
      |                  ^
/home/b/sanitizer-x86_64-linux-fuzzer/build/llvm-project/compiler-rt/lib/builtins/fp_trunc.h:115:33: error: call to undeclared function 'SRC_REP_C'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
  115 |   const src_rep_t srcSignMask = SRC_REP_C(1) << (srcBits - 1);
      |                                 ^
/home/b/sanitizer-x86_64-linux-fuzzer/build/llvm-project/compiler-rt/lib/builtins/fp_trunc.h:115:50: error: use of undeclared identifier 'srcBits'; did you mean 'dstBits'?
  115 |   const src_rep_t srcSignMask = SRC_REP_C(1) << (srcBits - 1);
      |                                                  ^~~~~~~
      |                                                  dstBits
/home/b/sanitizer-x86_64-linux-fuzzer/build/llvm-project/compiler-rt/lib/builtins/fp_trunc.h:101:18: note: 'dstBits' declared here
  101 | static const int dstBits = sizeof(dst_t) * CHAR_BIT;
      |                  ^
/home/b/sanitizer-x86_64-linux-fuzzer/build/llvm-project/compiler-rt/lib/builtins/fp_trunc.h:116:32: error: use of undeclared identifier 'srcBits'; did you mean 'dstBits'?

@llvm-ci
Copy link
Collaborator

llvm-ci commented Sep 18, 2024

LLVM Buildbot has detected a new failure on builder flang-runtime-cuda-clang running on as-builder-7 while building compiler-rt,llvm at step 7 "build-clang-default".

Full details are available at: https://lab.llvm.org/buildbot/#/builders/7/builds/4512

Here is the relevant piece of the build log for the reference
Step 7 (build-clang-default) failure: cmake (failure)
...
0.214 [1/41/131] Building C object CMakeFiles/clang_rt.builtins-x86_64.dir/divsf3.c.o
0.215 [1/40/132] Building ASM object CMakeFiles/clang_rt.builtins-x86_64.dir/x86_64/floatundisf.S.o
0.216 [1/39/133] Building C object CMakeFiles/clang_rt.builtins-x86_64.dir/udivmodti4.c.o
0.217 [1/38/134] Building C object CMakeFiles/clang_rt.builtins-x86_64.dir/fixunstfti.c.o
0.219 [1/37/135] Building C object CMakeFiles/clang_rt.builtins-x86_64.dir/powixf2.c.o
0.220 [1/36/136] Building ASM object CMakeFiles/clang_rt.builtins-x86_64.dir/x86_64/floatundixf.S.o
0.222 [1/35/137] Building C object CMakeFiles/clang_rt.builtins-x86_64.dir/fixtfsi.c.o
0.228 [1/34/138] Building C object CMakeFiles/clang_rt.builtins-x86_64.dir/divxc3.c.o
0.229 [1/33/139] Building C object CMakeFiles/clang_rt.builtins-x86_64.dir/fixunsxfsi.c.o
0.232 [1/32/140] Building C object CMakeFiles/clang_rt.builtins-x86_64.dir/truncxfbf2.c.o
FAILED: CMakeFiles/clang_rt.builtins-x86_64.dir/truncxfbf2.c.o 
/home/buildbot/worker/as-builder-7/ramdisk/flang-runtime-cuda-clang/build/clang/./bin/clang --target=x86_64-unknown-linux-gnu -DVISIBILITY_HIDDEN  -O3 -DNDEBUG -m64 -fno-lto -std=c11 -fPIC -fno-builtin -fvisibility=hidden -fomit-frame-pointer -DCOMPILER_RT_HAS_FLOAT16 -MD -MT CMakeFiles/clang_rt.builtins-x86_64.dir/truncxfbf2.c.o -MF CMakeFiles/clang_rt.builtins-x86_64.dir/truncxfbf2.c.o.d -o CMakeFiles/clang_rt.builtins-x86_64.dir/truncxfbf2.c.o -c /home/buildbot/worker/as-builder-7/ramdisk/flang-runtime-cuda-clang/llvm-project/compiler-rt/lib/builtins/truncxfbf2.c
In file included from /home/buildbot/worker/as-builder-7/ramdisk/flang-runtime-cuda-clang/llvm-project/compiler-rt/lib/builtins/truncxfbf2.c:11:
In file included from /home/buildbot/worker/as-builder-7/ramdisk/flang-runtime-cuda-clang/llvm-project/compiler-rt/lib/builtins/fp_trunc_impl.inc:39:
/home/buildbot/worker/as-builder-7/ramdisk/flang-runtime-cuda-clang/llvm-project/compiler-rt/lib/builtins/fp_trunc.h:49:2: error: Source should be double precision or quad precision!
   49 | #error Source should be double precision or quad precision!
      |  ^
/home/buildbot/worker/as-builder-7/ramdisk/flang-runtime-cuda-clang/llvm-project/compiler-rt/lib/builtins/fp_trunc.h:114:15: error: unknown type name 'src_rep_t'; did you mean 'dst_rep_t'?
  114 | static inline src_rep_t extract_sign_from_src(src_rep_t x) {
      |               ^~~~~~~~~
      |               dst_rep_t
/home/buildbot/worker/as-builder-7/ramdisk/flang-runtime-cuda-clang/llvm-project/compiler-rt/lib/builtins/fp_trunc.h:99:18: note: 'dst_rep_t' declared here
   99 | typedef uint16_t dst_rep_t;
      |                  ^
/home/buildbot/worker/as-builder-7/ramdisk/flang-runtime-cuda-clang/llvm-project/compiler-rt/lib/builtins/fp_trunc.h:114:47: error: unknown type name 'src_rep_t'; did you mean 'dst_rep_t'?
  114 | static inline src_rep_t extract_sign_from_src(src_rep_t x) {
      |                                               ^~~~~~~~~
      |                                               dst_rep_t
/home/buildbot/worker/as-builder-7/ramdisk/flang-runtime-cuda-clang/llvm-project/compiler-rt/lib/builtins/fp_trunc.h:99:18: note: 'dst_rep_t' declared here
   99 | typedef uint16_t dst_rep_t;
      |                  ^
/home/buildbot/worker/as-builder-7/ramdisk/flang-runtime-cuda-clang/llvm-project/compiler-rt/lib/builtins/fp_trunc.h:115:9: error: unknown type name 'src_rep_t'; did you mean 'dst_rep_t'?
  115 |   const src_rep_t srcSignMask = SRC_REP_C(1) << (srcBits - 1);
      |         ^~~~~~~~~
      |         dst_rep_t
/home/buildbot/worker/as-builder-7/ramdisk/flang-runtime-cuda-clang/llvm-project/compiler-rt/lib/builtins/fp_trunc.h:99:18: note: 'dst_rep_t' declared here
   99 | typedef uint16_t dst_rep_t;
      |                  ^
/home/buildbot/worker/as-builder-7/ramdisk/flang-runtime-cuda-clang/llvm-project/compiler-rt/lib/builtins/fp_trunc.h:115:33: error: call to undeclared function 'SRC_REP_C'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
  115 |   const src_rep_t srcSignMask = SRC_REP_C(1) << (srcBits - 1);
      |                                 ^
/home/buildbot/worker/as-builder-7/ramdisk/flang-runtime-cuda-clang/llvm-project/compiler-rt/lib/builtins/fp_trunc.h:115:50: error: use of undeclared identifier 'srcBits'; did you mean 'dstBits'?
  115 |   const src_rep_t srcSignMask = SRC_REP_C(1) << (srcBits - 1);
      |                                                  ^~~~~~~
      |                                                  dstBits
/home/buildbot/worker/as-builder-7/ramdisk/flang-runtime-cuda-clang/llvm-project/compiler-rt/lib/builtins/fp_trunc.h:101:18: note: 'dstBits' declared here
  101 | static const int dstBits = sizeof(dst_t) * CHAR_BIT;
      |                  ^
/home/buildbot/worker/as-builder-7/ramdisk/flang-runtime-cuda-clang/llvm-project/compiler-rt/lib/builtins/fp_trunc.h:116:32: error: use of undeclared identifier 'srcBits'; did you mean 'dstBits'?

@llvm-ci
Copy link
Collaborator

llvm-ci commented Sep 18, 2024

LLVM Buildbot has detected a new failure on builder premerge-monolithic-linux running on premerge-linux-1 while building compiler-rt,llvm at step 6 "build-unified-tree".

Full details are available at: https://lab.llvm.org/buildbot/#/builders/153/builds/9289

Here is the relevant piece of the build log for the reference
Step 6 (build-unified-tree) failure: build (failure)
...
0.361 [118/58/143] Building C object CMakeFiles/clang_rt.builtins-x86_64.dir/adddf3.c.o
0.362 [117/58/144] Building C object CMakeFiles/clang_rt.builtins-x86_64.dir/addvti3.c.o
0.363 [116/58/145] Building C object CMakeFiles/clang_rt.builtins-x86_64.dir/clzdi2.c.o
0.366 [115/58/146] Building C object CMakeFiles/clang_rt.builtins-x86_64.dir/clzti2.c.o
0.366 [114/58/147] Building C object CMakeFiles/clang_rt.builtins-x86_64.dir/cmpti2.c.o
0.367 [113/58/148] Building C object CMakeFiles/clang_rt.builtins-x86_64.dir/comparesf2.c.o
0.368 [112/58/149] Building C object CMakeFiles/clang_rt.builtins-x86_64.dir/ctzsi2.c.o
0.370 [111/58/150] Building C object CMakeFiles/clang_rt.builtins-x86_64.dir/ctzti2.c.o
0.371 [110/58/151] Building C object CMakeFiles/clang_rt.builtins-i386.dir/powixf2.c.o
0.371 [109/58/152] Building C object CMakeFiles/clang_rt.builtins-i386.dir/truncxfbf2.c.o
FAILED: CMakeFiles/clang_rt.builtins-i386.dir/truncxfbf2.c.o 
/build/buildbot/premerge-monolithic-linux/build/./bin/clang --target=x86_64-unknown-linux-gnu -DVISIBILITY_HIDDEN  -O3 -DNDEBUG -m32 -fno-lto -std=c11 -fPIC -fno-builtin -fvisibility=hidden -fomit-frame-pointer -DCOMPILER_RT_HAS_FLOAT16 -MD -MT CMakeFiles/clang_rt.builtins-i386.dir/truncxfbf2.c.o -MF CMakeFiles/clang_rt.builtins-i386.dir/truncxfbf2.c.o.d -o CMakeFiles/clang_rt.builtins-i386.dir/truncxfbf2.c.o -c /build/buildbot/premerge-monolithic-linux/llvm-project/compiler-rt/lib/builtins/truncxfbf2.c
In file included from /build/buildbot/premerge-monolithic-linux/llvm-project/compiler-rt/lib/builtins/truncxfbf2.c:11:
In file included from /build/buildbot/premerge-monolithic-linux/llvm-project/compiler-rt/lib/builtins/fp_trunc_impl.inc:39:
/build/buildbot/premerge-monolithic-linux/llvm-project/compiler-rt/lib/builtins/fp_trunc.h:49:2: error: Source should be double precision or quad precision!
   49 | #error Source should be double precision or quad precision!
      |  ^
/build/buildbot/premerge-monolithic-linux/llvm-project/compiler-rt/lib/builtins/fp_trunc.h:114:15: error: unknown type name 'src_rep_t'; did you mean 'dst_rep_t'?
  114 | static inline src_rep_t extract_sign_from_src(src_rep_t x) {
      |               ^~~~~~~~~
      |               dst_rep_t
/build/buildbot/premerge-monolithic-linux/llvm-project/compiler-rt/lib/builtins/fp_trunc.h:99:18: note: 'dst_rep_t' declared here
   99 | typedef uint16_t dst_rep_t;
      |                  ^
/build/buildbot/premerge-monolithic-linux/llvm-project/compiler-rt/lib/builtins/fp_trunc.h:114:47: error: unknown type name 'src_rep_t'; did you mean 'dst_rep_t'?
  114 | static inline src_rep_t extract_sign_from_src(src_rep_t x) {
      |                                               ^~~~~~~~~
      |                                               dst_rep_t
/build/buildbot/premerge-monolithic-linux/llvm-project/compiler-rt/lib/builtins/fp_trunc.h:99:18: note: 'dst_rep_t' declared here
   99 | typedef uint16_t dst_rep_t;
      |                  ^
/build/buildbot/premerge-monolithic-linux/llvm-project/compiler-rt/lib/builtins/fp_trunc.h:115:9: error: unknown type name 'src_rep_t'; did you mean 'dst_rep_t'?
  115 |   const src_rep_t srcSignMask = SRC_REP_C(1) << (srcBits - 1);
      |         ^~~~~~~~~
      |         dst_rep_t
/build/buildbot/premerge-monolithic-linux/llvm-project/compiler-rt/lib/builtins/fp_trunc.h:99:18: note: 'dst_rep_t' declared here
   99 | typedef uint16_t dst_rep_t;
      |                  ^
/build/buildbot/premerge-monolithic-linux/llvm-project/compiler-rt/lib/builtins/fp_trunc.h:115:33: error: call to undeclared function 'SRC_REP_C'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
  115 |   const src_rep_t srcSignMask = SRC_REP_C(1) << (srcBits - 1);
      |                                 ^
/build/buildbot/premerge-monolithic-linux/llvm-project/compiler-rt/lib/builtins/fp_trunc.h:115:50: error: use of undeclared identifier 'srcBits'; did you mean 'dstBits'?
  115 |   const src_rep_t srcSignMask = SRC_REP_C(1) << (srcBits - 1);
      |                                                  ^~~~~~~
      |                                                  dstBits
/build/buildbot/premerge-monolithic-linux/llvm-project/compiler-rt/lib/builtins/fp_trunc.h:101:18: note: 'dstBits' declared here
  101 | static const int dstBits = sizeof(dst_t) * CHAR_BIT;
      |                  ^
/build/buildbot/premerge-monolithic-linux/llvm-project/compiler-rt/lib/builtins/fp_trunc.h:116:32: error: use of undeclared identifier 'srcBits'; did you mean 'dstBits'?

@llvm-ci
Copy link
Collaborator

llvm-ci commented Sep 18, 2024

LLVM Buildbot has detected a new failure on builder bolt-x86_64-ubuntu-clang running on bolt-worker while building compiler-rt,llvm at step 6 "test-build-clang-bolt-stage2-clang-bolt".

Full details are available at: https://lab.llvm.org/buildbot/#/builders/113/builds/2862

Here is the relevant piece of the build log for the reference
Step 6 (test-build-clang-bolt-stage2-clang-bolt) failure: test (failure)
...
0.234 [164/18/137] Building ASM object CMakeFiles/clang_rt.builtins-i386.dir/i386/floatdixf.S.o
0.235 [163/18/138] Building C object CMakeFiles/clang_rt.builtins-x86_64.dir/absvdi2.c.o
0.235 [162/18/139] Building C object CMakeFiles/clang_rt.builtins-i386.dir/extendbfsf2.c.o
0.236 [161/18/140] Building C object CMakeFiles/clang_rt.builtins-x86_64.dir/apple_versioning.c.o
0.236 [160/18/141] Building C object CMakeFiles/clang_rt.builtins-i386.dir/mulxc3.c.o
0.237 [159/18/142] Building C object CMakeFiles/clang_rt.builtins-x86_64.dir/absvsi2.c.o
0.240 [158/18/143] Building C object CMakeFiles/clang_rt.builtins-x86_64.dir/absvti2.c.o
0.240 [157/18/144] Building C object CMakeFiles/clang_rt.builtins-x86_64.dir/addvdi3.c.o
0.241 [156/18/145] Building C object CMakeFiles/clang_rt.builtins-x86_64.dir/addvsi3.c.o
0.244 [155/18/146] Building C object CMakeFiles/clang_rt.builtins-i386.dir/truncxfbf2.c.o
FAILED: CMakeFiles/clang_rt.builtins-i386.dir/truncxfbf2.c.o 
/home/worker/bolt-worker2/bolt-x86_64-ubuntu-clang/build/./bin/clang --target=x86_64-unknown-linux-gnu -DVISIBILITY_HIDDEN  -O3 -DNDEBUG -m32 -fno-lto -std=c11 -fPIC -fno-builtin -fvisibility=hidden -fomit-frame-pointer -DCOMPILER_RT_HAS_FLOAT16 -MD -MT CMakeFiles/clang_rt.builtins-i386.dir/truncxfbf2.c.o -MF CMakeFiles/clang_rt.builtins-i386.dir/truncxfbf2.c.o.d -o CMakeFiles/clang_rt.builtins-i386.dir/truncxfbf2.c.o -c /home/worker/bolt-worker2/bolt-x86_64-ubuntu-clang/llvm-project/compiler-rt/lib/builtins/truncxfbf2.c
In file included from /home/worker/bolt-worker2/bolt-x86_64-ubuntu-clang/llvm-project/compiler-rt/lib/builtins/truncxfbf2.c:11:
In file included from /home/worker/bolt-worker2/bolt-x86_64-ubuntu-clang/llvm-project/compiler-rt/lib/builtins/fp_trunc_impl.inc:39:
/home/worker/bolt-worker2/bolt-x86_64-ubuntu-clang/llvm-project/compiler-rt/lib/builtins/fp_trunc.h:49:2: error: Source should be double precision or quad precision!
   49 | #error Source should be double precision or quad precision!
      |  ^
/home/worker/bolt-worker2/bolt-x86_64-ubuntu-clang/llvm-project/compiler-rt/lib/builtins/fp_trunc.h:114:15: error: unknown type name 'src_rep_t'; did you mean 'dst_rep_t'?
  114 | static inline src_rep_t extract_sign_from_src(src_rep_t x) {
      |               ^~~~~~~~~
      |               dst_rep_t
/home/worker/bolt-worker2/bolt-x86_64-ubuntu-clang/llvm-project/compiler-rt/lib/builtins/fp_trunc.h:99:18: note: 'dst_rep_t' declared here
   99 | typedef uint16_t dst_rep_t;
      |                  ^
/home/worker/bolt-worker2/bolt-x86_64-ubuntu-clang/llvm-project/compiler-rt/lib/builtins/fp_trunc.h:114:47: error: unknown type name 'src_rep_t'; did you mean 'dst_rep_t'?
  114 | static inline src_rep_t extract_sign_from_src(src_rep_t x) {
      |                                               ^~~~~~~~~
      |                                               dst_rep_t
/home/worker/bolt-worker2/bolt-x86_64-ubuntu-clang/llvm-project/compiler-rt/lib/builtins/fp_trunc.h:99:18: note: 'dst_rep_t' declared here
   99 | typedef uint16_t dst_rep_t;
      |                  ^
/home/worker/bolt-worker2/bolt-x86_64-ubuntu-clang/llvm-project/compiler-rt/lib/builtins/fp_trunc.h:115:9: error: unknown type name 'src_rep_t'; did you mean 'dst_rep_t'?
  115 |   const src_rep_t srcSignMask = SRC_REP_C(1) << (srcBits - 1);
      |         ^~~~~~~~~
      |         dst_rep_t
/home/worker/bolt-worker2/bolt-x86_64-ubuntu-clang/llvm-project/compiler-rt/lib/builtins/fp_trunc.h:99:18: note: 'dst_rep_t' declared here
   99 | typedef uint16_t dst_rep_t;
      |                  ^
/home/worker/bolt-worker2/bolt-x86_64-ubuntu-clang/llvm-project/compiler-rt/lib/builtins/fp_trunc.h:115:33: error: call to undeclared function 'SRC_REP_C'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
  115 |   const src_rep_t srcSignMask = SRC_REP_C(1) << (srcBits - 1);
      |                                 ^
/home/worker/bolt-worker2/bolt-x86_64-ubuntu-clang/llvm-project/compiler-rt/lib/builtins/fp_trunc.h:115:50: error: use of undeclared identifier 'srcBits'; did you mean 'dstBits'?
  115 |   const src_rep_t srcSignMask = SRC_REP_C(1) << (srcBits - 1);
      |                                                  ^~~~~~~
      |                                                  dstBits
/home/worker/bolt-worker2/bolt-x86_64-ubuntu-clang/llvm-project/compiler-rt/lib/builtins/fp_trunc.h:101:18: note: 'dstBits' declared here
  101 | static const int dstBits = sizeof(dst_t) * CHAR_BIT;
      |                  ^
/home/worker/bolt-worker2/bolt-x86_64-ubuntu-clang/llvm-project/compiler-rt/lib/builtins/fp_trunc.h:116:32: error: use of undeclared identifier 'srcBits'; did you mean 'dstBits'?

@llvm-ci
Copy link
Collaborator

llvm-ci commented Sep 18, 2024

LLVM Buildbot has detected a new failure on builder clang-aarch64-sve-vls-2stage running on linaro-g3-01 while building compiler-rt,llvm at step 6 "build stage 1".

Full details are available at: https://lab.llvm.org/buildbot/#/builders/4/builds/2238

Here is the relevant piece of the build log for the reference
Step 6 (build stage 1) failure: 'ninja' (failure)
...
[399/413] Building ASM object CMakeFiles/clang_rt.builtins-aarch64.dir/outline_atomic_helpers.dir/outline_atomic_ldset4_1.S.o
[400/413] Building ASM object CMakeFiles/clang_rt.builtins-aarch64.dir/outline_atomic_helpers.dir/outline_atomic_ldset4_2.S.o
[401/413] Building ASM object CMakeFiles/clang_rt.builtins-aarch64.dir/outline_atomic_helpers.dir/outline_atomic_ldset4_3.S.o
[402/413] Building ASM object CMakeFiles/clang_rt.builtins-aarch64.dir/outline_atomic_helpers.dir/outline_atomic_ldset4_5.S.o
[403/413] Building ASM object CMakeFiles/clang_rt.builtins-aarch64.dir/outline_atomic_helpers.dir/outline_atomic_ldset4_4.S.o
[404/413] Building ASM object CMakeFiles/clang_rt.builtins-aarch64.dir/outline_atomic_helpers.dir/outline_atomic_ldset8_2.S.o
[405/413] Building ASM object CMakeFiles/clang_rt.builtins-aarch64.dir/outline_atomic_helpers.dir/outline_atomic_ldset8_1.S.o
[406/413] Building ASM object CMakeFiles/clang_rt.builtins-aarch64.dir/outline_atomic_helpers.dir/outline_atomic_ldset8_3.S.o
[407/413] Building ASM object CMakeFiles/clang_rt.builtins-aarch64.dir/outline_atomic_helpers.dir/outline_atomic_ldset8_4.S.o
[408/413] Building C object CMakeFiles/clang_rt.builtins-aarch64.dir/truncxfbf2.c.o
FAILED: CMakeFiles/clang_rt.builtins-aarch64.dir/truncxfbf2.c.o 
/home/tcwg-buildbot/worker/clang-aarch64-sve-vls-2stage/stage1/./bin/clang --target=aarch64-unknown-linux-gnu -DHAS_ASM_LSE -DVISIBILITY_HIDDEN  -O3 -DNDEBUG -march=armv8-a -fno-lto -std=c11 -fPIC -fno-builtin -fvisibility=hidden -fomit-frame-pointer -DCOMPILER_RT_HAS_FLOAT16 -MD -MT CMakeFiles/clang_rt.builtins-aarch64.dir/truncxfbf2.c.o -MF CMakeFiles/clang_rt.builtins-aarch64.dir/truncxfbf2.c.o.d -o CMakeFiles/clang_rt.builtins-aarch64.dir/truncxfbf2.c.o -c /home/tcwg-buildbot/worker/clang-aarch64-sve-vls-2stage/llvm/compiler-rt/lib/builtins/truncxfbf2.c
In file included from /home/tcwg-buildbot/worker/clang-aarch64-sve-vls-2stage/llvm/compiler-rt/lib/builtins/truncxfbf2.c:11:
In file included from /home/tcwg-buildbot/worker/clang-aarch64-sve-vls-2stage/llvm/compiler-rt/lib/builtins/fp_trunc_impl.inc:39:
/home/tcwg-buildbot/worker/clang-aarch64-sve-vls-2stage/llvm/compiler-rt/lib/builtins/fp_trunc.h:49:2: error: Source should be double precision or quad precision!
   49 | #error Source should be double precision or quad precision!
      |  ^
/home/tcwg-buildbot/worker/clang-aarch64-sve-vls-2stage/llvm/compiler-rt/lib/builtins/fp_trunc.h:114:15: error: unknown type name 'src_rep_t'; did you mean 'dst_rep_t'?
  114 | static inline src_rep_t extract_sign_from_src(src_rep_t x) {
      |               ^~~~~~~~~
      |               dst_rep_t
/home/tcwg-buildbot/worker/clang-aarch64-sve-vls-2stage/llvm/compiler-rt/lib/builtins/fp_trunc.h:99:18: note: 'dst_rep_t' declared here
   99 | typedef uint16_t dst_rep_t;
      |                  ^
/home/tcwg-buildbot/worker/clang-aarch64-sve-vls-2stage/llvm/compiler-rt/lib/builtins/fp_trunc.h:114:47: error: unknown type name 'src_rep_t'; did you mean 'dst_rep_t'?
  114 | static inline src_rep_t extract_sign_from_src(src_rep_t x) {
      |                                               ^~~~~~~~~
      |                                               dst_rep_t
/home/tcwg-buildbot/worker/clang-aarch64-sve-vls-2stage/llvm/compiler-rt/lib/builtins/fp_trunc.h:99:18: note: 'dst_rep_t' declared here
   99 | typedef uint16_t dst_rep_t;
      |                  ^
/home/tcwg-buildbot/worker/clang-aarch64-sve-vls-2stage/llvm/compiler-rt/lib/builtins/fp_trunc.h:115:9: error: unknown type name 'src_rep_t'; did you mean 'dst_rep_t'?
  115 |   const src_rep_t srcSignMask = SRC_REP_C(1) << (srcBits - 1);
      |         ^~~~~~~~~
      |         dst_rep_t
/home/tcwg-buildbot/worker/clang-aarch64-sve-vls-2stage/llvm/compiler-rt/lib/builtins/fp_trunc.h:99:18: note: 'dst_rep_t' declared here
   99 | typedef uint16_t dst_rep_t;
      |                  ^
/home/tcwg-buildbot/worker/clang-aarch64-sve-vls-2stage/llvm/compiler-rt/lib/builtins/fp_trunc.h:115:33: error: call to undeclared function 'SRC_REP_C'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
  115 |   const src_rep_t srcSignMask = SRC_REP_C(1) << (srcBits - 1);
      |                                 ^
/home/tcwg-buildbot/worker/clang-aarch64-sve-vls-2stage/llvm/compiler-rt/lib/builtins/fp_trunc.h:115:50: error: use of undeclared identifier 'srcBits'; did you mean 'dstBits'?
  115 |   const src_rep_t srcSignMask = SRC_REP_C(1) << (srcBits - 1);
      |                                                  ^~~~~~~
      |                                                  dstBits
/home/tcwg-buildbot/worker/clang-aarch64-sve-vls-2stage/llvm/compiler-rt/lib/builtins/fp_trunc.h:101:18: note: 'dstBits' declared here
  101 | static const int dstBits = sizeof(dst_t) * CHAR_BIT;
      |                  ^
/home/tcwg-buildbot/worker/clang-aarch64-sve-vls-2stage/llvm/compiler-rt/lib/builtins/fp_trunc.h:116:32: error: use of undeclared identifier 'srcBits'; did you mean 'dstBits'?

@llvm-ci
Copy link
Collaborator

llvm-ci commented Sep 18, 2024

LLVM Buildbot has detected a new failure on builder clang-aarch64-sve-vls running on linaro-g3-01 while building compiler-rt,llvm at step 6 "build stage 1".

Full details are available at: https://lab.llvm.org/buildbot/#/builders/143/builds/2242

Here is the relevant piece of the build log for the reference
Step 6 (build stage 1) failure: 'ninja' (failure)
...
[399/413] Building ASM object CMakeFiles/clang_rt.builtins-aarch64.dir/outline_atomic_helpers.dir/outline_atomic_ldset4_4.S.o
[400/413] Building ASM object CMakeFiles/clang_rt.builtins-aarch64.dir/outline_atomic_helpers.dir/outline_atomic_ldset2_2.S.o
[401/413] Building ASM object CMakeFiles/clang_rt.builtins-aarch64.dir/outline_atomic_helpers.dir/outline_atomic_ldset4_3.S.o
[402/413] Building ASM object CMakeFiles/clang_rt.builtins-aarch64.dir/outline_atomic_helpers.dir/outline_atomic_ldset2_1.S.o
[403/413] Building ASM object CMakeFiles/clang_rt.builtins-aarch64.dir/outline_atomic_helpers.dir/outline_atomic_ldset2_3.S.o
[404/413] Building ASM object CMakeFiles/clang_rt.builtins-aarch64.dir/outline_atomic_helpers.dir/outline_atomic_ldset2_4.S.o
[405/413] Building ASM object CMakeFiles/clang_rt.builtins-aarch64.dir/outline_atomic_helpers.dir/outline_atomic_ldset4_5.S.o
[406/413] Building ASM object CMakeFiles/clang_rt.builtins-aarch64.dir/outline_atomic_helpers.dir/outline_atomic_ldset8_1.S.o
[407/413] Building ASM object CMakeFiles/clang_rt.builtins-aarch64.dir/outline_atomic_helpers.dir/outline_atomic_ldset8_2.S.o
[408/413] Building C object CMakeFiles/clang_rt.builtins-aarch64.dir/truncxfbf2.c.o
FAILED: CMakeFiles/clang_rt.builtins-aarch64.dir/truncxfbf2.c.o 
/home/tcwg-buildbot/worker/clang-aarch64-sve-vls/stage1/./bin/clang --target=aarch64-unknown-linux-gnu -DHAS_ASM_LSE -DVISIBILITY_HIDDEN  -O3 -DNDEBUG -march=armv8-a -fno-lto -std=c11 -fPIC -fno-builtin -fvisibility=hidden -fomit-frame-pointer -DCOMPILER_RT_HAS_FLOAT16 -MD -MT CMakeFiles/clang_rt.builtins-aarch64.dir/truncxfbf2.c.o -MF CMakeFiles/clang_rt.builtins-aarch64.dir/truncxfbf2.c.o.d -o CMakeFiles/clang_rt.builtins-aarch64.dir/truncxfbf2.c.o -c /home/tcwg-buildbot/worker/clang-aarch64-sve-vls/llvm/compiler-rt/lib/builtins/truncxfbf2.c
In file included from /home/tcwg-buildbot/worker/clang-aarch64-sve-vls/llvm/compiler-rt/lib/builtins/truncxfbf2.c:11:
In file included from /home/tcwg-buildbot/worker/clang-aarch64-sve-vls/llvm/compiler-rt/lib/builtins/fp_trunc_impl.inc:39:
/home/tcwg-buildbot/worker/clang-aarch64-sve-vls/llvm/compiler-rt/lib/builtins/fp_trunc.h:49:2: error: Source should be double precision or quad precision!
   49 | #error Source should be double precision or quad precision!
      |  ^
/home/tcwg-buildbot/worker/clang-aarch64-sve-vls/llvm/compiler-rt/lib/builtins/fp_trunc.h:114:15: error: unknown type name 'src_rep_t'; did you mean 'dst_rep_t'?
  114 | static inline src_rep_t extract_sign_from_src(src_rep_t x) {
      |               ^~~~~~~~~
      |               dst_rep_t
/home/tcwg-buildbot/worker/clang-aarch64-sve-vls/llvm/compiler-rt/lib/builtins/fp_trunc.h:99:18: note: 'dst_rep_t' declared here
   99 | typedef uint16_t dst_rep_t;
      |                  ^
/home/tcwg-buildbot/worker/clang-aarch64-sve-vls/llvm/compiler-rt/lib/builtins/fp_trunc.h:114:47: error: unknown type name 'src_rep_t'; did you mean 'dst_rep_t'?
  114 | static inline src_rep_t extract_sign_from_src(src_rep_t x) {
      |                                               ^~~~~~~~~
      |                                               dst_rep_t
/home/tcwg-buildbot/worker/clang-aarch64-sve-vls/llvm/compiler-rt/lib/builtins/fp_trunc.h:99:18: note: 'dst_rep_t' declared here
   99 | typedef uint16_t dst_rep_t;
      |                  ^
/home/tcwg-buildbot/worker/clang-aarch64-sve-vls/llvm/compiler-rt/lib/builtins/fp_trunc.h:115:9: error: unknown type name 'src_rep_t'; did you mean 'dst_rep_t'?
  115 |   const src_rep_t srcSignMask = SRC_REP_C(1) << (srcBits - 1);
      |         ^~~~~~~~~
      |         dst_rep_t
/home/tcwg-buildbot/worker/clang-aarch64-sve-vls/llvm/compiler-rt/lib/builtins/fp_trunc.h:99:18: note: 'dst_rep_t' declared here
   99 | typedef uint16_t dst_rep_t;
      |                  ^
/home/tcwg-buildbot/worker/clang-aarch64-sve-vls/llvm/compiler-rt/lib/builtins/fp_trunc.h:115:33: error: call to undeclared function 'SRC_REP_C'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
  115 |   const src_rep_t srcSignMask = SRC_REP_C(1) << (srcBits - 1);
      |                                 ^
/home/tcwg-buildbot/worker/clang-aarch64-sve-vls/llvm/compiler-rt/lib/builtins/fp_trunc.h:115:50: error: use of undeclared identifier 'srcBits'; did you mean 'dstBits'?
  115 |   const src_rep_t srcSignMask = SRC_REP_C(1) << (srcBits - 1);
      |                                                  ^~~~~~~
      |                                                  dstBits
/home/tcwg-buildbot/worker/clang-aarch64-sve-vls/llvm/compiler-rt/lib/builtins/fp_trunc.h:101:18: note: 'dstBits' declared here
  101 | static const int dstBits = sizeof(dst_t) * CHAR_BIT;
      |                  ^
/home/tcwg-buildbot/worker/clang-aarch64-sve-vls/llvm/compiler-rt/lib/builtins/fp_trunc.h:116:32: error: use of undeclared identifier 'srcBits'; did you mean 'dstBits'?

@llvm-ci
Copy link
Collaborator

llvm-ci commented Sep 18, 2024

LLVM Buildbot has detected a new failure on builder clang-x86_64-debian-fast running on gribozavr4 while building compiler-rt,llvm at step 5 "build-unified-tree".

Full details are available at: https://lab.llvm.org/buildbot/#/builders/56/builds/7705

Here is the relevant piece of the build log for the reference
Step 5 (build-unified-tree) failure: build (failure)
...
0.098 [70/98/151] Building C object CMakeFiles/clang_rt.builtins-x86_64.dir/clzti2.c.o
0.099 [69/98/152] Building C object CMakeFiles/clang_rt.builtins-x86_64.dir/cmpdi2.c.o
0.100 [68/98/153] Building C object CMakeFiles/clang_rt.builtins-x86_64.dir/cmpti2.c.o
0.104 [67/98/154] Building C object CMakeFiles/clang_rt.builtins-i386.dir/divdc3.c.o
0.104 [66/98/155] Building C object CMakeFiles/clang_rt.builtins-i386.dir/muldf3.c.o
0.105 [65/98/156] Building C object CMakeFiles/clang_rt.builtins-i386.dir/udivmoddi4.c.o
0.105 [64/98/157] Building C object CMakeFiles/clang_rt.builtins-i386.dir/emutls.c.o
0.105 [63/98/158] Building C object CMakeFiles/clang_rt.builtins-i386.dir/mulxc3.c.o
0.105 [62/98/159] Building C object CMakeFiles/clang_rt.builtins-i386.dir/truncdfbf2.c.o
0.106 [61/98/160] Building C object CMakeFiles/clang_rt.builtins-i386.dir/truncxfbf2.c.o
FAILED: CMakeFiles/clang_rt.builtins-i386.dir/truncxfbf2.c.o 
/b/1/clang-x86_64-debian-fast/llvm.obj/./bin/clang --target=x86_64-unknown-linux-gnu -DVISIBILITY_HIDDEN  -O3 -DNDEBUG -m32 -fno-lto -std=c11 -fPIC -fno-builtin -fvisibility=hidden -fomit-frame-pointer -DCOMPILER_RT_HAS_FLOAT16 -MD -MT CMakeFiles/clang_rt.builtins-i386.dir/truncxfbf2.c.o -MF CMakeFiles/clang_rt.builtins-i386.dir/truncxfbf2.c.o.d -o CMakeFiles/clang_rt.builtins-i386.dir/truncxfbf2.c.o -c /b/1/clang-x86_64-debian-fast/llvm.src/compiler-rt/lib/builtins/truncxfbf2.c
In file included from /b/1/clang-x86_64-debian-fast/llvm.src/compiler-rt/lib/builtins/truncxfbf2.c:11:
In file included from /b/1/clang-x86_64-debian-fast/llvm.src/compiler-rt/lib/builtins/fp_trunc_impl.inc:39:
/b/1/clang-x86_64-debian-fast/llvm.src/compiler-rt/lib/builtins/fp_trunc.h:49:2: error: Source should be double precision or quad precision!
   49 | #error Source should be double precision or quad precision!
      |  ^
/b/1/clang-x86_64-debian-fast/llvm.src/compiler-rt/lib/builtins/fp_trunc.h:114:15: error: unknown type name 'src_rep_t'; did you mean 'dst_rep_t'?
  114 | static inline src_rep_t extract_sign_from_src(src_rep_t x) {
      |               ^~~~~~~~~
      |               dst_rep_t
/b/1/clang-x86_64-debian-fast/llvm.src/compiler-rt/lib/builtins/fp_trunc.h:99:18: note: 'dst_rep_t' declared here
   99 | typedef uint16_t dst_rep_t;
      |                  ^
/b/1/clang-x86_64-debian-fast/llvm.src/compiler-rt/lib/builtins/fp_trunc.h:114:47: error: unknown type name 'src_rep_t'; did you mean 'dst_rep_t'?
  114 | static inline src_rep_t extract_sign_from_src(src_rep_t x) {
      |                                               ^~~~~~~~~
      |                                               dst_rep_t
/b/1/clang-x86_64-debian-fast/llvm.src/compiler-rt/lib/builtins/fp_trunc.h:99:18: note: 'dst_rep_t' declared here
   99 | typedef uint16_t dst_rep_t;
      |                  ^
/b/1/clang-x86_64-debian-fast/llvm.src/compiler-rt/lib/builtins/fp_trunc.h:115:9: error: unknown type name 'src_rep_t'; did you mean 'dst_rep_t'?
  115 |   const src_rep_t srcSignMask = SRC_REP_C(1) << (srcBits - 1);
      |         ^~~~~~~~~
      |         dst_rep_t
/b/1/clang-x86_64-debian-fast/llvm.src/compiler-rt/lib/builtins/fp_trunc.h:99:18: note: 'dst_rep_t' declared here
   99 | typedef uint16_t dst_rep_t;
      |                  ^
/b/1/clang-x86_64-debian-fast/llvm.src/compiler-rt/lib/builtins/fp_trunc.h:115:33: error: call to undeclared function 'SRC_REP_C'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
  115 |   const src_rep_t srcSignMask = SRC_REP_C(1) << (srcBits - 1);
      |                                 ^
/b/1/clang-x86_64-debian-fast/llvm.src/compiler-rt/lib/builtins/fp_trunc.h:115:50: error: use of undeclared identifier 'srcBits'; did you mean 'dstBits'?
  115 |   const src_rep_t srcSignMask = SRC_REP_C(1) << (srcBits - 1);
      |                                                  ^~~~~~~
      |                                                  dstBits
/b/1/clang-x86_64-debian-fast/llvm.src/compiler-rt/lib/builtins/fp_trunc.h:101:18: note: 'dstBits' declared here
  101 | static const int dstBits = sizeof(dst_t) * CHAR_BIT;
      |                  ^
/b/1/clang-x86_64-debian-fast/llvm.src/compiler-rt/lib/builtins/fp_trunc.h:116:32: error: use of undeclared identifier 'srcBits'; did you mean 'dstBits'?

phoebewang added a commit that referenced this pull request Sep 19, 2024
This reverts commit ababfee78714313a0cad87591b819f0944b90d09.

Add X86 FP80 check.
@llvm-ci
Copy link
Collaborator

llvm-ci commented Sep 19, 2024

LLVM Buildbot has detected a new failure on builder lld-x86_64-win running on as-worker-93 while building compiler-rt,llvm at step 7 "test-build-unified-tree-check-all".

Full details are available at: https://lab.llvm.org/buildbot/#/builders/146/builds/1188

Here is the relevant piece of the build log for the reference
Step 7 (test-build-unified-tree-check-all) failure: test (failure)
******************** TEST 'LLVM-Unit :: Support/./SupportTests.exe/36/87' FAILED ********************
Script(shard):
--
GTEST_OUTPUT=json:C:\a\lld-x86_64-win\build\unittests\Support\.\SupportTests.exe-LLVM-Unit-12396-36-87.json GTEST_SHUFFLE=0 GTEST_TOTAL_SHARDS=87 GTEST_SHARD_INDEX=36 C:\a\lld-x86_64-win\build\unittests\Support\.\SupportTests.exe
--

Script:
--
C:\a\lld-x86_64-win\build\unittests\Support\.\SupportTests.exe --gtest_filter=ProgramEnvTest.CreateProcessLongPath
--
C:\a\lld-x86_64-win\llvm-project\llvm\unittests\Support\ProgramTest.cpp(160): error: Expected equality of these values:
  0
  RC
    Which is: -2

C:\a\lld-x86_64-win\llvm-project\llvm\unittests\Support\ProgramTest.cpp(163): error: fs::remove(Twine(LongPath)): did not return errc::success.
error number: 13
error message: permission denied



C:\a\lld-x86_64-win\llvm-project\llvm\unittests\Support\ProgramTest.cpp:160
Expected equality of these values:
  0
  RC
    Which is: -2

C:\a\lld-x86_64-win\llvm-project\llvm\unittests\Support\ProgramTest.cpp:163
fs::remove(Twine(LongPath)): did not return errc::success.
error number: 13
error message: permission denied




********************


@llvm-ci
Copy link
Collaborator

llvm-ci commented Sep 19, 2024

LLVM Buildbot has detected a new failure on builder bolt-aarch64-ubuntu-clang running on bolt-worker-aarch64 while building compiler-rt,llvm at step 6 "test-build-clang-bolt-stage2-clang-bolt".

Full details are available at: https://lab.llvm.org/buildbot/#/builders/128/builds/682

Here is the relevant piece of the build log for the reference
Step 6 (test-build-clang-bolt-stage2-clang-bolt) failure: test (failure)
...
3.256 [6/6/402] Building ASM object CMakeFiles/clang_rt.builtins-aarch64.dir/outline_atomic_helpers.dir/outline_atomic_ldset4_4.S.o
3.269 [5/6/403] Building ASM object CMakeFiles/clang_rt.builtins-aarch64.dir/outline_atomic_helpers.dir/outline_atomic_ldset4_5.S.o
3.271 [4/6/404] Building ASM object CMakeFiles/clang_rt.builtins-aarch64.dir/outline_atomic_helpers.dir/outline_atomic_ldset8_1.S.o
3.280 [3/6/405] Building ASM object CMakeFiles/clang_rt.builtins-aarch64.dir/outline_atomic_helpers.dir/outline_atomic_ldset8_2.S.o
3.305 [2/6/406] Building ASM object CMakeFiles/clang_rt.builtins-aarch64.dir/outline_atomic_helpers.dir/outline_atomic_ldset8_4.S.o
3.310 [1/6/407] Building ASM object CMakeFiles/clang_rt.builtins-aarch64.dir/outline_atomic_helpers.dir/outline_atomic_ldset8_3.S.o
3.310 [1/5/408] Building ASM object CMakeFiles/clang_rt.builtins-aarch64.dir/outline_atomic_helpers.dir/outline_atomic_ldset8_5.S.o
3.326 [1/4/409] Building C object CMakeFiles/clang_rt.builtins-aarch64.dir/extendbfsf2.c.o
3.336 [1/3/410] Building C object CMakeFiles/clang_rt.builtins-aarch64.dir/truncdfbf2.c.o
3.344 [1/2/411] Building C object CMakeFiles/clang_rt.builtins-aarch64.dir/truncxfbf2.c.o
FAILED: CMakeFiles/clang_rt.builtins-aarch64.dir/truncxfbf2.c.o 
/home/worker/buildbot-aarch64/bolt-aarch64-ubuntu-clang/build/./bin/clang --target=aarch64-unknown-linux-gnu -DHAS_ASM_LSE -DVISIBILITY_HIDDEN  -O3 -DNDEBUG -march=armv8-a -fno-lto -std=c11 -fPIC -fno-builtin -fvisibility=hidden -fomit-frame-pointer -DCOMPILER_RT_HAS_FLOAT16 -MD -MT CMakeFiles/clang_rt.builtins-aarch64.dir/truncxfbf2.c.o -MF CMakeFiles/clang_rt.builtins-aarch64.dir/truncxfbf2.c.o.d -o CMakeFiles/clang_rt.builtins-aarch64.dir/truncxfbf2.c.o -c /home/worker/buildbot-aarch64/bolt-aarch64-ubuntu-clang/llvm-project/compiler-rt/lib/builtins/truncxfbf2.c
In file included from /home/worker/buildbot-aarch64/bolt-aarch64-ubuntu-clang/llvm-project/compiler-rt/lib/builtins/truncxfbf2.c:11:
In file included from /home/worker/buildbot-aarch64/bolt-aarch64-ubuntu-clang/llvm-project/compiler-rt/lib/builtins/fp_trunc_impl.inc:39:
/home/worker/buildbot-aarch64/bolt-aarch64-ubuntu-clang/llvm-project/compiler-rt/lib/builtins/fp_trunc.h:49:2: error: Source should be double precision or quad precision!
   49 | #error Source should be double precision or quad precision!
      |  ^
/home/worker/buildbot-aarch64/bolt-aarch64-ubuntu-clang/llvm-project/compiler-rt/lib/builtins/fp_trunc.h:114:15: error: unknown type name 'src_rep_t'; did you mean 'dst_rep_t'?
  114 | static inline src_rep_t extract_sign_from_src(src_rep_t x) {
      |               ^~~~~~~~~
      |               dst_rep_t
/home/worker/buildbot-aarch64/bolt-aarch64-ubuntu-clang/llvm-project/compiler-rt/lib/builtins/fp_trunc.h:99:18: note: 'dst_rep_t' declared here
   99 | typedef uint16_t dst_rep_t;
      |                  ^
/home/worker/buildbot-aarch64/bolt-aarch64-ubuntu-clang/llvm-project/compiler-rt/lib/builtins/fp_trunc.h:114:47: error: unknown type name 'src_rep_t'; did you mean 'dst_rep_t'?
  114 | static inline src_rep_t extract_sign_from_src(src_rep_t x) {
      |                                               ^~~~~~~~~
      |                                               dst_rep_t
/home/worker/buildbot-aarch64/bolt-aarch64-ubuntu-clang/llvm-project/compiler-rt/lib/builtins/fp_trunc.h:99:18: note: 'dst_rep_t' declared here
   99 | typedef uint16_t dst_rep_t;
      |                  ^
/home/worker/buildbot-aarch64/bolt-aarch64-ubuntu-clang/llvm-project/compiler-rt/lib/builtins/fp_trunc.h:115:9: error: unknown type name 'src_rep_t'; did you mean 'dst_rep_t'?
  115 |   const src_rep_t srcSignMask = SRC_REP_C(1) << (srcBits - 1);
      |         ^~~~~~~~~
      |         dst_rep_t
/home/worker/buildbot-aarch64/bolt-aarch64-ubuntu-clang/llvm-project/compiler-rt/lib/builtins/fp_trunc.h:99:18: note: 'dst_rep_t' declared here
   99 | typedef uint16_t dst_rep_t;
      |                  ^
/home/worker/buildbot-aarch64/bolt-aarch64-ubuntu-clang/llvm-project/compiler-rt/lib/builtins/fp_trunc.h:115:33: error: call to undeclared function 'SRC_REP_C'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
  115 |   const src_rep_t srcSignMask = SRC_REP_C(1) << (srcBits - 1);
      |                                 ^
/home/worker/buildbot-aarch64/bolt-aarch64-ubuntu-clang/llvm-project/compiler-rt/lib/builtins/fp_trunc.h:115:50: error: use of undeclared identifier 'srcBits'; did you mean 'dstBits'?
  115 |   const src_rep_t srcSignMask = SRC_REP_C(1) << (srcBits - 1);
      |                                                  ^~~~~~~
      |                                                  dstBits
/home/worker/buildbot-aarch64/bolt-aarch64-ubuntu-clang/llvm-project/compiler-rt/lib/builtins/fp_trunc.h:101:18: note: 'dstBits' declared here
  101 | static const int dstBits = sizeof(dst_t) * CHAR_BIT;
      |                  ^
/home/worker/buildbot-aarch64/bolt-aarch64-ubuntu-clang/llvm-project/compiler-rt/lib/builtins/fp_trunc.h:116:32: error: use of undeclared identifier 'srcBits'; did you mean 'dstBits'?

tmsri pushed a commit to tmsri/llvm-project that referenced this pull request Sep 19, 2024
This fixes llvm#108936, but the calling convention doesn't match with GCC. I
doubt we have such a lib function for now, so leave the calling
convention as is.
tmsri pushed a commit to tmsri/llvm-project that referenced this pull request Sep 19, 2024
tmsri pushed a commit to tmsri/llvm-project that referenced this pull request Sep 19, 2024
…109143)

This reverts commit ababfee78714313a0cad87591b819f0944b90d09.

Add X86 FP80 check.
@llvm-ci
Copy link
Collaborator

llvm-ci commented Sep 22, 2024

LLVM Buildbot has detected a new failure on builder clang-cmake-x86_64-avx512-linux running on avx512-intel64 while building compiler-rt,llvm at step 6 "build stage 1".

Full details are available at: https://lab.llvm.org/buildbot/#/builders/133/builds/3999

Here is the relevant piece of the build log for the reference
Step 6 (build stage 1) failure: 'ninja' (failure)
...
[126/318] Building C object CMakeFiles/clang_rt.builtins-i386.dir/fixxfdi.c.o
[127/318] Building C object CMakeFiles/clang_rt.builtins-i386.dir/fixunsxfdi.c.o
[128/318] Building C object CMakeFiles/clang_rt.builtins-x86_64.dir/absvdi2.c.o
[129/318] Building C object CMakeFiles/clang_rt.builtins-x86_64.dir/absvsi2.c.o
[130/318] Building C object CMakeFiles/clang_rt.builtins-i386.dir/divsc3.c.o
[131/318] Building C object CMakeFiles/clang_rt.builtins-i386.dir/truncsfhf2.c.o
[132/318] Building C object CMakeFiles/clang_rt.builtins-i386.dir/muldf3.c.o
[133/318] Building ASM object CMakeFiles/clang_rt.builtins-i386.dir/i386/floatdixf.S.o
[134/318] Building ASM object CMakeFiles/clang_rt.builtins-i386.dir/i386/floatundixf.S.o
[135/318] Building C object CMakeFiles/clang_rt.builtins-i386.dir/truncxfbf2.c.o
FAILED: CMakeFiles/clang_rt.builtins-i386.dir/truncxfbf2.c.o 
/localdisk2/buildbot/llvm-worker/clang-cmake-x86_64-avx512-linux/stage1/./bin/clang --target=x86_64-unknown-linux-gnu -DVISIBILITY_HIDDEN  -O3 -DNDEBUG -m32 -fno-lto -std=c11 -fPIC -fno-builtin -fvisibility=hidden -fomit-frame-pointer -DCOMPILER_RT_HAS_FLOAT16 -MD -MT CMakeFiles/clang_rt.builtins-i386.dir/truncxfbf2.c.o -MF CMakeFiles/clang_rt.builtins-i386.dir/truncxfbf2.c.o.d -o CMakeFiles/clang_rt.builtins-i386.dir/truncxfbf2.c.o -c /localdisk2/buildbot/llvm-worker/clang-cmake-x86_64-avx512-linux/llvm/compiler-rt/lib/builtins/truncxfbf2.c
In file included from /localdisk2/buildbot/llvm-worker/clang-cmake-x86_64-avx512-linux/llvm/compiler-rt/lib/builtins/truncxfbf2.c:11:
In file included from /localdisk2/buildbot/llvm-worker/clang-cmake-x86_64-avx512-linux/llvm/compiler-rt/lib/builtins/fp_trunc_impl.inc:39:
/localdisk2/buildbot/llvm-worker/clang-cmake-x86_64-avx512-linux/llvm/compiler-rt/lib/builtins/fp_trunc.h:49:2: error: Source should be double precision or quad precision!
   49 | #error Source should be double precision or quad precision!
      |  ^
/localdisk2/buildbot/llvm-worker/clang-cmake-x86_64-avx512-linux/llvm/compiler-rt/lib/builtins/fp_trunc.h:114:15: error: unknown type name 'src_rep_t'; did you mean 'dst_rep_t'?
  114 | static inline src_rep_t extract_sign_from_src(src_rep_t x) {
      |               ^~~~~~~~~
      |               dst_rep_t
/localdisk2/buildbot/llvm-worker/clang-cmake-x86_64-avx512-linux/llvm/compiler-rt/lib/builtins/fp_trunc.h:99:18: note: 'dst_rep_t' declared here
   99 | typedef uint16_t dst_rep_t;
      |                  ^
/localdisk2/buildbot/llvm-worker/clang-cmake-x86_64-avx512-linux/llvm/compiler-rt/lib/builtins/fp_trunc.h:114:47: error: unknown type name 'src_rep_t'; did you mean 'dst_rep_t'?
  114 | static inline src_rep_t extract_sign_from_src(src_rep_t x) {
      |                                               ^~~~~~~~~
      |                                               dst_rep_t
/localdisk2/buildbot/llvm-worker/clang-cmake-x86_64-avx512-linux/llvm/compiler-rt/lib/builtins/fp_trunc.h:99:18: note: 'dst_rep_t' declared here
   99 | typedef uint16_t dst_rep_t;
      |                  ^
/localdisk2/buildbot/llvm-worker/clang-cmake-x86_64-avx512-linux/llvm/compiler-rt/lib/builtins/fp_trunc.h:115:9: error: unknown type name 'src_rep_t'; did you mean 'dst_rep_t'?
  115 |   const src_rep_t srcSignMask = SRC_REP_C(1) << (srcBits - 1);
      |         ^~~~~~~~~
      |         dst_rep_t
/localdisk2/buildbot/llvm-worker/clang-cmake-x86_64-avx512-linux/llvm/compiler-rt/lib/builtins/fp_trunc.h:99:18: note: 'dst_rep_t' declared here
   99 | typedef uint16_t dst_rep_t;
      |                  ^
/localdisk2/buildbot/llvm-worker/clang-cmake-x86_64-avx512-linux/llvm/compiler-rt/lib/builtins/fp_trunc.h:115:33: error: call to undeclared function 'SRC_REP_C'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
  115 |   const src_rep_t srcSignMask = SRC_REP_C(1) << (srcBits - 1);
      |                                 ^
/localdisk2/buildbot/llvm-worker/clang-cmake-x86_64-avx512-linux/llvm/compiler-rt/lib/builtins/fp_trunc.h:115:50: error: use of undeclared identifier 'srcBits'; did you mean 'dstBits'?
  115 |   const src_rep_t srcSignMask = SRC_REP_C(1) << (srcBits - 1);
      |                                                  ^~~~~~~
      |                                                  dstBits
/localdisk2/buildbot/llvm-worker/clang-cmake-x86_64-avx512-linux/llvm/compiler-rt/lib/builtins/fp_trunc.h:101:18: note: 'dstBits' declared here
  101 | static const int dstBits = sizeof(dst_t) * CHAR_BIT;
      |                  ^
/localdisk2/buildbot/llvm-worker/clang-cmake-x86_64-avx512-linux/llvm/compiler-rt/lib/builtins/fp_trunc.h:116:32: error: use of undeclared identifier 'srcBits'; did you mean 'dstBits'?

@llvm-ci
Copy link
Collaborator

llvm-ci commented Sep 26, 2024

LLVM Buildbot has detected a new failure on builder clang-cmake-x86_64-avx512-win running on avx512-intel64-win while building compiler-rt,llvm at step 5 "build stage 1".

Full details are available at: https://lab.llvm.org/buildbot/#/builders/81/builds/1960

Here is the relevant piece of the build log for the reference
Step 5 (build stage 1) failure: 'ninja' (failure)
...
[110/130] Building C object CMakeFiles\clang_rt.builtins-x86_64.dir\umodsi3.c.obj
[111/130] Building C object CMakeFiles\clang_rt.builtins-x86_64.dir\udivti3.c.obj
[112/130] Building C object CMakeFiles\clang_rt.builtins-x86_64.dir\udivsi3.c.obj
[113/130] Building C object CMakeFiles\clang_rt.builtins-x86_64.dir\umoddi3.c.obj
[114/130] Building C object CMakeFiles\clang_rt.builtins-x86_64.dir\udivmodti4.c.obj
[115/130] Building C object CMakeFiles\clang_rt.builtins-x86_64.dir\udivmoddi4.c.obj
[116/130] Building C object CMakeFiles\clang_rt.builtins-x86_64.dir\mulsf3.c.obj
[117/130] Building C object CMakeFiles\clang_rt.builtins-x86_64.dir\truncdfhf2.c.obj
[118/130] Building C object CMakeFiles\clang_rt.builtins-x86_64.dir\truncsfhf2.c.obj
[119/130] Building C object CMakeFiles\clang_rt.builtins-x86_64.dir\truncxfbf2.c.obj
FAILED: CMakeFiles/clang_rt.builtins-x86_64.dir/truncxfbf2.c.obj 
D:\buildbot\llvm-worker\clang-cmake-x86_64-avx512-win\stage1\.\bin\clang-cl.exe --target=x86_64-pc-windows-msvc  /nologo   /DWIN32 /D_WINDOWS /Zi /Ob0 /Od /RTC1 -fno-lto /Zl -fno-builtin -DCOMPILER_RT_HAS_FLOAT16 /showIncludes /FoCMakeFiles\clang_rt.builtins-x86_64.dir\truncxfbf2.c.obj /FdCMakeFiles\clang_rt.builtins-x86_64.dir\clang_rt.builtins-x86_64.pdb -c -- D:\buildbot\llvm-worker\clang-cmake-x86_64-avx512-win\llvm\compiler-rt\lib\builtins\truncxfbf2.c
In file included from D:\buildbot\llvm-worker\clang-cmake-x86_64-avx512-win\llvm\compiler-rt\lib\builtins\truncxfbf2.c:11:
In file included from D:\buildbot\llvm-worker\clang-cmake-x86_64-avx512-win\llvm\compiler-rt\lib\builtins\fp_trunc_impl.inc:39:
D:\buildbot\llvm-worker\clang-cmake-x86_64-avx512-win\llvm\compiler-rt\lib\builtins\fp_trunc.h(49,2): error: Source should be double precision or quad precision!
   49 | #error Source should be double precision or quad precision!
      |  ^
D:\buildbot\llvm-worker\clang-cmake-x86_64-avx512-win\llvm\compiler-rt\lib\builtins\fp_trunc.h(114,15): error: unknown type name 'src_rep_t'; did you mean 'dst_rep_t'?
  114 | static inline src_rep_t extract_sign_from_src(src_rep_t x) {
      |               ^~~~~~~~~
      |               dst_rep_t
D:\buildbot\llvm-worker\clang-cmake-x86_64-avx512-win\llvm\compiler-rt\lib\builtins\fp_trunc.h(99,18): note: 'dst_rep_t' declared here
   99 | typedef uint16_t dst_rep_t;
      |                  ^
D:\buildbot\llvm-worker\clang-cmake-x86_64-avx512-win\llvm\compiler-rt\lib\builtins\fp_trunc.h(114,47): error: unknown type name 'src_rep_t'; did you mean 'dst_rep_t'?
  114 | static inline src_rep_t extract_sign_from_src(src_rep_t x) {
      |                                               ^~~~~~~~~
      |                                               dst_rep_t
D:\buildbot\llvm-worker\clang-cmake-x86_64-avx512-win\llvm\compiler-rt\lib\builtins\fp_trunc.h(99,18): note: 'dst_rep_t' declared here
   99 | typedef uint16_t dst_rep_t;
      |                  ^
D:\buildbot\llvm-worker\clang-cmake-x86_64-avx512-win\llvm\compiler-rt\lib\builtins\fp_trunc.h(115,9): error: unknown type name 'src_rep_t'; did you mean 'dst_rep_t'?
  115 |   const src_rep_t srcSignMask = SRC_REP_C(1) << (srcBits - 1);
      |         ^~~~~~~~~
      |         dst_rep_t
D:\buildbot\llvm-worker\clang-cmake-x86_64-avx512-win\llvm\compiler-rt\lib\builtins\fp_trunc.h(99,18): note: 'dst_rep_t' declared here
   99 | typedef uint16_t dst_rep_t;
      |                  ^
D:\buildbot\llvm-worker\clang-cmake-x86_64-avx512-win\llvm\compiler-rt\lib\builtins\fp_trunc.h(115,33): error: call to undeclared function 'SRC_REP_C'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
  115 |   const src_rep_t srcSignMask = SRC_REP_C(1) << (srcBits - 1);
      |                                 ^
D:\buildbot\llvm-worker\clang-cmake-x86_64-avx512-win\llvm\compiler-rt\lib\builtins\fp_trunc.h(115,50): error: use of undeclared identifier 'srcBits'; did you mean 'dstBits'?
  115 |   const src_rep_t srcSignMask = SRC_REP_C(1) << (srcBits - 1);
      |                                                  ^~~~~~~
      |                                                  dstBits
D:\buildbot\llvm-worker\clang-cmake-x86_64-avx512-win\llvm\compiler-rt\lib\builtins\fp_trunc.h(101,18): note: 'dstBits' declared here
  101 | static const int dstBits = sizeof(dst_t) * CHAR_BIT;
      |                  ^
D:\buildbot\llvm-worker\clang-cmake-x86_64-avx512-win\llvm\compiler-rt\lib\builtins\fp_trunc.h(116,32): error: use of undeclared identifier 'srcBits'; did you mean 'dstBits'?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[X86-backend] Unsupported library call operation!
4 participants