grpc / grpc/grpc-haskell

c2hs fails on MacOS

Open
#6 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Haskell
Stars
156
Forks
15
PR merge metrics
No merged PRs in 30d

Description

`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;

```diff
+ cpp-options:
+ -D__attribute__(x)=
+ -Drestrict=
+ -D__qos_class=
+ -D__relative_priority=
+ -D_Nullable=
+ -D_Nonnull=
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.