<p></p>
<blockquote>
<p>It works on Lua 5.1.4 (LuaJIT 2.1.0-beta3), possibly they have backported some features from 5.2. Can you try with 5.2 or LuaJIT instead?</p>
</blockquote>
<p>i tried luajit w/ lua52compat enabled, but since their header files are in /usr/include/luajit-2.0 it still failes. But at least luaL_traceback is supported:</p>
<pre><code># fgrep -rn luaL_traceback /usr/include/luajit-2.0/
/usr/include/luajit-2.0/lauxlib.h:85:LUALIB_API void luaL_traceback (lua_State *L, lua_State *L1, const char *msg,
</code></pre>
<blockquote>
<p>Seems like we need to add an #ifdef in luaX_pcall and fallback to the old behaviour if Lua is too old.</p>
<p><a href="http://lua.2524044.n2.nabble.com/Traceback-from-C-td7655196.html" rel="nofollow">http://lua.2524044.n2.nabble.com/Traceback-from-C-td7655196.html</a> has some hints how to implement this feature for 5.1. As this isn't part of our unit tests, I'm very reluctant to implement it here, and would rather disable stack traces for 5.1. Also, our installation instructions assume Lua 5.2 everywhere (or LuaJIT).</p>
</blockquote>
<p>What about a checking for sufficient lua version (and throwing an error) before starting the compiler?</p>
<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/openstreetmap/osm2pgsql/issues/1151#issuecomment-623911554">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AA6353U74SM45E4BLUJJXG3RP7A6ZANCNFSM4MYJEVPA">unsubscribe</a>.<img src="https://github.com/notifications/beacon/AA6353WKSUO2UEEAOVTJBUDRP7A6ZA5CNFSM4MYJEVPKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEUYCFAQ.gif" height="1" width="1" alt="" /></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/openstreetmap/osm2pgsql/issues/1151#issuecomment-623911554",
"url": "https://github.com/openstreetmap/osm2pgsql/issues/1151#issuecomment-623911554",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>