!FBuJyWXTGcGtHTPphC:nixos.org

Nix Rust

670 Members
Rust154 Servers

Load older messages


SenderMessageTime
22 Jan 2022
@bernardo:matrix.parity.iobernardo hmm ok so I should write a shell.nix file for this specific project? 20:16:21
@mikroskeem:d0.eeMarkyes, or flake.nix preferably20:16:31
@mikroskeem:d0.eeMark & echo use flake > .envrc 20:16:41
@bernardo:matrix.parity.iobernardogotcha... thanks guys!20:17:04
@mikroskeem:d0.eeMarkhttps://github.com/ZentriaMC/neard-nix/blob/master/default.nix20:17:15
@mikroskeem:d0.eeMarkand of course flake.nix there20:20:51
23 Jan 2022
@bernardo:matrix.parity.iobernardo

I'm using this shell.nix: https://github.com/paritytech/substrate/blob/master/shell.nix

applied at the root of this project: https://github.com/paritytech/substrate-contracts-node

I executed $ nix-shell then $ cargo build --release

and now I'm running into:

error[E0658]: use of unstable library feature 'proc_macro_is_available'

I'm guessing there's something missing on the shell.nix file?

01:31:47
@zhaofeng:zhaofeng.liZhaofeng Li What does rustc --version show? 01:33:19
@bernardo:matrix.parity.iobernardo
In reply to @zhaofeng:zhaofeng.li
What does rustc --version show?
rustc 1.57.0-nightly (497ee321a 2021-09-09)
01:33:38
@bernardo:matrix.parity.iobernardo
In reply to @zhaofeng:zhaofeng.li
What does rustc --version show?
* rustc 1.57.0-nightly (497ee321a 2021-09-09)
01:34:27
@zhaofeng:zhaofeng.liZhaofeng LiHmm, that feature should exist in that version of nightly (it was removed a month later, which should cause it to complain that the feature is non-existent). Where is that in the code?01:36:15
@bernardo:matrix.parity.iobernardo
In reply to @zhaofeng:zhaofeng.li
Hmm, that feature should exist in that version of nightly (it was removed a month later, which should cause it to complain that the feature is non-existent). Where is that in the code?
error[E0658]: use of unstable library feature 'proc_macro_is_available'
  --> /home/bear/.cargo/registry/src/github.com-1ecc6299db9ec823/proc-macro2-1.0.36/src/detection.rs:28:21
   |
28 |     let available = proc_macro::is_available();
   |                     ^^^^^^^^^^^^^^^^^^^^^^^^
   |
   = note: see issue #71436 <https://github.com/rust-lang/rust/issues/71436> for more information
   = help: add `#![feature(proc_macro_is_available)]` to the crate attributes to enable
01:37:15
@zhaofeng:zhaofeng.liZhaofeng LiOk, try a newer nightly version where this has already stabilized01:39:16
@bernardo:matrix.parity.iobernardo
In reply to @zhaofeng:zhaofeng.li
Ok, try a newer nightly version where this has already stabilized
switched the date to 2021-12-30 and it worked! thanks!!
02:20:16
@bernardo:matrix.parity.iobernardo

now I'm trying to build https://github.com/paritytech/canvas with the same shell.nix mentioned before..
running into this:

...
  = note: /nix/store/rbqplhv2s539liymkvm3zbjj9lvgzpd5-binutils-2.35.2/bin/ld: final link failed: No space left on device
          collect2: error: ld returned 1 exit status


LLVM ERROR: IO failure on output stream: No space left on device
The following warnings were emitted during compilation:

pretty confusing, since I do have plenty of space on my disk 🤔

14:38:43
@mikroskeem:d0.eeMark
In reply to @bernardo:matrix.parity.io

now I'm trying to build https://github.com/paritytech/canvas with the same shell.nix mentioned before..
running into this:

...
  = note: /nix/store/rbqplhv2s539liymkvm3zbjj9lvgzpd5-binutils-2.35.2/bin/ld: final link failed: No space left on device
          collect2: error: ld returned 1 exit status


LLVM ERROR: IO failure on output stream: No space left on device
The following warnings were emitted during compilation:

pretty confusing, since I do have plenty of space on my disk 🤔

/tmp mounted as tmpfs?
14:53:41
@mikroskeem:d0.eeMarkincrease its size14:53:50
@bernardo:matrix.parity.iobernardo
In reply to @mikroskeem:d0.ee
increase its size
I did $ sudo mount -o remount,size=30G /tmp, which is confirmed by df -h... but the problem remains :(
15:18:26
@mikroskeem:d0.eeMarkunsure atm15:19:08
@bernardo:matrix.parity.iobernardo

ok I think I figured it out... after seeing this error message:

error: failed to write /run/user/1000/rustchcAPeP/lib.rmeta: No space left on device (os error 28)

so I ran:

$ sudo mount -o remount,size=10G /run/user/1000
15:34:20
@mikroskeem:d0.eeMarkaha15:41:46
27 Jan 2022
@drupol:matrix.orgPol joined the room.08:55:37
31 Jan 2022
@bernardo:matrix.parity.iobernardo changed their profile picture.11:49:58
1 Feb 2022
@aktaboot:matrix.orgaktaboot joined the room.12:03:06
@coolshaurya:community.rscoolshaurya joined the room.16:47:51
3 Feb 2022
@ultranix:matrix.orgtgunnoe changed their display name from ultranix to tgunnoe.13:34:10
@ereslibre:matrix.orgereslibre set a profile picture.20:23:04
4 Feb 2022
@withoutwithin:matrix.orgXe Iaso changed their display name from Xe to Xe Iaso.00:44:02
@marius851000:newsmatrix.pmdcollab.orgmarius851000 joined the room.12:46:53
5 Feb 2022
@js:ukvly.orgJulian Stecklina changed their display name from julianst to Julian Stecklina.10:26:08

There are no newer messages yet.


Back to Room ListRoom Version: 6