Skip to content
This repository has been archived by the owner on Jan 2, 2024. It is now read-only.

Compilation trouble on macOS #32

Closed
rsmmr opened this issue Apr 28, 2021 · 1 comment · Fixed by #33
Closed

Compilation trouble on macOS #32

rsmmr opened this issue Apr 28, 2021 · 1 comment · Fixed by #33
Assignees

Comments

@rsmmr
Copy link
Member

rsmmr commented Apr 28, 2021

There's a file naming conflict: system headers contain #include <version>, which can end up picking up our VERSION file on the Mac's case-insensitive file system.

I've started seeing that only recently, not sure what changed; but now I'm actually also getting it when doing zkg install spicy-plugin:

In file included from /Users/robin/.zkg/testing/spicy-plugin/clones/spicy-plugin/compiler/driver.cc:3:
In file included from /Users/robin/.zkg/testing/spicy-plugin/clones/spicy-plugin/compiler/driver.h:5:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk/usr/include/c++/v1/map:481:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk/usr/include/c++/v1/__tree:14:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk/usr/include/c++/v1/iterator:419:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk/usr/include/c++/v1/__functional_base:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk/usr/include/c++/v1/type_traits:417:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk/usr/include/c++/v1/cstddef:37:
/Users/robin/.zkg/testing/spicy-plugin/clones/spicy-plugin/version:1:1: error: expected unqualified-id
0.99.4
@rsmmr
Copy link
Member Author

rsmmr commented Apr 28, 2021

(I did upgrade to 11.3, but this started already before that)

@rsmmr rsmmr self-assigned this Apr 28, 2021
rsmmr added a commit that referenced this issue Apr 28, 2021
We call it `VERSION.dat` now to avoid a conflict on macOS where a system
header in called `version`.

Closes #32.
@rsmmr rsmmr closed this as completed in 1e254c9 Apr 28, 2021
rsmmr added a commit that referenced this issue Apr 28, 2021
* origin/topic/robin/gh-32-version:
  Rename VERSION file.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant