Skip to content
Prev 59129 / 63421 Next

formatting issue with gcc 9.3.0 on Ubuntu on WSL2

On 11/17/20 9:34 PM, Bill Dunlap wrote:
Almost surely it is Windows/WSL related, I'm not seeing this on Ubuntu 
20.04.

One thing to check might be the FPU control word. In a Windows build, R 
will set as it is on Unix, to use all 80 bits when values stay in FPU 
registers, which is not the Windows default. This should not matter with 
SSE anymore, but maybe something is still using the FPU. This is just 
using inline assembly, so one could enable it as experiment. In 
principle, this could be also due to some other things specific to 
Windows that R works around in Windows builds, but doesn't in Linux 
builds assuming they will not run on Windows.

Other issues I had with WSL in the past (trying to build R and run 
checks) included time-zones and surprising encodings, but I didn't check 
recently. I would not use R on WSL unless my goal was to diagnose these 
issues and see if they could be overcome on the R side.

Best
Tomas