Skip to content

problem installing RcppParallel on Windows 7, R 4.0.2 #123

@hansvancalster

Description

@hansvancalster

When I try to install from source it fails:

> install.packages("RcppParallel", type = "source")
Installing package into ‘C:/R/Library’
(as ‘lib’ is unspecified)
trying URL 'https://cloud.r-project.org/src/contrib/RcppParallel_5.0.2.tar.gz'
Content type 'application/x-gzip' length 1341240 bytes (1.3 MB)
downloaded 1.3 MB

Warning message:
In options(papersize = "a4", tab.width = 2, width = 80, help_type = "html",  :
  'options(stringsAsFactors = TRUE)' is deprecated and will be disabled
* installing *source* package 'RcppParallel' ...
** package 'RcppParallel' successfully unpacked and MD5 sums checked
** using staged installation
Warning message:
In options(papersize = "a4", tab.width = 2, width = 80, help_type = "html",  :
  'options(stringsAsFactors = TRUE)' is deprecated and will be disabled
** preparing to configure package 'RcppParallel' ...
*** configured file: 'src/Makevars.in' => 'src/Makevars'
** finished configure for package 'RcppParallel'
** libs

*** arch - i386
Created ../build/lib_release directory
../../build/Makefile.tbb:32: CONFIG: cfg=release arch=ia32 compiler=gcc target=windows runtime=mingw
g++.exe: error: unrecognized command line option '-flifetime-dse=1'
make[2]: *** [../../build/common_rules.inc:119: concurrent_hash_map.o] Error 1
make[1]: *** [Makefile:104: tbb_release] Error 2
cp: cannot stat 'tbb/build/lib_release/tbb*.dll': No such file or directory
make: *** [Makevars:89: tbb] Error 1
ERROR: compilation failed for package 'RcppParallel'
* removing 'C:/R/Library/RcppParallel'
* restoring previous 'C:/R/Library/RcppParallel'

The downloaded source packages are in
        ‘C:\Users\hans_vancalster\AppData\Local\Temp\Rtmp4o9TSI\downloaded_packages’
Warning message:
In install.packages("RcppParallel", type = "source") :
  installation of package ‘RcppParallel’ had non-zero exit status

Installing the binary seems to work:

tall.packages("RcppParallel")
Installing package into ‘C:/R/Library’
(as ‘lib’ is unspecified)
Warning: unable to access index for repository https://inla.r-inla-download.org/R/stable/bin/windows/contrib/4.0:
  cannot open URL 'https://inla.r-inla-download.org/R/stable/bin/windows/contrib/4.0/PACKAGES'
trying URL 'https://cloud.r-project.org/bin/windows/contrib/4.0/RcppParallel_5.0.2.zip'
Content type 'application/zip' length 5167790 bytes (4.9 MB)
downloaded 4.9 MB

package ‘RcppParallel’ successfully unpacked and MD5 sums checked

The downloaded binary packages are in
        C:\Users\hans_vancalster\AppData\Local\Temp\Rtmp4o9TSI\downloaded_packages

but when I do

library(RcppParallel)
> devtools::session_info()
- Session info ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
 setting  value                       
 version  R version 4.0.2 (2020-06-22)
 os       Windows 7 x64 SP 1          
 system   x86_64, mingw32             
 ui       Rgui                        
 language (EN)                        
 collate  Dutch_Belgium.1252          
 ctype    Dutch_Belgium.1252          
 tz       Europe/Paris                
 date     2020-07-16                  

- Packages --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
 ! package      * version date       lib source        
   assertthat     0.2.1   2019-03-21 [1] CRAN (R 4.0.0)
   backports      1.1.7   2020-05-13 [1] CRAN (R 4.0.0)
   callr          3.4.3   2020-03-28 [1] CRAN (R 4.0.0)
   cli            2.0.2   2020-02-28 [1] CRAN (R 4.0.0)
   crayon         1.3.4   2017-09-16 [1] CRAN (R 4.0.0)
   desc           1.2.0   2018-05-01 [1] CRAN (R 4.0.0)
   devtools       2.3.0   2020-04-10 [1] CRAN (R 4.0.2)
   digest         0.6.25  2020-02-23 [1] CRAN (R 4.0.0)
   ellipsis       0.3.1   2020-05-15 [1] CRAN (R 4.0.2)
   fansi          0.4.1   2020-01-08 [1] CRAN (R 4.0.0)
   fortunes       1.5-4   2016-12-29 [1] CRAN (R 4.0.0)
   fs             1.4.2   2020-06-30 [1] CRAN (R 4.0.2)
   git2r          0.27.1  2020-05-03 [1] CRAN (R 4.0.2)
   glue           1.4.1   2020-05-13 [1] CRAN (R 4.0.2)
   magrittr       1.5     2014-11-22 [1] CRAN (R 4.0.0)
   memoise        1.1.0   2017-04-21 [1] CRAN (R 4.0.0)
   pkgbuild       1.1.0   2020-07-13 [1] CRAN (R 4.0.0)
   pkgload        1.1.0   2020-05-29 [1] CRAN (R 4.0.2)
   prettyunits    1.1.1   2020-01-24 [1] CRAN (R 4.0.0)
   processx       3.4.3   2020-07-05 [1] CRAN (R 4.0.2)
   ps             1.3.3   2020-05-08 [1] CRAN (R 4.0.2)
   R6             2.4.1   2019-11-12 [1] CRAN (R 4.0.0)
 D RcppParallel * 5.0.2   2020-06-24 [1] CRAN (R 4.0.2)
   remotes        2.1.1   2020-02-15 [1] CRAN (R 4.0.0)
   rlang          0.4.6   2020-05-02 [1] CRAN (R 4.0.2)
   rprojroot      1.3-2   2018-01-03 [1] CRAN (R 4.0.0)
   sessioninfo    1.1.1   2018-11-05 [1] CRAN (R 4.0.0)
   testthat       2.3.2   2020-03-02 [1] CRAN (R 4.0.0)
   usethis        1.6.1   2020-04-29 [1] CRAN (R 4.0.0)
   withr          2.2.0   2020-04-20 [1] CRAN (R 4.0.0)

[1] C:/R/Library
[2] C:/Program Files/R/R-4.0.2/library

 D -- DLL MD5 mismatch, broken installation.
> 

It indicates D -- DLL MD5 mismatch, broken installation. for the RcppPackage so something seems to be wrong?

I have rtools40:

Sys.which("make")
                              make 
"C:\\rtools40\\usr\\bin\\make.exe" 

Any ideas what goes wrong here with installation from source?
And (maybe unrelated?) why after installing the windows binary, devtools::session_info flags the RcppPackage as D -- DLL MD5 mismatch, broken installation.
I upgraded to R 4.02 (from R 4.0.0), could that be a reason?

Originally posted by @hansvancalster in #118 (comment)

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