haskell / c2hs

c2hs is a pre-processor for Haskell FFI bindings to C libraries
http://hackage.haskell.org/package/c2hs
Other
197 stars 50 forks source link

Lifts upper bound on language-c #261

Closed jkachmar closed 3 years ago

jkachmar commented 3 years ago

Closes https://github.com/commercialhaskell/stackage/issues/5633.

I've tested this out locally and the test suite seems to be failing with the following error:

TST 3: testing
  Issue #102: [Failed]
ERROR:
Ran commands:
cd /Users/jkachmar/src/c2hs/tests/bugs/issue-102
rm -f /Users/jkachmar/src/c2hs/tests/bugs/issue-102/Issue102.hs
rm -f /Users/jkachmar/src/c2hs/tests/bugs/issue-102/Issue102.chs.h
rm -f /Users/jkachmar/src/c2hs/tests/bugs/issue-102/Issue102.chi
rm -f /Users/jkachmar/src/c2hs/tests/bugs/issue-102/issue102_c.o
rm -f /Users/jkachmar/src/c2hs/tests/bugs/issue-102/Issue102
c2hs Issue102.chs
which c2hs
ghc -Wall -Werror --make Issue102.hs
which ghc
/Users/jkachmar/src/c2hs/tests/bugs/issue-102/./Issue102
which /Users/jkachmar/src/c2hs/tests/bugs/issue-102/./Issue102

Exception: error running: /Users/jkachmar/src/c2hs/tests/bugs/issue-102/./Issue102
exit status: 1
stderr: Issue102: FCntlLockState.toEnum: Cannot match 0
CallStack (from HasCallStack):
  error, called at Issue102.chs:54:22 in main:Main

         Test Cases   Total
 Passed  65           65
 Failed  1            1
 Total   66           66
Test suite test-bugs: FAIL

...I'll try to debug whatever is going on to the best of my knowledge, so consider this PR a WIP for the time being.

aktowns commented 3 years ago

Just testing this out as bumping the version of language-c would fix https://github.com/haskell/c2hs/issues/268, the test suite is passing locally for me against language-c 0.9.0.1

felixonmars commented 3 years ago

Just testing this out as bumping the version of language-c would fix #268, the test suite is passing locally for me against language-c 0.9.1

I can confirm that the tests are passing for language-c 0.9.0.1 now. (Assuming you mean this version instead, as I didn't find language-c 0.9.1 anywhere.)

aktowns commented 3 years ago

Assuming you mean this version instead, as I didn't find language-c 0.9.1 anywhere.

Oops! yep :smile:

jkachmar commented 3 years ago

@deech is there anything else to be done here?

juhp commented 3 years ago

Any chance of a new release?

deech commented 3 years ago

Done. https://hackage.haskell.org/package/c2hs-0.28.8