conda-forge / r-base-feedstock

A conda-smithy repository for r-base.
BSD 3-Clause "New" or "Revised" License
14 stars 47 forks source link

conda build Windows Error: m2w64_c_win-64 and R packages #108

Closed gnguy closed 3 years ago

gnguy commented 4 years ago

I am attempting to install a newer version of the sf R package than is currently available via conda install (as the current version using conda install causes a significant set of dependency conflicts against other packages I already have installed).

To do so, I have tried to first runconda skeleton cran sf to create the sf meta yaml, which is listed below. Then, I attempt to build the new skeleton using conda build r-sf --debug. This causes the following error (with full debug at the end):

conda.exceptions.ResolvePackageNotFound:
  - m2w64_cxx_win-64
  - m2w64_c_win-64

In a naive attempt to try to resolve this, I tried conda installing all of the conda packages prefixed by m2w*, including the m2w64 toolkit, but it still returns the same error message.

Is there something that I need to do to enable conda build to find the compilers listed and/or to install the compilers beyond installing all of the m2w* packages, or is this a bug with conda build for R packages on windows? I have been able to install a number of R packages using conda install without running into any similar issue.


Environment (conda list):

``` $ conda list # Name Version Build Channel _py-xgboost-mutex 2.0 cpu_0 _r-mutex 1.0.0 anacondar_1 r attrs 19.1.0 py37_1 backcall 0.1.0 py37_0 blas 1.0 mkl bleach 3.1.0 py37_0 ca-certificates 2019.8.28 0 certifi 2019.9.11 py37_0 colorama 0.4.1 py37_0 decorator 4.4.0 py37_1 defusedxml 0.6.0 py_0 entrypoints 0.3 py37_0 font-ttf-dejavu-sans-mono 2.37 h6964260_0 font-ttf-inconsolata 2.001 hcb22688_0 font-ttf-source-code-pro 2.030 h7457263_0 font-ttf-ubuntu 0.83 h8b1ccd4_0 fonts-anaconda 1 h8fa9717_0 freetype 2.9.1 ha9979f8_1 icc_rt 2019.0.0 h0cc432a_1 icu 58.2 ha66f8fd_1 intel-openmp 2019.4 245 ipykernel 5.1.2 py37h39e3cac_0 ipython 7.8.0 py37h39e3cac_0 ipython_genutils 0.2.0 py37_0 jedi 0.15.1 py37_0 jinja2 2.10.1 py37_0 joblib 0.13.2 py37_0 jpeg 9b hb83a4c4_2 json5 0.8.5 py_0 jsonschema 3.0.2 py37_0 jupyter_client 5.3.3 py_0 jupyter_core 4.5.0 py_0 jupyterlab 1.0.2 py37hf63ae98_0 jupyterlab_server 1.0.6 py_0 libpng 1.6.37 h2a8f88b_0 libsodium 1.0.16 h9d3ae62_0 libxgboost 0.90 0 m2-bash 4.3.042 5 m2-coreutils 8.25 102 m2-findutils 4.6.0 2 m2-gcc-libs 5.3.0 4 m2-gmp 6.1.0 3 m2-heimdal 1.5.3 10 m2-heimdal-libs 1.5.3 10 m2-icu 56.1 2 m2-libcrypt 1.3 2 m2-libdb 5.3.28 3 m2-libedit 3.1 20150326 m2-libiconv 1.14 3 m2-libintl 0.19.7 4 m2-libopenssl 1.0.2.g 2 m2-libreadline 6.3.008 8 m2-libsqlite 3.10.0.0 2 m2-msys2-runtime 2.5.0.17080.65c939c 3 m2-ncurses 6.0.20160220 2 m2-openssh 7.1p2 2 m2-openssl 1.0.2.g 2 m2-zlib 1.2.8 4 m2w64-binutils 2.25.1 5 m2w64-bwidget 1.9.10 2 m2w64-bzip2 1.0.6 6 m2w64-c-ares 1.11.0 2 m2w64-ca-certificates 20150426 104 m2w64-crt-git 5.0.0.4636.2595836 2 m2w64-curl 7.48.0 2 m2w64-diffutils 3.3.2 2 m2w64-dlfcn 1.1.1 h1e6a91a_1 m2w64-dsdp 5.8 1 m2w64-expat 2.1.1 2 m2w64-fftw 3.3.4 6 m2w64-flac 1.3.1 3 m2w64-gcc 5.3.0 6 m2w64-gcc-ada 5.3.0 6 m2w64-gcc-fortran 5.3.0 6 m2w64-gcc-libgfortran 5.3.0 6 m2w64-gcc-libs 5.3.0 7 m2w64-gcc-libs-core 5.3.0 7 m2w64-gcc-objc 5.3.0 6 m2w64-gettext 0.19.7 2 m2w64-glpk 4.61 1 m2w64-gmp 6.1.0 2 m2w64-gnutls 3.4.11 2 m2w64-grep 2.24 2 m2w64-gsl 2.1 2 m2w64-headers-git 5.0.0.4636.c0ad18a 2 m2w64-icu 58.2 heb44b8b_2 m2w64-isl 0.16.1 2 m2w64-jansson 2.7 3 m2w64-libffi 3.2.1 4 m2w64-libiconv 1.14 6 m2w64-libidn 1.32 4 m2w64-libjpeg-turbo 1.4.2 3 m2w64-libmangle-git 5.0.0.4509.2e5a9a2 2 m2w64-libmetalink 0.1.3 2 m2w64-libogg 1.3.2 3 m2w64-libpng 1.6.21 2 m2w64-libsndfile 1.0.26 2 m2w64-libsodium 1.0.10 2 m2w64-libssh2 1.7.0 2 m2w64-libsystre 1.0.1 3 m2w64-libtasn1 4.7 2 m2w64-libtiff 4.0.6 2 m2w64-libtre-git 122.c2f5d13 5 m2w64-libvorbis 1.3.5 2 m2w64-libwinpthread-git 5.0.0.4634.697f757 2 m2w64-libxml2 2.9.3 4 m2w64-make 4.1.2351.a80a8b8 2 m2w64-metis 5.1.0 1 m2w64-mpc 1.0.3 3 m2w64-mpfr 3.1.4 4 m2w64-nettle 3.1.1 4 m2w64-nghttp2 1.9.2 2 m2w64-nlopt 2.4.2 3 m2w64-ntldd-git 15.e7622f6 3 m2w64-openblas 0.2.19 1 m2w64-openssl 1.0.2.g 2 m2w64-p11-kit 0.23.2 3 m2w64-pcre 8.38 2 m2w64-pkg-config 0.29.1 2 m2w64-rtmpdump-git 499.a107cef 4 m2w64-speex 1.2rc2 3 m2w64-speexdsp 1.2rc3 3 m2w64-suitesparse 4.5.5 1 m2w64-tcl 8.6.5 3 m2w64-tk 8.6.5 3 m2w64-tktable 2.10 5 m2w64-toolchain 5.3.0 7 m2w64-toolchain_win-64 2.4.0 0 m2w64-tools-git 5.0.0.4592.90b8472 2 m2w64-udunits2 2.2.25 1 m2w64-windows-default-manifest 6.4 3 m2w64-wineditline 2.101 5 m2w64-winpthreads-git 5.0.0.4634.697f757 2 m2w64-xz 5.2.2 2 m2w64-zeromq 4.1.4 2 m2w64-zlib 1.2.8 10 markupsafe 1.1.1 py37he774522_0 mistune 0.8.4 py37he774522_0 mkl 2019.4 245 mkl-service 2.3.0 py37hb782905_0 mkl_fft 1.0.14 py37h14836fe_0 mkl_random 1.1.0 py37h675688f_0 msys2-conda-epoch 20160418 1 nbconvert 5.6.0 py37_1 nbformat 4.4.0 py37_0 notebook 6.0.1 py37_0 numpy 1.16.5 py37h19fb1c0_0 numpy-base 1.16.5 py37hc3f5095_0 openjdk 8.0.152 h7382acf_1 openssl 1.0.2t vc14h62dcd97_0 pandoc 2.2.3.2 0 pandocfilters 1.4.2 py37_1 parso 0.5.1 py_0 pickleshare 0.7.5 py37_0 pip 19.2.3 py37_0 plotly 4.1.1 py_0 prometheus_client 0.7.1 py_0 prompt_toolkit 2.0.9 py37_0 py-xgboost 0.90 py37_0 pygments 2.4.2 py_0 pyrsistent 0.15.4 py37he774522_0 python 3.7.1 h33f27b4_4 python-dateutil 2.8.0 py37_0 pywin32 223 py37hfa6e2cd_1 pywinpty 0.5.5 py37_1000 pyzmq 18.1.0 py37ha925a31_0 qt 5.6.2 vc14h6f8c307_12 r-askpass 1.0 r36_0 r r-assertable 0.2.5 r36h6115d3f_0 r r-assertthat 0.2.1 r36h6115d3f_0 r r-backports 1.1.4 r36h6115d3f_0 r r-base 3.6.1 h8a96d1b_0 r r-base64enc 0.1_3 r36h6115d3f_4 r r-bh 1.69.0_1 r36h6115d3f_0 r r-bit 1.1_14 r36h6115d3f_0 r r-bit64 0.9_7 r36h6115d3f_0 r r-bitops 1.0_6 r36h6115d3f_4 r r-blob 1.1.1 r36h6115d3f_0 r r-boot 1.3_20 r36h6115d3f_0 r r-broom 0.5.2 r36h6115d3f_0 r r-callr 3.2.0 r36h6115d3f_0 r r-caret 6.0_83 r36h6115d3f_0 r r-catools 1.17.1.2 r36h6115d3f_0 r r-cellranger 1.1.0 r36h6115d3f_0 r r-class 7.3_15 r36h6115d3f_0 r r-cli 1.1.0 r36h6115d3f_0 r r-clipr 0.6.0 r36h6115d3f_0 r r-cluster 2.0.8 r36h6115d3f_0 r r-codetools 0.2_16 r36h6115d3f_0 r r-colorspace 1.4_1 r36h6115d3f_0 r r-config 0.3 r36h6115d3f_0 r r-crayon 1.3.4 r36h6115d3f_0 r r-crosstalk 1.0.0 r36h6115d3f_0 r r-curl 3.3 r36h6115d3f_0 r r-data.table 1.12.2 r36h6115d3f_0 r r-dbi 1.0.0 r36h6115d3f_0 r r-dbplyr 1.4.0 r36h6115d3f_0 r r-dichromat 2.0_0 r36h6115d3f_4 r r-digest 0.6.18 r36h6115d3f_0 r r-dplyr 0.8.0.1 r36h6115d3f_0 r r-dt 0.5 r36h6115d3f_0 r r-ellipsis 0.1.0 r36h6115d3f_0 r r-essentials 3.6.0 r36_0 r r-evaluate 0.13 r36h6115d3f_0 r r-fansi 0.4.0 r36h6115d3f_0 r r-forcats 0.4.0 r36h6115d3f_0 r r-foreach 1.4.4 r36h6115d3f_0 r r-foreign 0.8_71 r36h6115d3f_0 r r-forge 0.2.0 r36h6115d3f_0 r r-formatr 1.6 r36h6115d3f_0 r r-fs 1.2.7 r36h6115d3f_0 r r-generics 0.0.2 r36h6115d3f_0 r r-ggplot2 3.1.1 r36h6115d3f_0 r r-glmnet 2.0_16 r36h6115d3f_0 r r-glue 1.3.1 r36h6115d3f_0 r r-gower 0.2.0 r36h6115d3f_0 r r-gridextra 2.3 r36h6115d3f_0 r r-gtable 0.3.0 r36h6115d3f_0 r r-haven 2.1.0 r36h6115d3f_0 r r-hexbin 1.27.2 r36h6115d3f_0 r r-highr 0.8 r36h6115d3f_0 r r-hms 0.4.2 r36h6115d3f_0 r r-htmltools 0.3.6 r36h6115d3f_0 r r-htmlwidgets 1.3 r36h6115d3f_0 r r-httpuv 1.5.1 r36h6115d3f_0 r r-httr 1.4.0 r36h6115d3f_0 r r-ipred 0.9_8 r36h6115d3f_0 r r-irdisplay 0.7.0 r36h6115d3f_0 r r-irkernel 0.8.15 r36_0 r r-iterators 1.0.10 r36h6115d3f_0 r r-jsonlite 1.6 r36h6115d3f_0 r r-kernsmooth 2.23_15 r36h6115d3f_4 r r-knitr 1.22 r36h6115d3f_0 r r-labeling 0.3 r36h6115d3f_4 r r-later 0.8.0 r36h6115d3f_0 r r-lattice 0.20_38 r36h6115d3f_0 r r-lava 1.6.5 r36h6115d3f_0 r r-lazyeval 0.2.2 r36h6115d3f_0 r r-leaflet 2.0.2 r36h6115d3f_0 r r-lubridate 1.7.4 r36h6115d3f_0 r r-magrittr 1.5 r36h6115d3f_4 r r-maps 3.3.0 r36h6115d3f_0 r r-markdown 0.9 r36h6115d3f_0 r r-mass 7.3_51.3 r36h6115d3f_0 r r-matrix 1.2_17 r36h6115d3f_0 r r-mgcv 1.8_28 r36h6115d3f_0 r r-mime 0.6 r36h6115d3f_0 r r-miniui 0.1.1.1 r36h6115d3f_0 r r-modelmetrics 1.2.2 r36h6115d3f_0 r r-modelr 0.1.4 r36h6115d3f_0 r r-mongolite 2.0.1 r36h6115d3f_0 r r-munsell 0.5.0 r36h6115d3f_0 r r-nlme 3.1_139 r36h6115d3f_0 r r-nnet 7.3_12 r36h6115d3f_0 r r-numderiv 2016.8_1 r36h6115d3f_0 r r-odbc 1.1.5 r36_0 r r-openssl 1.3 r36h6115d3f_0 r r-openxlsx 4.1.0 r36h6115d3f_0 r r-packrat 0.5.0 r36h6115d3f_0 r r-pbdzmq 0.3_3 r36h6115d3f_0 r r-pillar 1.3.1 r36h6115d3f_0 r r-pkgconfig 2.0.2 r36h6115d3f_0 r r-pki 0.1_5.1 r36h6115d3f_1 r r-plogr 0.2.0 r36h6115d3f_0 r r-plotly 4.9.0 r36h6115d3f_0 r r-plyr 1.8.4 r36h6115d3f_0 r r-png 0.1_7 r36h6115d3f_0 r r-prettyunits 1.0.2 r36h6115d3f_0 r r-processx 3.3.0 r36h6115d3f_0 r r-prodlim 2018.04.18 r36h6115d3f_0 r r-profvis 0.3.5 r36h6115d3f_0 r r-progress 1.2.0 r36h6115d3f_0 r r-promises 1.0.1 r36h6115d3f_0 r r-ps 1.3.0 r36h6115d3f_0 r r-purrr 0.3.2 r36h6115d3f_0 r r-quantmod 0.4_14 r36h6115d3f_0 r r-r2d3 0.2.3 r36h6115d3f_0 r r-r6 2.4.0 r36h6115d3f_0 r r-randomforest 4.6_14 r36h6115d3f_0 r r-rappdirs 0.3.1 r36h6115d3f_0 r r-raster 2.8_19 r36h6115d3f_0 r r-rbokeh 0.6.3 r36_0 r r-rcolorbrewer 1.1_2 r36h6115d3f_0 r r-rcpp 1.0.1 r36h6115d3f_0 r r-rcpproll 0.3.0 r36h6115d3f_0 r r-rcurl 1.95_4.12 r36h6115d3f_0 r r-readr 1.3.1 r36h6115d3f_0 r r-readxl 1.3.1 r36h6115d3f_0 r r-recipes 0.1.5 r36h6115d3f_0 r r-recommended 3.6.0 r36_0 r r-rematch 1.0.1 r36h6115d3f_0 r r-repr 0.19.2 r36h6115d3f_0 r r-reprex 0.2.1 r36h6115d3f_0 r r-reshape2 1.4.3 r36h6115d3f_0 r r-rjava 0.9_11 r36h6115d3f_0 r r-rjdbc 0.2_7.1 r36h6115d3f_0 r r-rjsonio 1.3_1.1 r36h6115d3f_0 r r-rlang 0.3.4 r36h6115d3f_0 r r-rmarkdown 1.12 r36h6115d3f_0 r r-rpart 4.1_15 r36h6115d3f_0 r r-rprojroot 1.3_2 r36h6115d3f_0 r r-rsconnect 0.8.13 r36h6115d3f_0 r r-rstudioapi 0.10 r36h6115d3f_0 r r-rvest 0.3.3 r36h6115d3f_0 r r-scales 1.0.0 r36h6115d3f_0 r r-selectr 0.4_1 r36h6115d3f_0 r r-shiny 1.3.2 r36h6115d3f_0 r r-shinythemes 1.1.2 r36h6115d3f_0 r r-sourcetools 0.1.7 r36h6115d3f_0 r r-sp 1.3_1 r36h6115d3f_0 r r-sparklyr 1.0.0 r36h6115d3f_0 r r-spatial 7.3_11 r36h6115d3f_4 r r-squarem 2017.10_1 r36h6115d3f_0 r r-stringi 1.4.3 r36h6115d3f_0 r r-stringr 1.4.0 r36h6115d3f_0 r r-survival 2.44_1.1 r36h6115d3f_0 r r-sys 3.2 r36h6115d3f_0 r r-tibble 2.1.1 r36h6115d3f_0 r r-tidyr 0.8.3 r36h6115d3f_0 r r-tidyselect 0.2.5 r36h6115d3f_0 r r-tidyverse 1.2.1 r36h6115d3f_0 r r-timedate 3043.102 r36h6115d3f_0 r r-tinytex 0.12 r36h6115d3f_0 r r-ttr 0.23_4 r36h6115d3f_0 r r-utf8 1.1.4 r36h6115d3f_0 r r-uuid 0.1_2 r36h6115d3f_4 r r-viridis 0.5.1 r36h6115d3f_0 r r-viridislite 0.3.0 r36h6115d3f_0 r r-whisker 0.3_2 r36h6115d3f_4 r r-withr 2.1.2 r36h6115d3f_0 r r-xfun 0.6 r36h6115d3f_0 r r-xgboost 0.90.0.2 r36h796a38f_0 r r-xml2 1.2.0 r36h6115d3f_0 r r-xtable 1.8_4 r36h6115d3f_0 r r-xts 0.11_2 r36h6115d3f_0 r r-yaml 2.2.0 r36h6115d3f_0 r r-zip 2.0.1 r36h6115d3f_0 r r-zoo 1.8_5 r36h6115d3f_0 r retrying 1.3.3 py37_2 rstudio 1.1.456 vc14h1ad3211_1 [vc14] r rtools 3.4.0 0 r scikit-learn 0.21.3 py37h6288b17_0 scipy 1.3.1 py37h29ff71c_0 send2trash 1.5.0 py37_0 setuptools 41.2.0 py37_0 six 1.12.0 py37_0 sqlite 3.29.0 he774522_0 terminado 0.8.2 py37_0 testpath 0.4.2 py37_0 tornado 6.0.3 py37he774522_0 traitlets 4.3.2 py37_0 vc 14.1 h0510ff6_4 vs2015_runtime 14.16.27012 hf0eaf9b_0 wcwidth 0.1.7 py37_0 webencodings 0.5.1 py37_1 wheel 0.33.6 py37_0 wincertstore 0.2 py37_0 winpty 0.4.3 4 zeromq 4.3.1 h33f27b4_3 zlib 1.2.11 h62dcd97_3 ```


Details about conda and system ( conda info ):

``` $ conda info active environment : Grant Default active env location : C:\Users\grantng\AppData\Local\Continuum\anaconda3\envs\Grant Default shell level : 1 user config file : C:\Users\grantng\.condarc populated config files : C:\Users\grantng\.condarc conda version : 4.7.12 conda-build version : 3.18.8 python version : 3.7.3.final.0 virtual packages : base environment : C:\Users\grantng\AppData\Local\Continuum\anaconda3 (writable) channel URLs : https://repo.anaconda.com/pkgs/main/win-64 https://repo.anaconda.com/pkgs/main/noarch https://repo.anaconda.com/pkgs/r/win-64 https://repo.anaconda.com/pkgs/r/noarch https://repo.anaconda.com/pkgs/msys2/win-64 https://repo.anaconda.com/pkgs/msys2/noarch package cache : C:\Users\grantng\AppData\Local\Continuum\anaconda3\pkgs C:\Users\grantng\.conda\pkgs C:\Users\grantng\AppData\Local\conda\conda\pkgs envs directories : C:\Users\grantng\AppData\Local\Continuum\anaconda3\envs C:\Users\grantng\.conda\envs C:\Users\grantng\AppData\Local\conda\conda\envs platform : win-64 user-agent : conda/4.7.12 requests/2.22.0 CPython/3.7.3 Windows/10 Windows/10.0.16299 administrator : False netrc file : None offline mode : False ```


meta.yaml:

``` {% set version = '0.8-0' %} {% set posix = 'm2-' if win else '' %} {% set native = 'm2w64-' if win else '' %} package: name: r-sf version: {{ version|replace("-", "_") }} source: url: - {{ cran_mirror }}/src/contrib/sf_{{ version }}.tar.gz - {{ cran_mirror }}/src/contrib/Archive/sf/sf_{{ version }}.tar.gz sha256: 8ee354f70b073bce124f2c138ebd2748936f890a7b4c380075c189cf36c0be15 build: merge_build_host: True # [win] # If this is a new build for the same version, increment the build number. number: 0 # This is required to make R link correctly on Linux. rpaths: - lib/R/lib/ - lib/ # Suggests: blob, covr, dplyr (>= 0.8-3), ggplot2, knitr, lwgeom (>= 0.1-5), maps, maptools, mapview, microbenchmark, odbc, pillar, pool, raster, rgdal, rgeos, rlang, rmarkdown, RPostgres (>= 1.1.0), RPostgreSQL, RSQLite, sp (>= 1.2-4), spatstat, stars (>= 0.2-0), testthat, tibble (>= 1.4.1), tidyr (>= 1.0-0), tmap (>= 2.0), vctrs requirements: build: - {{ compiler('c') }} # [not win] - {{ compiler('m2w64_c') }} # [win] - {{ compiler('cxx') }} # [not win] - {{ compiler('m2w64_cxx') }} # [win] - {{posix}}filesystem # [win] - {{posix}}sed # [win] - {{posix}}grep # [win] - {{posix}}autoconf - {{posix}}automake # [not win] - {{posix}}automake-wrapper # [win] - {{posix}}pkg-config - {{posix}}make - {{posix}}coreutils # [win] - {{posix}}zip # [win] host: - r-base - r-dbi >=0.8 - r-rcpp >=0.12.18 - r-classint >=0.4_1 - r-magrittr - r-units >=0.6_0 run: - r-base - {{native}}gcc-libs # [win] - r-dbi >=0.8 - r-rcpp >=0.12.18 - r-classint >=0.4_1 - r-magrittr - r-units >=0.6_0 test: commands: # You can put additional test commands to be run here. - $R -e "library('sf')" # [not win] - "\"%R%\" -e \"library('sf')\"" # [win] # You can also put a file called run_test.py, run_test.sh, or run_test.bat # in the recipe that will be run at test time. # requires: # Put any additional test requirements here. about: home: https://github.com/r-spatial/sf/, https://r-spatial.github.io/sf/ license: GPL-2 | MIT + file LICENSE summary: Support for simple features, a standardized way to encode spatial vector data. Binds to 'GDAL' for reading and writing data, to 'GEOS' for geometrical operations, and to 'PROJ' for projection conversions and datum transformations. license_family: GPL2 # The original CRAN metadata for this package was: # Package: sf # Version: 0.8-0 # Title: Simple Features for R # Authors@R: c(person(given = "Edzer", family = "Pebesma", role = c("aut", "cre"), email = "edzer.pebesma@uni-muenster.de", comment = c(ORCID = "0000-0001-8049-7069")), person(given = "Roger", family = "Bivand", role = "ctb", comment = c(ORCID = "0000-0003-2392-6140")), person(given = "Etienne", family = "Racine", role = "ctb"), person(given = "Michael", family = "Sumner", role = "ctb"), person(given = "Ian", family = "Cook", role = "ctb"), person(given = "Tim", family = "Keitt", role = "ctb"), person(given = "Robin", family = "Lovelace", role = "ctb"), person(given = "Hadley", family = "Wickham", role = "ctb"), person(given = "Jeroen", family = "Ooms", role = "ctb", comment = c(ORCID = "0000-0002-4035-0289")), person(given = "Kirill", family = "Muller", role = "ctb"), person(given = "Thomas Lin", family = "Pedersen", role = "ctb"), person(given = "Dan", family = "Baston", role = "ctb")) # Description: Support for simple features, a standardized way to encode spatial vector data. Binds to 'GDAL' for reading and writing data, to 'GEOS' for geometrical operations, and to 'PROJ' for projection conversions and datum transformations. # License: GPL-2 | MIT + file LICENSE # URL: https://github.com/r-spatial/sf/, https://r-spatial.github.io/sf/ # BugReports: https://github.com/r-spatial/sf/issues/ # Depends: methods, R (>= 3.3.0) # Imports: classInt (>= 0.4-1), DBI (>= 0.8), graphics, grDevices, grid, magrittr, Rcpp (>= 0.12.18), stats, tools, units (>= 0.6-0), utils # Suggests: blob, covr, dplyr (>= 0.8-3), ggplot2, knitr, lwgeom (>= 0.1-5), maps, maptools, mapview, microbenchmark, odbc, pillar, pool, raster, rgdal, rgeos, rlang, rmarkdown, RPostgres (>= 1.1.0), RPostgreSQL, RSQLite, sp (>= 1.2-4), spatstat, stars (>= 0.2-0), testthat, tibble (>= 1.4.1), tidyr (>= 1.0-0), tmap (>= 2.0), vctrs # LinkingTo: Rcpp # VignetteBuilder: knitr # Encoding: UTF-8 # RoxygenNote: 6.1.1 # SystemRequirements: C++11, GDAL (>= 2.0.1), GEOS (>= 3.4.0), PROJ (>= 4.8.0) # Collate: 'RcppExports.R' 'init.R' 'crs.R' 'bbox.R' 'read.R' 'db.R' 'sfc.R' 'sfg.R' 'sf.R' 'bind.R' 'wkb.R' 'wkt.R' 'plot.R' 'geom.R' 'transform.R' 'sp.R' 'grid.R' 'arith.R' 'tidyverse.R' 'cast_sfg.R' 'cast_sfc.R' 'graticule.R' 'datasets.R' 'aggregate.R' 'agr.R' 'maps.R' 'join.R' 'sample.R' 'valid.R' 'collection_extract.R' 'jitter.R' 'sgbp.R' 'spatstat.R' 'stars.R' 'crop.R' 'gdal_utils.R' 'nearest.R' 'normalize.R' 'deprecated.R' # NeedsCompilation: yes # Packaged: 2019-09-16 20:18:14 UTC; edzer # Author: Edzer Pebesma [aut, cre] (), Roger Bivand [ctb] (), Etienne Racine [ctb], Michael Sumner [ctb], Ian Cook [ctb], Tim Keitt [ctb], Robin Lovelace [ctb], Hadley Wickham [ctb], Jeroen Ooms [ctb] (), Kirill Muller [ctb], Thomas Lin Pedersen [ctb], Dan Baston [ctb] # Maintainer: Edzer Pebesma # Repository: CRAN # Date/Publication: 2019-09-17 04:40:03 UTC # See # https://docs.conda.io/projects/conda-build for # more information about meta.yaml ```


Error message for conda build r-sf --debug

``` (Grant Default) C:\Users\grantng>conda build r-sf --debug No numpy version specified in conda_build_config.yaml. Falling back to default numpy value of 1.11 WARNING:conda_build.metadata:No numpy version specified in conda_build_config.yaml. Falling back to default numpy value of 1.11 Adding in variants from internal_defaults INFO:conda_build.variants:Adding in variants from internal_defaults Attempting to finalize metadata for r-sf INFO:conda_build.metadata:Attempting to finalize metadata for r-sf DEBUG:conda_build.index:found subdirs {'win-64', 'noarch'} Building repodata for C:\Users\grantng\AppData\Local\Continuum\anaconda3\conda-bld\noarch INFO:conda_build.index:Building repodata for C:\Users\grantng\AppData\Local\Continuum\anaconda3\conda-bld\noarch DEBUG:conda.core.package_cache_data:package cache directory 'C:\Users\grantng\AppData\Local\Continuum\anaconda3\pkgs' writable: True Building repodata for C:\Users\grantng\AppData\Local\Continuum\anaconda3\conda-bld\win-64 INFO:conda_build.index:Building repodata for C:\Users\grantng\AppData\Local\Continuum\anaconda3\conda-bld\win-64 DEBUG:conda.core.solve:solving prefix C:\Users\grantng\AppData\Local\Temp\_7se4fxzxXX0W82PWGW specs_to_remove: frozenset() specs_to_add: frozenset({MatchSpec("m2-filesystem"), MatchSpec("m2w64_cxx_win-64"), MatchSpec("m2-autoconf"), MatchSpec("m2-grep"), MatchSpec("m2-coreutils"), MatchSpec("m2w64_c_win-64"), MatchSpec("m2-automake-wrapper"), MatchSpec("m2-sed"), MatchSpec("m2-pkg-config"), MatchSpec("m2-zip"), MatchSpec("m2-make")}) prune: False DEBUG conda.core.solve:solve_final_state(223): solving prefix C:\Users\grantng\AppData\Local\Temp\_7se4fxzxXX0W82PWGW specs_to_remove: frozenset() specs_to_add: frozenset({MatchSpec("m2-filesystem"), MatchSpec("m2w64_cxx_win-64"), MatchSpec("m2-autoconf"), MatchSpec("m2-grep"), MatchSpec("m2-coreutils"), MatchSpec("m2w64_c_win-64"), MatchSpec("m2-automake-wrapper"), MatchSpec("m2-sed"), MatchSpec("m2-pkg-config"), MatchSpec("m2-zip"), MatchSpec("m2-make")}) prune: False Collecting package metadata (repodata.json): ...working... done Solving environment: ...working... DEBUG:conda.resolve:Retrieving packages for: - m2-autoconf - m2-automake-wrapper - m2-coreutils - m2-filesystem - m2-grep - m2-make - m2-pkg-config - m2-sed - m2-zip - m2w64_c_win-64 - m2w64_cxx_win-64 DEBUG conda.resolve:get_reduced_index(542): Retrieving packages for: - m2-autoconf - m2-automake-wrapper - m2-coreutils - m2-filesystem - m2-grep - m2-make - m2-pkg-config - m2-sed - m2-zip - m2w64_c_win-64 - m2w64_cxx_win-64 failed Leaving build/test directories: Work: C:\Users\grantng\AppData\Local\Continuum\anaconda3\conda-bld\work Test: C:\Users\grantng\AppData\Local\Continuum\anaconda3\conda-bld\test_tmp Leaving build/test environments: Test: source activate C:\Users\grantng\AppData\Local\Continuum\anaconda3\conda-bld\_test_env Build: source activate C:\Users\grantng\AppData\Local\Continuum\anaconda3\conda-bld\_build_env Traceback (most recent call last): File "C:\Users\grantng\AppData\Local\Continuum\anaconda3\lib\site-packages\conda_build\environ.py", line 756, in get_install_actions actions = install_actions(prefix, index, specs, force=True) File "C:\Users\grantng\AppData\Local\Continuum\anaconda3\lib\site-packages\conda\common\io.py", line 88, in decorated return f(*args, **kwds) File "C:\Users\grantng\AppData\Local\Continuum\anaconda3\lib\site-packages\conda\plan.py", line 474, in install_actions txn = solver.solve_for_transaction(prune=prune, ignore_pinned=not pinned) File "C:\Users\grantng\AppData\Local\Continuum\anaconda3\lib\site-packages\conda\core\solve.py", line 117, in solve_for_transaction should_retry_solve) File "C:\Users\grantng\AppData\Local\Continuum\anaconda3\lib\site-packages\conda\core\solve.py", line 158, in solve_for_diff force_remove, should_retry_solve) File "C:\Users\grantng\AppData\Local\Continuum\anaconda3\lib\site-packages\conda\core\solve.py", line 275, in solve_final_state ssc = self._add_specs(ssc) File "C:\Users\grantng\AppData\Local\Continuum\anaconda3\lib\site-packages\conda\core\solve.py", line 555, in _add_specs explicit_pool = ssc.r._get_package_pool(self.specs_to_add) File "C:\Users\grantng\AppData\Local\Continuum\anaconda3\lib\site-packages\conda\resolve.py", line 523, in _get_package_pool pool = self.get_reduced_index(specs) File "C:\Users\grantng\AppData\Local\Continuum\anaconda3\lib\site-packages\conda\common\io.py", line 88, in decorated return f(*args, **kwds) File "C:\Users\grantng\AppData\Local\Continuum\anaconda3\lib\site-packages\conda\resolve.py", line 544, in get_reduced_index explicit_specs, features = self.verify_specs(explicit_specs) File "C:\Users\grantng\AppData\Local\Continuum\anaconda3\lib\site-packages\conda\resolve.py", line 280, in verify_specs raise ResolvePackageNotFound(bad_deps) conda.exceptions.ResolvePackageNotFound: - m2w64_cxx_win-64 - m2w64_c_win-64 During handling of the above exception, another exception occurred: Traceback (most recent call last): File "C:\Users\grantng\AppData\Local\Continuum\anaconda3\Scripts\conda-build-script.py", line 10, in sys.exit(main()) File "C:\Users\grantng\AppData\Local\Continuum\anaconda3\lib\site-packages\conda_build\cli\main_build.py", line 445, in main execute(sys.argv[1:]) File "C:\Users\grantng\AppData\Local\Continuum\anaconda3\lib\site-packages\conda_build\cli\main_build.py", line 436, in execute verify=args.verify, variants=args.variants) File "C:\Users\grantng\AppData\Local\Continuum\anaconda3\lib\site-packages\conda_build\api.py", line 209, in build notest=notest, need_source_download=need_source_download, variants=variants) File "C:\Users\grantng\AppData\Local\Continuum\anaconda3\lib\site-packages\conda_build\build.py", line 2324, in build_tree notest=notest, File "C:\Users\grantng\AppData\Local\Continuum\anaconda3\lib\site-packages\conda_build\build.py", line 1333, in build output_metas = expand_outputs([(m, need_source_download, need_reparse_in_env)]) File "C:\Users\grantng\AppData\Local\Continuum\anaconda3\lib\site-packages\conda_build\render.py", line 747, in expand_outputs for (output_dict, m) in _m.copy().get_output_metadata_set(permit_unsatisfiable_variants=False): File "C:\Users\grantng\AppData\Local\Continuum\anaconda3\lib\site-packages\conda_build\metadata.py", line 2047, in get_output_metadata_set bypass_env_check=bypass_env_check) File "C:\Users\grantng\AppData\Local\Continuum\anaconda3\lib\site-packages\conda_build\metadata.py", line 721, in finalize_outputs_pass permit_unsatisfiable_variants=permit_unsatisfiable_variants) File "C:\Users\grantng\AppData\Local\Continuum\anaconda3\lib\site-packages\conda_build\render.py", line 528, in finalize_metadata exclude_pattern) File "C:\Users\grantng\AppData\Local\Continuum\anaconda3\lib\site-packages\conda_build\render.py", line 391, in add_upstream_pins permit_unsatisfiable_variants, exclude_pattern) File "C:\Users\grantng\AppData\Local\Continuum\anaconda3\lib\site-packages\conda_build\render.py", line 379, in _read_upstream_pin_files permit_unsatisfiable_variants=permit_unsatisfiable_variants) File "C:\Users\grantng\AppData\Local\Continuum\anaconda3\lib\site-packages\conda_build\render.py", line 154, in get_env_dependencies channel_urls=tuple(m.config.channel_urls)) File "C:\Users\grantng\AppData\Local\Continuum\anaconda3\lib\site-packages\conda_build\environ.py", line 758, in get_install_actions raise DependencyNeedsBuildingError(exc, subdir=subdir) conda_build.exceptions.DependencyNeedsBuildingError: Unsatisfiable dependencies for platform win-64: {'m2w64_c_win-64', 'm2w64_cxx_win-64'} ```
gnguy commented 4 years ago

Looking around more, I realize that this may not be the correct repo for this issue (I had originally seen issues that seemed related to c compilers and conda here, and assumed that this would be related, but it seems this feedstock may not be related to the specific functionality/debugging of conda build specifically). If it doesn't fit here, I can definitely close and would welcome suggestions as to a more appropriate place to raise this issue.

kangqiao-ctrl commented 3 years ago

Encountered this issue while building an R package as well.

isuruf commented 3 years ago

You need to use conda-forge conda channel

tlamadon commented 2 years ago

Including conda-forge didn't resolve the issue, m2w64_c_win-64 doesn't seem to be present anywhere I looked. As anyone found a solution for this?