-
-
Notifications
You must be signed in to change notification settings - Fork 658
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
haxe fails to build, depending on the path of libneko #6771
Comments
* master: (80 commits) lkl: Supports aarch64 wimlib: nitpicks gitAndTools.git-codeowners: 0.1.1 -> 0.1.2 wimlib: init at 1.12.0 kernel: improve modDirVersion error message releaseTools.sourceTarball: Clean up temporary files dotnetPackages.SmartIrc4net: rehash source migmix: make it a fixed-output derivation vm: Create /dev/full samba: 4.6.8 -> 4.6.11 to address CVEs CVE-2017-14746 & CVE-2017-15275 microcodeIntel: 20170707 -> 20171117 sshd: Remove ripemd160 MACs kernel config: Enable MEDIA_CONTROLLER linux: 4.4.99 -> 4.4.100 linux: 4.9.63 -> 4.9.64 nix-bash-completions: 0.4 -> 0.5 linux: 4.14 -> 4.14.1 linux: 4.13.14 -> 4.13.15 nix-zsh-completions: 0.3.3 -> 0.3.5 dns-root-data: use a stable URL that I maintain anyway ...
This may also be affected by the install prefix of Haxe since it changes whenever the prefix of Neko changes, but that would be truly surprising. |
I've seen a couple packages doing clumsy pattern matching in CFLAGS and similar strings, being affected by some substrings of these hashes that get in there in nixpkgs. |
Depending on the install prefix (probably), Neko itself fails to build with:
(when |
I don't have much idea about the build failure. I have just tried to reproduce that myself in a NixOS vm, but the build succeed. For the neko build failure,
I think this is caused by the way haxelib is built. It is a produced by combining the neko executable with a neko bytecode file, thus it is not really valid linux binary: HaxeFoundation/neko#130
This will produce a haxelib that is linked with libneko, instead of embedding the whole neko executable. This is what homebrew is doing: https://github.com/Homebrew/homebrew-core/blob/master/Formula/haxe.rb#L43-L49 |
Thank you! Building |
We have just updated |
One thing I'd like to know is: is it important that the default |
It was used by |
Argh, accidentally closed the issue. Let me know if there is any remaining issue and I will reopen. |
OK. A couple of rebuilds of haxe since our update of neko has all succeeded, but there is not enough of them to be certain, since such a short series of successes was also probable before the update. |
Here we are building Haxe 3.4.4 with Neko 2.1.0. The build sometimes fails with:
and when it fails, rebuilding Neko or Haxe does not help. Conversely when Haxe builds successfully, rebuilding Neko or Haxe does not make it fail. The minimal difference that fixes Haxe build is changing the path to Neko (by building and installing it with a different prefix). Here are two examples of paths to Neko that fail the build of Haxe:
The corresponding search path encoded into libneko.so in the latter case is:
Here is an example of a path that supports the build of Haxe:
The text was updated successfully, but these errors were encountered: