!pbdtvoHxUGLhcEvnlu:nixos.org

Exotic Nix Targets

328 Members
104 Servers

Load older messages


SenderMessageTime
24 May 2022
@zhaofeng:zhaofeng.liZhaofeng LiFor my branch I always did native and it may not even cross-compile, and my cache only contains native builds.00:33:55
@alxanyae:matrix.orgalyaeanyx changed their display name from Alexandra to alyaeanyx.03:16:37
@j-k:matrix.orgj-k

What am I doing wrong here? πŸ™ƒ

required (system, features): (riscv64-linux, )
4 available machines:
(systems, maxjobs, supportedFeatures, mandatoryFeatures)
# ...
#                          vvvvvvvvvvvvv
(x86_64-linux, i686-linux, riscv64-linux, 2, benchmark, big-parallel, kvm, nixos-test, )
#                          ^^^^^^^^^^^^^
error: unable to start any build; remote machines may not have all required system features.
       https://nixos.org/manual/nix/stable/advanced-topics/distributed-builds.html
12:58:23
@qbit:tapenet.orgqbitboot.binfmt.emulatedSystems have riscv64-linux in it? 13:08:20
@j-k:matrix.orgj-k

yep. I've been trying to test it's set up properly on that remote machine, looks like it is

# downloaded rustc
$ ./rust-1.60.0-riscv64gc-unknown-linux-gnu/rustc/bin/rustc --help
qemu-riscv64: Could not open '/lib/ld-linux-riscv64-lp64d.so.1': No such file or directory

and

nix --extra-experimental-features "nix-command flakes" build .#packages.riscv64-linux.hello

looks good in htop

13:21:16
@j-k:matrix.orgj-kimage.png
Download image.png
13:21:21
@j-k:matrix.orgj-k
$ cat flake.nix
{
  outputs = { self, nixpkgs }: {
    packages.riscv64-linux.hello = nixpkgs.legacyPackages.riscv64-linux.hello;
  };
}
13:21:35
@j-k:matrix.orgj-kok, it was an ssh issue I had to fix13:36:45
@j-k:matrix.orgj-kimage.png
Download image.png
15:30:39
@j-k:matrix.orgj-kbeautiful15:30:40
@qbit:tapenet.orgqbitBrummm15:31:52
@rick:matrix.ciphernetics.nlRick (Mindavi)Qemu x 3215:32:30
@j-k:matrix.orgj-k3 failed tests on bison15:41:07
25 May 2022
@qyliss:fairydust.spaceAlyssa RossEricson2314: I'm looking at https://github.com/NixOS/nixpkgs/pull/169793 again. I think to do this properly we need to change the release.nix infrastructure to just use full triples everywhere. But that's going to be a huge amount of work, so I think I'm going to have to try to split it up.10:34:27
@Ericson2314:matrix.orgJohn Ericson Alyssa Ross: yeah I see 13:50:09
@Ericson2314:matrix.orgJohn Ericsonthat change sounds good to me!13:50:18
@qyliss:fairydust.spaceAlyssa Rosscool :)13:56:17
@qyliss:fairydust.spaceAlyssa Rosshopefully I'll have a start by tomorrow13:56:38
@j-k:matrix.orgj-k
In reply to @j-k:matrix.org
3 failed tests on bison
I'm just assuming this is an issue introduced by binfmt so I'm back to x86_64-linux cross compiling. currently on the kernel
14:18:06
@j-k:matrix.orgj-k nixos-sd-image-22.05pre-git-riscv64-linux-visionfive.img.zst πŸŽ‰ 14:36:14
@j-k:matrix.orgj-kthe sd image from the visionfive PR just has sda1 and sda2, I thought it needed stuff in sda3 to play nice with the really weird boot config? Is there something else I need to do to the board first?14:45:20
@j-k:matrix.orgj-k

We have to use custom boot firmware since we do not support

StarFive's Fedora MMC partition layout. Thus, we include this in

the image's firmware partition so the user can flash the custom firmware.

anything I need to do here or will it be done automatically?

14:46:07
@j-k:matrix.orgj-k *

We have to use custom boot firmware since we do not support
StarFive's Fedora MMC partition layout. Thus, we include this in
the image's firmware partition so the user can flash the custom firmware.

anything I need to do here or will it be done automatically?

14:46:18
@rick:matrix.ciphernetics.nlRick (Mindavi)
In reply to @j-k:matrix.org
I'm just assuming this is an issue introduced by binfmt so I'm back to x86_64-linux cross compiling. currently on the kernel
Sounds like some good tests :)
14:52:03
@j-k:matrix.orgj-k
In reply to @rick:matrix.ciphernetics.nl
Sounds like some good tests :)

I had a look into gnu autotest but I couldn't see an easy way to get some more useful debug logs :(

here's the shortlist of the failing tests:

2: Invalid number of arguments                       FAILED (input.at:29)
64: Deprecated directives                            FAILED (input.at:3031)
314: Invalid uses of %empty                          FAILED (actions.at:192)

it mentions some stuff about log outputs but I didn't go too deep on it

14:55:54
26 May 2022
@j-k:matrix.orgj-kwaiting on a new USB/Serial adapter since I can't find it anywhere πŸ™ƒ16:26:52
@j-k:matrix.orgj-k

nix on fedora will do for now :D

[riscv@fedora-starfive nixtest]$ nix flake show --extra-experimental-features "nix-command flakes"
[28.5 MiB DL]
warning: creating lock file '/home/riscv/nixtest/flake.lock'
path:/home/riscv/nixtest?lastModified=1653588931&narHash=sha256-f42UZVlY8XbnjxqF55IKgebs%2fYWtcskSH9zH3J2NlW0=
β”œβ”€β”€β”€defaultPackage
β”‚   └───x86_64-linux: package 'hello-2.12'
└───packages
    └───x86_64-linux
        └───hello: package 'hello-2.12'
[riscv@fedora-starfive nixtest]$
[riscv@fedora-starfive nixtest]$ uname -a
Linux fedora-starfive 5.15.10+ #1 SMP Fri Dec 24 14:24:27 CST 2021 riscv64 riscv64 riscv64 GNU/Linux

[riscv@fedora-starfive nixtest]$ systemctl status nix-daemon
● nix-daemon.service - Nix Daemon
     Loaded: loaded (/nix/store/ykfmk9wvh2v737njahn0m3g19vbxl25w-nix-2.8.1-riscv64-unknown-linux-g>
     Active: active (running) since Fri 2022-05-27 02:12:18 CST; 4min 57s ago
TriggeredBy: ● nix-daemon.socket
       Docs: man:nix-daemon
             https://nixos.org/manual
   Main PID: 2532 (nix-daemon)
      Tasks: 3 (limit: 8532)
     Memory: 387.8M
        CPU: 33.566s
     CGroup: /system.slice/nix-daemon.service
             └─2532 nix-daemon --daemon

May 27 02:12:18 fedora-starfive systemd[1]: Started Nix Daemon.
May 27 02:14:07 fedora-starfive nix-daemon[2532]: accepted connection from pid 2583, user riscv
May 27 02:14:18 fedora-starfive nix-daemon[2532]: accepted connection from pid 2602, user riscv
[riscv@fedora-starfive nixtest]$
18:17:30
@j-k:matrix.orgj-k

to get the tarball I just added riscv as a cross target and I needed a newer copy of boost

diff --git a/flake.nix b/flake.nix
index c464b8f7c..a32ab2a68 100644
--- a/flake.nix
+++ b/flake.nix
@@ -21,7 +21,7 @@
       linuxSystems = linux64BitSystems ++ [ "i686-linux" ];
       systems = linuxSystems ++ [ "x86_64-darwin" "aarch64-darwin" ];
 
-      crossSystems = [ "armv6l-linux" "armv7l-linux" ];
+      crossSystems = [ "armv6l-linux" "armv7l-linux" "riscv64-linux" ];
 
       stdenvs = [ "gccStdenv" "clangStdenv" "clang11Stdenv" "stdenv" ];
 
@@ -83,7 +83,7 @@
 
         configureFlags =
           lib.optionals stdenv.isLinux [
-            "--with-boost=${boost}/lib"
+            "--with-boost=${boost173}/lib"
             "--with-sandbox-shell=${sh}/bin/busybox"
             "LDFLAGS=-fuse-ld=gold"
           ];
@@ -111,7 +111,7 @@
             bzip2 xz brotli editline
             openssl sqlite
             libarchive
-            boost
+            boost173
             lowdown-nix
             gtest
           ]
@@ -302,14 +302,14 @@
 
             propagatedBuildInputs = propagatedDeps;
 
-            disallowedReferences = [ boost ];
+            disallowedReferences = [ boost173 ];
 
             preConfigure =
               ''
                 # Copy libboost_context so we don't get all of Boost in our closure.
                 # https://github.com/NixOS/nixpkgs/issues/45462
                 mkdir -p $out/lib
-                cp -pd ${boost}/lib/{libboost_context*,libboost_thread*,libboost_system*} $out/lib
+                cp -pd ${boost173}/lib/{libboost_context*,libboost_thread*,libboost_system*} $out/lib
                 rm -f $out/lib/*.a
                 ${lib.optionalString currentStdenv.isLinux ''
                   chmod u+w $out/lib/*.so.*
@@ -320,7 +320,7 @@
                     chmod u+w $LIB
                     install_name_tool -id $LIB $LIB
                   done
-                  install_name_tool -change ${boost}/lib/libboost_system.dylib $out/lib/libboost_system.dylib $out/lib/libboost_thread.dylib
+                  install_name_tool -change ${boost173}/lib/libboost_system.dylib $out/lib/libboost_system.dylib $out/lib/libboost_thread.dylib
                 ''}
               '';
 
@@ -340,7 +340,7 @@
               echo "doc manual $doc/share/doc/nix/manual" >> $doc/nix-support/hydra-build-products
               ${lib.optionalString currentStdenv.isDarwin ''
               install_name_tool \
-                -change ${boost}/lib/libboost_context.dylib \
+                -change ${boost173}/lib/libboost_context.dylib \
                 $out/lib/libboost_context.dylib \
                 $out/lib/libnixutil.dylib
               ''}

nix build .#hydraJobs.binaryTarballCross.x86_64-linux.riscv64-linux

18:18:17
28 May 2022
@yuka:yuka.devYuka (she/her)maybe a dumb question, did you use thermal paste for the heatsink?15:19:52
29 May 2022
@vt52:tty.isvt52 joined the room.07:26:43

There are no newer messages yet.


Back to Room ListRoom Version: 6