Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

exec format error: nekotools #131

Closed
xyproto opened this issue May 14, 2016 · 5 comments
Closed

exec format error: nekotools #131

xyproto opened this issue May 14, 2016 · 5 comments

Comments

@xyproto
Copy link
Contributor

xyproto commented May 14, 2016

Hi,

I'm trying to pakage neko 2.1.0 for Arch Linux.

Using CMake works great (thanks for switching over!), but when running the resulting binaries, there are issues:

% nekoml
zsh: exec format error: nekoml

% strace nekoml
execve("/usr/bin/nekoml", ["nekoml"], [/* 76 vars */]) = -1 ENOEXEC (Exec format error)
write(2, "strace: exec: Exec format error\n", 32strace: exec: Exec format error
) = 32
exit_group(1)                           = ?
+++ exited with 1 +++

This happens for nekoc, nekoml and nekotools, but not neko.

I'm using the default CMake definitions, except from the usual -DCMAKE_INSTALL_PREFIX=/usr and -DCMAKE_INSTALL_LIBDIR=lib.

Here is the complete PKGBUILD file.

I'm on 64-bit Arch Linux.

@andyli
Copy link
Member

andyli commented May 14, 2016

nekoc, nekoml and nekotools are built using nekotools boot, which concatenates the neko binary with some neko bytecode. It then try to "fix" the ELF headers with clever tricks and maybe that causes the issue.

Would you try apply a8c71ad (as a patch)? It builds nekoc, nekoml and nekotools using C instead of messing with the binary format.

More details: #130

@xyproto
Copy link
Contributor Author

xyproto commented May 16, 2016

Will try the patch, thanks!

@andyli
Copy link
Member

andyli commented May 17, 2016

Oh, I think you will need to apply fe87462 as well. Please let me know if there is still other problems.

@andyli
Copy link
Member

andyli commented Oct 27, 2016

Closing since I can see neko 2.1 is available at https://www.archlinux.org/packages/?sort=&q=neko&maintainer=&flagged=
Thanks, xyproto!

@andyli andyli closed this as completed Oct 27, 2016
@xyproto
Copy link
Contributor Author

xyproto commented Oct 27, 2016

Sorry for not coming back to you when I got it working, I forgot.

Everything seems to work fine when only passing -DRUN_LDCONFIG=OFF to CMake.

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants