llvm / llvm/llvm-project

ppc64le build failures without `-DPPC_LINUX_DEFAULT_IEEELONGDOUBLE=ON`

Open
#184,994 7 comments 0 reactions 0 assignees View on GitHub
build-problem
Dominant language
LLVM
Stars
40.5k
Forks
18.7k
PR merge metrics
PR metrics pending

Description

Hi!

I am currently trying to backport LLVM 21 to Debian Trixie (in order to unlock backporting rustc versions requiring LLVM > 19). Debian Trixie doesn't yet have `-DPPC_LINUX_DEFAULT_IEEELONGDOUBLE=ON` or support for it.

Unfortunately, the build breaks on ppc64le, apparently because the fix for #136596 was incomplete.

This is the configure invocation and output (somewhat reduced from a full Debian package build, but probably still contains some unneeded bits:
```
cmake -S llvm/ -B build-llvm \
-G Ninja \
-DCMAKE_INSTALL_PREFIX=/usr/lib/llvm-21 \
-DLLVM_VERSION_SUFFIX= \
-DCMAKE_SUPPRESS_REGENERATION=ON \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_C_FLAGS="-Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -Wno-unused-command-line-argument -Wdate-time -D_FORTIFY_SOURCE=2" \
-DCMAKE_CXX_FLAGS="-fstack-protector-strong -Wformat -Werror=format-security -Wno-unused-command-line-argument -Wdate-time -D_FORTIFY_SOURCE=2" \
-DCMAKE_SHARED_LINKER_FLAGS="-Wl,-z,relro -Wl,--build-id" \
-DCMAKE_MODULE_LINKER_FLAGS="-Wl,-z,relro -Wl,--build-id" \
-DCMAKE_EXE_LINKER_FLAGS="-Wl,-z,relro -Wl,--build-id" \
-DPACKAGE_VENDOR=Debian \
-DENABLE_LINKER_BUILD_ID=ON \
-DLLVM_TARGETS_TO_BUILD=Native \
-DLLVM_ENABLE_PROJECTS="clang" \
-DLLVM_ENABLE_RUNTIMES="compiler-rt;libcxx;libcxxabi;offload" \
-DLLVM_ENABLE_PIC=ON \
-DLLVM_ENABLE_RTTI=ON \
-DLLVM_BUILD_DOCS=OFF \
-DLLVM_INCLUDE_GO_TESTS=OFF \
-DLLVM_USE_RELATIVE_PATHS_IN_FILES=ON \
-DLLVM_TEMPORARILY_ALLOW_OLD_TOOLCHAIN=ON \
-DLLVM_ENABLE_CURL=ON \
-DLLVM_USE_RELATIVE_PATHS_IN_DEBUG_INFO=ON \
-DCLANG_PLUGIN_SUPPORT=OFF \
-DCLANG_BUILD_EXAMPLES=OFF \
-DCLANG_DEFAULT_LINKER=ld \
-DCLANG_DEFAULT_RTLIB=libgcc \
-DCOMPILER_RT_BUILD_XRAY=OFF \
-DCOMPILER_RT_INCLUDE_TESTS=OFF \
-DCOMPILER_RT_USE_LIBCXX=OFF \
-DCOMPILER_RT_USE_BUILTINS_LIBRARY=ON \
-DLIBUNWIND_INSTALL_LIBRARY=OFF \
-DLIBCXXABI_ENABLE_EXCEPTIONS=ON \
-DLIBCXXABI_USE_COMPILER_RT=ON \
-DLIBCXXABI_USE_LLVM_UNWINDER=OFF \
-DLIBCXXABI_INSTALL_LIBRARY=OFF \
-DLIBCXX_ENABLE_EXCEPTIONS=ON \
-DLIBCXX_USE_COMPILER_RT=ON \
-DLIBCXX_ENABLE_STATIC_ABI_LIBRARY=ON \
-DLIBCXX_STATICALLY_LINK_ABI_IN_STATIC_LIBRARY=ON \
-DLIBCXX_STATICALLY_LINK_ABI_IN_SHARED_LIBRARY=OFF \
-DLIBCXX_INSTALL_LIBRARY=OFF \
-DLIBCXX_INSTALL_MODULES=ON \
-DBOOTSTRAP_LIBCXX_INSTALL_MODULES=ON \
-DOPENMP_ENABLE_LIBOMP_PROFILING=OFF \
-DOPENMP_ENABLE_LIBOMPTARGET_PROFILING=OFF \
-DLIBOMP_ENABLE_RTTI=OFF \
-DLIBOMP_OMPT_SUPPORT=OFF \
-DCLANG_FORCE_MATCHING_LIBCLANG_SOVERSION=ON \
-DLLVM_ENABLE_PER_TARGET_RUNTIME_DIR=OFF \
-DLLVM_HOST_TRIPLE=powerpc64le-linux-gnu -DPPC_LINUX_DEFAULT_IEEELONGDOUBLE=OFF -DLLVM_USE_LINKER=lld -DLLVM_BINUTILS_INCDIR=/usr/include/ -DLIBOMP_LIBFLAGS="-lm" -DMLIR_INSTALL_AGGREGATE_OBJECTS=OFF -DLLDB_ENABLE_LUA=OFF \
-DBUILTINS_CMAKE_ARGS="-DCMAKE_C_FLAGS=-Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -Wno-unused-command-line-argument -Wdate-time -D_FORTIFY_SOURCE=2;-DCMAKE_CXX_FLAGS=-fstack-protector-strong -Wformat -Werror=format-security -Wno-unused-command-line-argument -Wdate-time -D_FORTIFY_SOURCE=2;-DCMAKE_EXE_LINKER_FLAGS=-Wl,-z,relro -Wl,--build-id;-DCMAKE_SHARED_LINKER_FLAGS=-Wl,-z,relro -Wl,--build-id;-DCMAKE_MODULE_LINKER_FLAGS=-Wl,-z,relro -Wl,--build-id;-DCMAKE_BUILD_TYPE=Release;-DLLVM_ENABLE_PER_TARGET_RUNTIME_DIR=OFF" \
-DRUNTIMES_CMAKE_ARGS="-DCMAKE_C_FLAGS=-Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -Wno-unused-command-line-argument -Wdate-time -D_FORTIFY_SOURCE=2;-DCMAKE_CXX_FLAGS=-fstack-protector-strong -Wformat -Werror=format-security -Wno-unused-command-line-argument -Wdate-time -D_FORTIFY_SOURCE=2;-DCMAKE_Fortran_FLAGS=-D_FORTIFY_SOURCE=2;-DCMAKE_EXE_LINKER_FLAGS=-Wl,-z,relro -Wl,--build-id;-DCMAKE_SHARED_LINKER_FLAGS=-Wl,-z,relro -Wl,--build-id;-DCMAKE_MODULE_LINKER_FLAGS=-Wl,-z,relro -Wl,--build-id;-DCMAKE_BUILD_TYPE=Release;-DLLVM_ENABLE_PER_TARGET_RUNTIME_DIR=OFF" \
-DCLANG_ENABLE_BOOTSTRAP=ON \
-DCLANG_BOOTSTRAP_TARGETS="check-all;check-llvm;check-clang;check-clang-tools;check-lld;check-libcxx;check-libcxxabi;check-mlir;check-libc;check-sanitizer;llvm-config;test-suite" \
-DCLANG_BOOTSTRAP_PASSTHROUGH="CMAKE_INSTALL_PREFIX;CMAKE_SUPPRESS_REGENERATION;ENABLE_LINKER_BUILD_ID;LLVM_ENABLE_PIC;LLVM_ENABLE_RTTI;LLVM_INCLUDE_GO_TESTS;LLVM_USE_RELATIVE_PATHS_IN_FILES;CLANG_DEFAULT_LINKER;CLANG_DEFAULT_CXX_STDLIB;CLANG_DEFAULT_RTLIB;COMPILER_RT_USE_LIBCXX;COMPILER_RT_USE_BUILTINS_LIBRARY;COMPILER_RT_DEFAULT_TARGET_ONLY;COMPILER_RT_INCLUDE_TESTS;LIBUNWIND_USE_COMPILER_RT;LIBCXXABI_ENABLE_EXCEPTIONS;LIBCXXABI_USE_COMPILER_RT;LIBCXXABI_USE_LLVM_UNWINDER;LIBCXX_USE_COMPILER_RT;LIBCXX_ENABLE_EXCEPTIONS;LIBCXX_ENABLE_STATIC_ABI_LIBRARY;LIBCXX_STATICALLY_LINK_ABI_IN_STATIC_LIBRARY;LIBCXX_STATICALLY_LINK_ABI_IN_SHARED_LIBRARY;LIBOMP_ENABLE_RTTI;LLVM_TEMPORARILY_ALLOW_OLD_TOOLCHAIN;CLANG_FORCE_MATCHING_LIBCLANG_SOVERSION;CMAKE_C_COMPILER_LAUNCHER;CMAKE_CXX_COMPILER_LAUNCHER;LLVM_LIBC_GPU_BUILD" \
-DBOOTSTRAP_CMAKE_BUILD_TYPE=RelWithDebInfo \
-DBOOTSTRAP_CMAKE_C_FLAGS_RELWITHDEBINFO="-O2 -DNDEBUG -g1" \
-DBOOTSTRAP_CMAKE_CXX_FLAGS_RELWITHDEBINFO="-O2 -DNDEBUG -g1" \
-DBOOTSTRAP_CMAKE_C_FLAGS="-Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -Wno-unused-command-line-argument -Wdate-time -D_FORTIFY_SOURCE=2" \
-DBOOTSTRAP_CMAKE_CXX_FLAGS="-fstack-protector-strong -Wformat -Werror=format-security -Wno-unused-command-line-argument -Wdate-time -D_FORTIFY_SOURCE=2" \
-DBOOTSTRAP_CMAKE_SHARED_LINKER_FLAGS="-Wl,-z,relro -Wl,--build-id" \
-DBOOTSTRAP_CMAKE_MODULE_LINKER_FLAGS="-Wl,-z,relro -Wl,--build-id" \
-DBOOTSTRAP_CMAKE_EXE_LINKER_FLAGS="-Wl,-z,relro -Wl,--build-id" \
-DBOOTSTRAP_LLVM_ENABLE_FFI=ON \
-DBOOTSTRAP_LLVM_ENABLE_DUMP=ON \
-DBOOTSTRAP_LLVM_ENABLE_LIBPFM=ON \
-DBOOTSTRAP_LLVM_ENABLE_SPHINX=ON \
-DBOOTSTRAP_CLANG_DEFAULT_PIE_ON_LINUX=ON \
-DBOOTSTRAP_SPHINX_WARNINGS_AS_ERRORS=OFF \
-DBOOTSTRAP_LLVM_USE_RELATIVE_PATHS_IN_FILES=ON \
-DBOOTSTRAP_LLVM_INSTALL_UTILS=ON \
-DBOOTSTRAP_LLVM_VERSION_SUFFIX= \
-DBOOTSTRAP_LLVM_POLLY_LINK_INTO_TOOLS=ON \
-DBOOTSTRAP_LLVM_EXPERIMENTAL_TARGETS_TO_BUILD="M68k;Xtensa" \
-DLLVM_EXPERIMENTAL_TARGETS_TO_BUILD="M68k;Xtensa" \
-DBOOTSTRAP_LLVM_LINK_LLVM_DYLIB=ON \
-DBOOTSTRAP_LLVM_ENABLE_CURL=ON \
-DBOOTSTRAP_CLANG_LINK_CLANG_DYLIB=ON \
-DBOOTSTRAP_LIBCLANG_LIBRARY_VERSION=1 \
-DBOOTSTRAP_LIBCXX_INSTALL_EXPERIMENTAL_LIBRARY=ON \
-DBOOTSTRAP_PYTHON_EXECUTABLE=/usr/bin/python3 \
-DBOOTSTRAP_CLANG_REPOSITORY_STRING=3~bpo13+1 -DBOOTSTRAP_LLVM_ENABLE_Z3_SOLVER=ON -DBOOTSTRAP_CLANG_SYSTEMZ_DEFAULT_ARCH=z196 -DBOOTSTRAP_CLANGD_ENABLE_REMOTE=ON -DBOOTSTRAP_LLVM_USE_PERF=ON -DBOOTSTRAP_LLVM_ENABLE_LIBPFM=ON -DBOOTSTRAP_LLVM_HOST_TRIPLE=powerpc64le-linux-gnu -DBOOTSTRAP_PPC_LINUX_DEFAULT_IEEELONGDOUBLE=OFF -DBOOTSTRAP_LLVM_USE_LINKER=lld -DBOOTSTRAP_LLVM_BINUTILS_INCDIR=/usr/include/ -DBOOTSTRAP_LIBOMP_LIBFLAGS="-lm" -DBOOTSTRAP_MLIR_INSTALL_AGGREGATE_OBJECTS=OFF -DBOOTSTRAP_LLDB_ENABLE_LUA=OFF \
-DBOOTSTRAP_BUILTINS_CMAKE_ARGS="-DCMAKE_C_FLAGS=-Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -Wno-unused-command-line-argument -Wdate-time -D_FORTIFY_SOURCE=2;-DCMAKE_CXX_FLAGS=-fstack-protector-strong -Wformat -Werror=format-security -Wno-unused-command-line-argument -Wdate-time -D_FORTIFY_SOURCE=2;-DCMAKE_EXE_LINKER_FLAGS=-Wl,-z,relro -Wl,--build-id;-DCMAKE_SHARED_LINKER_FLAGS=-Wl,-z,relro -Wl,--build-id;-DCMAKE_MODULE_LINKER_FLAGS=-Wl,-z,relro -Wl,--build-id;-DCMAKE_BUILD_TYPE=RelWithDebInfo;-DCMAKE_C_FLAGS_RELWITHDEBINFO=-O2 -DNDEBUG -g1;-DCMAKE_CXX_FLAGS_RELWITHDEBINFO=-O2 -DNDEBUG -g1;-DLLVM_ENABLE_PER_TARGET_RUNTIME_DIR=OFF" \
-DBOOTSTRAP_RUNTIMES_CMAKE_ARGS="-DCMAKE_C_FLAGS=-Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -Wno-unused-command-line-argument -Wdate-time -D_FORTIFY_SOURCE=2;-DCMAKE_CXX_FLAGS=-fstack-protector-strong -Wformat -Werror=format-security -Wno-unused-command-line-argument -Wdate-time -D_FORTIFY_SOURCE=2;-DCMAKE_Fortran_FLAGS=-D_FORTIFY_SOURCE=2;-DCMAKE_EXE_LINKER_FLAGS=-Wl,-z,relro -Wl,--build-id -L/build/reproducible-path/llvm-toolchain-21-21.1.8/build-llvm/lib;-DCMAKE_SHARED_LINKER_FLAGS=-Wl,-z,relro -Wl,--build-id -L/build/reproducible-path/llvm-toolchain-21-21.1.8/build-llvm/lib;-DCMAKE_MODULE_LINKER_FLAGS=-Wl,-z,relro -Wl,--build-id -L/build/reproducible-path/llvm-toolchain-21-21.1.8/build-llvm/lib;-DCMAKE_BUILD_TYPE=RelWithDebInfo;-DCMAKE_C_FLAGS_RELWITHDEBINFO=-O2 -DNDEBUG -g1;-DCMAKE_CXX_FLAGS_RELWITHDEBINFO=-O2 -DNDEBUG -g1;-DCMAKE_Fortran_FLAGS_RELWITHDEBINFO=-O2 -DNDEBUG -g1;-DLLVM_ENABLE_PER_TARGET_RUNTIME_DIR=OFF"

I: annotate-output 2.25.15+deb13u1
I: prefix='%H:%M:%S '
08:18:53 I: Started bash ../configure.sh
08:18:54 O: -- bolt project is disabled
08:18:54 O: -- clang project is enabled
08:18:54 O: -- clang-tools-extra project is disabled
08:18:54 O: -- cross-project-tests project is disabled
08:18:54 O: -- lld project is disabled
08:18:54 O: -- lldb project is disabled
08:18:54 O: -- mlir project is disabled
08:18:54 O: -- polly project is disabled
08:18:54 O: -- flang project is disabled
08:18:54 O: -- libc project is disabled
08:18:54 O: -- compiler-rt project is disabled
08:18:54 O: -- Doxygen disabled.
08:18:55 O: -- Found Python3: /usr/bin/python3 (found suitable version "3.13.5", minimum required is "3.8") found components: Interpreter
08:18:58 O: -- LLVM host triple: powerpc64le-linux-gnu
08:18:58 O: -- Native target architecture is PowerPC
08:18:58 O: -- Threads enabled.
08:18:58 O: -- Ninja version: 1.12.1
08:18:58 O: -- OCaml bindings enabled.
08:18:58 O: -- LLVM default target triple: powerpc64le-linux-gnu
08:18:58 O: -- Performing Test LLVM_USES_LIBSTDCXX
08:18:58 O: -- Performing Test LLVM_USES_LIBSTDCXX - Success
08:18:58 O: -- Performing Test LLVM_DEFAULT_TO_GLIBCXX_USE_CXX11_ABI
08:18:59 O: -- Performing Test LLVM_DEFAULT_TO_GLIBCXX_USE_CXX11_ABI - Success
08:18:59 O: -- Building with -fPIC
08:18:59 E: Precompiled headers are disabled by default with GCC. Pass -DCMAKE_DISABLE_PRECOMPILE_HEADERS=OFF to override.
08:18:59 O: -- Precompiled headers disabled.
08:18:59 O: -- Looking for flock
08:19:01 O: -- Looking for flock - found
08:19:03 O: -- Targeting M68k
08:19:03 O: -- Targeting Xtensa
08:19:03 O: -- Targeting PowerPC
08:19:05 O: -- Clang version: 23.0.0
08:19:08 O: -- Found Python3: /usr/bin/python3 (found version "3.13.5") found components: Interpreter
08:19:09 O: -- Setting next clang stage to: stage2
08:19:11 O: -- Registering ExampleIRTransforms as a pass plugin (static build: OFF)
08:19:11 O: -- Registering Bye as a pass plugin (static build: OFF)
08:19:15 O: -- Google Benchmark version: v0.0.0, normalized to 0.0.0
08:19:16 O: -- Performing Test HAVE_GNU_POSIX_REGEX -- failed to compile
08:19:16 O: -- Performing Test HAVE_POSIX_REGEX -- success
08:19:16 O: -- Performing Test HAVE_STEADY_CLOCK -- success
08:19:16 O: -- Performing Test HAVE_PTHREAD_AFFINITY -- success
08:19:16 O: -- Configuring done (21.9s)
08:19:26 O: -- Generating done (10.3s)
08:19:26 O: -- Build files have been written to: /home/fabiang/llvm-project/build-llvm
08:19:27 I: Finished with exitcode 0

```

This is the build invocation:
```
LD_LIBRARY_PATH=/build/reproducible-path/llvm-toolchain-21-21.1.8/build-llvm/lib:$LD_LIBRARY_PATH \
VERBOSE=1 CMAKE_BUILD_PARALLEL_LEVEL=4 \
/usr/bin/time -v cmake --build build-llvm --target stage2
```

and resulting error:
```
[..]
09:44:48 O: [1314/2013] /home/fabiang/llvm-project/build-llvm/bin/clang++ --target=powerpc64le-linux-gnu -DDEBUG_PREFIX=\"PluginInterface\" -DLIBC_NAMESPACE=__llvm_libc_common_utils -DTARGET_NAME=PluginInterface -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/home/fabiang/llvm-project/llvm/include -I/home/fabiang/llvm-project/build-llvm/include -I/home/fabiang/llvm-project/offload/plugins-nextgen/common/include -I/home/fabiang/llvm-project/build-llvm/runtimes/runtimes-bins/offload/plugins-nextgen/common/include -I/home/fabiang/llvm-project/build-llvm/runtimes/runtimes-bins/offload/include -I/home/fabiang/llvm-project/offload/include -I/home/fabiang/llvm-project/cmake/Modules/../../libc -fstack-protector-strong -Wformat -Werror=format-security -Wno-unused-command-line-argument -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wstring-conversion -Wno-pass-failed -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections -Xclang -fno-pch-timestamp -fdebug-prefix-map=/home/fabiang/llvm-project/build-llvm/runtimes/runtimes-bins=../../../ -fdebug-prefix-map=/home/fabiang/llvm-project/= -no-canonical-prefixes -ffile-prefix-map=/home/fabiang/llvm-project/build-llvm/runtimes/runtimes-bins=../../../ -ffile-prefix-map=/home/fabiang/llvm-project/= -no-canonical-prefixes -O3 -DNDEBUG -std=c++17 -fPIC -fno-exceptions -Werror=global-constructors -MD -MT offload/plugins-nextgen/common/CMakeFiles/PluginCommon.dir/src/RPC.cpp.o -MF offload/plugins-nextgen/common/CMakeFiles/PluginCommon.dir/src/RPC.cpp.o.d -o offload/plugins-nextgen/common/CMakeFiles/PluginCommon.dir/src/RPC.cpp.o -c /home/fabiang/llvm-project/offload/plugins-nextgen/common/src/RPC.cpp
09:44:48 O: FAILED: offload/plugins-nextgen/common/CMakeFiles/PluginCommon.dir/src/RPC.cpp.o
09:44:48 O: /home/fabiang/llvm-project/build-llvm/bin/clang++ --target=powerpc64le-linux-gnu -DDEBUG_PREFIX=\"PluginInterface\" -DLIBC_NAMESPACE=__llvm_libc_common_utils -DTARGET_NAME=PluginInterface -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/home/fabiang/llvm-project/llvm/include -I/home/fabiang/llvm-project/build-llvm/include -I/home/fabiang/llvm-project/offload/plugins-nextgen/common/include -I/home/fabiang/llvm-project/build-llvm/runtimes/runtimes-bins/offload/plugins-nextgen/common/include -I/home/fabiang/llvm-project/build-llvm/runtimes/runtimes-bins/offload/include -I/home/fabiang/llvm-project/offload/include -I/home/fabiang/llvm-project/cmake/Modules/../../libc -fstack-protector-strong -Wformat -Werror=format-security -Wno-unused-command-line-argument -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wstring-conversion -Wno-pass-failed -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections -Xclang -fno-pch-timestamp -fdebug-prefix-map=/home/fabiang/llvm-project/build-llvm/runtimes/runtimes-bins=../../../ -fdebug-prefix-map=/home/fabiang/llvm-project/= -no-canonical-prefixes -ffile-prefix-map=/home/fabiang/llvm-project/build-llvm/runtimes/runtimes-bins=../../../ -ffile-prefix-map=/home/fabiang/llvm-project/= -no-canonical-prefixes -O3 -DNDEBUG -std=c++17 -fPIC -fno-exceptions -Werror=global-constructors -MD -MT offload/plugins-nextgen/common/CMakeFiles/PluginCommon.dir/src/RPC.cpp.o -MF offload/plugins-nextgen/common/CMakeFiles/PluginCommon.dir/src/RPC.cpp.o.d -o offload/plugins-nextgen/common/CMakeFiles/PluginCommon.dir/src/RPC.cpp.o -c /home/fabiang/llvm-project/offload/plugins-nextgen/common/src/RPC.cpp
09:44:48 O: In file included from /home/fabiang/llvm-project/offload/plugins-nextgen/common/src/RPC.cpp:18:
09:44:48 O: In file included from /home/fabiang/llvm-project/cmake/Modules/../../libc/shared/rpc_server.h:13:
09:44:48 O: In file included from /home/fabiang/llvm-project/cmake/Modules/../../libc/src/__support/RPC/rpc_server.h:53:
09:44:48 O: In file included from /home/fabiang/llvm-project/cmake/Modules/../../libc/src/stdio/printf_core/converter.h:13:
09:44:48 O: In file included from /home/fabiang/llvm-project/cmake/Modules/../../libc/src/stdio/printf_core/core_structs.h:16:
09:44:48 O: /home/fabiang/llvm-project/cmake/Modules/../../libc/src/__support/FPUtil/FPBits.h:816:1: warning: non-void function does not return a value [-Wreturn-type]
09:44:48 O: 816 | }
09:44:48 O: | ^
09:44:48 O: /home/fabiang/llvm-project/cmake/Modules/../../libc/src/__support/FPUtil/FPBits.h:827:50: note: in instantiation of function template specialization '__llvm_libc_common_utils::fputil::get_fp_type' requested here
09:44:48 O: 827 | struct FPBits final : public internal::FPRepImpl(), FPBits> {
09:44:48 O: | ^
09:44:48 O: /home/fabiang/llvm-project/cmake/Modules/../../libc/src/__support/float_to_string.h:375:46: note: in instantiation of template class '__llvm_libc_common_utils::fputil::FPBits' requested here
09:44:48 O: 375 | LIBC_INLINE uint32_t mul_shift_mod_1e9(const FPBits::StorageType mantissa,
09:44:48 O: | ^
09:44:48 O: In file included from /home/fabiang/llvm-project/offload/plugins-nextgen/common/src/RPC.cpp:18:
09:44:48 O: In file included from /home/fabiang/llvm-project/cmake/Modules/../../libc/shared/rpc_server.h:13:
09:44:48 O: In file included from /home/fabiang/llvm-project/cmake/Modules/../../libc/src/__support/RPC/rpc_server.h:53:
09:44:48 O: In file included from /home/fabiang/llvm-project/cmake/Modules/../../libc/src/stdio/printf_core/converter.h:13:
09:44:48 O: In file included from /home/fabiang/llvm-project/cmake/Modules/../../libc/src/stdio/printf_core/core_structs.h:16:
09:44:48 O: /home/fabiang/llvm-project/cmake/Modules/../../libc/src/__support/FPUtil/FPBits.h:827:50: error: non-type template argument is not a constant expression
09:44:48 O: 827 | struct FPBits final : public internal::FPRepImpl(), FPBits> {
09:44:48 O: | ^~~~~~~~~~~~~~~~
09:44:48 O: /home/fabiang/llvm-project/cmake/Modules/../../libc/src/__support/float_to_string.h:375:46: note: in instantiation of template class '__llvm_libc_common_utils::fputil::FPBits' requested here
09:44:48 O: 375 | LIBC_INLINE uint32_t mul_shift_mod_1e9(const FPBits::StorageType mantissa,
09:44:48 O: | ^
09:44:48 O: /home/fabiang/llvm-project/cmake/Modules/../../libc/src/__support/FPUtil/FPBits.h:816:1: note: control reached end of constexpr function
09:44:48 O: 816 | }
09:44:48 O: | ^
09:44:48 O: /home/fabiang/llvm-project/cmake/Modules/../../libc/src/__support/FPUtil/FPBits.h:827:50: note: in call to 'get_fp_type()'
09:44:48 O: 827 | struct FPBits final : public internal::FPRepImpl(), FPBits> {
09:44:48 O: | ^~~~~~~~~~~~~~~~
09:44:48 O: /home/fabiang/llvm-project/cmake/Modules/../../libc/src/__support/FPUtil/FPBits.h:830:34: error: non-type template argument is not a constant expression
09:44:48 O: 830 | using UP = internal::FPRepImpl(), FPBits>;
09:44:48 O: | ^~~~~~~~~~~~~~~~
09:44:48 O: /home/fabiang/llvm-project/cmake/Modules/../../libc/src/__support/FPUtil/FPBits.h:816:1: note: control reached end of constexpr function
09:44:48 O: 816 | }
09:44:48 O: | ^
09:44:48 O: /home/fabiang/llvm-project/cmake/Modules/../../libc/src/__support/FPUtil/FPBits.h:830:34: note: in call to 'get_fp_type()'
09:44:48 O: 830 | using UP = internal::FPRepImpl(), FPBits>;
09:44:48 O: | ^~~~~~~~~~~~~~~~
09:44:48 O: In file included from /home/fabiang/llvm-project/offload/plugins-nextgen/common/src/RPC.cpp:18:
09:44:48 O: In file included from /home/fabiang/llvm-project/cmake/Modules/../../libc/shared/rpc_server.h:13:
09:44:48 O: In file included from /home/fabiang/llvm-project/cmake/Modules/../../libc/src/__support/RPC/rpc_server.h:53:
09:44:48 O: In file included from /home/fabiang/llvm-project/cmake/Modules/../../libc/src/stdio/printf_core/converter.h:21:
09:44:48 O: In file included from /home/fabiang/llvm-project/cmake/Modules/../../libc/src/stdio/printf_core/converter_atlas.h:32:
09:44:48 O: In file included from /home/fabiang/llvm-project/cmake/Modules/../../libc/src/stdio/printf_core/float_dec_converter.h:17:
09:44:48 O: /home/fabiang/llvm-project/cmake/Modules/../../libc/src/__support/float_to_string.h:379:50: error: no member named 'STORAGE_LEN' in '__llvm_libc_common_utils::fputil::FPBits'
09:44:48 O: 379 | UInt val(
09:44:48 O: | ^~~~~~~~~~~
09:44:48 O: In file included from /home/fabiang/llvm-project/offload/plugins-nextgen/common/src/RPC.cpp:18:
09:44:48 O: In file included from /home/fabiang/llvm-project/cmake/Modules/../../libc/shared/rpc_server.h:13:
09:44:48 O: In file included from /home/fabiang/llvm-project/cmake/Modules/../../libc/src/__support/RPC/rpc_server.h:53:
09:44:48 O: In file included from /home/fabiang/llvm-project/cmake/Modules/../../libc/src/stdio/printf_core/converter.h:21:
09:44:48 O: In file included from /home/fabiang/llvm-project/cmake/Modules/../../libc/src/stdio/printf_core/converter_atlas.h:32:
09:44:48 O: In file included from /home/fabiang/llvm-project/cmake/Modules/../../libc/src/stdio/printf_core/float_dec_converter.h:23:
09:44:48 O: /home/fabiang/llvm-project/cmake/Modules/../../libc/src/stdio/printf_core/float_inf_nan_converter.h:37:30: error: no member named 'is_neg' in '__llvm_libc_common_utils::fputil::FPBits'
09:44:48 O: 37 | is_negative = float_bits.is_neg();
09:44:48 O: | ~~~~~~~~~~ ^
09:44:48 O: /home/fabiang/llvm-project/cmake/Modules/../../libc/src/stdio/printf_core/float_inf_nan_converter.h:38:27: error: no member named 'get_mantissa' in '__llvm_libc_common_utils::fputil::FPBits'
09:44:48 O: 38 | mantissa = float_bits.get_mantissa();
09:44:48 O: | ~~~~~~~~~~ ^
09:44:48 O: In file included from /home/fabiang/llvm-project/offload/plugins-nextgen/common/src/RPC.cpp:18:
09:44:48 O: In file included from /home/fabiang/llvm-project/cmake/Modules/../../libc/shared/rpc_server.h:13:
09:44:48 O: In file included from /home/fabiang/llvm-project/cmake/Modules/../../libc/src/__support/RPC/rpc_server.h:53:
09:44:48 O: In file included from /home/fabiang/llvm-project/cmake/Modules/../../libc/src/stdio/printf_core/converter.h:21:
09:44:48 O: In file included from /home/fabiang/llvm-project/cmake/Modules/../../libc/src/stdio/printf_core/converter_atlas.h:32:
09:44:48 O: /home/fabiang/llvm-project/cmake/Modules/../../libc/src/stdio/printf_core/float_dec_converter.h:246:17: error: no member named 'EXP_LEN' in '__llvm_libc_common_utils::fputil::FPBits'; did you mean 'fputil::FPBits::EXP_LEN'?
09:44:48 O: 246 | static_assert(fputil::FPBits::EXP_LEN < (sizeof(int) * 8));
09:44:48 O: | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
09:44:48 O: | fputil::FPBits::EXP_LEN
09:44:48 O: /home/fabiang/llvm-project/cmake/Modules/../../libc/src/__support/FPUtil/FPBits.h:153:13: note: 'fputil::FPBits::EXP_LEN' declared here
09:44:48 O: 153 | using UP::EXP_LEN; // The number of bits for the *exponent* part
09:44:48 O: | ^
09:44:48 O: In file included from /home/fabiang/llvm-project/offload/plugins-nextgen/common/src/RPC.cpp:18:
09:44:48 O: In file included from /home/fabiang/llvm-project/cmake/Modules/../../libc/shared/rpc_server.h:13:
09:44:48 O: In file included from /home/fabiang/llvm-project/cmake/Modules/../../libc/src/__support/RPC/rpc_server.h:53:
09:44:48 O: In file included from /home/fabiang/llvm-project/cmake/Modules/../../libc/src/stdio/printf_core/converter.h:21:
09:44:48 O: In file included from /home/fabiang/llvm-project/cmake/Modules/../../libc/src/stdio/printf_core/converter_atlas.h:32:
09:44:48 O: /home/fabiang/llvm-project/cmake/Modules/../../libc/src/stdio/printf_core/float_dec_converter.h:1132:33: error: no matching constructor for initialization of 'fputil::FPBits'
09:44:48 O: 1132 | fputil::FPBits float_bits(float_raw);
09:44:48 O: | ^ ~~~~~~~~~
09:44:48 O: /home/fabiang/llvm-project/cmake/Modules/../../libc/src/__support/FPUtil/FPBits.h:827:8: note: candidate constructor (the implicit copy constructor) not viable: no known conversion from 'fputil::FPBits::StorageType' (aka 'int') to 'const FPBits' for 1st argument
09:44:48 O: 827 | struct FPBits final : public internal::FPRepImpl(), FPBits> {
09:44:48 O: | ^~~~~~
09:44:48 O: /home/fabiang/llvm-project/cmake/Modules/../../libc/src/__support/FPUtil/FPBits.h:827:8: note: candidate constructor (the implicit move constructor) not viable: no known conversion from 'fputil::FPBits::StorageType' (aka 'int') to 'FPBits' for 1st argument
09:44:48 O: 827 | struct FPBits final : public internal::FPRepImpl(), FPBits> {
09:44:48 O: | ^~~~~~
09:44:48 O: /home/fabiang/llvm-project/cmake/Modules/../../libc/src/__support/FPUtil/FPBits.h:836:60: note: candidate template ignored: substitution failure [with XType = fputil::FPBits::StorageType]
09:44:48 O: 836 | template LIBC_INLINE constexpr explicit FPBits(XType x) {
09:44:48 O: | ^
09:44:48 O: /home/fabiang/llvm-project/cmake/Modules/../../libc/src/__support/FPUtil/FPBits.h:834:25: note: candidate constructor not viable: requires 0 arguments, but 1 was provided
09:44:48 O: 834 | LIBC_INLINE constexpr FPBits() = default;
09:44:48 O: | ^
09:44:48 O: In file included from /home/fabiang/llvm-project/offload/plugins-nextgen/common/src/RPC.cpp:18:
09:44:48 O: In file included from /home/fabiang/llvm-project/cmake/Modules/../../libc/shared/rpc_server.h:13:
09:44:48 O: In file included from /home/fabiang/llvm-project/cmake/Modules/../../libc/src/__support/RPC/rpc_server.h:53:
09:44:48 O: In file included from /home/fabiang/llvm-project/cmake/Modules/../../libc/src/stdio/printf_core/converter.h:21:
09:44:48 O: In file included from /home/fabiang/llvm-project/cmake/Modules/../../libc/src/stdio/printf_core/converter_atlas.h:32:
09:44:48 O: /home/fabiang/llvm-project/cmake/Modules/../../libc/src/stdio/printf_core/float_dec_converter.h:1133:21: error: no member named 'is_inf_or_nan' in '__llvm_libc_common_utils::fputil::FPBits'
09:44:48 O: 1133 | if (!float_bits.is_inf_or_nan()) {
09:44:48 O: | ~~~~~~~~~~ ^
09:44:48 O: /home/fabiang/llvm-project/cmake/Modules/../../libc/src/stdio/printf_core/float_dec_converter.h:1154:33: error: no matching constructor for initialization of 'fputil::FPBits'
09:44:48 O: 1154 | fputil::FPBits float_bits(float_raw);
09:44:48 O: | ^ ~~~~~~~~~
09:44:48 O: /home/fabiang/llvm-project/cmake/Modules/../../libc/src/__support/FPUtil/FPBits.h:827:8: note: candidate constructor (the implicit copy constructor) not viable: no known conversion from 'fputil::FPBits::StorageType' (aka 'int') to 'const FPBits' for 1st argument
09:44:48 O: 827 | struct FPBits final : public internal::FPRepImpl(), FPBits> {
09:44:48 O: | ^~~~~~
09:44:48 O: /home/fabiang/llvm-project/cmake/Modules/../../libc/src/__support/FPUtil/FPBits.h:827:8: note: candidate constructor (the implicit move constructor) not viable: no known conversion from 'fputil::FPBits::StorageType' (aka 'int') to 'FPBits' for 1st argument
09:44:48 O: 827 | struct FPBits final : public internal::FPRepImpl(), FPBits> {
09:44:48 O: | ^~~~~~
09:44:48 O: /home/fabiang/llvm-project/cmake/Modules/../../libc/src/__support/FPUtil/FPBits.h:836:60: note: candidate template ignored: substitution failure [with XType = fputil::FPBits::StorageType]
09:44:48 O: 836 | template LIBC_INLINE constexpr explicit FPBits(XType x) {
09:44:48 O: | ^
09:44:48 O: /home/fabiang/llvm-project/cmake/Modules/../../libc/src/__support/FPUtil/FPBits.h:834:25: note: candidate constructor not viable: requires 0 arguments, but 1 was provided
09:44:48 O: 834 | LIBC_INLINE constexpr FPBits() = default;
09:44:48 O: | ^
09:44:48 O: In file included from /home/fabiang/llvm-project/offload/plugins-nextgen/common/src/RPC.cpp:18:
09:44:48 O: In file included from /home/fabiang/llvm-project/cmake/Modules/../../libc/shared/rpc_server.h:13:
09:44:48 O: In file included from /home/fabiang/llvm-project/cmake/Modules/../../libc/src/__support/RPC/rpc_server.h:53:
09:44:48 O: In file included from /home/fabiang/llvm-project/cmake/Modules/../../libc/src/stdio/printf_core/converter.h:21:
09:44:48 O: In file included from /home/fabiang/llvm-project/cmake/Modules/../../libc/src/stdio/printf_core/converter_atlas.h:32:
09:44:48 O: /home/fabiang/llvm-project/cmake/Modules/../../libc/src/stdio/printf_core/float_dec_converter.h:1155:21: error: no member named 'is_inf_or_nan' in '__llvm_libc_common_utils::fputil::FPBits'
09:44:48 O: 1155 | if (!float_bits.is_inf_or_nan()) {
09:44:48 O: | ~~~~~~~~~~ ^
09:44:48 O: /home/fabiang/llvm-project/cmake/Modules/../../libc/src/stdio/printf_core/float_dec_converter.h:1176:33: error: no matching constructor for initialization of 'fputil::FPBits'
09:44:48 O: 1176 | fputil::FPBits float_bits(float_raw);
09:44:48 O: | ^ ~~~~~~~~~
09:44:48 O: /home/fabiang/llvm-project/cmake/Modules/../../libc/src/__support/FPUtil/FPBits.h:827:8: note: candidate constructor (the implicit copy constructor) not viable: no known conversion from 'fputil::FPBits::StorageType' (aka 'int') to 'const FPBits' for 1st argument
09:44:48 O: 827 | struct FPBits final : public internal::FPRepImpl(), FPBits> {
09:44:48 O: | ^~~~~~
09:44:48 O: /home/fabiang/llvm-project/cmake/Modules/../../libc/src/__support/FPUtil/FPBits.h:827:8: note: candidate constructor (the implicit move constructor) not viable: no known conversion from 'fputil::FPBits::StorageType' (aka 'int') to 'FPBits' for 1st argument
09:44:48 O: 827 | struct FPBits final : public internal::FPRepImpl(), FPBits> {
09:44:48 O: | ^~~~~~
09:44:48 O: /home/fabiang/llvm-project/cmake/Modules/../../libc/src/__support/FPUtil/FPBits.h:836:60: note: candidate template ignored: substitution failure [with XType = fputil::FPBits::StorageType]
09:44:48 O: 836 | template LIBC_INLINE constexpr explicit FPBits(XType x) {
09:44:48 O: | ^
09:44:48 O: /home/fabiang/llvm-project/cmake/Modules/../../libc/src/__support/FPUtil/FPBits.h:834:25: note: candidate constructor not viable: requires 0 arguments, but 1 was provided
09:44:48 O: 834 | LIBC_INLINE constexpr FPBits() = default;
09:44:48 O: | ^
09:44:48 O: In file included from /home/fabiang/llvm-project/offload/plugins-nextgen/common/src/RPC.cpp:18:
09:44:48 O: In file included from /home/fabiang/llvm-project/cmake/Modules/../../libc/shared/rpc_server.h:13:
09:44:48 O: In file included from /home/fabiang/llvm-project/cmake/Modules/../../libc/src/__support/RPC/rpc_server.h:53:
09:44:48 O: In file included from /home/fabiang/llvm-project/cmake/Modules/../../libc/src/stdio/printf_core/converter.h:21:
09:44:48 O: In file included from /home/fabiang/llvm-project/cmake/Modules/../../libc/src/stdio/printf_core/converter_atlas.h:32:
09:44:48 O: /home/fabiang/llvm-project/cmake/Modules/../../libc/src/stdio/printf_core/float_dec_converter.h:1177:21: error: no member named 'is_inf_or_nan' in '__llvm_libc_common_utils::fputil::FPBits'
09:44:48 O: 1177 | if (!float_bits.is_inf_or_nan()) {
09:44:48 O: | ~~~~~~~~~~ ^
09:44:48 O: In file included from /home/fabiang/llvm-project/offload/plugins-nextgen/common/src/RPC.cpp:18:
09:44:48 O: In file included from /home/fabiang/llvm-project/cmake/Modules/../../libc/shared/rpc_server.h:13:
09:44:48 O: In file included from /home/fabiang/llvm-project/cmake/Modules/../../libc/src/__support/RPC/rpc_server.h:53:
09:44:48 O: In file included from /home/fabiang/llvm-project/cmake/Modules/../../libc/src/stdio/printf_core/converter.h:21:
09:44:48 O: In file included from /home/fabiang/llvm-project/cmake/Modules/../../libc/src/stdio/printf_core/converter_atlas.h:35:
09:44:48 O: /home/fabiang/llvm-project/cmake/Modules/../../libc/src/stdio/printf_core/float_hex_converter.h:40:29: error: no member named 'FRACTION_LEN' in '__llvm_libc_common_utils::fputil::FPBits'
09:44:48 O: 40 | fraction_bits = LDBits::FRACTION_LEN;
09:44:48 O: | ^~~~~~~~~~~~
09:44:48 O: /home/fabiang/llvm-project/cmake/Modules/../../libc/src/stdio/printf_core/float_hex_converter.h:42:12: error: no matching constructor for initialization of 'LDBits' (aka 'fputil::FPBits')
09:44:48 O: 42 | LDBits float_bits(float_raw);
09:44:48 O: | ^ ~~~~~~~~~
09:44:48 O: /home/fabiang/llvm-project/cmake/Modules/../../libc/src/__support/FPUtil/FPBits.h:827:8: note: candidate constructor (the implicit copy constructor) not viable: no known conversion from 'LDBits::StorageType' (aka 'int') to 'const FPBits' for 1st argument
09:44:48 O: 827 | struct FPBits final : public internal::FPRepImpl(), FPBits> {
09:44:48 O: | ^~~~~~
09:44:49 O: /home/fabiang/llvm-project/cmake/Modules/../../libc/src/__support/FPUtil/FPBits.h:827:8: note: candidate constructor (the implicit move constructor) not viable: no known conversion from 'LDBits::StorageType' (aka 'int') to 'FPBits' for 1st argument
09:44:49 O: 827 | struct FPBits final : public internal::FPRepImpl(), FPBits> {
09:44:49 O: | ^~~~~~
09:44:49 O: /home/fabiang/llvm-project/cmake/Modules/../../libc/src/__support/FPUtil/FPBits.h:836:60: note: candidate template ignored: substitution failure [with XType = LDBits::StorageType]
09:44:49 O: 836 | template LIBC_INLINE constexpr explicit FPBits(XType x) {
09:44:49 O: | ^
09:44:49 O: /home/fabiang/llvm-project/cmake/Modules/../../libc/src/__support/FPUtil/FPBits.h:834:25: note: candidate constructor not viable: requires 0 arguments, but 1 was provided
09:44:49 O: 834 | LIBC_INLINE constexpr FPBits() = default;
09:44:49 O: | ^
09:44:49 O: In file included from /home/fabiang/llvm-project/offload/plugins-nextgen/common/src/RPC.cpp:18:
09:44:49 O: In file included from /home/fabiang/llvm-project/cmake/Modules/../../libc/shared/rpc_server.h:13:
09:44:49 O: In file included from /home/fabiang/llvm-project/cmake/Modules/../../libc/src/__support/RPC/rpc_server.h:53:
09:44:49 O: In file included from /home/fabiang/llvm-project/cmake/Modules/../../libc/src/stdio/printf_core/converter.h:21:
09:44:49 O: In file included from /home/fabiang/llvm-project/cmake/Modules/../../libc/src/stdio/printf_core/converter_atlas.h:35:
09:44:49 O: /home/fabiang/llvm-project/cmake/Modules/../../libc/src/stdio/printf_core/float_hex_converter.h:43:30: error: no member named 'is_neg' in '__llvm_libc_common_utils::fputil::FPBits'
09:44:49 O: 43 | is_negative = float_bits.is_neg();
09:44:49 O: | ~~~~~~~~~~ ^
09:44:49 O: /home/fabiang/llvm-project/cmake/Modules/../../libc/src/stdio/printf_core/float_hex_converter.h:44:27: error: no member named 'get_explicit_exponent' in '__llvm_libc_common_utils::fputil::FPBits'
09:44:49 O: 44 | exponent = float_bits.get_explicit_exponent();
09:44:49 O: | ~~~~~~~~~~ ^
09:44:49 O: /home/fabiang/llvm-project/cmake/Modules/../../libc/src/stdio/printf_core/float_hex_converter.h:45:27: error: no member named 'get_explicit_mantissa' in '__llvm_libc_common_utils::fputil::FPBits'
09:44:49 O: 45 | mantissa = float_bits.get_explicit_mantissa();
09:44:49 O: | ~~~~~~~~~~ ^
09:44:49 O: /home/fabiang/llvm-project/cmake/Modules/../../libc/src/stdio/printf_core/float_hex_converter.h:46:32: error: no member named 'is_inf_or_nan' in '__llvm_libc_common_utils::fputil::FPBits'
09:44:49 O: 46 | is_inf_or_nan = float_bits.is_inf_or_nan();
09:44:49 O: | ~~~~~~~~~~ ^
09:44:49 O: /home/fabiang/llvm-project/cmake/Modules/../../libc/src/stdio/printf_core/float_hex_converter.h:87:16: error: no member named 'FRACTION_LEN' in '__llvm_libc_common_utils::fputil::FPBits'
09:44:49 O: 87 | (LDBits::FRACTION_LEN / BITS_IN_HEX_DIGIT) + 1;
09:44:49 O: | ^~~~~~~~~~~~
09:44:49 O: /home/fabiang/llvm-project/cmake/Modules/../../libc/src/stdio/printf_core/float_hex_converter.h:88:20: warning: variable length arrays in C++ are a Clang extension [-Wvla-cxx-extension]
09:44:49 O: 88 | char mant_buffer[MANT_BUFF_LEN];
09:44:49 O: | ^~~~~~~~~~~~~
09:44:49 O: /home/fabiang/llvm-project/cmake/Modules/../../libc/src/stdio/printf_core/float_hex_converter.h:88:20: note: initializer of 'MANT_BUFF_LEN' is unknown
09:44:49 O: /home/fabiang/llvm-project/cmake/Modules/../../libc/src/stdio/printf_core/float_hex_converter.h:86:20: note: declared here
09:44:49 O: 86 | constexpr size_t MANT_BUFF_LEN =
09:44:49 O: | ^
09:44:49 O: fatal error: too many errors emitted, stopping now [-ferror-limit=]
09:44:49 O: 2 warnings and 20 errors generated.
09:44:50 O: [1315/2013] /home/fabiang/llvm-project/build-llvm/bin/clang++ --target=powerpc64le-linux-gnu -DDEBUG_PREFIX=\"PluginInterface\" -DLIBC_NAMESPACE=__llvm_libc_common_utils -DTARGET_NAME=PluginInterface -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/home/fabiang/llvm-project/llvm/include -I/home/fabiang/llvm-project/build-llvm/include -I/home/fabiang/llvm-project/offload/plugins-nextgen/common/include -I/home/fabiang/llvm-project/build-llvm/runtimes/runtimes-bins/offload/plugins-nextgen/common/include -I/home/fabiang/llvm-project/build-llvm/runtimes/runtimes-bins/offload/include -I/home/fabiang/llvm-project/offload/include -I/home/fabiang/llvm-project/cmake/Modules/../../libc -fstack-protector-strong -Wformat -Werror=format-security -Wno-unused-command-line-argument -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wstring-conversion -Wno-pass-failed -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections -Xclang -fno-pch-timestamp -fdebug-prefix-map=/home/fabiang/llvm-project/build-llvm/runtimes/runtimes-bins=../../../ -fdebug-prefix-map=/home/fabiang/llvm-project/= -no-canonical-prefixes -ffile-prefix-map=/home/fabiang/llvm-project/build-llvm/runtimes/runtimes-bins=../../../ -ffile-prefix-map=/home/fabiang/llvm-project/= -no-canonical-prefixes -O3 -DNDEBUG -std=c++17 -fPIC -fno-exceptions -Werror=global-constructors -MD -MT offload/plugins-nextgen/common/CMakeFiles/PluginCommon.dir/src/Utils/ELF.cpp.o -MF offload/plugins-nextgen/common/CMakeFiles/PluginCommon.dir/src/Utils/ELF.cpp.o.d -o offload/plugins-nextgen/common/CMakeFiles/PluginCommon.dir/src/Utils/ELF.cpp.o -c /home/fabiang/llvm-project/offload/plugins-nextgen/common/src/Utils/ELF.cpp
09:44:53 O: [1316/2013] /home/fabiang/llvm-project/build-llvm/bin/clang++ --target=powerpc64le-linux-gnu -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/home/fabiang/llvm-project/compiler-rt/lib/asan/.. -fstack-protector-strong -Wformat -Werror=format-security -Wno-unused-command-line-argument -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wstring-conversion -Wno-pass-failed -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections -Xclang -fno-pch-timestamp -fdebug-prefix-map=/home/fabiang/llvm-project/build-llvm/runtimes/runtimes-bins=../../../ -fdebug-prefix-map=/home/fabiang/llvm-project/= -no-canonical-prefixes -ffile-prefix-map=/home/fabiang/llvm-project/build-llvm/runtimes/runtimes-bins=../../../ -ffile-prefix-map=/home/fabiang/llvm-project/= -no-canonical-prefixes -Wall -Wno-unused-parameter -O3 -DNDEBUG -std=c++17 -m64 -fno-function-sections -fPIC -fno-builtin -fno-exceptions -fomit-frame-pointer -funwind-tables -fno-stack-protector -fno-sanitize=safe-stack -fvisibility=hidden -fno-lto -Wthread-safety -Wthread-safety-reference -Wthread-safety-beta -O3 -gline-tables-only -Wno-gnu -Wno-variadic-macros -Wno-c99-extensions -nostdinc++ -fno-rtti -Wno-format -MD -MT compiler-rt/lib/asan/CMakeFiles/RTAsan.powerpc64le.dir/asan_interceptors.cpp.o -MF compiler-rt/lib/asan/CMakeFiles/RTAsan.powerpc64le.dir/asan_interceptors.cpp.o.d -o compiler-rt/lib/asan/CMakeFiles/RTAsan.powerpc64le.dir/asan_interceptors.cpp.o -c /home/fabiang/llvm-project/compiler-rt/lib/asan/asan_interceptors.cpp
09:45:05 O: [1317/2013] /home/fabiang/llvm-project/build-llvm/bin/clang++ --target=powerpc64le-linux-gnu -DDEBUG_PREFIX="\"TARGET AMDGPU RTL\"" -DTARGET_NAME=AMDGPU -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/home/fabiang/llvm-project/llvm/include -I/home/fabiang/llvm-project/build-llvm/include -I/home/fabiang/llvm-project/offload/plugins-nextgen/common/include -I/home/fabiang/llvm-project/build-llvm/runtimes/runtimes-bins/offload/plugins-nextgen/common/include -I/home/fabiang/llvm-project/offload/plugins-nextgen/amdgpu/utils -I/home/fabiang/llvm-project/offload/plugins-nextgen/amdgpu/dynamic_hsa -I/home/fabiang/llvm-project/build-llvm/runtimes/runtimes-bins/offload/include -I/home/fabiang/llvm-project/offload/include -fstack-protector-strong -Wformat -Werror=format-security -Wno-unused-command-line-argument -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wstring-conversion -Wno-pass-failed -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections -Xclang -fno-pch-timestamp -fdebug-prefix-map=/home/fabiang/llvm-project/build-llvm/runtimes/runtimes-bins=../../../ -fdebug-prefix-map=/home/fabiang/llvm-project/= -no-canonical-prefixes -ffile-prefix-map=/home/fabiang/llvm-project/build-llvm/runtimes/runtimes-bins=../../../ -ffile-prefix-map=/home/fabiang/llvm-project/= -no-canonical-prefixes -O3 -DNDEBUG -std=c++17 -fPIC -fno-exceptions -funwind-tables -Werror=global-constructors -MD -MT offload/plugins-nextgen/amdgpu/CMakeFiles/omptarget.rtl.amdgpu.dir/src/rtl.cpp.o -MF offload/plugins-nextgen/amdgpu/CMakeFiles/omptarget.rtl.amdgpu.dir/src/rtl.cpp.o.d -o offload/plugins-nextgen/amdgpu/CMakeFiles/omptarget.rtl.amdgpu.dir/src/rtl.cpp.o -c /home/fabiang/llvm-project/offload/plugins-nextgen/amdgpu/src/rtl.cpp
09:45:05 O: ninja: build stopped: subcommand failed.
09:45:05 O:
09:45:05 O: FAILED: runtimes/runtimes-stamps/runtimes-build /home/fabiang/llvm-project/build-llvm/runtimes/runtimes-stamps/runtimes-build
09:45:05 O: cd /home/fabiang/llvm-project/build-llvm/runtimes/runtimes-bins && /usr/bin/cmake --build .
09:45:05 O: ninja: build stopped: subcommand failed.
09:45:05 O:
09:45:05 E: Command exited with non-zero status 1
09:45:05 E: Command being timed: "cmake --build build-llvm --target stage2"
09:45:05 E: User time (seconds): 19741.33
09:45:05 E: System time (seconds): 329.04
09:45:05 E: Percent of CPU this job got: 391%
09:45:05 E: Elapsed (wall clock) time (h:mm:ss or m:ss): 1:25:26
09:45:05 E: Average shared text size (kbytes): 0
09:45:05 E: Average unshared data size (kbytes): 0
09:45:05 E: Average stack size (kbytes): 0
09:45:05 E: Average total size (kbytes): 0
09:45:05 E: Maximum resident set size (kbytes): 2360008
09:45:05 E: Average resident set size (kbytes): 0
09:45:05 E: Major (requiring I/O) page faults: 2140
09:45:05 E: Minor (reclaiming a frame) page faults: 51813372
09:45:05 E: Voluntary context switches: 104238
09:45:05 E: Involuntary context switches: 1249687
09:45:05 E: Swaps: 0
09:45:05 E: File system inputs: 615992
09:45:05 E: File system outputs: 5980816
09:45:05 E: Socket messages sent: 0
09:45:05 E: Socket messages received: 0
09:45:05 E: Signals delivered: 0
09:45:05 E: Page size (bytes): 4096
09:45:05 E: Exit status: 1
09:45:05 I: Finished with exitcode 1
```

This fails both on `llvmorg-21.1.8` and current `main` (`f90b783c3f2b29378bc2913db9995422c70579ea`), as well as in the Debian package build based on 21.1.8

Contributor guide

Open the contributing guide

Research direction

Reproduce the ppc64le configuration using the shown CMake invocation with PPC_LINUX_DEFAULT_IEEELONGDOUBLE=OFF, then run the stage2 build and inspect the full failing command and diagnostic. Compare the behavior with the fix for issue #136596 and trace the affected configuration or build path. Done means the stage2 target builds successfully without requiring the unsupported option.

Written by the indexing model from the issue text.

Assessment

Tech stack
cmake, cpp
Domain
build-system, compilers
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Needs clarification
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.