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

c2hs fails on MacOS #6

Open
kolmodin opened this issue Jan 18, 2017 · 0 comments
Open

c2hs fails on MacOS #6

kolmodin opened this issue Jan 18, 2017 · 0 comments

Comments

@kolmodin
Copy link
Member

c2hs fails with errors like this;

Building grpc-0.1.0.0...
Preprocessing library grpc-0.1.0.0...
c2hs: C header contains errors:

/usr/include/time.h:153: (column 72) [ERROR]  >>> Syntax error !
  The symbol `__attribute__' does not fit here.

It's due to that c2hs fails to parse the C headers. We need something like this in the .cabal file, or add a new header file;

+  cpp-options:
+    -D__attribute__(x)=
+    -Drestrict=
+    -D__qos_class=
+    -D__relative_priority=
+    -D_Nullable=
+    -D_Nonnull=
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

1 participant