Dovecot installation problems ‘compiler-rt-6.0.1’ I on Darwin

Nixpkgs Search says aarch64-darwin in 23.05 is supported. however, when I install via environment.systemPackages I get the following error. I tried to override allow broken to see if I could get any further.

NIXPKGS_ALLOW_BROKEN=1; ./result/sw/bin/darwin-rebuild switch --flake .#xxx-MBP --verbose --show-trace;

error:
       … while evaluating the attribute 'activationScript' of the derivation 'darwin-system-23.05.20230711.8163a64+darwin4.eb22022'

       at /nix/store/7si351xc6vf7n4aa0kcnmb35an961wg7-source/pkgs/stdenv/generic/make-derivation.nix:303:7:

          302|     // (lib.optionalAttrs (attrs ? name || (attrs ? pname && attrs ? version)) {
          303|       name =
             |       ^
          304|         let

       … while evaluating call site

       at «none»:0: (source not available)

       … while calling 'g'

       at /nix/store/7si351xc6vf7n4aa0kcnmb35an961wg7-source/lib/attrsets.nix:595:19:

          594|           g =
          595|             name: value:
             |                   ^
          596|             if isAttrs value && cond value

       … while evaluating call site

       at /nix/store/7si351xc6vf7n4aa0kcnmb35an961wg7-source/lib/attrsets.nix:598:20:

          597|               then recurse (path ++ [name]) value
          598|               else f (path ++ [name]) value;
             |                    ^
          599|         in mapAttrs g;

       … while calling anonymous lambda

       at /nix/store/7si351xc6vf7n4aa0kcnmb35an961wg7-source/lib/modules.nix:248:72:

          247|           # For definitions that have an associated option
          248|           declaredConfig = mapAttrsRecursiveCond (v: ! isOption v) (_: v: v.value) options;
             |                                                                        ^
          249|

       … while evaluating the attribute 'value'

       at /nix/store/7si351xc6vf7n4aa0kcnmb35an961wg7-source/lib/modules.nix:759:9:

          758|     in warnDeprecation opt //
          759|       { value = builtins.addErrorContext "while evaluating the option `${showOption loc}':" value;
             |         ^
          760|         inherit (res.defsFinal') highestPrio;

       … while evaluating the option `system.activationScripts.script.text':

       … while evaluating the attribute 'mergedValue'

       at /nix/store/7si351xc6vf7n4aa0kcnmb35an961wg7-source/lib/modules.nix:794:5:

          793|     # Type-check the remaining definitions, and merge them. Or throw if no definitions.
          794|     mergedValue =
             |     ^
          795|       if isDefined then

       … while evaluating the attribute 'values'

       at /nix/store/7si351xc6vf7n4aa0kcnmb35an961wg7-source/lib/modules.nix:788:9:

          787|       in {
          788|         values = defs''';
             |         ^
          789|         inherit (defs'') highestPrio;

       … while evaluating the attribute 'values'

       at /nix/store/7si351xc6vf7n4aa0kcnmb35an961wg7-source/lib/modules.nix:887:7:

          886|     in {
          887|       values = concatMap (def: if getPrio def == highestPrio then [(strip def)] else []) defs;
             |       ^
          888|       inherit highestPrio;

       … while evaluating call site

       at /nix/store/7si351xc6vf7n4aa0kcnmb35an961wg7-source/lib/modules.nix:774:17:

          773|         # Process mkMerge and mkIf properties.
          774|         defs' = concatMap (m:
             |                 ^
          775|           map (value: { inherit (m) file; inherit value; }) (builtins.addErrorContext "while evaluating definitions from `${m.file}':" (dischargeProperties m.value))

       … while calling anonymous lambda

       at /nix/store/7si351xc6vf7n4aa0kcnmb35an961wg7-source/lib/modules.nix:774:28:

          773|         # Process mkMerge and mkIf properties.
          774|         defs' = concatMap (m:
             |                            ^
          775|           map (value: { inherit (m) file; inherit value; }) (builtins.addErrorContext "while evaluating definitions from `${m.file}':" (dischargeProperties m.value))

       … while evaluating definitions from `/nix/store/83pl8h2g55dbvnsgnrlkswfs52v10w7n-source/modules/system/activation-scripts.nix':

       … while evaluating call site

       at /nix/store/7si351xc6vf7n4aa0kcnmb35an961wg7-source/lib/modules.nix:775:137:

          774|         defs' = concatMap (m:
          775|           map (value: { inherit (m) file; inherit value; }) (builtins.addErrorContext "while evaluating definitions from `${m.file}':" (dischargeProperties m.value))
             |                                                                                                                                         ^
          776|         ) defs;

       … while calling 'dischargeProperties'

       at /nix/store/7si351xc6vf7n4aa0kcnmb35an961wg7-source/lib/modules.nix:846:25:

          845|   */
          846|   dischargeProperties = def:
             |                         ^
          847|     if def._type or "" == "merge" then

       … while evaluating the attribute 'value'

       at /nix/store/7si351xc6vf7n4aa0kcnmb35an961wg7-source/lib/modules.nix:599:44:

          598|       defnsByName' = byName "config" (module: value:
          599|           [{ inherit (module) file; inherit value; }]
             |                                            ^
          600|         ) configs;

       … while evaluating call site

       at «none»:0: (source not available)

       … while calling 'g'

       at /nix/store/7si351xc6vf7n4aa0kcnmb35an961wg7-source/lib/attrsets.nix:595:19:

          594|           g =
          595|             name: value:
             |                   ^
          596|             if isAttrs value && cond value

       … while evaluating call site

       at /nix/store/7si351xc6vf7n4aa0kcnmb35an961wg7-source/lib/attrsets.nix:598:20:

          597|               then recurse (path ++ [name]) value
          598|               else f (path ++ [name]) value;
             |                    ^
          599|         in mapAttrs g;

       … while calling anonymous lambda

       at /nix/store/7si351xc6vf7n4aa0kcnmb35an961wg7-source/lib/modules.nix:248:72:

          247|           # For definitions that have an associated option
          248|           declaredConfig = mapAttrsRecursiveCond (v: ! isOption v) (_: v: v.value) options;
             |                                                                        ^
          249|

       … while evaluating the attribute 'value'

       at /nix/store/7si351xc6vf7n4aa0kcnmb35an961wg7-source/lib/modules.nix:759:9:

          758|     in warnDeprecation opt //
          759|       { value = builtins.addErrorContext "while evaluating the option `${showOption loc}':" value;
             |         ^
          760|         inherit (res.defsFinal') highestPrio;

       … while evaluating the option `system.activationScripts.applications.text':

       … while evaluating the attribute 'mergedValue'

       at /nix/store/7si351xc6vf7n4aa0kcnmb35an961wg7-source/lib/modules.nix:794:5:

          793|     # Type-check the remaining definitions, and merge them. Or throw if no definitions.
          794|     mergedValue =
             |     ^
          795|       if isDefined then

       … while evaluating the attribute 'values'

       at /nix/store/7si351xc6vf7n4aa0kcnmb35an961wg7-source/lib/modules.nix:788:9:

          787|       in {
          788|         values = defs''';
             |         ^
          789|         inherit (defs'') highestPrio;

       … while evaluating the attribute 'values'

       at /nix/store/7si351xc6vf7n4aa0kcnmb35an961wg7-source/lib/modules.nix:887:7:

          886|     in {
          887|       values = concatMap (def: if getPrio def == highestPrio then [(strip def)] else []) defs;
             |       ^
          888|       inherit highestPrio;

       … while evaluating call site

       at /nix/store/7si351xc6vf7n4aa0kcnmb35an961wg7-source/lib/modules.nix:774:17:

          773|         # Process mkMerge and mkIf properties.
          774|         defs' = concatMap (m:
             |                 ^
          775|           map (value: { inherit (m) file; inherit value; }) (builtins.addErrorContext "while evaluating definitions from `${m.file}':" (dischargeProperties m.value))

       … while calling anonymous lambda

       at /nix/store/7si351xc6vf7n4aa0kcnmb35an961wg7-source/lib/modules.nix:774:28:

          773|         # Process mkMerge and mkIf properties.
          774|         defs' = concatMap (m:
             |                            ^
          775|           map (value: { inherit (m) file; inherit value; }) (builtins.addErrorContext "while evaluating definitions from `${m.file}':" (dischargeProperties m.value))

       … while evaluating definitions from `/nix/store/83pl8h2g55dbvnsgnrlkswfs52v10w7n-source/modules/system/applications.nix':

       … while evaluating call site

       at /nix/store/7si351xc6vf7n4aa0kcnmb35an961wg7-source/lib/modules.nix:775:137:

          774|         defs' = concatMap (m:
          775|           map (value: { inherit (m) file; inherit value; }) (builtins.addErrorContext "while evaluating definitions from `${m.file}':" (dischargeProperties m.value))
             |                                                                                                                                         ^
          776|         ) defs;

       … while calling 'dischargeProperties'

       at /nix/store/7si351xc6vf7n4aa0kcnmb35an961wg7-source/lib/modules.nix:846:25:

          845|   */
          846|   dischargeProperties = def:
             |                         ^
          847|     if def._type or "" == "merge" then

       … while evaluating the attribute 'value'

       at /nix/store/7si351xc6vf7n4aa0kcnmb35an961wg7-source/lib/modules.nix:599:44:

          598|       defnsByName' = byName "config" (module: value:
          599|           [{ inherit (module) file; inherit value; }]
             |                                            ^
          600|         ) configs;

       … while evaluating the attribute 'passAsFile' of the derivation 'system-applications'

       at /nix/store/7si351xc6vf7n4aa0kcnmb35an961wg7-source/pkgs/stdenv/generic/make-derivation.nix:303:7:

          302|     // (lib.optionalAttrs (attrs ? name || (attrs ? pname && attrs ? version)) {
          303|       name =
             |       ^
          304|         let

       … while evaluating the attribute 'passAsFile'

       at /nix/store/7si351xc6vf7n4aa0kcnmb35an961wg7-source/pkgs/build-support/buildenv/default.nix:77:5:

           76|     # XXX: The size is somewhat arbitrary
           77|     passAsFile = if builtins.stringLength pkgs >= 128*1024 then [ "pkgs" ] else [ ];
             |     ^
           78|   }

       … while evaluating the attribute 'buildInputs' of the derivation 'dovecot-2.3.20'

       at /nix/store/7si351xc6vf7n4aa0kcnmb35an961wg7-source/pkgs/stdenv/generic/make-derivation.nix:303:7:

          302|     // (lib.optionalAttrs (attrs ? name || (attrs ? pname && attrs ? version)) {
          303|       name =
             |       ^
          304|         let

       … while evaluating the attribute 'stdenv' of the derivation 'clucene-core-2.3.3.4'

       at /nix/store/7si351xc6vf7n4aa0kcnmb35an961wg7-source/pkgs/stdenv/generic/make-derivation.nix:303:7:

          302|     // (lib.optionalAttrs (attrs ? name || (attrs ? pname && attrs ? version)) {
          303|       name =
             |       ^
          304|         let

       … while evaluating the attribute 'defaultNativeBuildInputs' of the derivation 'stdenv-darwin'

       at /nix/store/7si351xc6vf7n4aa0kcnmb35an961wg7-source/pkgs/stdenv/generic/default.nix:93:14:

           92|     // {
           93|       inherit name;
             |              ^
           94|       inherit disallowedRequisites;

       … while evaluating the attribute 'depsTargetTargetPropagated' of the derivation 'clang-wrapper-6.0.1'

       at /nix/store/7si351xc6vf7n4aa0kcnmb35an961wg7-source/pkgs/stdenv/generic/make-derivation.nix:303:7:

          302|     // (lib.optionalAttrs (attrs ? name || (attrs ? pname && attrs ? version)) {
          303|       name =
             |       ^
          304|         let

       … while evaluating the attribute 'handled'

       at /nix/store/7si351xc6vf7n4aa0kcnmb35an961wg7-source/pkgs/stdenv/generic/check-meta.nix:447:7:

          446|       # or, alternatively, just output a warning message.
          447|       handled =
             |       ^
          448|         {

       … while evaluating the attribute 'no'

       at /nix/store/7si351xc6vf7n4aa0kcnmb35an961wg7-source/pkgs/stdenv/generic/check-meta.nix:449:11:

          448|         {
          449|           no = handleEvalIssue { inherit meta attrs; } { inherit (validity) reason errormsg; };
             |           ^
          450|           warn = handleEvalWarning { inherit meta attrs; } { inherit (validity) reason errormsg; };

       … while evaluating call site

       at /nix/store/7si351xc6vf7n4aa0kcnmb35an961wg7-source/pkgs/stdenv/generic/check-meta.nix:449:16:

          448|         {
          449|           no = handleEvalIssue { inherit meta attrs; } { inherit (validity) reason errormsg; };
             |                ^
          450|           warn = handleEvalWarning { inherit meta attrs; } { inherit (validity) reason errormsg; };

       … while calling 'handleEvalIssue'

       at /nix/store/7si351xc6vf7n4aa0kcnmb35an961wg7-source/pkgs/stdenv/generic/check-meta.nix:226:38:

          225|
          226|   handleEvalIssue = { meta, attrs }: { reason , errormsg ? "" }:
             |                                      ^
          227|     let

       error: Package ‘compiler-rt-6.0.1’ in /nix/store/7si351xc6vf7n4aa0kcnmb35an961wg7-source/pkgs/development/compilers/llvm/6/compiler-rt/default.nix:98 is marked as broken, refusing to evaluate.

       a) To temporarily allow broken packages, you can use an environment variable
          for a single invocation of the nix tools.

            $ export NIXPKGS_ALLOW_BROKEN=1

        Note: For `nix shell`, `nix build`, `nix develop` or any other Nix 2.4+
        (Flake) command, `--impure` must be passed in order to read this
        environment variable.

       b) For `nixos-rebuild` you can set
         { nixpkgs.config.allowBroken = true; }
       in configuration.nix to override this.

       c) For `nix-env`, `nix-build`, `nix-shell` or any other Nix command you can add
         { allowBroken = true; }
       to ~/.config/nixpkgs/config.nix.

Something is explicitly requesting a clang 6 stdenv, but clang 6 does not support aarch64-darwin. Whatever is requiring clang 6 will need to be fixed to build with a newer clang (ideally the one provided by the default stdenv).

1 Like

Made a pr that fixes this: Fix dovecot for aarch64-darwin by kfiz · Pull Request #270754 · NixOS/nixpkgs · GitHub