Skip to content

Package build depending on openMP failing on MacOS, certainly due to not using Apple's clang #449

Answered by b-rodrigues
code-instable asked this question in Q&A
Discussion options

You must be logged in to vote

pkgs.llvmPackages.openmp is a dependency of adaptiveFTS, but you added it as a dependency of the shell. You need to change the expression like so:


    adaptiveFTS = (pkgs.rPackages.buildRPackage {
      name = "adaptiveFTS";
      src = pkgs.fetchgit {
        url = "https://github.com/hmaissoro/adaptiveFTS";
        rev = "af5a9859165a7f95046a7c57683e7094e3f4de9f";
        sha256 = "sha256-cWjDmKBy2bxukl4lsDPHyLreRyPnCz/mcBfFUagGjAo=";
      };
      propagatedBuildInputs = builtins.attrValues {
        inherit (pkgs.rPackages) 
          caret
          data_table
          fastmatrix
          MASS
          Rcpp
          Rdpack
          RcppArmadillo;
      } ++ [ pkgs.llvmPackages…

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@code-instable
Comment options

@code-instable
Comment options

@b-rodrigues
Comment options

Answer selected by code-instable
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants