Primitive not found std@process_run:2

39 views
Skip to first unread message

Antoine Terrienne

unread,
Aug 12, 2014, 10:48:43 AM8/12/14
to haxe...@googlegroups.com
Hi all,

I get this error on Linux when trying to start a new process.
I found another thread with this error, the problem was a 32bit/64bits mismatch between haxe and neko. For my case everything is 64 bits:

file /usr/lib/libneko.so.0.1
/usr/lib/libneko.so.0.1: ELF 64-bit LSB shared object, x86-64, version 1 (SYSV), dynamically linked, BuildID[sha1]=628179b77b45a8a8eec12850ca71b117de1df57a, stripped

file /usr/bin/neko
/usr/bin/neko: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.32, BuildID[sha1]=2ee575c81e53118b7fcf726194952ccb3408667e, stripped

file /home/antoine/haxe/haxelib
/home/antoine/haxe/haxelib: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.24, BuildID[sha1]=9f340656a456327cddbb35af9addf10b115c4073, stripped

Anybody have and idea what can cause this ?

Using Debian testing.
Haxe 3.1.3

Thanks.

Hugh

unread,
Aug 13, 2014, 12:37:15 AM8/13/14
to haxe...@googlegroups.com

Is there an error missing? or is the "file .." stuff part of the error?

You can try setting the environment variable "LD_DEBUG=files" to get some more info about what might be failing.

Hugh

Antoine Terrienne

unread,
Aug 13, 2014, 9:31:32 AM8/13/14
to haxe...@googlegroups.com
The error message was only "Primitive not found std@process_run:2", I added the file stuff just to show I really had the 64bits binaries installed on my computer.

I set the LD_DEBUG=files and magic! the actual problem is "/usr/lib/neko/std.ndll: error: symbol lookup error: undefined symbol: neko_k_hash (fatal)"

Looks like a version mismatch. I have neko 2.0.0 installed from the debian packages (testing) and Haxe 3.1.3 installed from the Haxe.org binary distribution. Seems neko 2.0.0 is the latest though.

Where can I check the required version of neko for my version of Haxe?
I'm going to try using nekovm.org binary distribution, in case debian compiled neko with some weird options.

Thanks for the answer Hugh

Antoine Terrienne

unread,
Aug 13, 2014, 11:15:21 AM8/13/14
to haxe...@googlegroups.com
Ok confirmed the neko binaries from Debian testing aren't compatible with the Haxe.org binary distribution.

Here's how I fixed my issue:
- get neko binary distribution from http://nekovm.org/download, and put it under $HOME/neko
- get haxe binary distribution from http://haxe.org/download/, and put it under $HOME/haxe
- set the proper variables to point to our install (i recommend you make yourself a script to set those):
export PATH=${PATH}:${HOME}/haxe:${HOME}/neko
export LD_LIBRARY_PATH=${HOME}/neko
export NEKOPATH=${HOME}/neko
export HAXE_STD_PATH=${HOME}/haxe/std:.

That solved the "Primitive not found std@process_run:2" issue.
I stumbled on another problem, but this one is on HaxePunk side, so that's another subject.

Thanks for the help
Reply all
Reply to author
Forward
0 new messages