-
Notifications
You must be signed in to change notification settings - Fork 87
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
Try using rtools43 on windows with R 4.2 #405
base: main
Are you sure you want to change the base?
Conversation
deb1fbc
to
8237f47
Compare
I think the error indicates that it's not finding the library during the static linking step. Note: I believe that with Rtools42 and above, it uses the Makevars.ucrt file instead of Makevars.win. With Rtools43 and R 4.2, the linking succeeds. This is the command (https://github.com/rstudio/httpuv/actions/runs/13014853474/job/36301447772#step:6:55):
With Rtools42 and R 4.2, the linking fails. This is the command that gives the errors quoted above (https://github.com/rstudio/httpuv/actions/runs/12627511329/job/35182260888#step:3:2029):
The big difference I see is that in the Rtools43 case, which succeeds, there are these flags, which tell it which libraries to link to:
And in the Rtools42 case, it doesn't have those flags. In the old Makevars.win (which again, is not used with Rtools42 and up), it explicitly specifies those libraries in the PKG_LIBS environment variable: Lines 1 to 2 in ff00e6b
In the Makrvars.ucrt (which is used with Rtools42 and Rtools43), we add the Lines 3 to 9 in ff00e6b
When the When the My theory of what is happening is that on this build system with Rtools42, there is a copy of The error messages seem to agree with this (https://github.com/rstudio/httpuv/actions/runs/12627511329/job/35182260888#step:3:2017):
I think it should be looking somewhere in If I'm right about this, then the question is, why is there another copy of |
Comments from Slack: Are you sure that Rtools42 has recent enough versions of all libs for current httpuv? Plus the pkg-config config files, etc? FWIW if I run R CMD INSTALL httpuv on Windows it fails the same way as on the GHA VM. Btw. it is easier to debug these issues interactively. You can use this action to start a shell, and then ssh into the VM: https://github.com/r-hub/actions/tree/main/debug-shell Btw.2. Just checked, Rtools42 indeed does not have pkg-config |
There is, apparently, an incompatibility with
httpuv
andrtools42
in R 4.2 that can be seen in recent GHA runs. Compilinghttpuv
fails with many undefined reference errors, e.g.As a test, we tried updating the R CMD Check workflow to use
rtools43
instead, and compilation succeeded.Likely related,
rtools43
upgraded libuv from 1.44.2 to 1.47.0.