Re: [R-SIG-Mac] R , RCPP unsing MACOS ventura
Dear all, I'ma happy to inform that the procedure suggested by Simon. worked . thanks a lot On Wed, Mar 15, 2023 at 3:58 PM Andrea Apolloni wrote: > Dear Simon , dearl all > thank you for your feedback > > On Mon, Mar 13, 2023 at 8:02 PM Simon Urbanek > wrote: > >> Andrea, >> >> Make sure you don't have any outdated tools or flags overrides (e.g. in >> ~/.R). > > I'm not sure how to do it (sorry). I'm going with the second option > > >> If it doubt clean /usr/local and uninstall Homebrew. > > > >> The error suggests your are using compilers that don't support your >> system. >> > I think that one of the problem relies on Xcode and command line taht are > not updated for the new version of Macos Ventura 13.2.1. In particular if I > follwo the procedure from > https://cran.r-project.org/bin/macosx/ > and install the gfortran compiler > https://github.com/fxcoudert/gfortran-for-macOS/releases/tag/12.2-ventura > > there isn't an updated compiler for the version mac os Ventura 13.2.1 for > intel > Do you know any compiler I can use alternatively? > Thank you for all teh discussion > Bests > Andrea > >> >> If you cleaned out those and still needs help, please post the full >> output of the installation and provide full sessionInfo() output. >> >> Cheers, >> Simon >> >> >> > On Mar 14, 2023, at 7:26 AM, Andrea Apolloni >> wrote: >> > >> > Dear all I had the bad idea , >> > 3 weeks ago to install the new Mac OS Ventura 13.2.0 on my laptop >> > I've instlalled the latest version of XCode (14.2) and CommandLine Tools >> > >> > Since then I can not use RCPP, Nimble and Rstan on my laptop >> > typical errror >> > Error: Failed to create the shared library. Run 'printErrors()' to see >> the >> > compilation errors. >> > >> > and using printErrors() >> > >> > : error: unknown value ‘13.2.0’ of ‘-mmacosx-version-min’ >> > make: *** [dynamicRegistrations_03_13_19_21_32.o] Error 1 >> > >> > version of R 4.2.2 >> > Thanks in advance for all your help >> > >> > [[alternative HTML version deleted]] >> > >> > ___ >> > R-SIG-Mac mailing list >> > R-SIG-Mac@r-project.org >> > https://stat.ethz.ch/mailman/listinfo/r-sig-mac >> > >> >> [[alternative HTML version deleted]] ___ R-SIG-Mac mailing list R-SIG-Mac@r-project.org https://stat.ethz.ch/mailman/listinfo/r-sig-mac
Re: [R-SIG-Mac] R , RCPP unsing MACOS ventura
Dear Simon , dearl all thank you for your feedback On Mon, Mar 13, 2023 at 8:02 PM Simon Urbanek wrote: > Andrea, > > Make sure you don't have any outdated tools or flags overrides (e.g. in > ~/.R). I'm not sure how to do it (sorry). I'm going with the second option > If it doubt clean /usr/local and uninstall Homebrew. > The error suggests your are using compilers that don't support your system. > I think that one of the problem relies on Xcode and command line taht are not updated for the new version of Macos Ventura 13.2.1. In particular if I follwo the procedure from https://cran.r-project.org/bin/macosx/ and install the gfortran compiler https://github.com/fxcoudert/gfortran-for-macOS/releases/tag/12.2-ventura there isn't an updated compiler for the version mac os Ventura 13.2.1 for intel Do you know any compiler I can use alternatively? Thank you for all teh discussion Bests Andrea > > If you cleaned out those and still needs help, please post the full output > of the installation and provide full sessionInfo() output. > > Cheers, > Simon > > > > On Mar 14, 2023, at 7:26 AM, Andrea Apolloni > wrote: > > > > Dear all I had the bad idea , > > 3 weeks ago to install the new Mac OS Ventura 13.2.0 on my laptop > > I've instlalled the latest version of XCode (14.2) and CommandLine Tools > > > > Since then I can not use RCPP, Nimble and Rstan on my laptop > > typical errror > > Error: Failed to create the shared library. Run 'printErrors()' to see > the > > compilation errors. > > > > and using printErrors() > > > > : error: unknown value ‘13.2.0’ of ‘-mmacosx-version-min’ > > make: *** [dynamicRegistrations_03_13_19_21_32.o] Error 1 > > > > version of R 4.2.2 > > Thanks in advance for all your help > > > > [[alternative HTML version deleted]] > > > > ___ > > R-SIG-Mac mailing list > > R-SIG-Mac@r-project.org > > https://stat.ethz.ch/mailman/listinfo/r-sig-mac > > > > [[alternative HTML version deleted]] ___ R-SIG-Mac mailing list R-SIG-Mac@r-project.org https://stat.ethz.ch/mailman/listinfo/r-sig-mac
Re: [R-SIG-Mac] R , RCPP unsing MACOS ventura
> On Mar 14, 2023, at 3:50 PM, Simon Urbanek > wrote: > > Well, what I saw in the searches what that it was a problem with Homebrew > tools breaking on that flag. Again, it's all speculation, because no one > posted the actual issue ... so it's anyone's guess what this is all about > until someone actually posts the details I asked for - I don't see that > problem myself, but I don't use Homebrew (at least not on the default PATH). > > Cheers, > Simon As you said earlier. > The error suggests your are using compilers that don't support your system. It doesn’t seem to recognize a 13.2 system. This could well be because it is trying to use a homebrew gcc that isn’t playing well with the Xcode command line tools. The xcode-select -version that I showed earlier was supposed to indicate what version of the command line tools you are using no matter with what Xcode.app although I’m not sure exactly how you are supposed to correspond the CLT version to the OS one. gcc —version should I think tell you if you have a homebrew or Apple one. If homebrew is the culprit following the homebrew suggestion of uninstalling and reinstalling CLT would still seem to me to be worth the attempt. If something is hardcoded in PATH messing up search orders that would be a different issue. Uninstalling homebrew as I think you suggested seems to be throwing out the baby, the bath water and the kitchen sink. There should be a less drastic solution. ___ R-SIG-Mac mailing list R-SIG-Mac@r-project.org https://stat.ethz.ch/mailman/listinfo/r-sig-mac
Re: [R-SIG-Mac] R , RCPP unsing MACOS ventura
Simon, Yes, sure, I need to keep an eye on the GCC version from HB, because when it changes the makevars breaks. Otherwise I never really had issues, but I am happy to break stuff, and fix it. Federico Calboli Tutkija Genomiikka ja jalostus Luonnonvarakeskus Federico, given that Homebrew is likely the cause for the mess, advising to install a custom installation seems like a very bad idea. It is likely very dependent on the versions of the tools from Homebrew which is what breaks. Therefore I would strongly advise against it (unless you know what you are doing, but then if you do - you know how to fix it). So to the list readers - please do NOT follow the advice for custom flags unless you know what it does and how to maintain it. If you use custom tools (which is fine for experts), you are likely to have problems down the road since such installations are not maintained by Apple and will break and will need fixing. Cheers, Simon > On 15/03/2023, at 7:26 AM, Calboli Federico (LUKE) > wrote: > > First off apologies for the horrible quoting from me, I have been forced to > move from Mail.app to Outlook and nothing works as it should. > > I understand the XCode tool are needed to install homebrew, but after that > they are not the focus � my R makevars calls the gcc I installed with > homebrew, not the one supplied by XCode (which does not have fortran, hence > my use of the Homebrew gcc). > > > Federico Calboli > Tutkija > Genomiikka ja jalostus > Luonnonvarakeskus > > > >> >> I actually do not use Rcpp, I was just curious to know whether it works on >> my machine or not. Apparently it does. >> > > > Me either. Fwiw. > > xcode-select --version > xcode-select version 2396. > > Also Ventura 13.2.1 > >> library(Rcpp) >> evalCpp( "1+1") > [1] 2 >::sprintf(buff, "%02x", from); > ^ > /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/stdio.h:188:1: > note: 'sprintf' has been explicitly marked deprecated here > __deprecated_msg("This function is provided for compatibility reasons only. > Due to security concerns inherent in the design of sprintf(3), it is highly > recommended that you use snprintf(3) instead.") > ^ > /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/sys/cdefs.h:215:48: > note: expanded from macro '__deprecated_msg' >#define __deprecated_msg(_msg) __attribute__((__deprecated__(_msg))) > ^ > 1 warning generated. >> > > ___ > R-SIG-Mac mailing list > R-SIG-Mac@r-project.org > https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fstat.ethz.ch%2Fmailman%2Flistinfo%2Fr-sig-mac=05%7C01%7Cfederico.calboli%40luke.fi%7C97fbccf72ee641fad83408db24cc312d%7C7c14dfa4c0fc47259f0476a443deb095%7C0%7C0%7C638144231646298662%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C=lJcMNU18F%2BsBAujzmb%2FumwJhbWwEQncjy%2BcD52J5V50%3D=0 > >[[alternative HTML version deleted]] > > ___ > R-SIG-Mac mailing list > R-SIG-Mac@r-project.org > https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fstat.ethz.ch%2Fmailman%2Flistinfo%2Fr-sig-mac=05%7C01%7Cfederico.calboli%40luke.fi%7C97fbccf72ee641fad83408db24cc312d%7C7c14dfa4c0fc47259f0476a443deb095%7C0%7C0%7C638144231646298662%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C=lJcMNU18F%2BsBAujzmb%2FumwJhbWwEQncjy%2BcD52J5V50%3D=0 [[alternative HTML version deleted]] ___ R-SIG-Mac mailing list R-SIG-Mac@r-project.org https://stat.ethz.ch/mailman/listinfo/r-sig-mac
Re: [R-SIG-Mac] R , RCPP unsing MACOS ventura
Well, what I saw in the searches what that it was a problem with Homebrew tools breaking on that flag. Again, it's all speculation, because no one posted the actual issue ... so it's anyone's guess what this is all about until someone actually posts the details I asked for - I don't see that problem myself, but I don't use Homebrew (at least not on the default PATH). Cheers, Simon > On 15/03/2023, at 9:45 AM, Michael Hall wrote: > > > >> On Mar 14, 2023, at 3:32 PM, Simon Urbanek >> wrote: >> >> If that is the case, can you actually post what the issue is? The original >> post had no details and did not follow up when asked for details. When >> googling the issue seems to arise in Homebrew, not the Apple tools so as I >> noted removing Homebrew should work. >> >> Cheers, >> Simon >> >> >> >>> On 15/03/2023, at 12:52 AM, Michael Hall wrote: >>> >>> >>> On Mar 14, 2023, at 6:00 AM, r-sig-mac-requ...@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… >>> : error: unknown value ‘13.2.0’ of ‘-mmacosx-version-min’ > > The general suggestion seemed to be for some reason to remove and reinstall > the command line tools. The example I posted was one where it was the > home-brew doctor that made that suggestion. Not that homebrew itself was the > problem. > > The >>> : error: unknown value ‘13.2.0’ of ‘-mmacosx-version-min’ > > Seemed to be what the underlying issue was? and was what I searched on > ___ R-SIG-Mac mailing list R-SIG-Mac@r-project.org https://stat.ethz.ch/mailman/listinfo/r-sig-mac
Re: [R-SIG-Mac] R , RCPP unsing MACOS ventura
> On Mar 14, 2023, at 3:32 PM, Simon Urbanek > wrote: > > If that is the case, can you actually post what the issue is? The original > post had no details and did not follow up when asked for details. When > googling the issue seems to arise in Homebrew, not the Apple tools so as I > noted removing Homebrew should work. > > Cheers, > Simon > > > >> On 15/03/2023, at 12:52 AM, Michael Hall wrote: >> >> >> >>> On Mar 14, 2023, at 6:00 AM, r-sig-mac-requ...@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… >> : error: unknown value ‘13.2.0’ of ‘-mmacosx-version-min’ The general suggestion seemed to be for some reason to remove and reinstall the command line tools. The example I posted was one where it was the home-brew doctor that made that suggestion. Not that homebrew itself was the problem. The >> : error: unknown value ‘13.2.0’ of ‘-mmacosx-version-min’ Seemed to be what the underlying issue was? and was what I searched on ___ R-SIG-Mac mailing list R-SIG-Mac@r-project.org https://stat.ethz.ch/mailman/listinfo/r-sig-mac
Re: [R-SIG-Mac] R , RCPP unsing MACOS ventura
Federico, given that Homebrew is likely the cause for the mess, advising to install a custom installation seems like a very bad idea. It is likely very dependent on the versions of the tools from Homebrew which is what breaks. Therefore I would strongly advise against it (unless you know what you are doing, but then if you do - you know how to fix it). So to the list readers - please do NOT follow the advice for custom flags unless you know what it does and how to maintain it. If you use custom tools (which is fine for experts), you are likely to have problems down the road since such installations are not maintained by Apple and will break and will need fixing. Cheers, Simon > On 15/03/2023, at 7:26 AM, Calboli Federico (LUKE) > wrote: > > First off apologies for the horrible quoting from me, I have been forced to > move from Mail.app to Outlook and nothing works as it should. > > I understand the XCode tool are needed to install homebrew, but after that > they are not the focus � my R makevars calls the gcc I installed with > homebrew, not the one supplied by XCode (which does not have fortran, hence > my use of the Homebrew gcc). > > > Federico Calboli > Tutkija > Genomiikka ja jalostus > Luonnonvarakeskus > > > >> >> I actually do not use Rcpp, I was just curious to know whether it works on >> my machine or not. Apparently it does. >> > > > Me either. Fwiw. > > xcode-select --version > xcode-select version 2396. > > Also Ventura 13.2.1 > >> library(Rcpp) >> evalCpp( "1+1") > [1] 2 >::sprintf(buff, "%02x", from); > ^ > /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/stdio.h:188:1: > note: 'sprintf' has been explicitly marked deprecated here > __deprecated_msg("This function is provided for compatibility reasons only. > Due to security concerns inherent in the design of sprintf(3), it is highly > recommended that you use snprintf(3) instead.") > ^ > /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/sys/cdefs.h:215:48: > note: expanded from macro '__deprecated_msg' >#define __deprecated_msg(_msg) __attribute__((__deprecated__(_msg))) > ^ > 1 warning generated. >> > > ___ > R-SIG-Mac mailing list > R-SIG-Mac@r-project.org > https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fstat.ethz.ch%2Fmailman%2Flistinfo%2Fr-sig-mac=05%7C01%7Cfederico.calboli%40luke.fi%7C8e5586946cd54b94cd7808db24ade8a1%7C7c14dfa4c0fc47259f0476a443deb095%7C0%7C0%7C638144101597319575%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C=5l9Xe5xlggU4O3UJwRpIt62sbdZJMmsRoRnkufM2MzY%3D=0 > > [[alternative HTML version deleted]] > > ___ > R-SIG-Mac mailing list > R-SIG-Mac@r-project.org > https://stat.ethz.ch/mailman/listinfo/r-sig-mac ___ R-SIG-Mac mailing list R-SIG-Mac@r-project.org https://stat.ethz.ch/mailman/listinfo/r-sig-mac
Re: [R-SIG-Mac] R , RCPP unsing MACOS ventura
If that is the case, can you actually post what the issue is? The original post had no details and did not follow up when asked for details. When googling the issue seems to arise in Homebrew, not the Apple tools so as I noted removing Homebrew should work. Cheers, Simon > On 15/03/2023, at 12:52 AM, Michael Hall wrote: > > > >> On Mar 14, 2023, at 6:00 AM, r-sig-mac-requ...@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… > : error: unknown value ‘13.2.0’ of ‘-mmacosx-version-min’ > > > > > [[alternative HTML version deleted]] > > ___ > R-SIG-Mac mailing list > R-SIG-Mac@r-project.org > https://stat.ethz.ch/mailman/listinfo/r-sig-mac > ___ R-SIG-Mac mailing list R-SIG-Mac@r-project.org https://stat.ethz.ch/mailman/listinfo/r-sig-mac
Re: [R-SIG-Mac] R , RCPP unsing MACOS ventura
First off apologies for the horrible quoting from me, I have been forced to move from Mail.app to Outlook and nothing works as it should. I understand the XCode tool are needed to install homebrew, but after that they are not the focus � my R makevars calls the gcc I installed with homebrew, not the one supplied by XCode (which does not have fortran, hence my use of the Homebrew gcc). Federico Calboli Tutkija Genomiikka ja jalostus Luonnonvarakeskus > > I actually do not use Rcpp, I was just curious to know whether it works on my > machine or not. Apparently it does. > Me either. Fwiw. xcode-select --version xcode-select version 2396. Also Ventura 13.2.1 > library(Rcpp) > evalCpp( "1+1") [1] 2 ::sprintf(buff, "%02x", from); ^ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/stdio.h:188:1: note: 'sprintf' has been explicitly marked deprecated here __deprecated_msg("This function is provided for compatibility reasons only. Due to security concerns inherent in the design of sprintf(3), it is highly recommended that you use snprintf(3) instead.") ^ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/sys/cdefs.h:215:48: note: expanded from macro '__deprecated_msg' #define __deprecated_msg(_msg) __attribute__((__deprecated__(_msg))) ^ 1 warning generated. > ___ R-SIG-Mac mailing list R-SIG-Mac@r-project.org https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fstat.ethz.ch%2Fmailman%2Flistinfo%2Fr-sig-mac=05%7C01%7Cfederico.calboli%40luke.fi%7C8e5586946cd54b94cd7808db24ade8a1%7C7c14dfa4c0fc47259f0476a443deb095%7C0%7C0%7C638144101597319575%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C=5l9Xe5xlggU4O3UJwRpIt62sbdZJMmsRoRnkufM2MzY%3D=0 [[alternative HTML version deleted]] ___ R-SIG-Mac mailing list R-SIG-Mac@r-project.org https://stat.ethz.ch/mailman/listinfo/r-sig-mac
Re: [R-SIG-Mac] R , RCPP unsing MACOS ventura
> > I actually do not use Rcpp, I was just curious to know whether it works on my > machine or not. Apparently it does. > Me either. Fwiw. xcode-select --version xcode-select version 2396. Also Ventura 13.2.1 > library(Rcpp) > evalCpp( "1+1") [1] 2 ::sprintf(buff, "%02x", from); ^ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/stdio.h:188:1: note: 'sprintf' has been explicitly marked deprecated here __deprecated_msg("This function is provided for compatibility reasons only. Due to security concerns inherent in the design of sprintf(3), it is highly recommended that you use snprintf(3) instead.") ^ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/sys/cdefs.h:215:48: note: expanded from macro '__deprecated_msg' #define __deprecated_msg(_msg) __attribute__((__deprecated__(_msg))) ^ 1 warning generated. > ___ R-SIG-Mac mailing list R-SIG-Mac@r-project.org https://stat.ethz.ch/mailman/listinfo/r-sig-mac
Re: [R-SIG-Mac] R , RCPP unsing MACOS ventura
It sounds like it is worth a try. However, I�m not sure it�s clear your OS and other versions match the original posters? My bad, I�m on MacOS 13.2.1 arm64, with the latest XCode CLT Did you build for the same issue? I actually do not use Rcpp, I was just curious to know whether it works on my machine or not. Apparently it does. Federico Calboli Tutkija Genomiikka ja jalostus Luonnonvarakeskus [[alternative HTML version deleted]] ___ R-SIG-Mac mailing list R-SIG-Mac@r-project.org https://stat.ethz.ch/mailman/listinfo/r-sig-mac
Re: [R-SIG-Mac] R , RCPP unsing MACOS ventura
> On Mar 14, 2023, at 7:40 AM, Calboli Federico (LUKE) > wrote: > > I know that posting a makevars is somehow iffy, but I installed GCC with > homebrew and my > > ~/.R/Makevars > It sounds like it is worth a try. However, I’m not sure it’s clear your OS and other versions match the original posters? Did you build for the same issue? [[alternative HTML version deleted]] ___ R-SIG-Mac mailing list R-SIG-Mac@r-project.org https://stat.ethz.ch/mailman/listinfo/r-sig-mac
Re: [R-SIG-Mac] R , RCPP unsing MACOS ventura
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 on behalf of Michael Hall Date: Tuesday, 14. March 2023 at 13.52 To: r-sig-mac Subject: Re: [R-SIG-Mac] R , RCPP unsing MACOS ventura > On Mar 14, 2023, at 6:00 AM, r-sig-mac-requ...@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� : error: unknown value �13.2.0� of �-mmacosx-version-min� [[alternative HTML version deleted]] ___ R-SIG-Mac mailing list R-SIG-Mac@r-project.org https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fstat.ethz.ch%2Fmailman%2Flistinfo%2Fr-sig-mac=05%7C01%7Cfederico.calboli%40luke.fi%7C75b8009fdd674305fe6e08db2482a20b%7C7c14dfa4c0fc47259f0476a443deb095%7C0%7C0%7C638143915704206799%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C=Qmk8swZn4qLly5xUijaWduaiS4veju3YLhclw95pH7U%3D=0 [[alternative HTML version deleted]] ___ R-SIG-Mac mailing list R-SIG-Mac@r-project.org https://stat.ethz.ch/mailman/listinfo/r-sig-mac
Re: [R-SIG-Mac] R , RCPP unsing MACOS ventura
> On Mar 14, 2023, at 6:00 AM, r-sig-mac-requ...@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… : error: unknown value ‘13.2.0’ of ‘-mmacosx-version-min’ [[alternative HTML version deleted]] ___ R-SIG-Mac mailing list R-SIG-Mac@r-project.org https://stat.ethz.ch/mailman/listinfo/r-sig-mac
Re: [R-SIG-Mac] R , RCPP unsing MACOS ventura
Andrea, Make sure you don't have any outdated tools or flags overrides (e.g. in ~/.R). If it doubt clean /usr/local and uninstall Homebrew. The error suggests your are using compilers that don't support your system. If you cleaned out those and still needs help, please post the full output of the installation and provide full sessionInfo() output. Cheers, Simon > On Mar 14, 2023, at 7:26 AM, Andrea Apolloni wrote: > > Dear all I had the bad idea , > 3 weeks ago to install the new Mac OS Ventura 13.2.0 on my laptop > I've instlalled the latest version of XCode (14.2) and CommandLine Tools > > Since then I can not use RCPP, Nimble and Rstan on my laptop > typical errror > Error: Failed to create the shared library. Run 'printErrors()' to see the > compilation errors. > > and using printErrors() > > : error: unknown value ‘13.2.0’ of ‘-mmacosx-version-min’ > make: *** [dynamicRegistrations_03_13_19_21_32.o] Error 1 > > version of R 4.2.2 > Thanks in advance for all your help > > [[alternative HTML version deleted]] > > ___ > R-SIG-Mac mailing list > R-SIG-Mac@r-project.org > https://stat.ethz.ch/mailman/listinfo/r-sig-mac > ___ R-SIG-Mac mailing list R-SIG-Mac@r-project.org https://stat.ethz.ch/mailman/listinfo/r-sig-mac