gagolews / stringi

Fast and portable character string processing in R (with the Unicode ICU)
https://stringi.gagolewski.com/
Other
304 stars 44 forks source link

find syntax error when build stringi newest version 1.2.4 from CRAN #324

Closed ShixiangWang closed 6 years ago

ShixiangWang commented 6 years ago
c:/Rtools/mingw_64/bin/ar rcs -o libicu_stubdata.a icu61/stubdata/stubdata.o 
/usr/bin/sh: -c: line 7: syntax error: unexpected end of file
make: *** [D:/R-35~1.1/share/make/winshlib.mk:13: stringi.dll] Error 1
ERROR: compilation failed for package 'stringi'
* removing 'D:/R_Library/stringi'
* restoring previous 'D:/R_Library/stringi'
In R CMD INSTALL

The downloaded source packages are in
    ‘D:\tmp\RtmpyqpVLE\downloaded_packages’
Warning message:
In install.packages(update[instlib == l, "Package"], l, repos = repos,  :
  installation of package ‘stringi’ had non-zero exit status

I build several times and got same error.

> sessionInfo()
R version 3.5.1 (2018-07-02)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 7 x64 (build 7601) Service Pack 1

Matrix products: default

locale:
[1] LC_COLLATE=Chinese (Simplified)_People's Republic of China.936 
[2] LC_CTYPE=Chinese (Simplified)_People's Republic of China.936   
[3] LC_MONETARY=Chinese (Simplified)_People's Republic of China.936
[4] LC_NUMERIC=C                                                   
[5] LC_TIME=Chinese (Simplified)_People's Republic of China.936    

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base     

other attached packages:
[1] pacman_0.4.6

loaded via a namespace (and not attached):
[1] compiler_3.5.1    tools_3.5.1       yaml_2.2.0        numDeriv_2016.8-1 ABSOLUTE_1.0.6  
gagolews commented 6 years ago

Sorry, on vacations now.

Unfortunately, I cannot reproduce this error. Are you using the most recent version of Rtools?

ShixiangWang commented 6 years ago

Yes, I download and install the latest version of Rtools from https://mirrors.tuna.tsinghua.edu.cn/CRAN/. I can use stringi but I cannot install the latest version which need complication.

I just reported the error. It did not affect my work.

DavorJ commented 1 year ago

I have exactly the same error on Windows with R3.6.3 and any stringi version 1.6 and above. Haven't tried older versions though. A workaround is just to use the v1.6.1 windows binaries from CRAN.

This concerns a static RENV project, and compiling stringi before caused no issue using the same R3.6.3 and RTools. The only thing that changed and that I can think of is that some extra packages have been installed.

Just checked on an other old R3.6.3/RENV project, and that one seems to compile v1.6.2 fine. So it seems a compatibility issue with some other package?