Skip to content
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

setup-r-dependencies@v1 fails due to missing glpk.h header on Windows #430

Closed
mihaiconstantin opened this issue Nov 8, 2021 · 5 comments
Labels
bug an unexpected problem or unintended behavior

Comments

@mihaiconstantin
Copy link

Describe the bug

My apologies if this is not the right place, but the job in check-standard.yml fails on Windows due to a missing header:

OE> igraph_glpk_support.h:36:10: fatal error: glpk.h: No such file or directory

Shouldn't this also be installed as part of r-lib/actions/setup-r@v1?

To Reproduce

The problem seems to be triggered by the installation of the igraph package which requires glpk. See this link for detailed logs.

Expected behavior
Successful installation of igraph R package during r-lib/actions/setup-r-dependencies@v1.

Additional context
I tested the above using devtools::check_win_release() and devtools::check_win_devel(), and glpk was in good order.

@mihaiconstantin mihaiconstantin added the bug an unexpected problem or unintended behavior label Nov 8, 2021
@mihaiconstantin mihaiconstantin changed the title r-lib/actions/setup-r-dependencies@v1 fails due to missing glpk.h header on Windows setup-r-dependencies@v1 fails due to missing glpk.h header on Windows Nov 8, 2021
@jimhester
Copy link
Member

No, windows system dependencies are not automatically installed by these workflows, only linux ones.

@riccardoporreca
Copy link
Contributor

@mihaiconstantin, I have seen similar situations in the past: As you can see from the log, igraph is being installed from source https://github.com/mihaiconstantin/powerly/runs/4137867847?check_suite_focus=true#step:5:614

> * installing *source* package 'igraph' ... 

which requires glpk headers at compile-time, which is not necessary for a binary package.

This can happen during some couple of days after a new version lands on CRAN, for which Windows binaries are not available yet (on CRAN / RSPM). igraph 1.2.8 was indeed released on 2021-11-07.

Note sure there is any viable workaround, hope this still helps.

@jimhester
Copy link
Member

An alternative would be installing GLPK in the meantime for your builds, e.g. choco install glpk

@mihaiconstantin
Copy link
Author

Thanks a lot for clarifying this @riccardoporreca and @jimhester. Your explanations and suggestions make sense. I’ll go ahead and close this as I now understand it is not really an issue with the dependencies action.

@github-actions
Copy link

github-actions bot commented Nov 6, 2022

This issue has been automatically locked. If you believe you have found a related problem, please file a new issue and include a link to this issue

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 6, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug an unexpected problem or unintended behavior
Projects
None yet
Development

No branches or pull requests

3 participants