haskell / haskell/c2hs

GCC-7.0 specific _Float128 type - cannot recognize

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

Description

When compiling alsa-mixer Haskell library met this problem:
```
Building alsa-mixer-0.2.0.3...
Preprocessing library alsa-mixer-0.2.0.3...
c2hs: C header contains errors:

/usr/include/bits/floatn.h:73: (column 29) [ERROR] >>> Syntax error !
The symbol `;' does not fit here.
```
Lines that cause it:
```c
/* The remaining of this file provides support for older compilers. */
#if __HAVE_FLOAT128

/* The type _Float128 exists only since GCC 7.0. */
# if !__GNUC_PREREQ (7, 0) || defined __cplusplus
typedef __float128 _Float128;
# endif
```
Attaching full header here
[floatn.h.zip](https://github.com/haskell/c2hs/files/1628012/floatn.h.zip)

Gentoo bug https://bugs.gentoo.org/644200

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.