-
Notifications
You must be signed in to change notification settings - Fork 27
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
msys2
is no longer needed on Windows?
#91
Comments
Is this because Rtools was updated incorporating the gcc static compile fix or is there some other reason? Either way, it's good to know that the build environment is getting simpler. |
Honestly, I am not sure. Rtools has not been updated (yet). I hope someone else (with a Windows machine) verifies this. Anyway, if my observation is correct, this means there is nothing else needed for extendr usage other than correctly configured rust. |
I don't remember the discussions well, but is msys2 needed only for the cases of using bindgen? |
Msys is used for clang, which is needed for the bindgen use, in the build
script for the sys package librsys.
…On Mon, Mar 22, 2021, 00:48 Hiroaki Yutani ***@***.***> wrote:
I don't remember the discussions well, but is msys2 needed only for the
cases of using bindgen?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#91 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAIDVSFXETG4NUI6DEITPOTTE2AUJANCNFSM4ZPBDOXQ>
.
|
Thanks, I meant, the CI passes without msys2 maybe because we don't use bindgen on this repo? (Not sure whether rextendr should provide an option to enable it or not, though) |
We do not use bindgen here because there is no reason to -- pre-computed bindings save a lot of time & cpu cycles for end users. Another thing is that since #19 extendr axed some dependencies, and we also reference only |
Ah, got it. I forgot we used |
@Ilia-Kosenkov
|
I also have no idea why this succeeds... |
Ah I see, it is the libgcc_eh problem that will be solved as soon as rtools ships our patch. I will verify this with a clean rtools installation, though I have no explanation why it works on CI - I printed PATH variable and manually checked there is no PATH to msys2 included. |
Thanks, you are correct here, but it seems some of the paths seem to matter; if I set |
Interesting, perhaps one of the |
Yeah, let's close this issue when it's shipped. |
Can we close this issue now? |
Not 100% sure, we still include msys here: rextendr/.github/workflows/R-CMD-check.yaml Lines 72 to 73 in 00ce465
I am going to look into this to make sure that we need only Rtools40v2 to make it work. |
It seems we do not need
msys2
dependency on Windows.My local Windows machines have no
msys2
orrtools
on theirPATH
s, I only useRTOOLS40_HOME
environment variable, yet I am able to run all tests.When performing dynamic compilation, we inject path to
rtools
hererextendr/R/source.R
Lines 225 to 244 in 09c8305
And when Rust code is part of the package and is compiled with
Makevars
,rtools
is added to thePATH
by R itself.In both cases, we get the correct dependencies.
I removed these dependencies from CI here
rextendr/.github/workflows/R-CMD-check.yaml
Lines 72 to 73 in 09c8305
rextendr/.github/workflows/test_pkg_gen.yaml
Lines 70 to 71 in 09c8305
and these are outputs from two primary CIs:
The text was updated successfully, but these errors were encountered: