Open cblp opened 4 years ago
Similar: https://gitlab.haskell.org/haskell/ghcup-hs/-/jobs/389030#L1196
Configuring libarchive-2.2.5.0...
Preprocessing library for libarchive-2.2.5.0..
c2hs: C header contains errors:
/usr/include/bits/alltypes.h:71: (column 18) [ERROR] >>> Syntax error !
The symbol `_Alignas' does not fit here.
This is an issue with language-c
not being able to parse those constructs. I've been getting around them with something like this in my .cabal
file:
if os(darwin)
cc-options: -D_Alignas= -D__attribute__=
This is an issue with
language-c
not being able to parse those constructs. I've been getting around them with something like this in my.cabal
file:if os(darwin) cc-options: -D_Alignas= -D__attribute__=
Doesn't work here:
Because of similar issues, I consider it a c2hs bug.