[R-SIG-Mac] R , RCPP unsing MACOS ventura
Calboli Federico (LUKE)
|eder|co@c@|bo|| @end|ng |rom |uke@||
Tue Mar 14 13:40:23 CET 2023
I know that posting a makevars is somehow iffy, but I installed GCC with homebrew and my
~/.R/Makevars
Reads
CC=/opt/homebrew/bin/gcc-12 -fopenmp
CXX=/opt/homebrew/bin/g++-12 -fopenmp
CXX11=/opt/homebrew/bin/g++-12 -fopenmp
CXX14=/opt/homebrew/bin/g++-12 -fopenmp
CXX17=/opt/homebrew/bin/g++-12 -fopenmp
FLIBS=-L/opt/homebrew/opt/gfortran/lib
F77=/opt/homebrew/bin/gfortran
FC=/opt/R/arm64/gfortran/bin/gfortran -mtune=native
FLIBS=-L/opt/R/arm64/gfortran/lib/gcc/aarch64-apple-darwin20.6.0/12.0.1 -L/opt/R/arm64/gfortran/lib -lgfortran -lemutls_w -lm
CFLAGS=-mtune=native -g -O2 -Wall -pedantic -Wconversion
CPPFLAGS=-I/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include
CXXFLAGS=-mtune=native -g -O2 -Wall -pedantic -Wconversion
I installed the command line tools with
xcode-select --install
and I installed gcc with homebrew. It works:
> library(Rcpp)
> evalCpp( "1+1")
[1] 2
Federico Calboli
Tutkija
Genomiikka ja jalostus
Luonnonvarakeskus
From: R-SIG-Mac <r-sig-mac-bounces using r-project.org> on behalf of Michael Hall <mik3hall using gmail.com>
Date: Tuesday, 14. March 2023 at 13.52
To: r-sig-mac <r-sig-mac using r-project.org>
Subject: Re: [R-SIG-Mac] R , RCPP unsing MACOS ventura
> On Mar 14, 2023, at 6:00 AM, r-sig-mac-request using r-project.org wrote:
>
> [R-SIG-Mac] R , RCPP unsing MACOS ventura
Google shows others have had the issue.
Suggestions include...
Uninstall and reinstall command line tools.
��
...following the wisdom of the "homebrew doctor" solves it, i.e. remove and reinstall:
sudo rm -rf /Library/Developer/CommandLineTools
sudo xcode-select �install
���
Rebuild with export SYSTEM_VERSION_COMPAT=1
Searched with�
<built-in>: error: unknown value �13.2.0� of �-mmacosx-version-min�
[[alternative HTML version deleted]]
_______________________________________________
R-SIG-Mac mailing list
R-SIG-Mac using r-project.org
https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fstat.ethz.ch%2Fmailman%2Flistinfo%2Fr-sig-mac&data=05%7C01%7Cfederico.calboli%40luke.fi%7C75b8009fdd674305fe6e08db2482a20b%7C7c14dfa4c0fc47259f0476a443deb095%7C0%7C0%7C638143915704206799%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=Qmk8swZn4qLly5xUijaWduaiS4veju3YLhclw95pH7U%3D&reserved=0
[[alternative HTML version deleted]]
More information about the R-SIG-Mac
mailing list