c2hs icon indicating copy to clipboard operation
c2hs copied to clipboard

Has issue #7 come back?

Open dpreed opened this issue 5 years ago • 4 comments

I built C2HS using GHC 8.6.3 on my Fedora 29 system. When I ran the tests, in "test-bugs" issue 7 failed. I can't figure out why it fails - the issue was closed long ago. Is this expected behavior?

dpreed avatar Jan 15 '19 20:01 dpreed

I am unable to reproduce this. What version of gcc are you running?

deech avatar Jan 16 '19 22:01 deech

Here's the version of gcc.

gcc --version
gcc (GCC) 8.2.1 20181215 (Red Hat 8.2.1-6)
Copyright (C) 2018 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

And heres the part of the test log regarding Issue 7:

...
c2hs: Prelude.head: empty list
  Issue #7: [Failed]
ERROR: 
Ran commands: 
cd /home/david/c2hs/tests/bugs/issue-7
rm -f /home/david/c2hs/tests/bugs/issue-7/Issue7.hs
rm -f /home/david/c2hs/tests/bugs/issue-7/Issue7.chs.h
rm -f /home/david/c2hs/tests/bugs/issue-7/Issue7.chi
c2hs Issue7.chs
which c2hs

Exception: HUnitFailure (Just (SrcLoc {srcLocPackage = "main", srcLocModule = "Main", srcLocFile = "tests/test-bugs.hs", srcLocStartLine = 447, srcLocStartCol = 12, srcLocEndLine = 447, srcLocEndCol = 37})) (Reason "")

dpreed avatar Jan 17 '19 19:01 dpreed

That's pretty odd. Unfortunately I don't have a Fedora 29 distribution at my disposal so I'm unable to reproduce but I'll leave it open in case someone else does.

deech avatar Jan 18 '19 21:01 deech

I can poke at it a bit more.

-----Original Message----- From: "deech" [email protected] Sent: Friday, January 18, 2019 4:33pm To: "haskell/c2hs" [email protected] Cc: "David P. Reed" [email protected], "Author" [email protected] Subject: Re: [haskell/c2hs] Has issue #7 come back? (#231)

That's pretty odd. Unfortunately I don't have a Fedora 29 distribution at my disposal so I'm unable to reproduce but I'll leave it open in case someone else does. — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub , or mute the thread .)

dpreed avatar Jan 18 '19 23:01 dpreed