mkloczko / derive-storable-plugin

MIT License
11 stars 4 forks source link

Test failure on GHC 9.6.1 #13

Open dmjio opened 1 year ago

dmjio commented 1 year ago

Trying to use derive-storable-plugin w/ derive-storable and getting

Preprocessing test suite 'c_alignment' for derive-storable-plugin-0.2.3.7..
Building test suite 'c_alignment' for derive-storable-plugin-0.2.3.7..
[1 of 2] Compiling TestCases        ( test/Basic/TestCases.hs, dist/build/c_alignment/c_alignment-tmp/TestCases.o )
GStorable instances will be optimised in the following order
    1: C0, C1, C3, C4, C6, C12, C17, C18
    2: C19, C13, C7, C5, C2
    3: C8, C9, C14, C20
    4: C15, C10
    5: C11, C16

Errors while grouping bindings: 
    Could not find any bindings.
    Is the second pass placed after main simplifier phases ?

<no location info>: error:
    Crashing...
CallStack (from HasCallStack):
  error, called at src/Foreign/Storable/Generic/Plugin/Internal.hs:213:23 in derive-storable-plugin-0.2.3.7-6juL7OQ24EDAjGv5JqWUrE:Foreign.Storable.Generic.Plugin.Internal
mkloczko commented 1 year ago

Thanks for reaching out. I have tried to build it on my machine with GHC 9.6.1 from ghcup and it works. Do you by any chance work on macOS? If yes then I will try to setup a VM to check this.

dmjio commented 1 year ago

Yea I’m on OSX

apkhandkar commented 1 year ago

Hello, I'm on x86_64 Linux, GHC 9.6.1 and I'm getting the same error: image (4)

mkloczko commented 1 year ago

Could you tell me what compiler flags are you using, or potentially the project this fails to build on? Does it work on other GHC versions, especially GHC 9.6.2? So far managed to run it on OSX too.