Conversation
|
@dipinhora, thanks for your PR! By analyzing the history of the files in this pull request, we identified @wizeman, @doublec and @dezgeg to be potential reviewers. |
There was a problem hiding this comment.
How about adding coreutils to testPhase PATH or add it to buildInputs?
There was a problem hiding this comment.
Adding coreutils to PATH or buildInputs doesn't help because _test.pony explicitly look for /bin/echo and /bin/cat.
I've updated the search string for the substituteInPlace to be rooted so that it will only match a /bin at the beginning of a path and not in the middle of the path.
Let me know if this still is too brittle or if you guys have any suggestions on how to handle this in a not so brittle manner.
There was a problem hiding this comment.
Forgot to mention, the source of the file being patched is at: https://github.com/ponylang/ponyc/blob/master/packages/process/_test.pony with references to /bin on lines 27, 32, 55, 62, 82, 88, 184, 190, 211, 216, 244 and 249.
ee021f6 to
da370a5
Compare
|
@LnL7 I just noticed you added the |
There was a problem hiding this comment.
Isn't that something that should go to the upstream?
There was a problem hiding this comment.
It's only used for testing on CI and CI has libraries in the standard unix locations. We need it because in nix the libraries (pcre2/crypto/ssl) are not in standard unix locations.
I'll see if I can get upstream to accept the change but this would still be needed for the current release. I'll update to a newer release and remove this logic from the nix expression at that time.
There was a problem hiding this comment.
👍 I was just wondering if it's something that can be useful not only in nix.
There was a problem hiding this comment.
name = "ponyc-${version}";
version = "0.5.0";
?
da370a5 to
65364e9
Compare
65364e9 to
66113fb
Compare
|
Updated to the recently released 0.5.1. |
|
Does anything else need to be changed before this can be merged? |
|
0.6.0 is out. |
|
I was going to merge this but when I check out this PR, it does not build: |
|
There is a known issue with Virtualbox and Pony (see https://github.com/ponylang/ponyc/blob/master/README.md#virtualbox) that causes an "Illegal instruction" error. Are you running in Virtualbox? There's also an edge case around AVX2/AVX512 and llvm 3.8 that causes an "Illegal instruction" error (see ponylang/ponyc#1176). Are you on a non-Xeon Skylake CPU? Also, you didn't mention, are you building on Linux? Mac OS? NixOS? I only tested on Mac OS 10.10.5 and Ubuntu on AWS. |
|
I am directly on hardware, No idea if this is a Skylake :D |
|
It is a Skylake processor (see https://en.wikipedia.org/wiki/List_of_Intel_Core_M_microprocessors#.22Skylake-Y.22_.28SoC.2C_dual-core.2C_14_nm.29). You're almost definitely running into ponylang/ponyc#1176. |
|
OK, I will merge this. Note that there seems to be a newer version already. |
Motivation for this change
Update to latest ponyc release
Things done
(nix.useSandbox on NixOS,
or option
build-use-sandboxinnix.confon non-NixOS)
nix-shell -p nox --run "nox-review wip"./result/bin/)