Skip to content

Build failure: swift 5.10 #462451

Description

@Red-M

Nixpkgs version

  • Unstable (25.11)

Steps to reproduce

  1. Have any package that depends on swift-5.10.1, eg, ghidra-extensions.ghidraninja-ghidra-scripts

Can Hydra reproduce this build failure?

Yes, Hydra can reproduce this build failure.

Link to Hydra build job

https://hydra.nixos.org/build/312037199

Relevant log output

error: builder for '/nix/store/3xgznpzcaccila9cf887qmjwwk840jxg-swift-5.10.1.drv' failed with exit code 1;
       last 25 log lines:
       > /build/src/llvm-project/llvm/include/llvm/Support/type_traits.h:35:13: error: missing '#include <type_traits>'; 'is_class' must be defined before it is used
       >       !std::is_class<UnderlyingT>::value && // Filter conversion operators.
       >             ^
       > /build/src/llvm-project/llvm/include/llvm/ADT/Hashing.h:351:36: note: in instantiation of template class 'llvm::is_integral_or_enum<const void *>' requested here
       >   : std::integral_constant<bool, ((is_integral_or_enum<T>::value ||
       >                                    ^
       > /build/src/llvm-project/llvm/include/llvm/ADT/Hashing.h:368:18: note: in instantiation of template class 'llvm::hashing::detail::is_hashable_data<const void *>' requested here
       > std::enable_if_t<is_hashable_data<T>::value, T>
       >                  ^
       > /build/src/llvm-project/llvm/include/llvm/ADT/Hashing.h:560:63: note: while substituting deduced template arguments into function template 'get_hashable_data' [with T = const void *]
       >     buffer_ptr = combine_data(length, buffer_ptr, buffer_end, get_hashable_data(arg));
       >                                                               ^
       > /build/src/llvm-project/llvm/include/llvm/ADT/Hashing.h:608:17: note: in instantiation of function template specialization 'llvm::hashing::detail::hash_combine_recursive_helper::combine<const void *, const void *>' requested here
       >   return helper.combine(0, helper.buffer, helper.buffer + 64, args...);
       >                 ^
       > /build/src/swift/include/swift/Basic/SourceLoc.h:291:12: note: in instantiation of function template specialization 'llvm::hash_combine<const void *, const void *>' requested here
       >     return hash_combine(Val.Start.getOpaquePointerValue(),
       >            ^
       > /nix/store/68ndh04pl2hhhizsarvzwa9cnlp7zj3d-gcc-14.3.0/include/c++/14.3.0/type_traits:635:12: note: definition here is not reachable
       >     struct is_class
       >            ^
       > /build/src/swift/SwiftCompilerSources/Sources/Basic/SourceLoc.swift:13:8: error: could not build C module 'BasicBridging'
       > import BasicBridging
       >        ^
       > ninja: build stopped: subcommand failed.
       For full logs, run 'nix log /nix/store/3xgznpzcaccila9cf887qmjwwk840jxg-swift-5.10.1.drv'.

Additional context

In my case, this is breaking Ghidra with extra scripts as per my dependency chain:

error: 1 dependencies of derivation '/nix/store/i9pkkpzyqwffzj4pxzj9gl6smcnm6ji4-clang-wrapper-21.1.2.drv' failed to build
error: 1 dependencies of derivation '/nix/store/783llbywfwixn17svcd71bdl7whnav75-fix-stdlib-path.patch.drv' failed to build
error: 2 dependencies of derivation '/nix/store/j4d9sxa020clswjb5gb9h1ys64d9h93d-swift-wrapper-5.10.1.drv' failed to build
error: 1 dependencies of derivation '/nix/store/k8ggl7h2q9mhqmxwmlhxnh6fl9f6vz4z-swift-corelibs-libdispatch-5.10.1.drv' failed to build
error: 2 dependencies of derivation '/nix/store/jw2llqi7jyn4lrpq31w0hp3h7n50hacn-swift-corelibs-foundation-5.10.1.drv' failed to build
error: 2 dependencies of derivation '/nix/store/45xl6q772x5f9gv77ii4difm7dmvyznq-swift-system.drv' failed to build
error: 2 dependencies of derivation '/nix/store/fpwzx88lardr8vxhqkzjpl1f0cg5dirn-swift-asn1.drv' failed to build
error: 2 dependencies of derivation '/nix/store/m1a752bgh7mqaqj82hxhl02bxpgf0z07-swift-collections.drv' failed to build
error: 2 dependencies of derivation '/nix/store/s0safn8dn1h6ynfai1g35l87hv2k5qp4-llbuild.drv' failed to build
error: 2 dependencies of derivation '/nix/store/sgjb65485jb0bgjd05rg7z7a7pajkxa6-swift-argument-parser.drv' failed to build
error: 2 dependencies of derivation '/nix/store/ccphimk34cv73i5bq80r8yy0mgq2lvy9-swift-corelibs-xctest-5.10.1.drv' failed to build
error: 2 dependencies of derivation '/nix/store/khjzpi9kwf5agjdprpbpfij8j856hw04-Yams.drv' failed to build
error: 3 dependencies of derivation '/nix/store/hfpx9szc6jkln18xbj1p8h9kks47rw3b-swift-tools-support-core.drv' failed to build
error: 3 dependencies of derivation '/nix/store/5p2krz38pyvj70v3dy55rla0pjffraff-swift-crypto.drv' failed to build
error: 4 dependencies of derivation '/nix/store/44kl9yr8h3aim2fdlgqviha4q7f5dwhy-swift-certificates.drv' failed to build
error: 7 dependencies of derivation '/nix/store/ihia47b77qwb3axfcprzi5glibk27qr5-swift-driver.drv' failed to build
error: 12 dependencies of derivation '/nix/store/gr7x927j4lqjrhh6z31x2b3p8dzg2y36-swiftpm-bootstrap-5.10.1.drv' failed to build
error: 5 dependencies of derivation '/nix/store/rjf6sv2dv5z7crw6iv5pb4w8zsaz41hb-swiftpm-5.10.1.drv' failed to build
error: 4 dependencies of derivation '/nix/store/wg848z5npvv6rzdw5c8kj13x17kz4sm3-swift-driver-5.10.1.drv' failed to build
error: 3 dependencies of derivation '/nix/store/j4zv43c18mni2xj1ypy77mhs33cl1vsy-swift-wrapper-5.10.1.drv' failed to build
error: 1 dependencies of derivation '/nix/store/fki6kvysb1k3x13g64b771gfazbp2pdy-ghidraninja-ghidra-scripts-unstable-2020-10-07.drv' failed to build
error: 1 dependencies of derivation '/nix/store/xfhjcrl08fqxziihc11g7qwn9x0hpmpn-ghidra-with-extensions-11.4.2.drv' failed to build

IMO, #461790 would have also solved this issue but was closed without any notes as to why.

System metadata

  • system: "x86_64-linux"
  • host os: Linux 6.17.7, NixOS, 25.11 (Xantusia), 25.11.20251112.c5ae371
  • multi-user?: yes
  • sandbox: yes
  • version: nix-env (Lix, like Nix) 2.93.3 System type: x86_64-linux Additional system types: i686-linux, x86_64-v1-linux, x86_64-v2-linux, x86_64-v3-linux, x86_64-v4-linux Features: gc, signed-caches System configuration file: /etc/nix/nix.conf User configuration files: /home/redm/.config/nix/nix.conf:/nix/store/bnjmz1w4ziiyq2pj0hkbbrz3cgcr876v-plasma-workspace-6.5.2/etc/xdg/nix/nix.conf:/nix/store/563g3fbz5yay284xf1gc3yj7shd68w0k-kglobalacceld-6.5.2/etc/xdg/nix/nix.conf:/nix/store/gfhkwfgxpq392z8dc00kbpvd6kmsbikq-baloo-6.19.0/etc/xdg/nix/nix.conf:/home/redm/.config/kdedefaults/nix/nix.conf:/nix/store/bnjmz1w4ziiyq2pj0hkbbrz3cgcr876v-plasma-workspace-6.5.2/etc/xdg/nix/nix.conf:/nix/store/563g3fbz5yay284xf1gc3yj7shd68w0k-kglobalacceld-6.5.2/etc/xdg/nix/nix.conf:/nix/store/gfhkwfgxpq392z8dc00kbpvd6kmsbikq-baloo-6.19.0/etc/xdg/nix/nix.conf:/home/redm/.config/kdedefaults/nix/nix.conf:/etc/xdg/nix/nix.conf:/home/redm/.local/share/flatpak/exports/etc/xdg/nix/nix.conf:/var/lib/flatpak/exports/etc/xdg/nix/nix.conf:/home/redm/.nix-profile/etc/xdg/nix/nix.conf:/nix/profile/etc/xdg/nix/nix.conf:/home/redm/.local/state/nix/profile/etc/xdg/nix/nix.conf:/etc/profiles/per-user/redm/etc/xdg/nix/nix.conf:/nix/var/nix/profiles/default/etc/xdg/nix/nix.conf:/run/current-system/sw/etc/xdg/nix/nix.conf Store directory: /nix/store State directory: /nix/var/nix Data directory: /nix/store/x58imd6kxmj49r5hiavc85l7qhzk3m1q-lix-2.93.3/share
  • channels(root): "nixos-25.05"
  • nixpkgs: /nix/store/cjjpqrp9xy44j5fjh3mygyxy3i7mslj2-source

Notify maintainers

@dduan @Samasaur1 @stephank @trepetti


Note for maintainers: Please tag this issue in your pull request description. (i.e. Resolves #ISSUE.)

I assert that this issue is relevant for Nixpkgs

Is this issue important to you?

Add a 👍 reaction to issues you find important.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions