-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
[R] Include and Lib flags are missing on macOS #38902
Comments
I have marked this as a blocker for now, if it seems to hold up the 14.0.2 release we will likely be able to cherry pick it before the release to cran as it is most likely an issue soley with the R |
I am pretty sure that I was able to reproduce the error on a gha mac runner by using the pkg-config binary from CRAN.
It seems the system curl stub is not in a default location or in |
pass proper libdir re-run add_feature_flags generalize retry for all pc fails don't silence pkg-config errors add missing else use portable check make empty check more readable Co-authored-by: Jonathan Keane <[email protected]> dedpulicate -l flags and localize cloud flags append ssl flags add pkg-config debug messages rephrase nixlib test compilation messages update tests rephrase latest nightly message Revert "rephrase nixlib test compilation messages" This reverts commit a7eb7d5.
### Rationale for this change We can get into a broken state with a working test compile in `nixlibs.R` but empty `PKG_LIBS` when pkg-config fails to find some libraries (e.g. libcurl on mac due to missing system stubs) in `configure`. This leads to a failed test compile in configure with pc errors silenced. ### What changes are included in this PR? Catch this and rerun the pkg-config-less library detection that should fix this in most cases. ### Are these changes tested? locally and on cran (where this error first surfaced) * Closes: #38902 Lead-authored-by: Jacob Wujciak-Jens <[email protected]> Co-authored-by: Jonathan Keane <[email protected]> Signed-off-by: Jacob Wujciak-Jens <[email protected]>
…pache#38970) ### Rationale for this change We can get into a broken state with a working test compile in `nixlibs.R` but empty `PKG_LIBS` when pkg-config fails to find some libraries (e.g. libcurl on mac due to missing system stubs) in `configure`. This leads to a failed test compile in configure with pc errors silenced. ### What changes are included in this PR? Catch this and rerun the pkg-config-less library detection that should fix this in most cases. ### Are these changes tested? locally and on cran (where this error first surfaced) * Closes: apache#38902 Lead-authored-by: Jacob Wujciak-Jens <[email protected]> Co-authored-by: Jonathan Keane <[email protected]> Signed-off-by: Jacob Wujciak-Jens <[email protected]>
### Rationale for this change We can get into a broken state with a working test compile in `nixlibs.R` but empty `PKG_LIBS` when pkg-config fails to find some libraries (e.g. libcurl on mac due to missing system stubs) in `configure`. This leads to a failed test compile in configure with pc errors silenced. ### What changes are included in this PR? Catch this and rerun the pkg-config-less library detection that should fix this in most cases. ### Are these changes tested? locally and on cran (where this error first surfaced) * Closes: #38902 Lead-authored-by: Jacob Wujciak-Jens <[email protected]> Co-authored-by: Jonathan Keane <[email protected]> Signed-off-by: Jacob Wujciak-Jens <[email protected]>
…pache#38970) ### Rationale for this change We can get into a broken state with a working test compile in `nixlibs.R` but empty `PKG_LIBS` when pkg-config fails to find some libraries (e.g. libcurl on mac due to missing system stubs) in `configure`. This leads to a failed test compile in configure with pc errors silenced. ### What changes are included in this PR? Catch this and rerun the pkg-config-less library detection that should fix this in most cases. ### Are these changes tested? locally and on cran (where this error first surfaced) * Closes: apache#38902 Lead-authored-by: Jacob Wujciak-Jens <[email protected]> Co-authored-by: Jonathan Keane <[email protected]> Signed-off-by: Jacob Wujciak-Jens <[email protected]>
Describe the bug, including details regarding any error messages, version, and platform.
So far only happened on CRAN see log https://www.r-project.org/nosvn/R.check/r-release-macos-x86_64/arrow-00check.html
I wan unable to reproduce locally, likely an issue with pkg-config (or without it?)
Component(s)
R
The text was updated successfully, but these errors were encountered: