Upgrading to NME 3.4 and Haxe 2.10 with the installer on 64-bit Linux

Hello, I have had some complications upgrading via the installer. First, it installs the 32-bit neko. So I had to go out and download neko, replacing everything in /usr/lib/neko. Then I received a similar issue with haxelib, so I had to recompile…

Viewing 1 to 9 (9 Total)
Upgrading to NME 3.4 and Haxe 2.10 with the installer on 64-bit Linux

jamiltron

jamiltron
Total Posts: 4
Joined: July 18, 2012

Hello,

I have had some complications upgrading via the installer.

First, it installs the 32-bit neko. So I had to go out and download neko, replacing everything in /usr/lib/neko.

Then I received a similar issue with haxelib, so I had to recompile that and replace it in usr/lib/haxe

After doing all that when I try running "haxelib run nme setup linux" I get the following error:


Called from neash/utils/ByteArray.hx line 78
Called from neash/Loader.hx line 103
Called from neash/Loader.hx line 113
Called from neash/Loader.hx line 67
Called from /usr/lib/haxe/std/neko/Lib.hx line 33
Uncaught exception - load.c(232) : Failed to load library : /usr/lib/haxe/lib/nme/3,4,0/ndll/Linux64/nme.ndll (/lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.14' not found (required by /usr/lib/haxe/lib/nme/3,4,0/ndll/Linux64/nme.ndll))

Any help? Thank you!

Tags:
Posted on July 18, 2012 at 10:24 PM

singmajesty

singmajesty
Total Posts: 2147
Joined: August 25, 2011

Re: Upgrading to NME 3.4 and Haxe 2.10 with the installer on 64-bit Linux

I used to compile the Linux binary against Ubuntu 11.04, but this time I compiled using Ubuntu 12.04.

It looks like this may be caused by a newer version of GCC (or perhaps you have the newer install?)

What happens when you run "uname -m" in a terminal? The installer should have detected you were running a 64-bit system... I'm curious what your system reports.

It is pretty easy to work from the source from NME. I just outlined the steps here:

http://www.haxenme.org/community/forums/bugs/nme-3.4.0-on-fedora-17...

...otherwise, I may be able to use an older version to compile the binary, if that would help

Posted on July 19, 2012 at 10:04 AM

jamiltron

jamiltron
Total Posts: 4
Joined: July 18, 2012

Re: Upgrading to NME 3.4 and Haxe 2.10 with the installer on 64-bit Linux

uname -m says x86_64

I'll start from the beginning if that helps anymore:

I download and untar the linux installer.

I run "sudo ./nme-installer"

It downloads Haxe 2.10 and Neko 1.8.2

After it gets done checking for ia32-libs I get the following error:

Uncaught exception - load.c(232) : Failed to load library : /usr/lib/neko/std.ndll (/lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.14' not found (required by /usr/lib/neko/std.ndll))
Error : Neko compilation failure
cp: cannot stat `haxelib': No such file or directory
rm: cannot remove `index.n': No such file or directory
rm: cannot remove `haxelib.n': No such file or directory
rm: cannot remove `haxelib': No such file or directory
Uncaught exception - load.c(232) : Failed to load library : /usr/lib/neko/std.ndll (/lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.14' not found (required by /usr/lib/neko/std.ndll))
Error : Neko compilation failure
cp: cannot stat `haxedoc': No such file or directory
rm: cannot remove `haxedoc.n': No such file or directory
rm: cannot remove `haxedoc': No such file or directory
haxelib: error while loading shared libraries: libneko.so: wrong ELF class: ELFCLASS64

I may try building from source.

Posted on July 19, 2012 at 7:56 PM

jamiltron

jamiltron
Total Posts: 4
Joined: July 18, 2012

Re: Upgrading to NME 3.4 and Haxe 2.10 with the installer on 64-bit Linux

So I download Haxe 2.10, download Neko VM 1.8.2 x86_64, recompile haxelib, follow your instructions at:

http://www.haxenme.org/community/forums/bugs/nme-3.4.0-on-fedora-17...

and once I get past "sudo haxelib run nme rebuild linux" I try to run "sudo haxelib run nme" and get the following error:

Called from neko/tls/Socket.hx line 158
Called from neko/tls/Loader.hx line 9
Called from /usr/lib/haxe/std/neko/Lib.hx line 33
Uncaught exception - load.c(232) : Failed to load library : /home/jamiltron/opt/NME/ndll/Linux/tls.ndll (/home/jamiltron/opt/NME/ndll/Linux/tls.ndll: wrong ELF class: ELFCLASS32)

Posted on July 19, 2012 at 8:54 PM

jamiltron

jamiltron
Total Posts: 4
Joined: July 18, 2012

Re: Upgrading to NME 3.4 and Haxe 2.10 with the installer on 64-bit Linux

I ended up backing up NME/ndll/Linux/tls.ndll and then replaced that file with NME/ndll/Linux64/tls.ndll

But why was it looking there in the first place instead of in ..,/Linux64 ?

Posted on July 20, 2012 at 6:09 PM

aaulia

aaulia
Total Posts: 48
Joined: November 07, 2011

Re: Upgrading to NME 3.4 and Haxe 2.10 with the installer on 64-bit Linux

There has been a slight changes in Neko for 64bit, the one in the official website is not yet updated CMIIW. So your best bet is to build Neko yourself with the 64bit flag turned on (I forgot which one, but just open the makefile, you can't miss it), so it will look for the ndlls in the /Linux64/. You don't have to rebuild all of it, just the std.ndll IIRC. I hope this whole 32/64 bit thing should be resolved soon (maybe in the next minor/major version).

Posted on July 22, 2012 at 9:59 PM

Fractalist

Fractalist
Total Posts: 1
Joined: July 24, 2012

Re: Upgrading to NME 3.4 and Haxe 2.10 with the installer on 64-bit Linux

I'm also receiving a similar error when installing the current HaxeNME. I get an error:

Called from neko/tls/Socket.hx line 158
Called from neko/tls/Loader.hx line 9
Called from /usr/lib/haxe/std/neko/Lib.hx line 33
Uncaught exception - load.c(232) : Failed to load library : /usr/lib/haxe/lib/nme/3,4,0/ndll/Linux64/tls.ndll (/usr/lib/haxe/lib/nme/3,4,0/ndll/Linux64/tls.ndll: wrong ELF class: ELFCLASS64)


just by simply running
haxelib run nme setup linux
and I'm running Ubuntu 12.04 32-bit version. I've received no errors running the install script.

Posted on July 24, 2012 at 3:03 AM

Tynril

Tynril
Total Posts: 1
Joined: July 25, 2012

Re: Upgrading to NME 3.4 and Haxe 2.10 with the installer on 64-bit Linux

I have sent a push request to Joshua on Github regarding that issue:http://github.com/jgranick/NME/pull/7...

In the meantime, it can be fixed by setting the execution permission to precompiled binaries inside the "ndll" folder of your NME installation.

On Linux and Mac (and Windows with Cygwin):
- Go to the the installation folder of NME (you can get the path by running `haxelib path nme`)
- Run `chmod -R 755 ndll`
- You're all set

On Windows 7:
- Get to the installation folder of NME (you can get the path by running `haxelib path nme` in a console)
- Right-click on the "ndll" subfolder, select "Properties", and get to the "Security" tab
- Ensure that the "Read & execute" permission is set to "Allow" for "Everyone"
- Click on the "Advanced" button on the bottom-right corner of that screen
- Click on the "Change Permissions..." button on the next screen
- Check the "Replace all child object permissions with inheritable permissions from this object" checkbox on the next screen
- Close all three opened screens by clicking "OK"
- You're all set

I hope this will help!

Posted on July 26, 2012 at 3:10 PM

singmajesty

singmajesty
Total Posts: 2147
Joined: August 25, 2011

Re: Upgrading to NME 3.4 and Haxe 2.10 with the installer on 64-bit Linux

Thanks for your help!

I merged your request a few hours ago smiling

Posted on July 27, 2012 at 6:46 AM