[Rd] RTools 4.2 - possible conflict with git bash
Tomas Kalibera
tom@@@k@||ber@ @end|ng |rom gm@||@com
Fri Dec 23 16:17:04 CET 2022
On 12/23/22 15:45, sergio.vignali using unibe.ch wrote:
> Hi all,
>
> It seems that RTools 4.2 conflicts with git bash on Windows 10.
You can't mix tools from two different distributions based on msys2 (or
cygwin). You cannot e.g. call "make" of one of them from a shell ran in
another one. This is due to how cygwin and dynamic loading on Windows
works. Both Rtools42 and git bash are based on msys2.
You need to stick to one of the distributions. For instance, you can use
Rtools42 and install there any msys2 tools you want there, e.g.
including git.
Or, you can have a standalone Msys2 installation and use only toolchain
tarballs from Rtools (requires some set up but is documented). This is
what I usually do as I want to upgrade Rtools often without messing with
my Msys2 installation and vice-versa. One of the Msys2 packages I have
installed there is git.
Tomas
> When I use the git bash terminal in RStudio and I run `make --version`, I get the following error:
>
> $ C:/rtools42/usr/bin/make.exe --version
> 1 [main] make (5948) C:\rtools42\usr\bin\make.exe: *** fatal error - cygheap base mismatch detected - 0x210351408/0x180350408.
> This problem is probably due to using incompatible versions of the cygwin DLL.
> Search for cygwin1.dll using the Windows Start->Find/Search facility
> and delete all but the most recent version. The most recent version *should*
> reside in x:\cygwin\bin, where 'x' is the drive on which you have
> installed the cygwin distribution. Rebooting is also suggested if you
> are unable to find another cygwin DLL.
>
> However, if I use the **Build All** tool of RStudio, the command works properly.
> The problem seems an incompatible version of msys-2.0.dll, but I could not solve the problem. Any idea?
>
> Below the version of git:
>
> $ git --version
> git version 2.39.0.windows.2
> ______________________________________________
> R-devel using r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-devel
More information about the R-devel
mailing list