simplex-chat / simplex-chat/simplex-chat

[Bug]: ios build fails on macos

Open
#6,102 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug build ios mac triage
Dominant language
Haskell
Stars
19.5k
Forks
1.4k
Avg merge
1d 20h
Merged PRs (30d)
71

Description

Is there an existing issue for this?
  • I have searched the existing issues
Platform

iOS

OS version

macOS 15.5

App version

6.4.0

Current Behavior

build fails

$ sudo determinate-nixd upgrade
You are already running the latest version of Determinate Nix (3.8.2).
$ git log
commit 5ba53e5c7f486bee4883a3203e7f70b60859efc5 (HEAD -> stable, origin/stable)
Author: Narasimha-sc <166327228+Narasimha-sc@users.noreply.github.com>
Date:   Thu Jul 24 22:38:01 2025 +0000
Expected Behavior

build ios libs

Steps To Reproduce
$ time nix build --extra-experimental-features nix-command --extra-experimental-features flakes --print-build-logs .#hydraJobs.aarch64-darwin.aarch64-darwin:lib:simplex-chat
Relevant log output
> Configuring library for hnix-0.16.0..
       > building
       > Preprocessing library for hnix-0.16.0..
       > Building library for hnix-0.16.0..
       > [ 1 of 52] Compiling Nix.Utils        ( src/Nix/Utils.hs, dist/build/Nix/Utils.o, dist/build/Nix/Utils.dyn_o )
       > [ 2 of 52] Compiling Nix.Prelude      ( src/Nix/Prelude.hs, dist/build/Nix/Prelude.o, dist/build/Nix/Prelude.dyn_o )
       > [ 3 of 52] Compiling Nix.Unused       ( src/Nix/Unused.hs, dist/build/Nix/Unused.o, dist/build/Nix/Unused.dyn_o )
       > [ 4 of 52] Compiling Nix.Thunk        ( src/Nix/Thunk.hs, dist/build/Nix/Thunk.o, dist/build/Nix/Thunk.dyn_o )
       > [ 5 of 52] Compiling Nix.Thunk.Basic  ( src/Nix/Thunk/Basic.hs, dist/build/Nix/Thunk/Basic.o, dist/build/Nix/Thunk/Basic.dyn_o )
       > [ 6 of 52] Compiling Nix.Options      ( src/Nix/Options.hs, dist/build/Nix/Options.o, dist/build/Nix/Options.dyn_o )
       > [ 7 of 52] Compiling Nix.Fresh        ( src/Nix/Fresh.hs, dist/build/Nix/Fresh.o, dist/build/Nix/Fresh.dyn_o )
       > [ 8 of 52] Compiling Nix.Frames       ( src/Nix/Frames.hs, dist/build/Nix/Frames.o, dist/build/Nix/Frames.dyn_o )
       > [ 9 of 52] Compiling Nix.Atoms        ( src/Nix/Atoms.hs, dist/build/Nix/Atoms.o, dist/build/Nix/Atoms.dyn_o )
       > [10 of 52] Compiling Nix.Expr.Types   ( src/Nix/Expr/Types.hs, dist/build/Nix/Expr/Types.o, dist/build/Nix/Expr/Types.dyn_o )
       > /nix/store/x3s84jwqal1gqhc5w7qx291fm5vqqjxh-stdenv-darwin/setup: line 1607: 98270 Killed: 9               $SETUP_HS build lib:hnix -j$(($NIX_BUILD_CORES > 4 ? 4 : $NIX_BUILD_CORES)) --ghc-option=-fPIC --gcc-option=-fPIC
       For full logs, run:
         nix log /nix/store/8rdrz75a509jfym511lqyc45ggl2mpdl-hnix-lib-hnix-0.16.0.drv
error: Cannot build '/nix/store/r9jcb6m4z5knbxmgx02a11i8hfcc1xk2-nix-tools-exe-make-install-plan-0.1.0.0.drv'.
       Reason: 1 dependency failed.
       Output paths:
         /nix/store/1cdg4a0ylad6piy15zlj1awarmacq97g-nix-tools-exe-make-install-plan-0.1.0.0
         /nix/store/qagndgfa22a87rdi3x6vfp53wqqgvij9-nix-tools-exe-make-install-plan-0.1.0.0-data
error:
       … in the left operand of the update (//) operator
         at «github:input-output-hk/haskell.nix/d0c35e75cbbc6858770af42ac32b0b85495fbd71?narHash=sha256-rUIr6JNbCedt1g4gVYVvE9t0oFU6FUspCA0DS5cA8Bg%3D»/overlays/haskell.nix:1021:23:
         1020|         project = args: let p = project' args;
         1021|           in p.hsPkgs // p;
             |                       ^
         1022|

       … while evaluating the attribute 'hsPkgs'
         at «github:input-output-hk/haskell.nix/d0c35e75cbbc6858770af42ac32b0b85495fbd71?narHash=sha256-rUIr6JNbCedt1g4gVYVvE9t0oFU6FUspCA0DS5cA8Bg%3D»/overlays/haskell.nix:725:15:
          724|               # Haskell packages
          725|               hsPkgs = final.lib.mapAttrs (packageName: package':
             |               ^
          726|                 if package' == null

       (stack trace truncated; use '--show-trace' to show the full, detailed trace)

       error: Cannot build '/nix/store/c0w2kw97nsplslbjs19z7hjwwpna677q-haskell-project-plan-to-nix-pkgs.drv'.
       Reason: 1 dependency failed.
       Output paths:
         /nix/store/60r8fs70xv2x9344xycj5fmglw9la45p-haskell-project-plan-to-nix-pkgs-json
         /nix/store/6nzkk8cwnwqb3dcgy8ccx9qa39zl7nym-haskell-project-plan-to-nix-pkgs
         /nix/store/6vmda4lypy48s05wjvhfg3w05w06yyb8-haskell-project-plan-to-nix-pkgs-freeze

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the aarch64-darwin build with the provided nix build command and inspect the hnix-0.16.0 log, especially the Killed: 9 failure during Haskell compilation. Review the haskell.nix evaluation errors shown in the trace, then verify that the simplex-chat lib build completes successfully on macOS.

Written by the indexing model from the issue text.

Assessment

Tech stack
haskell, ios, macos
Domain
build-system, mobile-dev
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.