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