Closed Nicolaaht closed 1 year ago
Sounds like maybe you need to fix your compiler toolchain. There are some updated instructions on it you can try following here and see if it fixes it: https://shwilks.github.io/Racmacs/index.html
I think its still invoking clang version
(base) nicolalewis@Nicolas-MBP-2 .R % open Makevars (base) nicolalewis@Nicolas-MBP-2 .R % gcc --version Apple clang version 14.0.0 (clang-1400.0.29.202) Target: x86_64-apple-darwin21.6.0 Thread model: posix InstalledDir: /Library/Developer/CommandLineTools/usr/bin (base) nicolalewis@Nicolas-MBP-2 .R %
What does your current ~/.R/Makevars file look like?
I'm just changing the version to align with the fxcoudert ....
CC=gcc-12.2.0 CXX=/usr/local/bin/g++-12.2.0 CXX1X=/usr/local/bin/g++-12.2.0 CXX13.1.0=/usr/local/bin/g++-12.2.0 SHLIB_CXXLD=/usr/local/bin/g++-12.2.0 FC=/usr/local/bin/gfortran-12.2.0 F77=/usr/local/bin/gfortran-12.2.0 MAKE=make -j8 CFLAGS = -O3 CXXFLAGS = -O3
SHLIB_OPENMP_CFLAGS=-fopenmp SHLIB_OPENMP_CXXFLAGS=-fopenmp SHLIB_OPENMP_FCFLAGS=-fopenmp SHLIB_OPENMP_FFLAGS=-fopenmp
You need to match the paths to the compilers that come with the gfortran version for me (on an M2 Mac) it ends up being:
CC=/usr/local/gfortran/bin/gcc
CXX=/usr/local/gfortran/bin/g++
CXX1X=/usr/local/gfortran/bin/g++
CXX11=/usr/local/gfortran/bin/g++
SHLIB_CXXLD=/usr/local/gfortran/bin/g++
FC=/usr/local/gfortran/bin/gfortran
F77=/usr/local/gfortran/bin/gfortran
MAKE=make -j8
SHLIB_OPENMP_CFLAGS=-fopenmp
SHLIB_OPENMP_CXXFLAGS=-fopenmp
SHLIB_OPENMP_FCFLAGS=-fopenmp
SHLIB_OPENMP_FFLAGS=-fopenmp
But I needed to find the right installer that gave me all these executables in /usr/local/gfortran/bin/
Is the next step to delete my Makevars and start again. I'm on an intel, Monterey 12.6.2
What do you get it you run which gfortran | xargs ls -l
?
Last login: Tue Jun 6 11:09:12 on ttys000 (base) nicolalewis@Nicolas-MBP-2 ~ % which gfortran | xargs ls -l lrwxr-xr-x 1 root admin 32 6 Jun 12:45 /usr/local/bin/gfortran -> /usr/local/gfortran/bin/gfortran (base) nicolalewis@Nicolas-MBP-2 ~ %
Ok, it looks like it should work if you copy and paste my Makevars file instead. Although you may want to double check that all the other executables in it like /usr/local/gfortran/bin/gcc also exist in that location on your system
All good. Thanks Sam.
From: Sam Wilks @.> Sent: 06 June 2023 13:35 To: acorg/Racmacs @.> Cc: Lewis, Nicola @.>; Author @.> Subject: Re: [acorg/Racmacs] Racmacs install (Issue #149)
Ok, it looks like it should work if you copy and paste my Makevars file instead. Although you may want to double check that all the other executables in it like /usr/local/gfortran/bin/gcc also exist in that location on your system
— Reply to this email directly, view it on GitHubhttps://github.com/acorg/Racmacs/issues/149#issuecomment-1578686065, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AC6WROD3VPDDN3RMTLFAQETXJ4P2XANCNFSM6AAAAAAY4GNPXM. You are receiving this because you authored the thread.Message ID: @.***>
[RVC Logo - link to RVC Website]http://www.rvc.ac.uk/ [Twitter icon - link to RVC (Official) Twitter] http://twitter.com/RoyalVetCollege [Facebook icon - link to RVC (Official) Facebook] http://www.facebook.com/theRVC [YouTube icon - link to RVC YouTube] http://www.youtube.com/user/RoyalVetsLondon?feature=mhee [Instagram icon - link to RVC Instagram] http://instagram.com/royalvetcollege
This message, together with any attachments, is intended for the stated addressee(s) only and may contain privileged or confidential information. Any views or opinions presented are solely those of the author and do not necessarily represent those of the Royal Veterinary College (RVC). If you are not the intended recipient, please notify the sender and be advised that you have received this message in error and that any use, dissemination, forwarding, printing, or copying is strictly prohibited. Unless stated expressly in this email, this email does not create, form part of, or vary any contractual or unilateral obligation. Email communication cannot be guaranteed to be secure or error free as information could be intercepted, corrupted, amended, lost, destroyed, incomplete or contain viruses. Therefore, we do not accept liability for any such matters or their consequences. Communication with us by email will be taken as acceptance of the risks inherent in doing so.
No problem, glad we could fix it! :)
One query: what's the number next to the map stress? - bottom left of viewer window?
BW Nicola
From: Sam Wilks @.> Sent: 06 June 2023 15:33 To: acorg/Racmacs @.> Cc: Lewis, Nicola @.>; Author @.> Subject: Re: [acorg/Racmacs] Racmacs install (Issue #149)
No problem, glad we could fix it! :)
— Reply to this email directly, view it on GitHubhttps://github.com/acorg/Racmacs/issues/149#issuecomment-1578883718, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AC6WROCNEJB63WEJ2EDLACLXJ45U3ANCNFSM6AAAAAAY4GNPXM. You are receiving this because you authored the thread.Message ID: @.***>
[RVC Logo - link to RVC Website]http://www.rvc.ac.uk/ [Twitter icon - link to RVC (Official) Twitter] http://twitter.com/RoyalVetCollege [Facebook icon - link to RVC (Official) Facebook] http://www.facebook.com/theRVC [YouTube icon - link to RVC YouTube] http://www.youtube.com/user/RoyalVetsLondon?feature=mhee [Instagram icon - link to RVC Instagram] http://instagram.com/royalvetcollege
This message, together with any attachments, is intended for the stated addressee(s) only and may contain privileged or confidential information. Any views or opinions presented are solely those of the author and do not necessarily represent those of the Royal Veterinary College (RVC). If you are not the intended recipient, please notify the sender and be advised that you have received this message in error and that any use, dissemination, forwarding, printing, or copying is strictly prohibited. Unless stated expressly in this email, this email does not create, form part of, or vary any contractual or unilateral obligation. Email communication cannot be guaranteed to be secure or error free as information could be intercepted, corrupted, amended, lost, destroyed, incomplete or contain viruses. Therefore, we do not accept liability for any such matters or their consequences. Communication with us by email will be taken as acceptance of the risks inherent in doing so.
It's a calculation of the stress per titer to try and make map stress a bit more comparable between maps
Very helpful. So I don't need to try calculating this myself after all this time 😉
From: Sam Wilks @.> Sent: 08 June 2023 10:07 To: acorg/Racmacs @.> Cc: Lewis, Nicola @.>; Author @.> Subject: Re: [acorg/Racmacs] Racmacs install (Issue #149)
It's a calculation of the stress per titer to try and make map stress a bit more comparable between maps
— Reply to this email directly, view it on GitHubhttps://github.com/acorg/Racmacs/issues/149#issuecomment-1582186895, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AC6WROHFQJZ6SRL3DBDEDILXKGI3ZANCNFSM6AAAAAAY4GNPXM. You are receiving this because you authored the thread.Message ID: @.***>
[RVC Logo - link to RVC Website]http://www.rvc.ac.uk/ [Twitter icon - link to RVC (Official) Twitter] http://twitter.com/RoyalVetCollege [Facebook icon - link to RVC (Official) Facebook] http://www.facebook.com/theRVC [YouTube icon - link to RVC YouTube] http://www.youtube.com/user/RoyalVetsLondon?feature=mhee [Instagram icon - link to RVC Instagram] http://instagram.com/royalvetcollege
This message, together with any attachments, is intended for the stated addressee(s) only and may contain privileged or confidential information. Any views or opinions presented are solely those of the author and do not necessarily represent those of the Royal Veterinary College (RVC). If you are not the intended recipient, please notify the sender and be advised that you have received this message in error and that any use, dissemination, forwarding, printing, or copying is strictly prohibited. Unless stated expressly in this email, this email does not create, form part of, or vary any contractual or unilateral obligation. Email communication cannot be guaranteed to be secure or error free as information could be intercepted, corrupted, amended, lost, destroyed, incomplete or contain viruses. Therefore, we do not accept liability for any such matters or their consequences. Communication with us by email will be taken as acceptance of the risks inherent in doing so.
I'm trying to re-install Racmacs. Gcc and Makevars updated
devtools::install_github("acorg/Racmacs") Downloading GitHub repo acorg/Racmacs@HEAD Error: Failed to install 'Racmacs' from GitHub: Could not find tools necessary to compile a package Call
pkgbuild::check_build_tools(debug = TRUE)
to diagnose the problem.Thoughts?
Thanks, Nic