Hi, I am experimenting since some days to find the ?best? compiler toolchain for R-devel to get R-devel package source installs on the new macOS Github Actions runners work in a somewhat stable way. I am also on macOS locally which I use for testing as well. I am aware of?https://github.com/rmacoslib/r-macos-rtools. However, using clang7 for all (CC, CXX, etc) leads to some packages failing to build (sometimes due to missing OpenMP capabilities, sometimes undefined). Therefore I decided to try out gcc (v8 and v9). While this solves most of the OpenMP issues, I am running into problems for other packages regarding CC compilation. Turns out that using any clang version for CC solves most problems but not all. However then I have a mix of gcc and clang which is most likely cause other issues. Currently Jeroen is developing a new gcc8 based toolchain for Windows. I was reading the macOS CRAN dev pages but could not find any reasoning why ? clang7 is suggested ? gcc is not used ? What future plans are there for the toolchain on macOS Could someone shine some light on this? Thanks :) Cheers, Patrick
Robust compiler toolchain for R-devel
5 messages · Matthias Krawutschke, Patrick Schratz, Peter Dalgaard +1 more
Hey Patrick, i had the same issue /problem on my MAC. First of all you need from Apple XCODE the Command-Line. I find here a good instruction to do that: https://wiki.helsinki.fi/display/HUGG/GNU+compiler+install+on+Mac+OS+X But, I?m not sure if you can compile the GNU-C 9.x - Version. Try it and if you have found out, how - please let me know. Best regards?. Matthias Krawutschke, Dipl. Inf. Universit?t Potsdam ZIM - Zentrum f?r Informationstechnologie und Medienmanagement Arbeitsbereich: High-Performance-Computing on Cluster - Environment Campus Am Neuen Palais: Am Neuen Palais 10 | 14469 Potsdam Tel: +49 331 977-4444, Fax: +49 331 977-1750 Internet: https://www.uni-potsdam.de/de/zim/angebote-loesungen/hpc.html -----Urspr?ngliche Nachricht----- Von: R-SIG-Mac <r-sig-mac-bounces at r-project.org> Im Auftrag von Patrick Schratz Gesendet: Dienstag, 18. Februar 2020 09:15 An: Martin Jean via R-SIG-Mac <r-sig-mac at r-project.org> Betreff: [R-SIG-Mac] Robust compiler toolchain for R-devel Hi, I am experimenting since some days to find the ?best? compiler toolchain for R-devel to get R-devel package source installs on the new macOS Github Actions runners work in a somewhat stable way. I am also on macOS locally which I use for testing as well. I am aware of https://github.com/rmacoslib/r-macos-rtools. However, using clang7 for all (CC, CXX, etc) leads to some packages failing to build (sometimes due to missing OpenMP capabilities, sometimes undefined). Therefore I decided to try out gcc (v8 and v9). While this solves most of the OpenMP issues, I am running into problems for other packages regarding CC compilation. Turns out that using any clang version for CC solves most problems but not all. However then I have a mix of gcc and clang which is most likely cause other issues. Currently Jeroen is developing a new gcc8 based toolchain for Windows. I was reading the macOS CRAN dev pages but could not find any reasoning why ? clang7 is suggested ? gcc is not used ? What future plans are there for the toolchain on macOS Could someone shine some light on this? Thanks :) Cheers, Patrick _______________________________________________ R-SIG-Mac mailing list R-SIG-Mac at r-project.org https://stat.ethz.ch/mailman/listinfo/r-sig-mac
Matthias, Thanks for your reply. My questions was not about how to install gcc on macOS - this is very simple using homebrew (brew install gcc). Also I am familiar with the xcode basics and so on. Homebrew is the de-facto standard package manager on macOS - mentioning it again explicitly because I remember from one of your last posts that you were not familiar with it. My question was rather about the reasoning for the current toolchain of CC and friends on macOS and if there could be more robust settings than using clang7. Cheers
On 18. Feb 2020, 10:36 +0100, Matthias Krawutschke <krawutschke at uni-potsdam.de>, wrote:
Hey Patrick, i had the same issue /problem on my MAC. First of all you need from Apple XCODE the Command-Line. I find here a good instruction to do that: https://wiki.helsinki.fi/display/HUGG/GNU+compiler+install+on+Mac+OS+X But, I?m not sure if you can compile the GNU-C 9.x - Version. Try it and if you have found out, how - please let me know. Best regards?. Matthias Krawutschke, Dipl. Inf. Universit?t Potsdam ZIM - Zentrum f?r Informationstechnologie und Medienmanagement Arbeitsbereich: High-Performance-Computing on Cluster - Environment Campus Am Neuen Palais: Am Neuen Palais 10 | 14469 Potsdam Tel: +49 331 977-4444, Fax: +49 331 977-1750 Internet: https://www.uni-potsdam.de/de/zim/angebote-loesungen/hpc.html -----Urspr?ngliche Nachricht----- Von: R-SIG-Mac <r-sig-mac-bounces at r-project.org> Im Auftrag von Patrick Schratz Gesendet: Dienstag, 18. Februar 2020 09:15 An: Martin Jean via R-SIG-Mac <r-sig-mac at r-project.org> Betreff: [R-SIG-Mac] Robust compiler toolchain for R-devel Hi, I am experimenting since some days to find the ?best? compiler toolchain for R-devel to get R-devel package source installs on the new macOS Github Actions runners work in a somewhat stable way. I am also on macOS locally which I use for testing as well. I am aware of https://github.com/rmacoslib/r-macos-rtools. However, using clang7 for all (CC, CXX, etc) leads to some packages failing to build (sometimes due to missing OpenMP capabilities, sometimes undefined). Therefore I decided to try out gcc (v8 and v9). While this solves most of the OpenMP issues, I am running into problems for other packages regarding CC compilation. Turns out that using any clang version for CC solves most problems but not all. However then I have a mix of gcc and clang which is most likely cause other issues. Currently Jeroen is developing a new gcc8 based toolchain for Windows. I was reading the macOS CRAN dev pages but could not find any reasoning why ? clang7 is suggested ? gcc is not used ? What future plans are there for the toolchain on macOS Could someone shine some light on this? Thanks :) Cheers, Patrick [[alternative HTML version deleted]]
_______________________________________________ R-SIG-Mac mailing list R-SIG-Mac at r-project.org https://stat.ethz.ch/mailman/listinfo/r-sig-mac
Simon has recently brought up (on R-core) the related issue of what to use as the target platform for 4.0.0. I don't know whether he is ready to take his deliberations to a wider audience at this point. -pd
On 18 Feb 2020, at 09:14 , Patrick Schratz <patrick.schratz at gmail.com> wrote: Hi, I am experimenting since some days to find the ?best? compiler toolchain for R-devel to get R-devel package source installs on the new macOS Github Actions runners work in a somewhat stable way. I am also on macOS locally which I use for testing as well. I am aware of https://github.com/rmacoslib/r-macos-rtools. However, using clang7 for all (CC, CXX, etc) leads to some packages failing to build (sometimes due to missing OpenMP capabilities, sometimes undefined). Therefore I decided to try out gcc (v8 and v9). While this solves most of the OpenMP issues, I am running into problems for other packages regarding CC compilation. Turns out that using any clang version for CC solves most problems but not all. However then I have a mix of gcc and clang which is most likely cause other issues. Currently Jeroen is developing a new gcc8 based toolchain for Windows. I was reading the macOS CRAN dev pages but could not find any reasoning why ? clang7 is suggested ? gcc is not used ? What future plans are there for the toolchain on macOS Could someone shine some light on this? Thanks :) Cheers, Patrick [[alternative HTML version deleted]]
_______________________________________________ R-SIG-Mac mailing list R-SIG-Mac at r-project.org https://stat.ethz.ch/mailman/listinfo/r-sig-mac
Peter Dalgaard, Professor, Center for Statistics, Copenhagen Business School Solbjerg Plads 3, 2000 Frederiksberg, Denmark Phone: (+45)38153501 Office: A 4.23 Email: pd.mes at cbs.dk Priv: PDalgd at gmail.com
All, First, macos-rtools isn't an officially sanctioned R project installer. I created it in the Summer of 2017 to quickly get students and collaborators setup with minimal effort under a configuration that mirrored CRAN. This was primarily due to the lack of official installer packages and students not being able to modify the PATH variable correctly. Having said this, the setup mirrored is given in section C.3.2. of the R Installation and Administration manual: https://cran.r-project.org/doc/manuals/r-release/R-admin.html#Recommended-C_002fC_002b_002b-compilers I believe you are referring to this section.