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

Mac make #69

Open
kangkang333 opened this issue May 29, 2022 · 1 comment
Open

Mac make #69

kangkang333 opened this issue May 29, 2022 · 1 comment

Comments

@kangkang333
Copy link

In file included from
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/cstddef:37:
../version:1:1: error: expected unqualified-id
1.0.0

@dkxiaohei
Copy link

The reason for this problem is probably as follows:

  1. the current directory (openabe/) is added to the library include path;
  2. the openabe project has itself a 'VERSION' file;
  3. the filename on macOS is case insensitive.

Thus, to address this problem, you can either rename the 'VERSION' file (in the openabe project) or just delete it.


If the project still cannot make successfully after applying the above solution, then you need to check whether there is a 'version' file under the '/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/' directory. If not, you can try either of the following ways:

  1. edit 'Makefile.common' and 'src/Makefile', and change 'gcc' to 'cc' or 'clang'
  2. update 'gcc', and make sure its '--with-gxx-include-dir' configuration is like '/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++'

Good luck~

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