Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

clang: error: unsupported option '-fopenmp' #241

Closed
Steve-Koller opened this issue Dec 1, 2021 · 2 comments
Closed

clang: error: unsupported option '-fopenmp' #241

Steve-Koller opened this issue Dec 1, 2021 · 2 comments

Comments

@Steve-Koller
Copy link

Hi, I'm trying to install the latest version of fixest on Mac (aiming to run feols with an instrumental variable). I keep running into the below error message during install, and have spent 2+ hours trying command line approaches from threads on StackExchange without success. By any chance do you have any suggestions for how to overcome this error and install 0.10.1? If I find a solution in the meantime I will post in another comment below. Thank you!

devtools::install_github("lrberge/fixest")
Downloading GitHub repo lrberge/fixest@HEAD
✓  checking for file ‘/private/var/folders/1m/11lx175j7_953x41kstp2s9w0000gn/T/Rtmp6YLVJw/remotes37964e5bfe38/lrberge-fixest-6b478ea/DESCRIPTION’ (347ms)
─  preparing ‘fixest’: (640ms)
✓  checking DESCRIPTION meta-information
─  cleaning src
─  checking for LF line-endings in source and make files and shell scripts
─  checking for empty or unneeded directories
─  looking to see if a ‘data/datalist’ file should be added
─  building ‘fixest_0.10.2.tar.gz’
   
Installing package into ‘/Users/stevenkoller/Library/R/3.5/library’
(as ‘lib’ is unspecified)
* installing *source* package ‘fixest’ ...
** libs
clang++ -std=gnu++11 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG  -I"/Users/stevenkoller/Library/R/3.5/library/Rcpp/include" -I/usr/local/include  -fopenmp -DSTRICT_R_HEADERS -fPIC  -Wall -g -O2 -c RcppExports.cpp -o RcppExports.o
clang: error: unsupported option '-fopenmp'
make: *** [RcppExports.o] Error 1
ERROR: compilation failed for package ‘fixest’
* removing ‘/Users/stevenkoller/Library/R/3.5/library/fixest’
* restoring previous ‘/Users/stevenkoller/Library/R/3.5/library/fixest’
Warning message:
In i.p(...) :
  installation of package ‘/var/folders/1m/11lx175j7_953x41kstp2s9w0000gn/T//Rtmp6YLVJw/file379630058d78/fixest_0.10.2.tar.gz’ had non-zero exit status
@lrberge
Copy link
Owner

lrberge commented Dec 2, 2021

Hi Steve, I have no clue about Mac...
Have you looked at #63?
Oh, maybe you could upgrade R too and see if it works?

@Steve-Koller
Copy link
Author

Thank you, I'd previously followed some of the advice from #63, and just updated to R 4.1.2 and now it works! Not sure whether it was the R update alone or this coupled with command line changes from #63, but either way it's working now. Thank you again! Closing out.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants