conda-forge / r-rcpparmadillo-feedstock

A conda-smithy repository for r-rcpparmadillo.
BSD 3-Clause "New" or "Revised" License
0 stars 6 forks source link

osx-arm64 builds do not link against `libblas`, `liblapack` #59

Open mfansler opened 1 year ago

mfansler commented 1 year ago

Examining recent build logs reveals that -lblas -llapack ends up linking to lib/R/lib/libRblas.dylib and lib/R/lib/libRlapack.dylib for osx-arm64 builds. This seems undesirable and makes the dependencies of libblas and liblapack superfluous for these builds.

Possibly related to https://github.com/conda-forge/r-base-feedstock/issues/249

Can't parse the binary at the index #1
   INFO: sysroot: '/Applications/Xcode_13.2.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.0.sdk/' files: '['usr/share/man/mann/zero.n', 'usr/share/man/mann/yencode.n', 'usr/share/man/mann/yaml.n', 'usr/share/man/mann/xsxp.n']'
   INFO (r-rcpparmadillo,lib/R/library/RcppArmadillo/libs/RcppArmadillo.dylib): Needed DSO lib/R/lib/libRlapack.dylib found in conda-forge::r-base-4.3.0-h4b3f977_1
   INFO (r-rcpparmadillo,lib/R/library/RcppArmadillo/libs/RcppArmadillo.dylib): Needed DSO lib/R/lib/libRblas.dylib found in conda-forge::r-base-4.3.0-h4b3f977_1
   INFO (r-rcpparmadillo,lib/R/library/RcppArmadillo/libs/RcppArmadillo.dylib): Needed DSO /Applications/Xcode_13.2.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.0.sdk/usr/lib/libSystem.B.dylib found in $SYSROOT
   INFO (r-rcpparmadillo,lib/R/library/RcppArmadillo/libs/RcppArmadillo.dylib): Needed DSO lib/R/lib/libR.dylib found in conda-forge::r-base-4.3.0-h4b3f977_1
   INFO (r-rcpparmadillo,lib/R/library/RcppArmadillo/libs/RcppArmadillo.dylib): Needed DSO lib/libomp.dylib found in conda-forge::llvm-openmp-15.0.7-h7cfbb63_0
   INFO (r-rcpparmadillo,lib/R/library/RcppArmadillo/libs/RcppArmadillo.dylib): Needed DSO lib/libc++.1.dylib found in conda-forge::libcxx-16.0.6-h4653b0c_0
WARNING (r-rcpparmadillo): plugin library (R) package conda-forge::r-rcpp-1.0.10-r43he62749d_1 in requirements/run but it is not used (i.e. it is overdepending or perhaps statically linked? If that is what you want then add it to `build/ignore_run_exports`)
WARNING (r-rcpparmadillo): run-exports library package conda-forge::libblas-3.9.0-5_h880f123_netlib in requirements/run but it is not used (i.e. it is overdepending or perhaps statically linked? If that is what you want then add it to `build/ignore_run_exports`)
WARNING (r-rcpparmadillo): run-exports library package conda-forge::liblapack-3.9.0-5_h880f123_netlib in requirements/run but it is not used (i.e. it is overdepending or perhaps statically linked? If that is what you want then add it to `build/ignore_run_exports`)
mfansler commented 1 year ago

I'll also note that I'm looking at this in relation to some unsolvable R 4.3 migrations that appear to have r-rcpparmadillo in the build requirements in common, specifically for osx-arm64 builds. However, this is still speculative (I don't see a reason why this would lead to unsolvability).