Open XVilka opened 6 years ago
You can build by just skipping the header --cppopts=-D_BITS_FLOATN_H
. At least there's a workaround since 6+ months later c2hs is still broken :(
This is the latest bug to show this error so I'm putting this here. (also mentioned in #192 and #191) I have pushed a commit with a potential fix in language_c
. It could use some testing as I don't have as easy a way to replicate this as everyone else seems to.
Commit a7574997997752d98266d45c48ba21d801d8c77b at github/krakrjak/language-c is a straightforward diff, it builds here and needs some wider testing.
I'm not sure why but switching to GCC 7 on Gentoo resolved this issue for me, like it's described in https://bugs.gentoo.org/644200
Thanks @qrilka . This worked for me: stack install alsa-mixer --with-gcc /usr/bin/gcc-7
Was this fixed? Seems not reproducible anymore.
If you are using gcc-7 then this issue is 100% fixed. Potentially there is still an issue for pre-gcc-7 version (maybe), but we haven't seen reports of this issue when using gcc<7 in over a year.
When compiling alsa-mixer Haskell library met this problem:
Lines that cause it:
Attaching full header here floatn.h.zip
Gentoo bug https://bugs.gentoo.org/644200