[Haskell-cafe] Diagnosing build problems when cross-compiling hslua

Vanessa McHale vanessa.mchale at iohk.io
Tue Dec 18 16:39:12 UTC 2018


Hi all,

I recently ran into some troubles cross-compiling hslua for Raspberry
Pi, viz.

|cabal new-build --with-ghc arm-linux-gnueabihf-ghc --with-ghc-pkg
arm-linux-gnueabihf-ghc-pkg Build profile: -w ghc-8.6.3 -O1 In order,
the following will be built (use -v for more details): - hslua-1.0.1
(lib) (configuration changed) Configuring library for hslua-1.0.1..
Preprocessing library for hslua-1.0.1.. Types.hsc: In function
‘_hsc2hs_test1’: Types.hsc:59:12: error: ‘LUA_INTEGER’ undeclared (first
use in this function) Types.hsc:59:12: note: each undeclared identifier
is reported only once for each function it appears in Types.hsc:59:24:
error: expected ‘;’ before numeric constant compilation failed|

Any hints as to what's failing? Is this something wrong with hslua,
hsc2hs, or cabal? And how would I go about fixing it?

Cheers,
Vanessa McHale
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/haskell-cafe/attachments/20181218/537bb86a/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: OpenPGP digital signature
URL: <http://mail.haskell.org/pipermail/haskell-cafe/attachments/20181218/537bb86a/attachment.sig>


More information about the Haskell-Cafe mailing list