6

I am currently on Mac OSX Big Sur 11.2.3. Whenever I run the command:

g++-10 -o project0 project0.cpp -lm -fopenmp

I get the following error:

clang: error: invalid version number in '-mmacosx-version-min=11.2'

I realized that this may be due to the fact that I'm on Big Sur 11.2.3 but I was told that this should not be an issue. I've tried many things already such as reinstalling gcc doing brew install gcc and so forth to no avail. At this point, I'm very unsure on what to do. Any help would be very much appreciated!

Crypto Batman
  • 830
  • 11
  • 31
  • 1
    Does this answer your question? [Big Sur clang "invalid version" error due to MACOSX\_DEPLOYMENT\_TARGET](https://stackoverflow.com/questions/63972113/big-sur-clang-invalid-version-error-due-to-macosx-deployment-target) – Hovercraft Full Of Eels Oct 22 '21 at 14:21
  • 1
    I used this answer and it worked: https://stackoverflow.com/a/65094410 – Tamer Sharno Dec 31 '21 at 10:14

1 Answers1

0

I ran into the same problem while trying to install fiona. You are correct it is due to Big Sur, as you can see in this article

Follow it and it should sort out the issue. Note, I had to uninstall Command Line tools and re-install it as outlined in this answer.