-
Notifications
You must be signed in to change notification settings - Fork 424
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
cc1plus missing from conda env? #3080
Comments
cc1plus may be hard-coded in your recipe's source code somewhere. Our compiler tools are all prefixed. See https://conda.io/docs/user-guide/tasks/build-packages/compiler-tools.html#using-the-compiler-packages for more info. You probably need to patch your makefile or otherwise figure out where that's getting hardcoded, and probably just remove it (or figure out which env var to use instead). Any env var will probably be what make falls back to, so that's why simple removal of hard-coding may be enough. |
@msarahan thanks. Are there any docs on how to correctly patch the source during build? Or do you do everything in |
I just checked and I don't see the string |
Here's a good guide on patches: https://github.com/ilastik/ilastik/wiki/Creating-patches-for-Conda-recipes You might need to explicitly list a c++ compiler, in addition to c: {{ compiler("c") }} |
I wasn't able to get this to work even with the |
@gwerbin |
@ptrebert This fixed the problem for me as well. Thank you! |
I experience the same issue on MacOS using the equivalent clang compiler packages. The workaround implied instructing cmake to build with the system compilers, while still installing the anaconda compiler tools for testing. |
To those still having this problem after installing |
Hi there, thank you for your contribution! This issue has been automatically marked as stale because it has not had recent activity. It will be closed automatically if no further activity occurs. If you would like this issue to remain open please:
NOTE: If this issue was closed prematurely, please leave a comment. Thanks! |
@ptrebert I never responded to your message, but no, I never resolved this. I ended up simply I think at this point it appears to be more of a "documentation bug" than anything. |
I am having this problem after installing gxx_linux64 from conda-forge. This is in a conda-managed R+Python environment. I'm trying to install an R package (Rcpp) from Github that isn't available on CRAN by using remotes::install(...) function
This is conda 24.5.0 and RedHat 8.8 |
I found that linking cc1plus to my conda env's bin/ worked to resolve the cc1plus error:
I now get
which is also in |
I also encountered the same issue after linking |
My solution was independent of conda and may not be generalized elsewhere or to all systems (but I only needed it to build reproducibly within the context of two local HPC environs/user spaces and a Docker container where I can control a lot of behaviors). In my case I got this to work by setting the path to a system installation of GCC using the ~/.R/Makevars file. In the event the user has their own I had a bash script that wraps the conda install which makes a copy of the old Makevars file and overwrite and restores it at the end. |
Not sure if this is an issue with conda-build, conda itself, or the feedstock I'm using, but the latter seems very unlikely considering the error.
Actual Behavior
Error message, verbatim except I replaced by home directory with "$HOME":
which cc
works, butwhich cc1plus
indicates thatcc1plus
can't be found.Expected Behavior
python-crfsuite is installed successfully.
Steps to Reproduce
Output of conda info
Again redacting my home dir:
The Conda version I'm showing here was installed with Pyenv, but it fails with a system-wide Conda installation as well. Same error.
The text was updated successfully, but these errors were encountered: