Skip to content
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

uefi build support #353050

Draft
wants to merge 3 commits into
base: staging
Choose a base branch
from
Draft

uefi build support #353050

wants to merge 3 commits into from

Conversation

baloo
Copy link
Member

@baloo baloo commented Nov 2, 2024

This is a rebase of the work done in #231951

This is split between two PRs:

Things done

  • Built on platform(s)
    • x86_64-linux
    • aarch64-linux
    • x86_64-darwin
    • aarch64-darwin
  • For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)
    • sandbox = relaxed
    • sandbox = true
  • Tested, as applicable:
  • Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
  • Tested basic functionality of all binary files (usually in ./result/bin/)
  • 24.11 Release Notes (or backporting 23.11 and 24.05 Release notes)
    • (Package updates) Added a release notes entry if the change is major or breaking
    • (Module updates) Added a release notes entry if the change is significant
    • (Module addition) Added a release notes entry if adding a new NixOS module
  • Fits CONTRIBUTING.md.

Add a 👍 reaction to pull requests you find important.

@baloo baloo marked this pull request as draft November 2, 2024 03:59
@github-actions github-actions bot added the 6.topic: lib The Nixpkgs function library label Nov 2, 2024
@baloo
Copy link
Member Author

baloo commented Nov 2, 2024

cc @RaitoBezarius

@baloo
Copy link
Member Author

baloo commented Nov 2, 2024

There is something to fix with LLVM (building pkgsCross.x86_64-unknown-uefi.lanzaboote-uefi-stub):

Running phase: unpackPhase
@nix { "action": "setPhase", "phase": "unpackPhase" }
unpacking source archive /nix/store/5c0n5bjrz72fppww34bs7xh5h57fx10h-compiler-rt-src-18.1.8
source root is compiler-rt-src-18.1.8/compiler-rt
Running phase: patchPhase
@nix { "action": "setPhase", "phase": "patchPhase" }
applying patch /nix/store/qvyl9jgm1a1mlix44qbsgrd1ipwciamk-X86-support-extension.patch
patching file lib/builtins/CMakeLists.txt
Hunk #1 succeeded at 368 (offset 20 lines).
Hunk #2 succeeded at 808 with fuzz 2 (offset 81 lines).
applying patch /nix/store/iy4wp1wspv98nl2hlqn2w7y5pghfl9jh-normalize-var.patch
patching file cmake/Modules/CompilerRTUtils.cmake
applying patch /nix/store/j9lspxnlbkrcskxpxg7q6nb74wnn6v2b-darwin-plistbuddy-workaround.patch
patching file cmake/builtin-config-ix.cmake
Hunk #1 succeeded at 114 with fuzz 1 (offset 17 lines).
applying patch /nix/store/8mvcwn96881p7v9zgjgl6n37128ppfig-armv6-no-ldrexd-strexd.patch
patching file lib/builtins/arm/sync_fetch_and_add_8.S
patching file lib/builtins/arm/sync_fetch_and_and_8.S
patching file lib/builtins/arm/sync_fetch_and_max_8.S
patching file lib/builtins/arm/sync_fetch_and_min_8.S
patching file lib/builtins/arm/sync_fetch_and_nand_8.S
patching file lib/builtins/arm/sync_fetch_and_or_8.S
patching file lib/builtins/arm/sync_fetch_and_sub_8.S
patching file lib/builtins/arm/sync_fetch_and_umax_8.S
patching file lib/builtins/arm/sync_fetch_and_umin_8.S
patching file lib/builtins/arm/sync_fetch_and_xor_8.S
applying patch /nix/store/yqs4ahb8dx96hh2bsa5wgga9kca7lpkg-armv6-scudo-libatomic.patch
patching file lib/scudo/standalone/CMakeLists.txt
Hunk #2 succeeded at 42 (offset 5 lines).
patching file lib/scudo/standalone/tests/CMakeLists.txt
Hunk #1 succeeded at 46 (offset 7 lines).
substituteStream() in derivation compiler-rt-x86_64-unknown-uefi-18.1.8: WARNING: '--replace' is deprecated, use --replace-{fail,warn,quiet}. (file 'cmake/builtin-config-ix.cmake')
Running phase: updateAutotoolsGnuConfigScriptsPhase
@nix { "action": "setPhase", "phase": "updateAutotoolsGnuConfigScriptsPhase" }
Running phase: configurePhase
@nix { "action": "setPhase", "phase": "configurePhase" }
fixing cmake files...
cmake flags: -GNinja -DCMAKE_FIND_USE_SYSTEM_PACKAGE_REGISTRY=OFF -DCMAKE_FIND_USE_PACKAGE_REGISTRY=OFF -DCMAKE_EXPORT_NO_PACKAGE_REGISTRY=ON -DCMAKE_BUILD_TYPE=Release -DBUILD_TESTING=OFF -DCMAKE_INSTALL_LOCALEDIR=/nix/store/sjx2ya16y70nd78vq1asm9yvqqwib19k-compiler-rt-x86_64-unknown-uefi-18.1.8/share/locale -DCMAKE_INSTALL_LIBEXECDIR=/nix/store/sjx2ya16y70nd78vq1asm9yvqqwib19k-compiler-rt-x86_64-unknown-uefi-18.1.8/libexec -DCMAKE_INSTALL_LIBDIR=/nix/store/sjx2ya16y70nd78vq1asm9yvqqwib19k-compiler-rt-x86_64-unknown-uefi-18.1.8/lib -DCMAKE_INSTALL_DOCDIR=/nix/store/sjx2ya16y70nd78vq1asm9yvqqwib19k-compiler-rt-x86_64-unknown-uefi-18.1.8/share/doc/CompilerRT -DCMAKE_INSTALL_INFODIR=/nix/store/sjx2ya16y70nd78vq1asm9yvqqwib19k-compiler-rt-x86_64-unknown-uefi-18.1.8/share/info -DCMAKE_INSTALL_MANDIR=/nix/store/sjx2ya16y70nd78vq1asm9yvqqwib19k-compiler-rt-x86_64-unknown-uefi-18.1.8/share/man -DCMAKE_INSTALL_OLDINCLUDEDIR=/nix/store/wy90g5q8d37rh0nk2mhz2niry272plch-compiler-rt-x86_64-unknown-uefi-18.1.8-dev/include -DCMAKE_INSTALL_INCLUDEDIR=/nix/store/wy90g5q8d37rh0nk2mhz2niry272plch-compiler-rt-x86_64-unknown-uefi-18.1.8-dev/include -DCMAKE_INSTALL_SBINDIR=/nix/store/sjx2ya16y70nd78vq1asm9yvqqwib19k-compiler-rt-x86_64-unknown-uefi-18.1.8/sbin -DCMAKE_INSTALL_BINDIR=/nix/store/sjx2ya16y70nd78vq1asm9yvqqwib19k-compiler-rt-x86_64-unknown-uefi-18.1.8/bin -DCMAKE_INSTALL_NAME_DIR=/nix/store/sjx2ya16y70nd78vq1asm9yvqqwib19k-compiler-rt-x86_64-unknown-uefi-18.1.8/lib -DCMAKE_POLICY_DEFAULT_CMP0025=NEW -DCMAKE_FIND_FRAMEWORK=LAST -DCMAKE_STRIP=/nix/store/hclh3vrfmflvaw9xajm7m0jkwp656v90-llvm-binutils-18.1.8/bin/x86_64-unknown-uefi-strip -DCMAKE_RANLIB=/nix/store/d5qzilr7vj5lwgp7wd3il63fzi53l8fr-x86_64-unknown-uefi-clang-wrapper-18.1.8/bin/x86_64-unknown-uefi-ranlib -DCMAKE_AR=/nix/store/d5qzilr7vj5lwgp7wd3il63fzi53l8fr-x86_64-unknown-uefi-clang-wrapper-18.1.8/bin/x86_64-unknown-uefi-ar -DCMAKE_C_COMPILER=x86_64-unknown-uefi-clang -DCMAKE_CXX_COMPILER=x86_64-unknown-uefi-clang++ -DCMAKE_INSTALL_PREFIX=/nix/store/sjx2ya16y70nd78vq1asm9yvqqwib19k-compiler-rt-x86_64-unknown-uefi-18.1.8 -DCOMPILER_RT_DEFAULT_TARGET_ONLY=ON -DCMAKE_C_COMPILER_TARGET=x86_64-unknown-uefi -DCMAKE_ASM_COMPILER_TARGET=x86_64-unknown-uefi -DCOMPILER_RT_BUILD_SANITIZERS=OFF -DCOMPILER_RT_BUILD_XRAY=OFF -DCOMPILER_RT_BUILD_LIBFUZZER=OFF -DCOMPILER_RT_BUILD_MEMPROF=OFF -DCOMPILER_RT_BUILD_ORC=OFF -DCOMPILER_RT_BUILD_PROFILE=OFF -DCMAKE_CXX_COMPILER_WORKS=ON -DCMAKE_C_COMPILER_WORKS=ON -DCOMPILER_RT_BAREMETAL_BUILD=ON -DCMAKE_SIZEOF_VOID_P=8 -DCMAKE_C_FLAGS=-nodefaultlibs -DCOMPILER_RT_BUILD_BUILTINS=ON -DCMAKE_TRY_COMPILE_TARGET_TYPE=STATIC_LIBRARY -DCMAKE_SYSTEM_NAME=Generic -DCMAKE_SYSTEM_PROCESSOR=x86_64 -DCMAKE_HOST_SYSTEM_NAME=Linux -DCMAKE_HOST_SYSTEM_PROCESSOR=x86_64
CMake Deprecation Warning at /build/compiler-rt-src-18.1.8/cmake/Modules/CMakePolicy.cmake:6 (cmake_policy):
  The OLD behavior for policy CMP0114 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:11 (include)


CMake Deprecation Warning at /build/compiler-rt-src-18.1.8/cmake/Modules/CMakePolicy.cmake:11 (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:11 (include)


-- The C compiler identification is unknown
-- The CXX compiler identification is unknown
-- The ASM compiler identification is Clang with GNU-like command-line
-- Found assembler: /nix/store/d5qzilr7vj5lwgp7wd3il63fzi53l8fr-x86_64-unknown-uefi-clang-wrapper-18.1.8/bin/x86_64-unknown-uefi-clang
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - failed
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - failed
-- Looking for unwind.h
-- Looking for unwind.h - not found
-- Looking for rpc/xdr.h
-- Looking for rpc/xdr.h - not found
CMake Warning at cmake/Modules/CompilerRTUtils.cmake:298 (message):
  LLVM source tree not found at "/build/compiler-rt-src-18.1.8/llvm".  You
  are not using the monorepo layout.  This configuration is DEPRECATED.
Call Stack (most recent call first):
  CMakeLists.txt:85 (load_llvm_config)


-- Could NOT find FFI (missing: FFI_LIBRARIES HAVE_FFI_CALL)
-- Could NOT find Terminfo (missing: Terminfo_LIBRARIES Terminfo_LINKABLE)
-- Could NOT find ZLIB (missing: ZLIB_LIBRARY ZLIB_INCLUDE_DIR)
-- Could NOT find LibXml2 (missing: LIBXML2_LIBRARY LIBXML2_INCLUDE_DIR)
CMake Warning (dev) at /nix/store/6cs64y3mfgrrr6jp8j1kwywlm2kkgbjp-llvm-18.1.8-dev/lib/cmake/llvm/LLVMExports.cmake:1375 (add_library):
  ADD_LIBRARY called with SHARED option but the target platform does not
  support dynamic linking.  Building a STATIC library instead.  This may lead
  to problems.
Call Stack (most recent call first):
  /nix/store/6cs64y3mfgrrr6jp8j1kwywlm2kkgbjp-llvm-18.1.8-dev/lib/cmake/llvm/LLVMConfig.cmake:347 (include)
  cmake/Modules/CompilerRTUtils.cmake:303 (find_package)
  CMakeLists.txt:85 (load_llvm_config)
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning (dev) at /nix/store/6cs64y3mfgrrr6jp8j1kwywlm2kkgbjp-llvm-18.1.8-dev/lib/cmake/llvm/LLVMExports.cmake:1596 (add_library):
  ADD_LIBRARY called with SHARED option but the target platform does not
  support dynamic linking.  Building a STATIC library instead.  This may lead
  to problems.
Call Stack (most recent call first):
  /nix/store/6cs64y3mfgrrr6jp8j1kwywlm2kkgbjp-llvm-18.1.8-dev/lib/cmake/llvm/LLVMConfig.cmake:347 (include)
  cmake/Modules/CompilerRTUtils.cmake:303 (find_package)
  CMakeLists.txt:85 (load_llvm_config)
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning (dev) at /nix/store/6cs64y3mfgrrr6jp8j1kwywlm2kkgbjp-llvm-18.1.8-dev/lib/cmake/llvm/LLVMExports.cmake:1643 (add_library):
  ADD_LIBRARY called with MODULE option but the target platform does not
  support dynamic linking.  Building a STATIC library instead.  This may lead
  to problems.
Call Stack (most recent call first):
  /nix/store/6cs64y3mfgrrr6jp8j1kwywlm2kkgbjp-llvm-18.1.8-dev/lib/cmake/llvm/LLVMConfig.cmake:347 (include)
  cmake/Modules/CompilerRTUtils.cmake:303 (find_package)
  CMakeLists.txt:85 (load_llvm_config)
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning (dev) at /nix/store/6cs64y3mfgrrr6jp8j1kwywlm2kkgbjp-llvm-18.1.8-dev/lib/cmake/llvm/LLVMExports.cmake:1650 (add_library):
  ADD_LIBRARY called with SHARED option but the target platform does not
  support dynamic linking.  Building a STATIC library instead.  This may lead
  to problems.
Call Stack (most recent call first):
  /nix/store/6cs64y3mfgrrr6jp8j1kwywlm2kkgbjp-llvm-18.1.8-dev/lib/cmake/llvm/LLVMConfig.cmake:347 (include)
  cmake/Modules/CompilerRTUtils.cmake:303 (find_package)
  CMakeLists.txt:85 (load_llvm_config)
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning at cmake/Modules/CompilerRTUtils.cmake:326 (message):
  LLVMTestingSupport not found in LLVM_AVAILABLE_LIBS
Call Stack (most recent call first):
  CMakeLists.txt:85 (load_llvm_config)


-- LLVM_MAIN_SRC_DIR: "/build/compiler-rt-src-18.1.8/llvm"
CMake Warning at cmake/Modules/CompilerRTUtils.cmake:339 (message):
  LLVM_MAIN_SRC_DIR (/build/compiler-rt-src-18.1.8/llvm) does not exist.  You
  can override the inferred path by adding
  `-DLLVM_MAIN_SRC_DIR=<path_to_llvm_src>` to your CMake invocation where
  `<path_to_llvm_src>` is the path to the `llvm` directory in the
  `llvm-project` repo.  This will be treated as error in the future.
Call Stack (most recent call first):
  CMakeLists.txt:85 (load_llvm_config)


-- Found Python3: /nix/store/2ygyzh0jh3kagrpjgyjknzg3d1q2wzn4-python3-3.12.7/bin/python3.12 (found version "3.12.7") found components: Interpreter
-- cmake c compiler target: x86_64-unknown-uefi
-- Linker detection: unknown
-- Performing Test CXX_SUPPORTS_UNWINDLIB_NONE_FLAG
-- Performing Test CXX_SUPPORTS_UNWINDLIB_NONE_FLAG - Failed
-- Looking for fopen in c
-- Looking for fopen in c - not found
-- Looking for __gcc_personality_v0 in gcc_s
-- Looking for __gcc_personality_v0 in gcc_s - not found
-- Performing Test C_SUPPORTS_NODEFAULTLIBS_FLAG
-- Performing Test C_SUPPORTS_NODEFAULTLIBS_FLAG - Failed
-- Performing Test COMPILER_RT_HAS_FFREESTANDING_FLAG
-- Performing Test COMPILER_RT_HAS_FFREESTANDING_FLAG - Failed
-- Performing Test COMPILER_RT_HAS_OMIT_FRAME_POINTER_FLAG
-- Performing Test COMPILER_RT_HAS_OMIT_FRAME_POINTER_FLAG - Failed
-- Performing Test COMPILER_RT_HAS_STD_C11_FLAG
-- Performing Test COMPILER_RT_HAS_STD_C11_FLAG - Failed
-- Performing Test COMPILER_RT_HAS_FCF_PROTECTION_FLAG
-- Performing Test COMPILER_RT_HAS_FCF_PROTECTION_FLAG - Failed
-- Performing Test COMPILER_RT_HAS_FPIC_FLAG
-- Performing Test COMPILER_RT_HAS_FPIC_FLAG - Failed
-- Performing Test COMPILER_RT_HAS_FPIE_FLAG
-- Performing Test COMPILER_RT_HAS_FPIE_FLAG - Failed
-- Performing Test COMPILER_RT_HAS_FNO_BUILTIN_FLAG
-- Performing Test COMPILER_RT_HAS_FNO_BUILTIN_FLAG - Failed
-- Performing Test COMPILER_RT_HAS_FNO_EXCEPTIONS_FLAG
-- Performing Test COMPILER_RT_HAS_FNO_EXCEPTIONS_FLAG - Failed
-- Performing Test COMPILER_RT_HAS_FOMIT_FRAME_POINTER_FLAG
-- Performing Test COMPILER_RT_HAS_FOMIT_FRAME_POINTER_FLAG - Failed
-- Performing Test COMPILER_RT_HAS_FUNWIND_TABLES_FLAG
-- Performing Test COMPILER_RT_HAS_FUNWIND_TABLES_FLAG - Failed
-- Performing Test COMPILER_RT_HAS_FNO_STACK_PROTECTOR_FLAG
-- Performing Test COMPILER_RT_HAS_FNO_STACK_PROTECTOR_FLAG - Failed
-- Performing Test COMPILER_RT_HAS_FNO_SANITIZE_SAFE_STACK_FLAG
-- Performing Test COMPILER_RT_HAS_FNO_SANITIZE_SAFE_STACK_FLAG - Failed
-- Performing Test COMPILER_RT_HAS_FVISIBILITY_HIDDEN_FLAG
-- Performing Test COMPILER_RT_HAS_FVISIBILITY_HIDDEN_FLAG - Failed
-- Performing Test COMPILER_RT_HAS_FRTTI_FLAG
-- Performing Test COMPILER_RT_HAS_FRTTI_FLAG - Failed
-- Performing Test COMPILER_RT_HAS_FNO_RTTI_FLAG
-- Performing Test COMPILER_RT_HAS_FNO_RTTI_FLAG - Failed
-- Performing Test COMPILER_RT_HAS_FNO_FUNCTION_SECTIONS_FLAG
-- Performing Test COMPILER_RT_HAS_FNO_FUNCTION_SECTIONS_FLAG - Failed
-- Performing Test COMPILER_RT_HAS_FTLS_MODEL_INITIAL_EXEC
-- Performing Test COMPILER_RT_HAS_FTLS_MODEL_INITIAL_EXEC - Failed
-- Performing Test COMPILER_RT_HAS_FNO_LTO_FLAG
-- Performing Test COMPILER_RT_HAS_FNO_LTO_FLAG - Failed
-- Performing Test COMPILER_RT_HAS_FNO_PROFILE_GENERATE_FLAG
-- Performing Test COMPILER_RT_HAS_FNO_PROFILE_GENERATE_FLAG - Failed
-- Performing Test COMPILER_RT_HAS_FNO_PROFILE_INSTR_GENERATE_FLAG
-- Performing Test COMPILER_RT_HAS_FNO_PROFILE_INSTR_GENERATE_FLAG - Failed
-- Performing Test COMPILER_RT_HAS_FNO_PROFILE_INSTR_USE_FLAG
-- Performing Test COMPILER_RT_HAS_FNO_PROFILE_INSTR_USE_FLAG - Failed
-- Performing Test COMPILER_RT_HAS_FNO_COVERAGE_MAPPING_FLAG
-- Performing Test COMPILER_RT_HAS_FNO_COVERAGE_MAPPING_FLAG - Failed
-- Performing Test COMPILER_RT_HAS_MCRC32_FLAG
-- Performing Test COMPILER_RT_HAS_MCRC32_FLAG - Failed
-- Performing Test COMPILER_RT_HAS_MSSE4_2_FLAG
-- Performing Test COMPILER_RT_HAS_MSSE4_2_FLAG - Failed
-- Performing Test COMPILER_RT_HAS_SYSROOT_FLAG
-- Performing Test COMPILER_RT_HAS_SYSROOT_FLAG - Failed
-- Performing Test COMPILER_RT_HAS_MCRC_FLAG
-- Performing Test COMPILER_RT_HAS_MCRC_FLAG - Failed
-- Performing Test COMPILER_RT_HAS_FNO_PARTIAL_INLINING_FLAG
-- Performing Test COMPILER_RT_HAS_FNO_PARTIAL_INLINING_FLAG - Failed
-- Performing Test -ftrivial-auto-var-init=pattern
-- Performing Test -ftrivial-auto-var-init=pattern - Failed
-- Performing Test COMPILER_RT_HAS_FVISIBILITY_INLINES_HIDDEN_FLAG
-- Performing Test COMPILER_RT_HAS_FVISIBILITY_INLINES_HIDDEN_FLAG - Failed
-- Performing Test COMPILER_RT_HAS_GR_FLAG
-- Performing Test COMPILER_RT_HAS_GR_FLAG - Failed
-- Performing Test COMPILER_RT_HAS_GS_FLAG
-- Performing Test COMPILER_RT_HAS_GS_FLAG - Failed
-- Performing Test COMPILER_RT_HAS_MT_FLAG
-- Performing Test COMPILER_RT_HAS_MT_FLAG - Failed
-- Performing Test COMPILER_RT_HAS_Oy_FLAG
-- Performing Test COMPILER_RT_HAS_Oy_FLAG - Failed
-- Performing Test COMPILER_RT_HAS_GLINE_TABLES_ONLY_FLAG
-- Performing Test COMPILER_RT_HAS_GLINE_TABLES_ONLY_FLAG - Failed
-- Performing Test COMPILER_RT_HAS_G_FLAG
-- Performing Test COMPILER_RT_HAS_G_FLAG - Failed
-- Performing Test COMPILER_RT_HAS_Zi_FLAG
-- Performing Test COMPILER_RT_HAS_Zi_FLAG - Failed
-- Performing Test COMPILER_RT_HAS_WALL_FLAG
-- Performing Test COMPILER_RT_HAS_WALL_FLAG - Failed
-- Performing Test COMPILER_RT_HAS_WERROR_FLAG
-- Performing Test COMPILER_RT_HAS_WERROR_FLAG - Failed
-- Performing Test COMPILER_RT_HAS_WFRAME_LARGER_THAN_FLAG
-- Performing Test COMPILER_RT_HAS_WFRAME_LARGER_THAN_FLAG - Failed
-- Performing Test COMPILER_RT_HAS_WGLOBAL_CONSTRUCTORS_FLAG
-- Performing Test COMPILER_RT_HAS_WGLOBAL_CONSTRUCTORS_FLAG - Failed
-- Performing Test COMPILER_RT_HAS_WC99_EXTENSIONS_FLAG
-- Performing Test COMPILER_RT_HAS_WC99_EXTENSIONS_FLAG - Failed
-- Performing Test COMPILER_RT_HAS_WGNU_FLAG
-- Performing Test COMPILER_RT_HAS_WGNU_FLAG - Failed
-- Performing Test COMPILER_RT_HAS_WVARIADIC_MACROS_FLAG
-- Performing Test COMPILER_RT_HAS_WVARIADIC_MACROS_FLAG - Failed
-- Performing Test COMPILER_RT_HAS_WUNUSED_PARAMETER_FLAG
-- Performing Test COMPILER_RT_HAS_WUNUSED_PARAMETER_FLAG - Failed
-- Performing Test COMPILER_RT_HAS_WCOVERED_SWITCH_DEFAULT_FLAG
-- Performing Test COMPILER_RT_HAS_WCOVERED_SWITCH_DEFAULT_FLAG - Failed
-- Performing Test COMPILER_RT_HAS_WSUGGEST_OVERRIDE_FLAG
-- Performing Test COMPILER_RT_HAS_WSUGGEST_OVERRIDE_FLAG - Failed
-- Performing Test COMPILER_RT_HAS_WTHREAD_SAFETY_FLAG
-- Performing Test COMPILER_RT_HAS_WTHREAD_SAFETY_FLAG - Failed
-- Performing Test COMPILER_RT_HAS_WTHREAD_SAFETY_REFERENCE_FLAG
-- Performing Test COMPILER_RT_HAS_WTHREAD_SAFETY_REFERENCE_FLAG - Failed
-- Performing Test COMPILER_RT_HAS_WTHREAD_SAFETY_BETA_FLAG
-- Performing Test COMPILER_RT_HAS_WTHREAD_SAFETY_BETA_FLAG - Failed
-- Performing Test COMPILER_RT_HAS_WNO_PEDANTIC
-- Performing Test COMPILER_RT_HAS_WNO_PEDANTIC - Failed
-- Performing Test COMPILER_RT_HAS_WNO_FORMAT
-- Performing Test COMPILER_RT_HAS_WNO_FORMAT - Failed
-- Performing Test COMPILER_RT_HAS_WNO_FORMAT_PEDANTIC
-- Performing Test COMPILER_RT_HAS_WNO_FORMAT_PEDANTIC - Failed
-- Performing Test COMPILER_RT_HAS_EXTERNAL_FLAG
-- Performing Test COMPILER_RT_HAS_EXTERNAL_FLAG - Failed
-- Performing Test COMPILER_RT_HAS_W4_FLAG
-- Performing Test COMPILER_RT_HAS_W4_FLAG - Failed
-- Performing Test COMPILER_RT_HAS_WX_FLAG
-- Performing Test COMPILER_RT_HAS_WX_FLAG - Failed
-- Performing Test COMPILER_RT_HAS_WD4146_FLAG
-- Performing Test COMPILER_RT_HAS_WD4146_FLAG - Failed
-- Performing Test COMPILER_RT_HAS_WD4206_FLAG
-- Performing Test COMPILER_RT_HAS_WD4206_FLAG - Failed
-- Performing Test COMPILER_RT_HAS_WD4291_FLAG
-- Performing Test COMPILER_RT_HAS_WD4291_FLAG - Failed
-- Performing Test COMPILER_RT_HAS_WD4221_FLAG
-- Performing Test COMPILER_RT_HAS_WD4221_FLAG - Failed
-- Performing Test COMPILER_RT_HAS_WD4391_FLAG
-- Performing Test COMPILER_RT_HAS_WD4391_FLAG - Failed
-- Performing Test COMPILER_RT_HAS_WD4722_FLAG
-- Performing Test COMPILER_RT_HAS_WD4722_FLAG - Failed
-- Performing Test COMPILER_RT_HAS_WD4800_FLAG
-- Performing Test COMPILER_RT_HAS_WD4800_FLAG - Failed
-- Performing Test -Warray-bounds
-- Performing Test -Warray-bounds - Failed
-- Performing Test -Wuninitialized
-- Performing Test -Wuninitialized - Failed
-- Performing Test -Wshadow
-- Performing Test -Wshadow - Failed
-- Performing Test -Wempty-body
-- Performing Test -Wempty-body - Failed
-- Performing Test -Wsizeof-pointer-memaccess
-- Performing Test -Wsizeof-pointer-memaccess - Failed
-- Performing Test -Wsizeof-array-argument
-- Performing Test -Wsizeof-array-argument - Failed
-- Performing Test -Wsuspicious-memaccess
-- Performing Test -Wsuspicious-memaccess - Failed
-- Performing Test -Wbuiltin-memcpy-chk-size
-- Performing Test -Wbuiltin-memcpy-chk-size - Failed
-- Performing Test -Warray-bounds-pointer-arithmetic
-- Performing Test -Warray-bounds-pointer-arithmetic - Failed
-- Performing Test -Wreturn-stack-address
-- Performing Test -Wreturn-stack-address - Failed
-- Performing Test -Wsizeof-array-decay
-- Performing Test -Wsizeof-array-decay - Failed
-- Performing Test -Wformat-insufficient-args
-- Performing Test -Wformat-insufficient-args - Failed
-- Performing Test -Wformat-security
-- Performing Test -Wformat-security - Failed
-- Performing Test -Wsizeof-array-div
-- Performing Test -Wsizeof-array-div - Failed
-- Performing Test -Wsizeof-pointer-div
-- Performing Test -Wsizeof-pointer-div - Failed
-- Looking for __func__
-- Looking for __func__ - not found
-- Performing Test COMPILER_RT_HAS_NOSTDINCXX_FLAG
-- Performing Test COMPILER_RT_HAS_NOSTDINCXX_FLAG - Failed
-- Performing Test COMPILER_RT_HAS_NOSTDLIBXX_FLAG
-- Performing Test COMPILER_RT_HAS_NOSTDLIBXX_FLAG - Failed
-- Looking for include file sys/auxv.h
-- Looking for include file sys/auxv.h - not found
-- Looking for dlopen in dl
-- Looking for dlopen in dl - not found
-- Looking for shm_open in rt
-- Looking for shm_open in rt - not found
-- Looking for pow in m
-- Looking for pow in m - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - not found
-- Looking for backtrace in execinfo
-- Looking for backtrace in execinfo - not found
-- Looking for __cxa_throw in c++
-- Looking for __cxa_throw in c++ - not found
-- Looking for __cxa_throw in stdc++
-- Looking for __cxa_throw in stdc++ - not found
-- Performing Test COMPILER_RT_HAS_Z_TEXT
-- Performing Test COMPILER_RT_HAS_Z_TEXT - Failed
-- Performing Test COMPILER_RT_HAS_FUSE_LD_LLD_FLAG
-- Performing Test COMPILER_RT_HAS_FUSE_LD_LLD_FLAG - Failed
-- Performing Test COMPILER_RT_HAS_VERSION_SCRIPT
-- Performing Test COMPILER_RT_HAS_VERSION_SCRIPT - Failed
-- Compiler-RT supported architectures: x86_64
CMake Deprecation Warning at cmake/Modules/AddCompilerRT.cmake:8 (cmake_policy):
  The OLD behavior for policy CMP0114 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):
  lib/CMakeLists.txt:4 (include)


-- Performing Test COMPILER_RT_HAS_VISIBILITY_HIDDEN_FLAG
-- Performing Test COMPILER_RT_HAS_VISIBILITY_HIDDEN_FLAG - Failed
-- Performing Test COMPILER_RT_HAS_XRAY_COMPILER_FLAG
-- Performing Test COMPILER_RT_HAS_XRAY_COMPILER_FLAG - Failed
-- Performing Test COMPILER_RT_HAS_WBUILTIN_DECLARATION_MISMATCH_FLAG
-- Performing Test COMPILER_RT_HAS_WBUILTIN_DECLARATION_MISMATCH_FLAG - Failed
-- Performing Test COMPILER_RT_HAS_ZL_FLAG
-- Performing Test COMPILER_RT_HAS_ZL_FLAG - Failed
-- Performing Test COMPILER_RT_HAS_ATOMIC_KEYWORD
-- Performing Test COMPILER_RT_HAS_ATOMIC_KEYWORD - Failed
-- Performing Test COMPILER_RT_HAS_ASM_LSE
-- Performing Test COMPILER_RT_HAS_ASM_LSE - Failed
-- Performing Test COMPILER_RT_HAS_AARCH64_SME
-- Performing Test COMPILER_RT_HAS_AARCH64_SME - Failed
-- Builtin supported architectures: x86_64
-- AArch64 SME ABI routines disabled
arch: x86_64
-- Performing additional configure checks with target flags:
-- Performing Test COMPILER_RT_HAS_x86_64_FLOAT16
-- Performing Test COMPILER_RT_HAS_x86_64_FLOAT16 - Failed
-- Performing Test COMPILER_RT_HAS_x86_64_BFLOAT16
-- Performing Test COMPILER_RT_HAS_x86_64_BFLOAT16 - Failed
-- For x86_64 builtins preferring i386/fp_mode.c to fp_mode.c
-- 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 (8.5s)
-- Generating done (0.0s)
CMake Warning:
  Manually-specified variables were not used by the project:

    BUILD_TESTING
    CMAKE_EXPORT_NO_PACKAGE_REGISTRY
    CMAKE_POLICY_DEFAULT_CMP0025


-- Build files have been written to: /build/compiler-rt-src-18.1.8/compiler-rt/build
cmake: enabled parallel building
cmake: enabled parallel installing
Running phase: buildPhase
@nix { "action": "setPhase", "phase": "buildPhase" }
build flags: -j128
[1/162] Building C object lib/builtins/CMakeFiles/clang_rt.builtins-x86_64.dir/divsi3.c.obj
FAILED: lib/builtins/CMakeFiles/clang_rt.builtins-x86_64.dir/divsi3.c.obj
/nix/store/d5qzilr7vj5lwgp7wd3il63fzi53l8fr-x86_64-unknown-uefi-clang-wrapper-18.1.8/bin/x86_64-unknown-uefi-clang -D__func__=__FUNCTION__  -nodefaultlibs -o lib/builtins/CMakeFiles/clang_rt.builtins-x86_64.dir/divsi3.c.obj -c /build/compiler-rt-src-18.1.8/compiler-rt/lib/builtins/divsi3.c
clang: warning: argument unused during compilation: '-nostartfiles' [-Wunused-command-line-argument]
In file included from /build/compiler-rt-src-18.1.8/compiler-rt/lib/builtins/divsi3.c:13:
/build/compiler-rt-src-18.1.8/compiler-rt/lib/builtins/int_lib.h:70:2: error: Unsupported target
   70 | #error Unsupported target
      |  ^
1 error generated.

@baloo baloo mentioned this pull request Nov 3, 2024
16 tasks
@wegank wegank added the 2.status: merge conflict This PR has merge conflicts with the target branch label Nov 10, 2024
@ofborg ofborg bot removed the 2.status: merge conflict This PR has merge conflicts with the target branch label Dec 3, 2024
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.

3 participants