Skip to content

Error from nix-build #589

@simonreif

Description

@simonreif

I want to set up different nix environments to see how outputs change over time. For one time periode it worked well, now I tried if for another time and I get the following error message from nix-build:

@nix { "action": "setPhase", "phase": "unpackPhase" }
Running phase: unpackPhase
unpacking source archive /nix/store/hz2c03addb61x2gzxnzwc7wdaf6z6fwr-bitops_1.0-7.tar.gz
source root is bitops
setting SOURCE_DATE_EPOCH to timestamp 1619264408 of file bitops/MD5
@nix { "action": "setPhase", "phase": "patchPhase" }
Running phase: patchPhase
@nix { "action": "setPhase", "phase": "updateAutotoolsGnuConfigScriptsPhase" }
Running phase: updateAutotoolsGnuConfigScriptsPhase
@nix { "action": "setPhase", "phase": "configurePhase" }
Running phase: configurePhase
@nix { "action": "setPhase", "phase": "buildPhase" }
Running phase: buildPhase
@nix { "action": "setPhase", "phase": "checkPhase" }
Running phase: checkPhase
@nix { "action": "setPhase", "phase": "installPhase" }
Running phase: installPhase
dyld[84462]: Library not loaded: /nix/store/gslza0pkc7hwjljhw34n3dl21awva7jc-gfortran-13.3.0-lib/lib/libgfortran.5.dylib
  Referenced from: <D95ED927-7832-3C3D-97A2-5DC6BAA63E8D> /nix/store/xw9736275vnvnjv7d8wnmg0cjs5gmznv-R-4.4.1/lib/R/lib/libR.dylib
  Reason: tried: '/nix/store/gslza0pkc7hwjljhw34n3dl21awva7jc-gfortran-13.3.0-lib/lib/libgfortran.5.dylib' (duplicate LC_RPATH '/nix/store/gslza0pkc7hwjljhw34n3dl21awva7jc-gfortran-13.3.0-lib/lib'), '/System/Volumes/Preboot/Cryptexes/OS/nix/store/gslza0pkc7hwjljhw34n3dl21awva7jc-gfortran-13.3.0-lib/lib/libgfortran.5.dylib' (no such file), '/nix/store/gslza0pkc7hwjljhw34n3dl21awva7jc-gfortran-13.3.0-lib/lib/libgfortran.5.dylib' (duplicate LC_RPATH '/nix/store/gslza0pkc7hwjljhw34n3dl21awva7jc-gfortran-13.3.0-lib/lib'), '/nix/store/xw9736275vnvnjv7d8wnmg0cjs5gmznv-R-4.4.1/lib/R/lib/libgfortran.5.dylib' (no such file), '/nix/store/rbbf1i5q3ip0hm7m9mwna53wn4byg8gv-zulu-ca-jdk-21.0.2/zulu-21.jdk/Contents/Home/lib/server/libgfortran.5.dylib' (no such file), '/nix/store/xw9736275vnvnjv7d8wnmg0cjs5gmznv-R-4.4.1/lib/R/lib/libgfortran.5.dylib' (no such file), '/nix/store/rbbf1i5q3ip0hm7m9mwna53wn4byg8gv-zulu-ca-jdk-21.0.2/zulu-21.jdk/Contents/Home/lib/server/libgfortran.5.dylib' (no such file)   /nix/store/xw9736275vnvnjv7d8wnmg0cjs5gmznv-R-4.4.1/lib/R/bin/INSTALL: line 34: 84460 Done                    echo 'tools:::.install_packages()'
     84462 Abort trap: 6           | R_DEFAULT_PACKAGES= LC_COLLATE=C "${R_HOME}/bin/R" $myArgs --no-echo --args ${args}  

Below is my rix setup file. I am lost with respect to

  • how to solve this
  • what additional information you need to know what went wrong
  • whether this is a problem from the specific version I try to get or from repeatedly trying different versions.

Any help is appreciated :)

library(rix)
path_default_nix <- getwd()
rix(
  date = "2024-06-14",
  r_pkgs = c(
    "tidyverse",
    "broom",
    "ggpubr",
    "modelsummary",
    "gtsummary",
    "gt",
    "estimatr",
    "sf",
    "quarto",
    "showtext",
    "here",
  "igraph",
  "plyr",
  "data.table",
  "tidyr",
  "cld2",
  "lubridate",
  "fixest",
  "Synth",
  "lmtest",
  "readxl",
  "jsonlite"
  ),
  system_pkgs = c("quarto", "git", "gnumake"),
  tex_pkgs = c(
    "setspace",
    "lipsum",
    "txfonts",
    "csquotes",
    "geometry",
    "float",
    "multirow",
    "colortbl",
    "booktabs",
    "threeparttable",
    "caption",
    "xcolor",
    "fontspec",
    "amsfonts",
    "titling",
    "biblatex",
    "collection-bibtexextra",
    "hyperref",
    "placeins",
    "pdflscape",
    "framed"
  ),
  git_pkgs = NULL,
  project_path = path_default_nix,
  overwrite = TRUE,
  print = FALSE
)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions