NixOS / nixpkgs

Nix Packages collection & NixOS
MIT License
17.58k stars 13.73k forks source link

Using inline-r error "dyld: Library not loaded: libR.dylib" #34202

Closed idontgetoutmuch closed 6 years ago

idontgetoutmuch commented 6 years ago

Issue description

nix-shell -p "haskell.packages.ghc822.ghcWithPackages (pkgs: [pkgs.hmatrix pkgs.inline-r])" -I nixpk
nixpkgs=/Users/dom/nixpkgs

gives

Preprocessing library for inline-r-0.9.0.2..
dyld: Library not loaded: libR.dylib
  Referenced from: /private/tmp/nix-build-inline-r-0.9.0.2.drv-0/inline-r-0.9.0.2/dist/build/Foreign/R/Internal_hsc_make
  Reason: image not found
running dist/build/Foreign/R/Internal_hsc_make failed (exit code -6)
command was: dist/build/Foreign/R/Internal_hsc_make  >dist/build/Foreign/R/Internal.hs

but I can see a libR

find /nix -type f -name libR.pc
/nix/store/cki0yxbhx248iy9hbiw4zf0cn14sa0xn-R-3.4.3/lib/pkgconfig/libR.pc
/nix/store/2wg6jqliy5p79zh7v5afc2arf0b0f7w3-R-3.4.3/lib/pkgconfig/libR.pc
/nix/store/cz79yxnzsi2262i972pbfgvd93lf9y5k-R-3.4.3/lib/pkgconfig/libR.pc
export PKG_CONFIG_PATH=/nix/store/cki0yxbhx248iy9hbiw4zf0cn14sa0xn-R-3.4.3/lib/pkgconfig
/Users/dom/.nix-profile/bin/pkg-config --libs libR
-L/nix/store/cki0yxbhx248iy9hbiw4zf0cn14sa0xn-R-3.4.3/lib/R/lib -lR

Steps to reproduce

In more detail

nix-shell -p "haskell.packages.ghc822.ghcWithPackages (pkgs: [pkgs.hmatrix pkgs.inline-r])" -I nixpkgs=/Users/dom/nixpkgs

gives

these derivations will be built:
  /nix/store/4w4c1mbhnj4krwmhl3asgsk9h6s46ygv-inline-r-0.9.0.2.drv
  /nix/store/pii4spfpdjyzb86nrngs4hxn1mxj7qcc-ghc-8.2.2-with-packages.drv
building path(s) ‘/nix/store/5c9irqm5pmqk7gwrghfqs7jnm889anrp-inline-r-0.9.0.2’, ‘/nix/store/jvbgcjidg5g2xwd15gn1xlfv679zh73x-inline-r-0.9.0.2-doc’
setupCompilerEnvironmentPhase
Build with /nix/store/prk0528kcsgwqivpkj69w726rvbz1qpb-ghc-8.2.2.
unpacking sources
unpacking source archive /nix/store/dymppfxilggh39ycrabwzwzz9243gbxc-inline-r-0.9.0.2.tar.gz
source root is inline-r-0.9.0.2
setting SOURCE_DATE_EPOCH to timestamp 1508760146 of file inline-r-0.9.0.2/tests/tests.hs
patching sources
compileBuildDriverPhase
setupCompileFlags: -package-db=/private/tmp/nix-build-inline-r-0.9.0.2.drv-0/package.conf.d -j1 -threaded
[1 of 1] Compiling Main             ( Setup.hs, /private/tmp/nix-build-inline-r-0.9.0.2.drv-0/Main.o )
Linking Setup ...
configuring
configureFlags: --verbose --prefix=/nix/store/5c9irqm5pmqk7gwrghfqs7jnm889anrp-inline-r-0.9.0.2 --libdir=$prefix/lib/$compiler --libsubdir=$pkgid --docdir=/nix/store/jvbgcjidg5g2xwd15gn1xlfv679zh73x-inline-r-0.9.0.2-doc/share/doc --with-gcc=clang --package-db=/private/tmp/nix-build-inline-r-0.9.0.2.drv-0/package.conf.d --ghc-option=-optl=-Wl,-headerpad_max_install_names --ghc-option=-j1 --disable-split-objs --disable-library-profiling --disable-profiling --enable-shared --disable-coverage --enable-library-vanilla --enable-executable-dynamic --enable-tests --extra-include-dirs=/nix/store/942hw6bhnppjqy7szdyfrr0fiiaj7818-libc++-4.0.1/include --extra-lib-dirs=/nix/store/942hw6bhnppjqy7szdyfrr0fiiaj7818-libc++-4.0.1/lib --extra-lib-dirs=/nix/store/cki0yxbhx248iy9hbiw4zf0cn14sa0xn-R-3.4.3/lib
Configuring inline-r-0.9.0.2...
Dependency aeson >=0.6: using aeson-1.2.3.0
Dependency base >=4.7 && <5: using base-4.10.1.0
Dependency bytestring >=0.10: using bytestring-0.10.8.2
Dependency containers >=0.5: using containers-0.5.10.2
Dependency data-default-class -any: using data-default-class-0.1.2.0
Dependency deepseq >=1.3: using deepseq-1.4.3.0
Dependency directory >=1.2: using directory-1.3.0.2
Dependency exceptions >=0.6 && <1.1: using exceptions-0.8.3
Dependency filepath >=1.3: using filepath-1.4.1.2
Dependency ieee754 >=0.7: using ieee754-0.8.0
Dependency inline-r -any: using inline-r-0.9.0.2
Dependency mtl >=2.1: using mtl-2.2.1
Dependency pretty >=1.1: using pretty-1.1.3.3
Dependency primitive >=0.5: using primitive-0.6.2.0
Dependency process >=1.2: using process-1.6.1.0
Dependency quickcheck-assertions >=0.1.1: using quickcheck-assertions-0.3.0
Dependency reflection >=2: using reflection-2.1.2
Dependency setenv >=0.1.1: using setenv-0.1.1.3
Dependency silently >=1.2: using silently-1.2.5
Dependency singletons >=0.10: using singletons-2.3.1
Dependency strict >=0.3.2: using strict-0.3.2
Dependency tasty >=0.11: using tasty-0.11.3
Dependency tasty-expected-failure >=0.11: using
tasty-expected-failure-0.11.0.4
Dependency tasty-golden >=2.3: using tasty-golden-2.3.1.2
Dependency tasty-hunit >=0.4.1: using tasty-hunit-0.9.2
Dependency tasty-quickcheck >=0.4.1: using tasty-quickcheck-0.9.1
Dependency template-haskell >=2.8: using template-haskell-2.12.0.0
Dependency temporary >=1.2: using temporary-1.2.1.1
Dependency text >=0.11: using text-1.2.2.2
Dependency th-lift >=0.6: using th-lift-0.7.7
Dependency th-orphans >=0.8: using th-orphans-0.13.4
Dependency transformers >=0.3: using transformers-0.5.2.0
Dependency unix >=2.6: using unix-2.7.2.2
Dependency vector >=0.10 && <0.13: using vector-0.12.0.1
Dependency libR >=3.0: using version 3.4.3
Source component graph:
    component lib
    component test:test-qq dependency lib
    component test:test-shootout dependency lib
    component test:tests dependency lib
Configured component graph:
    component inline-r-0.9.0.2-Gi5W7fb3f1QE0icrtj8sGf
        include base-4.10.1.0
        include aeson-1.2.3.0-DVBnkMB34ZJ4n8IWCnrp3X
        include bytestring-0.10.8.2
        include containers-0.5.10.2
        include data-default-class-0.1.2.0-8hmGYd6GPAfLQPQcWKOjRm
        include deepseq-1.4.3.0
        include exceptions-0.8.3-L52ecz77Sm44gVOV6wW6lE
        include mtl-2.2.1-DscMMmDQUE6GBfOSl4qMUH
        include pretty-1.1.3.3
        include primitive-0.6.2.0-EI3NK1Xfv9zEcRtyXK2EwZ
        include process-1.6.1.0
        include reflection-2.1.2-7oiCkUcRKMD9YPFQmblMLa
        include setenv-0.1.1.3-4FEJPUU51wbJmlhCSZScDf
        include singletons-2.3.1-4mJxoZamsFaBCo9KxSoXAR
        include template-haskell-2.12.0.0
        include text-1.2.2.2-J0kTo5xltQjAfCz3JZ4Oj0
        include th-lift-0.7.7-4Fh2JOKcGGMJqOzEylnfxU
        include th-orphans-0.13.4-E2gzWmmsSs9FGZqH4LT7ez
        include transformers-0.5.2.0
        include vector-0.12.0.1-IUGn3M9mkBh8CyXcBnfTR4
        include unix-2.7.2.2
    component inline-r-0.9.0.2-51JIHAY0U03Dbko61WsJDU-test-qq
        include inline-r-0.9.0.2-Gi5W7fb3f1QE0icrtj8sGf
        include base-4.10.1.0
        include mtl-2.2.1-DscMMmDQUE6GBfOSl4qMUH
        include process-1.6.1.0
        include tasty-hunit-0.9.2-DnQ9HKA6kmIGGshaOF89F0
        include singletons-2.3.1-4mJxoZamsFaBCo9KxSoXAR
        include text-1.2.2.2-J0kTo5xltQjAfCz3JZ4Oj0
    component inline-r-0.9.0.2-Hs7HJs2b2NSAuMQdYVW2mZ-test-shootout
        include inline-r-0.9.0.2-Gi5W7fb3f1QE0icrtj8sGf
        include base-4.10.1.0
        include filepath-1.4.1.2
        include process-1.6.1.0
        include silently-1.2.5-82LC9X7JBD15aM9WvtROdB
        include tasty-0.11.3-Fif9x2v9ADFA5ZuA4TNLfY
        include tasty-hunit-0.9.2-DnQ9HKA6kmIGGshaOF89F0
        include template-haskell-2.12.0.0
    component inline-r-0.9.0.2-EALIsYFcivV4NDlDIJtJNa-tests
        include inline-r-0.9.0.2-Gi5W7fb3f1QE0icrtj8sGf
        include base-4.10.1.0
        include bytestring-0.10.8.2
        include directory-1.3.0.2
        include filepath-1.4.1.2
        include ieee754-0.8.0-B9FdsnFZjDO5G55ttUSqU0
        include mtl-2.2.1-DscMMmDQUE6GBfOSl4qMUH
        include process-1.6.1.0
        include quickcheck-assertions-0.3.0-63K35SKqqcsCp8kW8gW6yG
        include singletons-2.3.1-4mJxoZamsFaBCo9KxSoXAR
        include strict-0.3.2-8X7gei2OShnI8D6awEvqNq
        include tasty-0.11.3-Fif9x2v9ADFA5ZuA4TNLfY
        include tasty-expected-failure-0.11.0.4-H0M6rRclytc988LY3ELHXk
        include tasty-golden-2.3.1.2-3NfBWNFOBFB46W2c7QLGky
        include tasty-hunit-0.9.2-DnQ9HKA6kmIGGshaOF89F0
        include tasty-quickcheck-0.9.1-9RkB4DASX5yBmFB4d1xSU4
        include temporary-1.2.1.1-KtnSO1PvOqAInMbAs4aZZs
        include text-1.2.2.2-J0kTo5xltQjAfCz3JZ4Oj0
        include vector-0.12.0.1-IUGn3M9mkBh8CyXcBnfTR4
        include unix-2.7.2.2
Linked component graph:
    unit inline-r-0.9.0.2-Gi5W7fb3f1QE0icrtj8sGf
        include base-4.10.1.0
        include aeson-1.2.3.0-DVBnkMB34ZJ4n8IWCnrp3X
        include bytestring-0.10.8.2
        include containers-0.5.10.2
        include data-default-class-0.1.2.0-8hmGYd6GPAfLQPQcWKOjRm
        include deepseq-1.4.3.0
        include exceptions-0.8.3-L52ecz77Sm44gVOV6wW6lE
        include mtl-2.2.1-DscMMmDQUE6GBfOSl4qMUH
        include pretty-1.1.3.3
        include primitive-0.6.2.0-EI3NK1Xfv9zEcRtyXK2EwZ
        include process-1.6.1.0
        include reflection-2.1.2-7oiCkUcRKMD9YPFQmblMLa
        include setenv-0.1.1.3-4FEJPUU51wbJmlhCSZScDf
        include singletons-2.3.1-4mJxoZamsFaBCo9KxSoXAR
        include template-haskell-2.12.0.0
        include text-1.2.2.2-J0kTo5xltQjAfCz3JZ4Oj0
        include th-lift-0.7.7-4Fh2JOKcGGMJqOzEylnfxU
        include th-orphans-0.13.4-E2gzWmmsSs9FGZqH4LT7ez
        include transformers-0.5.2.0
        include vector-0.12.0.1-IUGn3M9mkBh8CyXcBnfTR4
        include unix-2.7.2.2
        Control.Memory.Region=inline-r-0.9.0.2-Gi5W7fb3f1QE0icrtj8sGf:Control.Memory.Region,Data.Vector.SEXP=inline-r-0.9.0.2-Gi5W7fb3f1QE0icrtj8sGf:Data.Vector.SEXP,Data.Vector.SEXP.Base=inline-r-0.9.0.2-Gi5W7fb3f1QE0icrtj8sGf:Data.Vector.SEXP.Base,Data.Vector.SEXP.Mutable=inline-r-0.9.0.2-Gi5W7fb3f1QE0icrtj8sGf:Data.Vector.SEXP.Mutable,Foreign.R=inline-r-0.9.0.2-Gi5W7fb3f1QE0icrtj8sGf:Foreign.R,Foreign.R.Constraints=inline-r-0.9.0.2-Gi5W7fb3f1QE0icrtj8sGf:Foreign.R.Constraints,Foreign.R.Embedded=inline-r-0.9.0.2-Gi5W7fb3f1QE0icrtj8sGf:Foreign.R.Embedded,Foreign.R.Error=inline-r-0.9.0.2-Gi5W7fb3f1QE0icrtj8sGf:Foreign.R.Error,Foreign.R.EventLoop=inline-r-0.9.0.2-Gi5W7fb3f1QE0icrtj8sGf:Foreign.R.EventLoop,Foreign.R.Internal=inline-r-0.9.0.2-Gi5W7fb3f1QE0icrtj8sGf:Foreign.R.Internal,Foreign.R.Parse=inline-r-0.9.0.2-Gi5W7fb3f1QE0icrtj8sGf:Foreign.R.Parse,Foreign.R.Type=inline-r-0.9.0.2-Gi5W7fb3f1QE0icrtj8sGf:Foreign.R.Type,H.Prelude=inline-r-0.9.0.2-Gi5W7fb3f1QE0icrtj8sGf:H.Prelude,H.Prelude.Interactive=inline-r-0.9.0.2-Gi5W7fb3f1QE0icrtj8sGf:H.Prelude.Interactive,Language.R=inline-r-0.9.0.2-Gi5W7fb3f1QE0icrtj8sGf:Language.R,Language.R.Debug=inline-r-0.9.0.2-Gi5W7fb3f1QE0icrtj8sGf:Language.R.Debug,Language.R.Event=inline-r-0.9.0.2-Gi5W7fb3f1QE0icrtj8sGf:Language.R.Event,Language.R.GC=inline-r-0.9.0.2-Gi5W7fb3f1QE0icrtj8sGf:Language.R.GC,Language.R.Globals=inline-r-0.9.0.2-Gi5W7fb3f1QE0icrtj8sGf:Language.R.Globals,Language.R.HExp=inline-r-0.9.0.2-Gi5W7fb3f1QE0icrtj8sGf:Language.R.HExp,Language.R.Instance=inline-r-0.9.0.2-Gi5W7fb3f1QE0icrtj8sGf:Language.R.Instance,Language.R.Internal=inline-r-0.9.0.2-Gi5W7fb3f1QE0icrtj8sGf:Language.R.Internal,Language.R.Internal.FunWrappers=inline-r-0.9.0.2-Gi5W7fb3f1QE0icrtj8sGf:Language.R.Internal.FunWrappers,Language.R.Internal.FunWrappers.TH=inline-r-0.9.0.2-Gi5W7fb3f1QE0icrtj8sGf:Language.R.Internal.FunWrappers.TH,Language.R.Literal=inline-r-0.9.0.2-Gi5W7fb3f1QE0icrtj8sGf:Language.R.Literal,Language.R.Matcher=inline-r-0.9.0.2-Gi5W7fb3f1QE0icrtj8sGf:Language.R.Matcher,Language.R.QQ=inline-r-0.9.0.2-Gi5W7fb3f1QE0icrtj8sGf:Language.R.QQ
    unit inline-r-0.9.0.2-51JIHAY0U03Dbko61WsJDU-test-qq
        include inline-r-0.9.0.2-Gi5W7fb3f1QE0icrtj8sGf
        include base-4.10.1.0
        include mtl-2.2.1-DscMMmDQUE6GBfOSl4qMUH
        include process-1.6.1.0
        include tasty-hunit-0.9.2-DnQ9HKA6kmIGGshaOF89F0
        include singletons-2.3.1-4mJxoZamsFaBCo9KxSoXAR
        include text-1.2.2.2-J0kTo5xltQjAfCz3JZ4Oj0
    unit inline-r-0.9.0.2-Hs7HJs2b2NSAuMQdYVW2mZ-test-shootout
        include inline-r-0.9.0.2-Gi5W7fb3f1QE0icrtj8sGf
        include base-4.10.1.0
        include filepath-1.4.1.2
        include process-1.6.1.0
        include silently-1.2.5-82LC9X7JBD15aM9WvtROdB
        include tasty-0.11.3-Fif9x2v9ADFA5ZuA4TNLfY
        include tasty-hunit-0.9.2-DnQ9HKA6kmIGGshaOF89F0
        include template-haskell-2.12.0.0
    unit inline-r-0.9.0.2-EALIsYFcivV4NDlDIJtJNa-tests
        include inline-r-0.9.0.2-Gi5W7fb3f1QE0icrtj8sGf
        include base-4.10.1.0
        include bytestring-0.10.8.2
        include directory-1.3.0.2
        include filepath-1.4.1.2
        include ieee754-0.8.0-B9FdsnFZjDO5G55ttUSqU0
        include mtl-2.2.1-DscMMmDQUE6GBfOSl4qMUH
        include process-1.6.1.0
        include quickcheck-assertions-0.3.0-63K35SKqqcsCp8kW8gW6yG
        include singletons-2.3.1-4mJxoZamsFaBCo9KxSoXAR
        include strict-0.3.2-8X7gei2OShnI8D6awEvqNq
        include tasty-0.11.3-Fif9x2v9ADFA5ZuA4TNLfY
        include tasty-expected-failure-0.11.0.4-H0M6rRclytc988LY3ELHXk
        include tasty-golden-2.3.1.2-3NfBWNFOBFB46W2c7QLGky
        include tasty-hunit-0.9.2-DnQ9HKA6kmIGGshaOF89F0
        include tasty-quickcheck-0.9.1-9RkB4DASX5yBmFB4d1xSU4
        include temporary-1.2.1.1-KtnSO1PvOqAInMbAs4aZZs
        include text-1.2.2.2-J0kTo5xltQjAfCz3JZ4Oj0
        include vector-0.12.0.1-IUGn3M9mkBh8CyXcBnfTR4
        include unix-2.7.2.2
Ready component graph:
    definite inline-r-0.9.0.2-Gi5W7fb3f1QE0icrtj8sGf
        depends base-4.10.1.0
        depends aeson-1.2.3.0-DVBnkMB34ZJ4n8IWCnrp3X
        depends bytestring-0.10.8.2
        depends containers-0.5.10.2
        depends data-default-class-0.1.2.0-8hmGYd6GPAfLQPQcWKOjRm
        depends deepseq-1.4.3.0
        depends exceptions-0.8.3-L52ecz77Sm44gVOV6wW6lE
        depends mtl-2.2.1-DscMMmDQUE6GBfOSl4qMUH
        depends pretty-1.1.3.3
        depends primitive-0.6.2.0-EI3NK1Xfv9zEcRtyXK2EwZ
        depends process-1.6.1.0
        depends reflection-2.1.2-7oiCkUcRKMD9YPFQmblMLa
        depends setenv-0.1.1.3-4FEJPUU51wbJmlhCSZScDf
        depends singletons-2.3.1-4mJxoZamsFaBCo9KxSoXAR
        depends template-haskell-2.12.0.0
        depends text-1.2.2.2-J0kTo5xltQjAfCz3JZ4Oj0
        depends th-lift-0.7.7-4Fh2JOKcGGMJqOzEylnfxU
        depends th-orphans-0.13.4-E2gzWmmsSs9FGZqH4LT7ez
        depends transformers-0.5.2.0
        depends vector-0.12.0.1-IUGn3M9mkBh8CyXcBnfTR4
        depends unix-2.7.2.2
    definite inline-r-0.9.0.2-Hs7HJs2b2NSAuMQdYVW2mZ-test-shootout
        depends inline-r-0.9.0.2-Gi5W7fb3f1QE0icrtj8sGf
        depends base-4.10.1.0
        depends filepath-1.4.1.2
        depends process-1.6.1.0
        depends silently-1.2.5-82LC9X7JBD15aM9WvtROdB
        depends tasty-0.11.3-Fif9x2v9ADFA5ZuA4TNLfY
        depends tasty-hunit-0.9.2-DnQ9HKA6kmIGGshaOF89F0
        depends template-haskell-2.12.0.0
    definite inline-r-0.9.0.2-EALIsYFcivV4NDlDIJtJNa-tests
        depends inline-r-0.9.0.2-Gi5W7fb3f1QE0icrtj8sGf
        depends base-4.10.1.0
        depends bytestring-0.10.8.2
        depends directory-1.3.0.2
        depends filepath-1.4.1.2
        depends ieee754-0.8.0-B9FdsnFZjDO5G55ttUSqU0
        depends mtl-2.2.1-DscMMmDQUE6GBfOSl4qMUH
        depends process-1.6.1.0
        depends quickcheck-assertions-0.3.0-63K35SKqqcsCp8kW8gW6yG
        depends singletons-2.3.1-4mJxoZamsFaBCo9KxSoXAR
        depends strict-0.3.2-8X7gei2OShnI8D6awEvqNq
        depends tasty-0.11.3-Fif9x2v9ADFA5ZuA4TNLfY
        depends tasty-expected-failure-0.11.0.4-H0M6rRclytc988LY3ELHXk
        depends tasty-golden-2.3.1.2-3NfBWNFOBFB46W2c7QLGky
        depends tasty-hunit-0.9.2-DnQ9HKA6kmIGGshaOF89F0
        depends tasty-quickcheck-0.9.1-9RkB4DASX5yBmFB4d1xSU4
        depends temporary-1.2.1.1-KtnSO1PvOqAInMbAs4aZZs
        depends text-1.2.2.2-J0kTo5xltQjAfCz3JZ4Oj0
        depends vector-0.12.0.1-IUGn3M9mkBh8CyXcBnfTR4
        depends unix-2.7.2.2
    definite inline-r-0.9.0.2-51JIHAY0U03Dbko61WsJDU-test-qq
        depends inline-r-0.9.0.2-Gi5W7fb3f1QE0icrtj8sGf
        depends base-4.10.1.0
        depends mtl-2.2.1-DscMMmDQUE6GBfOSl4qMUH
        depends process-1.6.1.0
        depends tasty-hunit-0.9.2-DnQ9HKA6kmIGGshaOF89F0
        depends singletons-2.3.1-4mJxoZamsFaBCo9KxSoXAR
        depends text-1.2.2.2-J0kTo5xltQjAfCz3JZ4Oj0
Using Cabal-2.0.1.0 compiled by ghc-8.2
Using compiler: ghc-8.2.2
Using install prefix:
/nix/store/5c9irqm5pmqk7gwrghfqs7jnm889anrp-inline-r-0.9.0.2
Executables installed in:
/nix/store/5c9irqm5pmqk7gwrghfqs7jnm889anrp-inline-r-0.9.0.2/bin
Libraries installed in:
/nix/store/5c9irqm5pmqk7gwrghfqs7jnm889anrp-inline-r-0.9.0.2/lib/ghc-8.2.2/inline-r-0.9.0.2
Dynamic Libraries installed in:
/nix/store/5c9irqm5pmqk7gwrghfqs7jnm889anrp-inline-r-0.9.0.2/lib/ghc-8.2.2/x86_64-osx-ghc-8.2.2
Private executables installed in:
/nix/store/5c9irqm5pmqk7gwrghfqs7jnm889anrp-inline-r-0.9.0.2/libexec/x86_64-osx-ghc-8.2.2/inline-r-0.9.0.2
Data files installed in:
/nix/store/5c9irqm5pmqk7gwrghfqs7jnm889anrp-inline-r-0.9.0.2/share/x86_64-osx-ghc-8.2.2/inline-r-0.9.0.2
Documentation installed in:
/nix/store/jvbgcjidg5g2xwd15gn1xlfv679zh73x-inline-r-0.9.0.2-doc/share/doc
Configuration files installed in:
/nix/store/5c9irqm5pmqk7gwrghfqs7jnm889anrp-inline-r-0.9.0.2/etc
No alex found
Using ar found on system at:
/nix/store/i1zz228nl3bljcbb83fq0rq7lr7nvv4y-cctools-binutils-darwin/bin/ar
Using c2hs version 0.28.2 found on system at:
/nix/store/7zrrsb14rcvr6w7yswfa7xyadigdaf5k-c2hs-0.26.2-28-g8b79823/bin/c2hs
No cpphs found
No doctest found
Using gcc version 4.2.1 given by user at:
/nix/store/2yvxxspic4z3vjxav07f5jvrwzjaxyww-clang-wrapper-4.0.1/bin/clang
Using ghc version 8.2.2 found on system at:
/nix/store/prk0528kcsgwqivpkj69w726rvbz1qpb-ghc-8.2.2/bin/ghc
Using ghc-pkg version 8.2.2 found on system at:
/nix/store/prk0528kcsgwqivpkj69w726rvbz1qpb-ghc-8.2.2/bin/ghc-pkg
No ghcjs found
No ghcjs-pkg found
No greencard found
Using haddock version 2.18.1 found on system at:
/nix/store/prk0528kcsgwqivpkj69w726rvbz1qpb-ghc-8.2.2/bin/haddock
No happy found
Using haskell-suite found on system at: haskell-suite-dummy-location
Using haskell-suite-pkg found on system at: haskell-suite-pkg-dummy-location
No hmake found
Using hpc version 0.67 found on system at:
/nix/store/prk0528kcsgwqivpkj69w726rvbz1qpb-ghc-8.2.2/bin/hpc
Using hsc2hs version 0.68.2 found on system at:
/nix/store/prk0528kcsgwqivpkj69w726rvbz1qpb-ghc-8.2.2/bin/hsc2hs
Using hscolour version 1.24 found on system at:
/nix/store/ki8cy7f0pvbldy34az785138xv99wcrr-hscolour-1.24.2/bin/HsColour
No jhc found
Using ld found on system at:
/nix/store/2yvxxspic4z3vjxav07f5jvrwzjaxyww-clang-wrapper-4.0.1/bin/ld
No lhc found
No lhc-pkg found
Using pkg-config version 0.29.2 found on system at:
/nix/store/80hzwj3hjywl7icm85ml11bp35ymxv45-pkg-config-0.29.2/bin/pkg-config
Using runghc version 8.2.2 found on system at:
/nix/store/prk0528kcsgwqivpkj69w726rvbz1qpb-ghc-8.2.2/bin/runghc
Using strip found on system at:
/nix/store/i1zz228nl3bljcbb83fq0rq7lr7nvv4y-cctools-binutils-darwin/bin/strip
Using tar found on system at:
/nix/store/15x41x3jc4r58qmgs1cdcnmr1s9iv59f-gnutar-1.30/bin/tar
No uhc found
building
Preprocessing library for inline-r-0.9.0.2..
dyld: Library not loaded: libR.dylib
  Referenced from: /private/tmp/nix-build-inline-r-0.9.0.2.drv-0/inline-r-0.9.0.2/dist/build/Foreign/R/Internal_hsc_make
  Reason: image not found
running dist/build/Foreign/R/Internal_hsc_make failed (exit code -6)
command was: dist/build/Foreign/R/Internal_hsc_make  >dist/build/Foreign/R/Internal.hs
builder for ‘/nix/store/4w4c1mbhnj4krwmhl3asgsk9h6s46ygv-inline-r-0.9.0.2.drv’ failed with exit code 1
cannot build derivation ‘/nix/store/pii4spfpdjyzb86nrngs4hxn1mxj7qcc-ghc-8.2.2-with-packages.drv’: 1 dependencies couldn't be built
error: build of ‘/nix/store/pii4spfpdjyzb86nrngs4hxn1mxj7qcc-ghc-8.2.2-with-packages.drv’ failed
/nix/var/nix/profiles/default/bin/nix-shell: failed to build all dependencies

Technical details

Please run nix-shell -p nix-info --run "nix-info -m" and paste the results.

 nix-shell -p nix-info --run "nix-info -m"
 - system: `"x86_64-darwin"`
 - host os: `Darwin 17.3.0, macOS 10.13.2`
 - multi-user?: `yes`
 - sandbox: `no`
 - version: `nix-env (Nix) 1.11.15`
 - channels(root): `"nixpkgs-18.03pre122117.14df60d0db9"`
 - channels(dom): `""`
 - nixpkgs: `/nix/var/nix/profiles/per-user/root/channels/nixpkgs`
LnL7 commented 6 years ago

Looks like the install_name is probably not set correctly.

GregorySchwartz commented 4 years ago

@LnL7 I'm getting a similar error with the same package, but for libRblas.dylib instead. I think it may be the same issue, as otool seems to report it as relative, so I think libRblas.dylib needs the same treatment as libR.dylib with install_name.

idontgetoutmuch commented 3 years ago

I tried

  prePatch = stdenv.lib.optionalString stdenv.isDarwin ''
    substituteInPlace configure --replace "-install_name libRblas.dylib" "-install_name $out/lib/R/lib/libRblas.dylib"
    substituteInPlace configure --replace "-install_name libR.dylib" "-install_name $out/lib/R/lib/libR.dylib"
  '';

but sadly it did not work. I suppose I should open a new ticket.

idontgetoutmuch commented 3 years ago

@GregorySchwartz: https://github.com/NixOS/nixpkgs/pull/99570