lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


Hello,

Not using LuaJIT/ffi myself I can't pinpoint what's wrong out of my head, but I believe that what I said previously in the thread you mentioned must apply to some extent.
I'll try to find some time to check it out.

2012/4/24 Schmottlach, Glenn <Glenn.Schmottlach@xs-embedded.com>

I'm having difficulty using LuaLanes (v.3.1.0 tag) with LuaJIT 2.0.0-beta9 on an ARM platform. LuaJIT runs fine but if I have a simple program that does the following:

local lanes = require "lanes"
lanes.configure()

I get the following error:


XSe Logo

XS Embedded LLC
28850 Cabot Drive, Suite 1000
Novi, MI 48377
USA

Phone +1 (248) 209 - 6611
Fax +1 (248) 281 - 7020

www.xs-embedded.com
Glenn.Schmottlach@xs-embedded.com

:::::::::: based.on.visions ::::::::::

XS Embedded LLC
Managing Director: Joachim Kobinger

Confidentiality Notice: This e-mail message, including any attachments, is for the sole use of the intended recipient(s) and may contain confidential and privileged information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by return e-mail and destroy all copies of the original message.

function package.preload.ffi not found in destination transfer database.

This seems like it may be related to the issue reported here:

http://lua-users.org/lists/lua-l/2011-11/msg00554.html

I know LuaJIT has a couple of "builtin" modules, notably the 'ffi' module for foreign function interface support. I assume this is being loaded by the LuaJIT VM before the above code has a chance to execute. Reading later postings it seems that some people have been able to use LuaLanes with LuaJIT2. Can anyone verify that LuaLanes indeed works with LuaJIT2? Can someone explain to me why I'm getting the above error and if there is any work-around that I can apply?

If there isn't a work-around, are there any Lua threading libraries that are known to work with LuaJIT?

Thanks . . .




--
Benoit.