-
Notifications
You must be signed in to change notification settings - Fork 3.8k
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
WIP: [ci] use R 4.2 in Windows R-package CI jobs (fixes #4881) #5274
Conversation
I'd like to propose checking passed R version to the LightGBM/cmake/modules/FindLibR.cmake Line 76 in f1328d5
similarly to LightGBM/.ci/test_r_package.sh Lines 237 to 253 in f1328d5
That will prevent situations like #5129 (comment). |
ooooo, I think that the I tried running the following shell script in the CI builds for the Windows jobs. echo "------ testing test program ----"
cat > conftest.cpp <<EOL
#include <ws2tcpip.h>
int main() {
void* p = inet_pton;
return 0;
}
EOL
g++ -std=gnu++11 -I"c:/rtools42/x86_64-w64-mingw32.static.posix/include" -o conftest conftest.cpp || exit 123
echo "------ done compiling ----"
./conftest || exit 123
rm -f ./conftest
rm -f ./conftest.cpp
echo "------ done running ----" And got the following
To me, that looks like |
This also seems relevant for the CMake side: https://cmake.org/cmake/help/latest/module/CheckCXXSymbolExists.html
|
Closing this in favor of #5503 , which includes the fixes discovered through this investigation. |
This pull request has been automatically locked since there has not been any recent activity since it was closed. To start a new related discussion, open a new issue at https://github.com/microsoft/LightGBM/issues including a reference to this. |
Fixes #4881.
Attempts to add support for R 4.2 in most of the R package's CI jobs.
Notes for Reviewers
#4881 refers to creating a comment-triggered workflow for the UCRT toolchain for Windows builds, but I don't think that's necessary any more now that R 4.2.0 has actually been released and Rtools42 contains the UCRT build tools.
References for some concerns about Windows builds:
r-oldrel
(which is R 4.1)r-lib/actions
codeReferences
r-lib/actions#574 (comment)
https://cran.r-project.org/bin/windows/base/howto-R-4.2.html
Related fix in
r-lib/actions
: r-lib/actions@7d98418