| 30 Jun 2022 |
dramforever | Is anyone interested in some mips64 stuff? I find that some libraries don't build probably, e.g. pkgsCross.mips64el-linux-gnuabi64.boehmgc. They seem to think that the correct LD is mips64el-linux-gnuabi64-ld -m elf but it doesn't actually support -m elf, only stuff like -m elf64ltsmip | 09:54:30 |
dramforever | Log looks like this https://fars.ee/rX0q/text#L-96 | 09:58:13 |
dramforever | the build itself fails with: failed to produce output path for output 'debug', but the real reason is that boehmgc found that ...-ld -m elf doesn't work and thought it doesn't support dynamic libraries and produced static ones instead | 09:59:32 |
dramforever | overriding preConfigure to add this seems to work, but i'd love to know if there's a more proper way to apply this treewide
preConfigure = ''
export NIX_LDFLAGS="$NIX_LDFLAGS -m elf64ltsmip"
'';
| 10:04:57 |
fufexan | matthewcroughan - nix.how: how can I nix shell stuff without building the world again? I just wanna load lm_sensors to check the temps | 10:18:28 |
fufexan | I'm guessing the nixpkgs you build from should be constantly rebased on nixpkgs-unstable? | 10:19:01 |
matthewcroughan - nix.how | In reply to @fufexan:matrix.org matthewcroughan - nix.how: how can I nix shell stuff without building the world again? I just wanna load lm_sensors to check the temps You cannot really, because if you're shelled into the board, it'll be doing native compilation. | 10:21:29 |
fufexan | that's what it's doing rightnow | 10:21:41 |
fufexan | compiling perl lol | 10:21:49 |
matthewcroughan - nix.how | native compilation produces paths like /nix/store/foo whereas cross compiling is like /nix/store/riscv64-foo | 10:22:26 |
matthewcroughan - nix.how | so if you do nix-shell on the board, it's not going to have /nix/store/foo since you didn't compile natively | 10:22:45 |
matthewcroughan - nix.how | so no paths match | 10:22:48 |
matthewcroughan - nix.how | you have to deploy to the board | 10:22:51 |
matthewcroughan - nix.how | go to my flake, make a change to the configuration.nix, then nixos-rebuild switch --flake .#visionfive-cross-x86 --target-host user@board | 10:23:14 |
fufexan | can a binfmt'd host build native paths? or is it just cross compiling? | 10:23:30 |
dramforever | I guess you can nix shell github:{forked-nixpkgs}#legacyPackages.x86_64-linux.pkgsCross.riscv64.lm_sensors with a builder | 10:30:12 |
matthewcroughan - nix.how | that's true | 10:34:04 |
matthewcroughan - nix.how | In reply to @fufexan:matrix.org can a binfmt'd host build native paths? or is it just cross compiling? binfmt is native yes | 10:34:24 |
dramforever | well honestly I just steal packages from NickCao
nix run --extra-substituters "https://cache.nichi.co" --extra-trusted-public-keys "hydra.nichi.co-0:P3nkYHhmcLR3eNJgOAnHDjmQLkfqheGyhZ6GLrUVHwk=" github:NickCao/nixpkgs/riscv#legacyPackages.x86_64-linux.pkgsCross.riscv64.lm_sensors | 10:37:23 |
dramforever | really saved me a lot of time when i was trying to get some weird images going | 10:38:01 |
fufexan | great, cooking up a configuration.nix based on what you suggested | 10:38:42 |
fufexan | can I somehow make github:NickCao/nixpkgs/riscv#legacyPackages.x86_64-linux.pkgsCross.riscv64 an installable? so that I can just run nix shell np-riscv#<package> and it would expand that automatically? | 10:47:14 |
fufexan | or I guess I could make a global alias in bash/zsh | 10:47:23 |
dramforever | might be a good idea | 10:55:07 |
dramforever | i mean, adding it to flake.nix | 10:55:14 |
fufexan | › nixos-rebuild switch --flake .#visionfive-cross-x86 --target-host nixos@10.0.0.104
warning: Git tree '/home/mihai/Documents/code/git/visionfive-nix' is dirty
/nix/store/rcy3nb3vx7z3dm3lqpwkygph38f3c0rp-nixos-rebuild/bin/nixos-rebuild: line 374: /nix/store/mskilnkr76pjiwhr0wbl1p41pld7bkrc-coreutils-riscv64-unknown-linux-gnu-9.0/bin/mktemp: cannot execute binary file: Exec format error
| 11:12:12 |
fufexan | this is weird | 11:12:17 |
fufexan | https://github.com/fufexan/visionfive-nix this is all I've changed | 11:15:55 |
| nospaces joined the room. | 21:29:59 |
| 1 Jul 2022 |
| Burrito (marius) changed their profile picture. | 08:27:40 |