Conversation
I think this is not relevant there. rustc still compiled with jemalloc by default |
|
That's true for rustc, it gets jemalloc from crate now, only for selected architectures. What is relevant (see rust-lang/rust@61e8944) that they removed bundled jemalloc and option to build with external one. |
|
Have you tried building a create? |
|
Hello @Mic92, thanks for testing. Yes, tried with random crates from the nixpkgs and relatively big internal rust project. And it worked fine. I got the same segfault with Maybe it will be good idea to use bundled llvm by default and leave a option for building with system llvm. Stability should be more important than closure size. :) What do you think? |
|
cc @symphorien |
|
Will this change suffice ? |
|
Btw. I get the exact same failure when compiling fd-find with archlinux that also uses the system llvm... |
|
I also reported the error upstream: rust-lang/rust#57762 |
|
It seems to affect also other projects that have |
- also accept the full url of pull request i.e. NixOS#54323 - stream-parse nix-env's eval output - fix logs for failed builds issued by remote builders - prepare code for overlays like: NixOS#53934
|
@lblasc can you try to apply llvm-mirror/llvm@da1fb72 using |
|
@Mic92 applied patch: But llvm failed to build: |
|
llvm-mirror/llvm@cc1f2a5 is also needed for tests to pass.
|
|
Ah. Sorry I forgot we were running llvm tests also. |
|
@lblasc can you add this change and move the pull request to the staging branch? |
|
Rebased on latest staging, build is running fine. |
|
@Mic92 anything else needed? |
|
on it |
|
Failed to build: |
|
Oh, this way before we even had a chance to build rust. |
|
The test failure in libuv does not seem nixpkgs-specific: libuv/libuv#2117 |
|
This seems not like good idea on hydra anyway: https://github.com/libuv/libuv/blob/v1.x/test/test-hrtime.c |
|
@grahamc in case you have time, can you apply https://github.com/libuv/libuv/commit/d9f42a0fee63d094e35a1ed7d3a8a5dc3f73b90c.patch to libuv? |
|
Mind pushing a commit to this PR (or a different branch) applying that patch? |
|
nevermind, I applied it |
|
That patch didn't seem to make a difference -- same test fails. |
|
Ah. Sorry, we are building libuv with autotools of course: https://github.com/libuv/libuv/commit/5d6ab57e582d9713fa4a209f90551d4c1c14fcf8.patch |
|
|
I will proceed without testing rust on macOS. We have to fix the issue with libuv anyway. |
Motivation for this change
Bump Rust to latest release, also closes #54183
Notes:
disable-test-inherit-env.patch- this test got removed in upstreamvendordir location fromsrc/vendorto justvendorThings done
sandboxinnix.confon non-NixOS)nix-shell -p nox --run "nox-review wip"./result/bin/)nix path-info -Sbefore and after)