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

Should has_devel() check for conflicting build tool installations? #145

Closed
Aariq opened this issue Oct 20, 2022 · 1 comment
Closed

Should has_devel() check for conflicting build tool installations? #145

Aariq opened this issue Oct 20, 2022 · 1 comment

Comments

@Aariq
Copy link

Aariq commented Oct 20, 2022

Recently I was unable to install Rcpp and packages that depended on it (and possibly other packages) from source despite has_devel() saying I was good to go.

https://discuss.ropensci.org/t/build-tools-not-working-despite-what-devtools-has-devel-says/3162?u=leafyericscott

I eventually tracked it down to this solution mentioned in the Rcpp issues: RcppCore/Rcpp#1160 (comment)

I think I had installed gfortran with homebrew at some point and it was conflicting with another version? My problem was solved by deleting /usr/local/include. I haven't tried to reproduce this yet because I'd rather not screw up my work machine setup again.

Proposed solution:

Should has_devel() look for potentially conflicting installations of build tools?

Alternatives:

Maybe this is an Rcpp-specific issue? From the tone of the responses to Rcpp installation issues, they don't seem to think that's the case and seem unlikely to take any action.

@jennybc
Copy link
Member

jennybc commented Oct 20, 2022

I agree with the sentiment that it would be good to check for conflicting build tool installations and yet I have no idea of how to go about doing so in a truly useful and maintainable way. The number of ways that people can bork up their system is nearly infinite 😅 and I don't see devtools signing up for this. I think once one is using a non-CRAN-built R or not using the recommended compilers, you probably are in a "you break it; you own it" situation.

I'll transfer this to pkgbuild, as that's where all the smarts are, but I expect the outcome is #wontfix.

@jennybc jennybc transferred this issue from r-lib/devtools Oct 20, 2022
@gaborcsardi gaborcsardi closed this as not planned Won't fix, can't repro, duplicate, stale Oct 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants