compiler-rt-14.0.6 package build fails during configure phase with below error.
{{
– Detecting CXX compile features - done
CMake Error at CMakeLists.txt:31 (include):
include could not find load file:
SetPlatformToolchainTools
CMake Error at cmake/base-config-ix.cmake:9 (include):
include could not find load file:
Thank you for your input. i am using buildroot environment for building llvm/clang/lld and compiler-rt packages , hence i used ‘package’ word in my previous mail.
compilation of llvm-14.0.6 and clang-14.0.6 packages are successful and compiler-rt-14.0.6 compilation fails at configuration stage.
i referred Backport "Add cmake to source release tarballs" to 14.x · Issue #54183 · llvm/llvm-project · GitHub as issue is same as i encountered (⚙ D118481 Add cmake to source release tarballs) and applied the patches that are proposed in above link and those patches are attached in my first comment. But still compiler-rt package failure is seen at configuration stage.
Provided failure log below.
{{
compiler-rt-14.0.6.src.tar.xz: OK (sha256: 88df303840ca8fbff944e15e61c141226fe79f5d2b8e89fb024264d77841a02e)^M
^[[7m>>> compiler-rt 14.0.6 Extracting^[[27m^M
//bin/xzcat /root/build/build/buildroot-source/dl/compiler-rt/compiler-rt-14.0.6.src.tar.xz | //bin/tar --strip-components=1 -C /root/build/build/buildroot-build/build/compiler-rt-14.0.6 -xf -^M
^[[7m>>> compiler-rt 14.0.6 Patching^[[27m^M
^[[7m>>> compiler-rt 14.0.6 Configuring^[[27m^M
(mkdir -p /root/build/build/buildroot-build/build/compiler-rt-14.0.6/ && cd /root/build/build/buildroot-build/build/compiler-rt-14.0.6/ && rm -f CMakeCache.txt && PATH=“//bin://sbin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin” //bin/cmake /root/build/build/buildroot-build/build/compiler-rt-14.0.6/ -DCMAKE_TOOLCHAIN_FILE=“//share/buildroot/toolchainfile.cmake” -DCMAKE_INSTALL_PREFIX=“/usr” -DCMAKE_COLOR_MAKEFILE=OFF -DBUILD_DOC=OFF -DBUILD_DOCS=OFF -DBUILD_EXAMPLE=OFF -DBUILD_EXAMPLES=OFF -DBUILD_TEST=OFF -DBUILD_TESTS=OFF -DBUILD_TESTING=OFF -DBUILD_SHARED_LIBS=ON -DCOMPILER_RT_STANDALONE_BUILD=OFF -DCOMPILER_RT_STANDALONE_BUILD=ON -DCOMPILER_RT_DEFAULT_TARGET_TRIPLE=x86_64–linux-gnu -DLLVM_CONFIG_PATH=//bin/llvm-config )^M
– The C compiler identification is GNU 9.3.0^M
– The CXX compiler identification is GNU 9.3.0^M
– The ASM compiler identification is GNU^M
– Found assembler: //bin/x86_64–linux-gnu-gcc^M
– Check for working C compiler: //bin/x86_64–linux-gnu-gcc^M
– Check for working C compiler: //bin/x86_64–linux-gnu-gcc – works^M
– Detecting C compiler ABI info^M
– Detecting C compiler ABI info - done^M
– Detecting C compile features^M
– Detecting C compile features - done^M
– Check for working CXX compiler: //bin/x86_64–linux-gnu-g++^M
– Check for working CXX compiler: //bin/x86_64–linux-gnu-g++ – works^M
– Detecting CXX compiler ABI info^M
– Detecting CXX compiler ABI info - done^M
– Detecting CXX compile features^M
– Detecting CXX compile features - done^M
CMake Error at CMakeLists.txt:31 (include):^M
include could not find load file:^M
^M
SetPlatformToolchainTools^M
CMake Error at cmake/base-config-ix.cmake:9 (include):^M
include could not find load file:^M
^M
ExtendPath^M
Call Stack (most recent call first):^M
CMakeLists.txt:32 (include)^M
^M
^M
– Looking for unwind.h^M
– Looking for unwind.h - found^M
– Looking for rpc/xdr.h^M
– Looking for rpc/xdr.h - found^M
CMake Error at cmake/base-config-ix.cmake:108 (extend_path):^M
Unknown CMake command “extend_path”.^M
Call Stack (most recent call first):^M
CMakeLists.txt:32 (include)^M
^M
^M
– Configuring incomplete, errors occurred!^M