kmcallister / hdis86

Haskell interface to the udis86 disassembler for x86 and x86-64 / AMD64
http://hackage.haskell.org/package/hdis86
Other
14 stars 2 forks source link

Not in scope: `unsafeForeignPtrToPtr' #1

Open remco138 opened 10 years ago

remco138 commented 10 years ago

After switching to the new Haskell Platform (2014) Hdis86 does not compile properly anymore. My guess is that some refactoring in the Haskell codebase broke compatibility, but I'm unsure since I am still very new to Haskell. Details below:

Windows 7 Clean installation of the Haskell Platform (2014)

c:\projects>cabal install hdis86 Resolving dependencies... Configuring hdis86-0.2... Building hdis86-0.2... Preprocessing library hdis86-0.2... [1 of 8] Compiling Hdis86.C ( dist\build\Hdis86\C.hs, dist\build\Hdis86\C.o ) [2 of 8] Compiling Hdis86.Internal.Opcode ( Hdis86\Internal\Opcode.hs, dist\build\Hdis86\Internal\Opcode.o ) [3 of 8] Compiling Hdis86.Types ( Hdis86\Types.hs, dist\build\Hdis86\Types.o ) [4 of 8] Compiling Hdis86.Internal.Map ( Hdis86\Internal\Map.hs, dist\build\Hdis86\Internal\Map.o ) [5 of 8] Compiling Hdis86.IO ( Hdis86\IO.hs, dist\build\Hdis86\IO.o )

Hdis86\IO.hs:197:6: Not in scope: `unsafeForeignPtrToPtr' Failed to install hdis86-0.2 cabal: Error: some packages failed to install: hdis86-0.2 failed during the building phase. The exception was: ExitFailure 1

sgraf812 commented 10 years ago

I second that.

divipp commented 9 years ago

I also use hdis86 (thanks for making this possible) and I also bumped into this error. It would be nice to have a new release of hdis86 at hackage.haskell.org with this issue fixed.