You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is because python bakes in compiler flags at build time. We have used new compilers in the 4.3.27 miniconda. These are available as gcc_linux-64, but it's better to use conda-build 3 and the new compiler jinja2 function.
gcc_linux-64 will provide x86_64-conda_cos6-linux-gnu-gcc - this is a "prefixed" compiler - the stuff preceding gcc is known as the triplet, in gcc terms. Installing the package might work, but it also might not, depending on whether you activate the build environment. If you do, it should work, if you don't, it probably won't be on PATH, and won't work.
It's a bug in our python packages that things are not falling back to your system gcc. We're going to change the symlinks for miniconda-latest to point to the older release until we have this fixed. Sorry for the headache.
Similar problem for scikit-learn for example https://travis-ci.org/scikit-learn/scikit-learn/jobs/280535821. Not sure why but it seems to be happening only for our Python 2.7 build using conda. I am hoping to work-around the problem by using an older miniconda installer and not do conda update conda.
On Sep 27, 2017, at 4:45 PM, Loïc Estève ***@***.***> wrote:
Similar problem for scikit-learn for example https://travis-ci.org/scikit-learn/scikit-learn/jobs/280535821. Not sure why but it seems to be happening only for our Python 2.7 build using conda. I am hoping to work-around the problem by using an older miniconda installer and not do conda update conda.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or mute the thread.
As Kale said, we changed the "latest" minicondas to point at the 4.3.21 version from June. We have a fix, and are building packages. We'll upload new minicondas after testing. Sorry for the trouble.
Updating conda triggers this because updating conda pulls in packages from the new "main" channel, which is part of defaults. That channel has the new python builds that are causing this issue. Updating our python packages will be the fix.
hi guys,
is there a workaround for this ? all our builds are failing . I installed gcc_linux-64, but i keep getting other errors (cc1plus not found, etc)
@mingwandroid thanks for the response, conda install gxx_linux-64 solved my issue. I just wonder why this is no longer automatic for naive users (like me)?
Historically we didn't provide any compilers, then we provided old ones but our R packages didn't use the those old ones instead relying on system ones (when you use install.packages()). That brings it's own problems (I don't know how capable your system ones are and anything you build with them will likely not work on other systems and loading R packages built with them could prevent binaries we built from loading or working).
Forcing our compilers on everyone who installs R on Linux might be the best plan though, but actually upstream R is moving towards providing prebuilt binaries (at least for Windows and macOS).
The other complication is that you are better off not using install.packages() for most things since we already provide prebuilt binary conda packages for a lot of the most popular R packages, so conda install r-something is better.
I am considering to patch install.packages() so that it tries installing a conda package first, and failing that, installs compilers if necessary before running the normal code-path.
Overall it's very difficult to know what is best here!
Reacted by Arman Eshaghi, Anthony Ascencio and Sumit Goyal
@mingwandroid some research on the Internet led me here. I am facing difficulties when installing R packages just like @nick-youngblut did. I see your suggestion for using conda skeleton cran approach instead of using R function install.packages, and I have done conda install gxx_linux-64. However, I keep failing at the conda build step.
Specifically, I want to install an R package called "RPostgreSQL", and here is what I have done:
make: /home/ytu/anaconda3/conda-bld/r-rpostgresql_1519544237983/h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold/bin/x86_64-conda_cos6-linux-gnu-cc: Command not found
subprocess.CalledProcessError: Command '['/bin/bash', '-e', '/home/ytu/anaconda3/conda-bld/r-rpostgresql_1519544237983/work/conda_build.sh']' returned non-zero exit status 1.
I am on Archlinux and miniconda always gives me file not recognized: file format not recognized when gcc or ld is called. Removing compiler_compat/ld solves the issue.
Reacted by Juan Luis Cano Rodríguez, Yongsheng Xu, Jorge Calvimontes and James Wright
Activity
msarahan commentedon Sep 27, 2017
This is because python bakes in compiler flags at build time. We have used new compilers in the 4.3.27 miniconda. These are available as gcc_linux-64, but it's better to use conda-build 3 and the new compiler jinja2 function.
Here's a recipe for statsmodels that has been modified to use conda-build 3 features: https://github.com/anacondarecipes/statsmodels-feedstock
bashtage commentedon Sep 27, 2017
Is the solution to install gcc_linux-64 so that the normal
python setup.py developwill correctly build?msarahan commentedon Sep 27, 2017
gcc_linux-64 will provide x86_64-conda_cos6-linux-gnu-gcc - this is a "prefixed" compiler - the stuff preceding gcc is known as the triplet, in gcc terms. Installing the package might work, but it also might not, depending on whether you activate the build environment. If you do, it should work, if you don't, it probably won't be on PATH, and won't work.
It's a bug in our python packages that things are not falling back to your system gcc. We're going to change the symlinks for miniconda-latest to point to the older release until we have this fixed. Sorry for the headache.
bashtage commentedon Sep 27, 2017
Thanks.
I did a conda install gcc_linux-64 and conda .27 recommended upgrading a Python 3.5 to a Python 3.6 install, which seems pretty heavy handed.
kalefranz commentedon Sep 27, 2017
This is probably a result of #5923
lesteve commentedon Sep 27, 2017
Similar problem for scikit-learn for example https://travis-ci.org/scikit-learn/scikit-learn/jobs/280535821. Not sure why but it seems to be happening only for our Python 2.7 build using conda. I am hoping to work-around the problem by using an older miniconda installer and not do conda update conda.
FIX do not update conda as a temporary work-around for conda issue
kalefranz commentedon Sep 27, 2017
msarahan commentedon Sep 27, 2017
As Kale said, we changed the "latest" minicondas to point at the 4.3.21 version from June. We have a fix, and are building packages. We'll upload new minicondas after testing. Sorry for the trouble.
Updating conda triggers this because updating conda pulls in packages from the new "main" channel, which is part of defaults. That channel has the new python builds that are causing this issue. Updating our python packages will be the fix.
lesteve commentedon Sep 27, 2017
Great stuff, thanks!
hainm commentedon Sep 28, 2017
I got this today :(
FIX do not update conda as a temporary work-around for conda issue
Workaround for now seems to be to not update conda, see conda/conda#6030
twiecki commentedon Sep 28, 2017
I'm getting when travis is trying to build
subprocess32.sandys commentedon Sep 28, 2017
hi guys,
is there a workaround for this ? all our builds are failing . I installed gcc_linux-64, but i keep getting other errors (cc1plus not found, etc)
69 remaining items
armaneshaghi commentedon Dec 6, 2017
@mingwandroid thanks for the response,
conda install gxx_linux-64solved my issue. I just wonder why this is no longer automatic for naive users (like me)?mingwandroid commentedon Dec 6, 2017
Historically we didn't provide any compilers, then we provided old ones but our R packages didn't use the those old ones instead relying on system ones (when you use
install.packages()). That brings it's own problems (I don't know how capable your system ones are and anything you build with them will likely not work on other systems and loading R packages built with them could prevent binaries we built from loading or working).Forcing our compilers on everyone who installs R on Linux might be the best plan though, but actually upstream R is moving towards providing prebuilt binaries (at least for Windows and macOS).
The other complication is that you are better off not using
install.packages()for most things since we already provide prebuilt binary conda packages for a lot of the most popular R packages, soconda install r-somethingis better.I am considering to patch
install.packages()so that it tries installing a conda package first, and failing that, installs compilers if necessary before running the normal code-path.Overall it's very difficult to know what is best here!
FIX do not update conda as a temporary work-around for conda issue
Update Dockerfile
corytu commentedon Feb 25, 2018
@mingwandroid some research on the Internet led me here. I am facing difficulties when installing R packages just like @nick-youngblut did. I see your suggestion for using
conda skeleton cranapproach instead of using R functioninstall.packages, and I have doneconda install gxx_linux-64. However, I keep failing at theconda buildstep.Specifically, I want to install an R package called "RPostgreSQL", and here is what I have done:
The error includes:
, and
, and finally
You could find some other information in my question on Stack Overflow: Installing packages in IRkernel on Jupyter Notebook.
How should I do to solve this?
silly conda fix
silly conda fix
zhou13 commentedon Jul 22, 2019
I am on Archlinux and miniconda always gives me
file not recognized: file format not recognizedwhen gcc or ld is called. Removingcompiler_compat/ldsolves the issue.astrojuanlu commentedon Aug 1, 2019
@shreyasbapat and I just independently reproduced what @zhou13 mentioned on Arch Linux. I guess this is being tracked in ContinuumIO/anaconda-issues#11152 now.
mingwandroid commentedon Aug 2, 2019
@Juanlu001
Would it be possible to try the package mentioned in my last comment on issue 11152 please?
astrojuanlu commentedon Aug 2, 2019
Thanks @mingwandroid, doing
conda install -c rdonnelly python=3.7.4fixes the issue 👍chux0519 commentedon Sep 6, 2019
@zhou13 thanks, it works
github-actions commentedon Aug 28, 2021
Hi there, thank you for your contribution to Conda!
This issue has been automatically locked since it has not had recent activity after it was closed.
Please open a new issue if needed.