-
Notifications
You must be signed in to change notification settings - Fork 70
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to install cli from source on Windows 4.2 (and binary install causes other source installations to fail) #494
Comments
Can you try to find the actual error message? E.g. install the package with |
Huh, after installing that way |
There still appears to be some issues with lazy loading, though: > remotes::install_github("rstudio/htmltools", INSTALL_opts = "--no-test-load --no-byte-compile")
Downloading GitHub repo rstudio/htmltools@HEAD
Running `R CMD build`...
* checking for file 'C:\Users\cpsievert\AppData\Local\Temp\RtmpigI9PP\remotes118c32634b0d\rstudio-htmltools-5d297d4/DESCRIPTION' ... OK
* preparing 'htmltools':
* checking DESCRIPTION meta-information ... OK
* cleaning src
* checking for LF line-endings in source and make files and shell scripts
* checking for empty or unneeded directories
* building 'htmltools_0.5.2.9000.tar.gz'
Installing package into ‘C:/Users/cpsievert/AppData/Local/R/win-library/4.2’
(as ‘lib’ is unspecified)
* installing *source* package 'htmltools' ...
** using staged installation
** libs
gcc -I"C:/PROGRA~2/R/R-42~1.1/include" -DNDEBUG -I"C:/rtools42/x86_64-w64-mingw32.static.posix/include" -O2 -Wall -std=gnu99 -mfpmath=sse -msse2 -mstackrealign -c init.c -o init.o
gcc -I"C:/PROGRA~2/R/R-42~1.1/include" -DNDEBUG -I"C:/rtools42/x86_64-w64-mingw32.static.posix/include" -O2 -Wall -std=gnu99 -mfpmath=sse -msse2 -mstackrealign -c template.c -o template.o
gcc -shared -s -static-libgcc -o htmltools.dll tmp.def init.o template.o -LC:/rtools42/x86_64-w64-mingw32.static.posix/lib/x64 -LC:/rtools42/x86_64-w64-mingw32.static.posix/lib -LC:/PROGRA~2/R/R-42~1.1/bin/x64 -lR
installing to C:/Users/cpsievert/AppData/Local/R/win-library/4.2/00LOCK-htmltools/00new/htmltools/libs/x64
** R
** preparing package for lazy loading
ERROR: lazy loading failed for package 'htmltools'
* removing 'C:/Users/cpsievert/AppData/Local/R/win-library/4.2/htmltools'
* restoring previous 'C:/Users/cpsievert/AppData/Local/R/win-library/4.2/htmltools'
Warning message:
In i.p(...) :
installation of package ‘C:/Users/CPSIEV~1/AppData/Local/Temp/RtmpigI9PP/file118c157f75fb/htmltools_0.5.2.9000.tar.gz’ had non-zero exit status > remove.packages("cli")
Removing package from ‘C:/Users/cpsievert/AppData/Local/R/win-library/4.2’
(as ‘lib’ is unspecified)
> remotes::install_github("rstudio/htmltools", INSTALL_opts = "--no-test-load")
Downloading GitHub repo rstudio/htmltools@HEAD
Running `R CMD build`...
* checking for file 'C:\Users\cpsievert\AppData\Local\Temp\Rtmp0ErltS\remotes14d41610b9f\rstudio-htmltools-5d297d4/DESCRIPTION' ... OK
* preparing 'htmltools':
* checking DESCRIPTION meta-information ... OK
* cleaning src
* checking for LF line-endings in source and make files and shell scripts
* checking for empty or unneeded directories
* building 'htmltools_0.5.2.9000.tar.gz'
Installing package into ‘C:/Users/cpsievert/AppData/Local/R/win-library/4.2’
(as ‘lib’ is unspecified)
* installing *source* package 'htmltools' ...
** using staged installation
** libs
gcc -I"C:/PROGRA~2/R/R-42~1.1/include" -DNDEBUG -I"C:/rtools42/x86_64-w64-mingw32.static.posix/include" -O2 -Wall -std=gnu99 -mfpmath=sse -msse2 -mstackrealign -c init.c -o init.o
gcc -I"C:/PROGRA~2/R/R-42~1.1/include" -DNDEBUG -I"C:/rtools42/x86_64-w64-mingw32.static.posix/include" -O2 -Wall -std=gnu99 -mfpmath=sse -msse2 -mstackrealign -c template.c -o template.o
gcc -shared -s -static-libgcc -o htmltools.dll tmp.def init.o template.o -LC:/rtools42/x86_64-w64-mingw32.static.posix/lib/x64 -LC:/rtools42/x86_64-w64-mingw32.static.posix/lib -LC:/PROGRA~2/R/R-42~1.1/bin/x64 -lR
installing to C:/Users/cpsievert/AppData/Local/R/win-library/4.2/00LOCK-htmltools/00new/htmltools/libs/x64
** R
** byte-compile and prepare package for lazy loading
** help
*** installing help indices
*** copying figures
** building package indices
* DONE (htmltools) |
Try setting the |
What version of Windows is this exactly, btw? |
We haven't seen anything like this on intel hardware and nothing has changed in cli for a while, so it is very likely that this is an issue in the x86_64 emulation of arm64 Windows. (Which is very buggy, btw. so brace yourself if you intend to use it for daily work.) Or it could be an issue in the pthread implementation in MinGW. |
Also, more problematically, installing the current
{cli}
binary on CRAN causes othertype="source"
installations to fail with the same error:And after
remove.packages("cli")
, it succeeds:The text was updated successfully, but these errors were encountered: