Skip to content

[compiler-rt][builtins] x86_64-linux-android30 does not have xf_float. any solutions? #114910

Open
@trcrsired

Description

@trcrsired

[10/21] Building C object CMakeFiles/clang_rt.builtins-x86_64.dir/powixf2.c.o
FAILED: CMakeFiles/clang_rt.builtins-x86_64.dir/powixf2.c.o
/home/csrg/toolchains/llvm/x86_64-generic-linux-gnu/llvm/bin/clang --target=x86_64-linux-android30 --sysroot=/home/csrg/toolchains/llvm/x86_64-linux-android30/x86_64-linux-android30 -DVISIBILITY_HIDDEN -fuse-ld=lld -flto=thin -Wno-unused-command-line-argument -O3 -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/powixf2.c.o -MF CMakeFiles/clang_rt.builtins-x86_64.dir/powixf2.c.o.d -o CMakeFiles/clang_rt.builtins-x86_64.dir/powixf2.c.o -c /home/csrg/toolchains_build/llvm-project/compiler-rt/lib/builtins/powixf2.c
/home/csrg/toolchains_build/llvm-project/compiler-rt/lib/builtins/powixf2.c:19:17: error: unknown type name 'xf_float'; did you mean 'tf_float'?
19 | COMPILER_RT_ABI xf_float __powixf2(xf_float a, int b) {
| ^~~~~~~~
| tf_float
/home/csrg/toolchains_build/llvm-project/compiler-rt/lib/builtins/int_types.h:202:21: note: 'tf_float' declared here
202 | typedef long double tf_float;
| ^
/home/csrg/toolchains_build/llvm-project/compiler-rt/lib/builtins/powixf2.c:19:36: error: unknown type name 'xf_float'; did you mean 'tf_float'?
19 | COMPILER_RT_ABI xf_float __powixf2(xf_float a, int b) {
| ^~~~~~~~
| tf_float
/home/csrg/toolchains_build/llvm-project/compiler-rt/lib/builtins/int_types.h:202:21: note: 'tf_float' declared here
202 | typedef long double tf_float;
| ^
/home/csrg/toolchains_build/llvm-project/compiler-rt/lib/builtins/powixf2.c:21:3: error: unknown type name 'xf_float'; did you mean 'tf_float'?
21 | xf_float r = 1;
| ^~~~~~~~
| tf_float
/home/csrg/toolchains_build/llvm-project/compiler-rt/lib/builtins/int_types.h:202:21: note: 'tf_float' declared here
202 | typedef long double tf_float;
| ^
3 errors generated.
ninja: build stopped: subcommand failed.
./aarch64-linux-android30.sh: line 133: cd: /home/csrg/toolchains/llvm/x86_64-linux-android30/builtins/lib: No such file or directory
mv: cannot stat 'linux': No such file or directory
./aarch64-linux-android30.sh: line 135: cd: x86_64-unknown-linux-android30: No such file or directory
mv: cannot stat '-x86_64': No such file or directory
cp: cannot stat '/home/csrg/toolchains/llvm/x86_64-linux-android30/builtins/*': No such file or directory
CMake Deprecation Warning at /home/csrg/toolchains_build/llvm-project/cmake/Modules/CMakePolicy.cmake:6 (cmake_policy):
The OLD behavior for policy CMP0116 will be removed from a future version
of CMake.

The cmake-policies(7) manual explains that the OLD behaviors of all
policies are deprecated and that a policy should be set to OLD only under
specific short-term circumstances. Projects should be ported to the NEW
behavior and not rely on setting a policy to OLD.
Call Stack (most recent call first):
CMakeLists.txt:6 (include)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions