You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Package 'gdsfmt' currently fails installation on Alpine Linux (or, more generally, under musl libc). I get:
CoreArray/dPlatform.cpp:1212:32: error: 'lseek64' was not declared in this scope; did you mean 'lseek'?
CoreArray/dPlatform.cpp:1228:32: error: 'ftruncate64' was not declared in this scope; did you mean 'ftruncate'?
The corresponding code already seems to take care of cygwin/mac/BSD:
As there is no __MUSL__ macro by design, maybe add something like || (defined(COREARRAY_PLATFORM_LINUX) && !defined(__GLIBC__)) to also enter the first branch? (This assumes features.h has been included at that point, which I did not check.)
The text was updated successfully, but these errors were encountered:
You could reproduce the error using the rhub/r-minimal Docker image with the following oneliner:
docker run --rm -t rhub/r-minimal installr -d zhengxwen/gdsfmt
This will use the current development version from GitHub.
I have originally observed the installation failure using released 'gdsfmt' 1.42.0 in current R 4.4.2 on an Alpine Linux 3.20 system with C++ compiler g++ (Alpine 13.2.1_git20240309) 13.2.1 20240309. R.version$platform is "x86_64-pc-linux-musl", R.version$os is "linux-musl".
Package 'gdsfmt' currently fails installation on Alpine Linux (or, more generally, under musl libc). I get:
The corresponding code already seems to take care of cygwin/mac/BSD:
gdsfmt/src/CoreArray/dPlatform.cpp
Lines 1209 to 1213 in 3109e86
gdsfmt/src/CoreArray/dPlatform.cpp
Lines 1225 to 1229 in 3109e86
As there is no
__MUSL__
macro by design, maybe add something like|| (defined(COREARRAY_PLATFORM_LINUX) && !defined(__GLIBC__))
to also enter the first branch? (This assumes features.h has been included at that point, which I did not check.)The text was updated successfully, but these errors were encountered: