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
{{ message }}
Repository navigation
Unable to compile on linux, "Mutex creation failed" #63
sudo pacman -U /var/cache/pacman/pkg/lib32-glibc-2.28-1-x86_64.pkg.tar.xz /var/cache/pacman/pkg/glibc-2.27-3-x86_64.pkg.tar.xz did not seem to do the job.
sudo pacman -Q --info glibc
Name : glibc
Version : 2.28-1
We just merged a fix into master. For everyone who has experienced a problem, can you test and report back with how it works, and the platform you're on?
devtools::install_github("r-lib/later")
Reacted by Frederik Vanrenterghem, mtekman and Matt Haffner
Reacted by Nicolás A. Méndez, Maxime Wack, jblankfeld, Alexis Forestier and Duncan Garmonsway
@hermidalc As a side note, I'm curious why you are installing R from Anaconda and not installing the data science stack packages (like later) from the Anaconda binaries. The few times I've loaded the whole Anaconda platform, I've just installed their versions of R, RStudio and the packages from their repository. I'd only install a package from CRAN or GitHub if it wasn't in their stack already.
@hermidalc As a side note, I'm curious why you are installing R from Anaconda and not installing the data science stack packages (like later) from the Anaconda binaries. The few times I've loaded the whole Anaconda platform, I've just installed their versions of R, RStudio and the packages from their repository. I'd only install a package from CRAN or GitHub if it wasn't in their stack already.
It was just shown as an example of a library that cannot be compiled and installed from within R. There are many others that do not exist as a package in any channel on conda and therefore must be installed from within R resulting in the same mutex creation failed and coredump.
EDIT: the Anaconda R that is installed via conda r-base=3.5.1 r-essentials are pre-built Anaconda binary packages for my architecture, no compilation happens when you install them. It's the same as installing it via a larger conda data science stack. There is an r-later package in conda-forge channel (only 0.7.3), though I was just showing later as an example of something that doesn't build with the above error.
@hermidalc, it does build, it just fails to load. Also some of your technical problems around attempting to help out with this issue seem to stem from using rstudio (or some other complex software stack) which depends on later (I guess, but something in your stack certainly does) and trying to build later from within that env. That's not a good idea. Build r packages from a minimal environment. Use just a shell and the R executable when doing low level stuff like this. Minimalism should always be the rule when building software. And avoiding packages that are broken is obviously essential.
Ok that won't fix this later vs glibc 2.28 incompatibility (the maintainers of later will fix that and I'll continue to try to help if I have time) but I'd still try to follow this recommendation.
@hermidalc, it does build, it just fails to load. Also some of your technical problems around attempting to help out with this issue seem to stem from using rstudio (or some other complex software stack) which depends on later (I guess, but something in your stack certainly does) and trying to build later from within that env.
@mingwandroid I'm not using rstudio. I think you are confusing me with @twilbers who opened the other issue where we were discussing this problem ContinuumIO/anaconda-issues#10264. In that issue I mentioned that I was having this problem with Anaconda R itself so that it is likely not an rstudio issue. Also as I mentioned in that issue, one reason I also posted there is because that was only person on the web mentioning this problem since August or so, so felt I should add to it saying its likely not rstudio.
If you read my comment above #63 (comment) you will see the exact instructions to reproduce the issue, no rstudio, no complex stack, and installing later is just the last step to show an example of a library install that fails. I can give you multiple other libraries that fail and can be used in that last step. From my understanding we've now determined that this issue is with R and glibc not later.
Build r packages from a minimal environment. Use just a shell and the R executable when doing low level stuff like this. Minimalism should always be the rule when building software. And avoiding packages that are broken is obviously essential.
Ok that won't fix this later vs glibc 2.28 incompatibility (the maintainers of later will fix that and I'll continue to try to help if I have time) but I'd still try to follow this recommendation.
I just went back to Anaconda R 3.4.3 for now as it has zero problems and my development environment is working again. Once the R team fixes 3.5.1 I'll give it another try.
Once the R team fixes 3.5.1 I'll give it another try.
Do you mean once the later team fixes this bug here? If not, what is the issue with 3.5.1?
I have Fedora 29 (Silverblue) - I installed R and RStudio Desktop and the tidyverse a few weeks ago without incident. I can test this now. The versions of the packages may be slightly different from Fedora 29 Workstation but with Silverblue it's trivial to bring up a pure Fedora 29 container to test with. @hermidalc How are you installing Anaconda?
In your Fedora 29 do the following:
1. Download and install Anaconda3 5.2.0 and follow instructions (don't install VSCode at end):
This fails with the error. For many other packages you get the same failure when trying to install.
Sorry need to edit this and add more info, and sorry for this going around in circles a bit.
I realized that when Anaconda R is installed conda r-base=3.5.1 r-essentials that it also installs r-later 0.7.3 as a dependency which is the latest version available on Anaconda. Sorry I didn't notice this before. Even if you do not install r-essentials package then the problem will still come up if you try from within R to install.packages(...) something that will then install later through the dependency chain, resulting in the same mutex error.
So to me the problem once again falls back to Anaconda team and why I posted there, once r-later package is updated to 0.7.5 I think this issue will be resolved?
Activity
jpds commentedon Aug 7, 2018
Similar to #45.
deluciaatgfz commentedon Aug 7, 2018
Have you got any clue on what it's going on?
On debian it compiles fine.
wch commentedon Aug 7, 2018
This sounds like the same issue reported in rstudio/shiny#2150. It sounds like there may be an issue with the version of glibc that Arch uses.
Related: https://bugs.archlinux.org/task/59550
jannes-m commentedon Aug 8, 2018
I have downgraded
glibcto version 2.27-3, however, the problem still persists. Any ideas @pat-s (lateris a dependency ofxaringan)?pat-s commentedon Aug 8, 2018
Seems like we have to wait for a
glibcfix for now if downgrading also does not help here.This bug affects a lot in Arch right now including email clients, slack and more..
ByteHamster commentedon Aug 8, 2018
Downgrading to
2.27-3helped on my devicepat-s commentedon Aug 8, 2018
@ByteHamster Any tips how you rolled back safely?
sudo pacman -U /var/cache/pacman/pkg/lib32-glibc-2.28-1-x86_64.pkg.tar.xz /var/cache/pacman/pkg/glibc-2.27-3-x86_64.pkg.tar.xzdid not seem to do the job.ByteHamster commentedon Aug 8, 2018
I did
sudo pacman -U /var/cache/pacman/pkg/glibc-2.27-3-x86_64.pkg.tar.xz /var/cache/pacman/pkg/lib32-glibc-2.27-3-x86_64.pkg.tar.xzNot sure if that was safe, but the PC still boots, I can install the R package and electron no longer crashes :)
pat-s commentedon Aug 8, 2018
Thanks. Seems the order of the packages makes a difference. Works now!
jannes-m commentedon Aug 8, 2018
Ok, the downgrade now also worked for me, thanks everybody!
znmeb commentedon Aug 8, 2018
Yeah - I'm on Arch Linux and this is a mess ... a lot of R package installs break, not just
later. And Skype. And Slack. And Electron apps. :-(Even a freshly built
R-patchedfrom source does this.It turns out you need to downgrade more than just
glibcandlib32-glibc. This comment has the five packages you need to downgrade.https://bugs.archlinux.org/task/59550#comment171826
wch commentedon Aug 10, 2018
We just merged a fix into master. For everyone who has experienced a problem, can you test and report back with how it works, and the platform you're on?
znmeb commentedon Aug 10, 2018
Works for me on Arch Linux - thanks!
EngineerCoding commentedon Aug 13, 2018
Tested, works for me on arch linux (exact distro is Antergos) too. Thanks for the fix!
23 remaining items
hermidalc commentedon Nov 16, 2018
@wch @znmeb thanks very much for the great support and troubleshooting
mingwandroid commentedon Nov 16, 2018
@hermidalc, I identified the real problem here in #63 (comment)
I'd like to say it was a pleasure but that'd be a lie.
Edit: I mean no offense to the maintainers of later here.
wch commentedon Nov 16, 2018
Please, let's keep it civil. There's no need for sniping. I'll comment more on the other issue.
znmeb commentedon Nov 16, 2018
@hermidalc As a side note, I'm curious why you are installing R from Anaconda and not installing the data science stack packages (like
later) from the Anaconda binaries. The few times I've loaded the whole Anaconda platform, I've just installed their versions of R, RStudio and the packages from their repository. I'd only install a package from CRAN or GitHub if it wasn't in their stack already.hermidalc commentedon Nov 16, 2018
It was just shown as an example of a library that cannot be compiled and installed from within R. There are many others that do not exist as a package in any channel on conda and therefore must be installed from within R resulting in the same mutex creation failed and coredump.
EDIT: the Anaconda R that is installed via
conda r-base=3.5.1 r-essentialsare pre-built Anaconda binary packages for my architecture, no compilation happens when you install them. It's the same as installing it via a larger conda data science stack. There is anr-laterpackage in conda-forge channel (only 0.7.3), though I was just showing later as an example of something that doesn't build with the above error.mingwandroid commentedon Nov 17, 2018
@hermidalc, it does build, it just fails to load. Also some of your technical problems around attempting to help out with this issue seem to stem from using rstudio (or some other complex software stack) which depends on later (I guess, but something in your stack certainly does) and trying to build later from within that env. That's not a good idea. Build r packages from a minimal environment. Use just a shell and the R executable when doing low level stuff like this. Minimalism should always be the rule when building software. And avoiding packages that are broken is obviously essential.
Ok that won't fix this later vs glibc 2.28 incompatibility (the maintainers of later will fix that and I'll continue to try to help if I have time) but I'd still try to follow this recommendation.
hermidalc commentedon Nov 17, 2018
@mingwandroid I'm not using rstudio. I think you are confusing me with @twilbers who opened the other issue where we were discussing this problem ContinuumIO/anaconda-issues#10264. In that issue I mentioned that I was having this problem with Anaconda R itself so that it is likely not an rstudio issue. Also as I mentioned in that issue, one reason I also posted there is because that was only person on the web mentioning this problem since August or so, so felt I should add to it saying its likely not rstudio.
If you read my comment above #63 (comment) you will see the exact instructions to reproduce the issue, no rstudio, no complex stack, and installing later is just the last step to show an example of a library install that fails. I can give you multiple other libraries that fail and can be used in that last step. From my understanding we've now determined that this issue is with R and glibc not later.
hermidalc commentedon Nov 17, 2018
I just went back to Anaconda R 3.4.3 for now as it has zero problems and my development environment is working again. Once the R team fixes 3.5.1 I'll give it another try.
mingwandroid commentedon Nov 17, 2018
Do you mean once the later team fixes this bug here? If not, what is the issue with 3.5.1?
hermidalc commentedon Nov 17, 2018
Sorry need to edit this and add more info, and sorry for this going around in circles a bit.
I realized that when Anaconda R is installed
conda r-base=3.5.1 r-essentialsthat it also installs r-later 0.7.3 as a dependency which is the latest version available on Anaconda. Sorry I didn't notice this before. Even if you do not installr-essentialspackage then the problem will still come up if you try from within R toinstall.packages(...)something that will then installlaterthrough the dependency chain, resulting in the same mutex error.So to me the problem once again falls back to Anaconda team and why I posted there, once r-later package is updated to 0.7.5 I think this issue will be resolved?
mingwandroid commentedon Nov 17, 2018
This is not a bug with R, nor is it the recommended way to use Anaconda Distribution R packages.
conda install r-later
.. is the way to do that.
But until this bug gets fixed you need to use glibc < 2.18
mingwandroid commentedon Nov 18, 2018
This is not and never was an Anaconda issue, except as a knock on from this upstream issue.
0.7.5 does not fix this. We know exactly how to fix it; by renaming these (now, since glibc 2.18) conflicting functions.
hermidalc commentedon Nov 18, 2018
Ok, thank you for the clarification, I am fine with R 3.4.3 until things are ready
Update cummeRbund to 2.24.0
Update cummeRbund to 2.24.0