!pbdtvoHxUGLhcEvnlu:nixos.org

Exotic Nix Targets

354 Members
111 Servers

Load older messages


SenderMessageTime
30 Jun 2022
@dramforever:matrix.orgdramforever 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:matrix.orgdramforeverLog looks like this https://fars.ee/rX0q/text#L-9609:58:13
@dramforever:matrix.orgdramforever 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:matrix.orgdramforever

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:matrix.orgfufexan 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:matrix.orgfufexanI'm guessing the nixpkgs you build from should be constantly rebased on nixpkgs-unstable?10:19:01
@matthewcroughan:defenestrate.itmatthewcroughan - 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:matrix.orgfufexanthat's what it's doing rightnow10:21:41
@fufexan:matrix.orgfufexancompiling perl lol10:21:49
@matthewcroughan:defenestrate.itmatthewcroughan - nix.hownative compilation produces paths like /nix/store/foo whereas cross compiling is like /nix/store/riscv64-foo10:22:26
@matthewcroughan:defenestrate.itmatthewcroughan - 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:defenestrate.itmatthewcroughan - nix.howso no paths match10:22:48
@matthewcroughan:defenestrate.itmatthewcroughan - nix.howyou have to deploy to the board 10:22:51
@matthewcroughan:defenestrate.itmatthewcroughan - 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:matrix.orgfufexancan a binfmt'd host build native paths? or is it just cross compiling?10:23:30
@dramforever:matrix.orgdramforever I guess you can nix shell github:{forked-nixpkgs}#legacyPackages.x86_64-linux.pkgsCross.riscv64.lm_sensors with a builder 10:30:12
@matthewcroughan:defenestrate.itmatthewcroughan - nix.howthat's true 10:34:04
@matthewcroughan:defenestrate.itmatthewcroughan - 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:matrix.orgdramforever 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:matrix.orgdramforeverreally saved me a lot of time when i was trying to get some weird images going10:38:01
@fufexan:matrix.orgfufexangreat, cooking up a configuration.nix based on what you suggested10:38:42
@fufexan:matrix.orgfufexan 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:matrix.orgfufexanor I guess I could make a global alias in bash/zsh10:47:23
@dramforever:matrix.orgdramforevermight be a good idea10:55:07
@dramforever:matrix.orgdramforeveri mean, adding it to flake.nix10:55:14
@fufexan:matrix.orgfufexan
› 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:matrix.orgfufexanthis is weird11:12:17
@fufexan:matrix.orgfufexanhttps://github.com/fufexan/visionfive-nix this is all I've changed11:15:55
@nospaces:fairydust.spacenospaces joined the room.21:29:59
1 Jul 2022
@marius851000:mariusdavid.frBurrito (marius) changed their profile picture.08:27:40

Show newer messages


Back to Room ListRoom Version: 6