<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<p>Hi all,<br>
<br>
I recently ran into some troubles cross-compiling <tt>hslua</tt>
for Raspberry Pi, viz.<br>
</p>
<pre><code>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</code></pre>
<div class="moz-signature">Any hints as to what's failing? Is this
something wrong with hslua, hsc2hs, or cabal? And how would I go
about fixing it?<br>
</div>
<div class="moz-signature"><br>
Cheers,<br>
Vanessa McHale<br>
<span
style="color:#444;font-family:Helvetica,Arial;font-size:77%;"></span></div>
</body>
</html>