bug#45716: Bug in ‘network-interface-names’ when building guix for aarch64 on x86_64.

2021-02-08 Thread Stefan
Hi Mathieu! > Just restarted those services, let's see what happens! Thanks! Now it is working: I just can’t tell if it got build on a x86_64 or an aarch64 machine. But the result matters. :-) Bye Stefan

bug#45716: Bug in ‘network-interface-names’ when building guix for aarch64 on x86_64.

2021-02-07 Thread Mathieu Othacehe
Hey Stefan, > Could it be that the services qemu-binfmt and guix-daemon still need to be > restarted? Just restarted those services, let's see what happens! Thanks, Mathieu

bug#45716: Bug in ‘network-interface-names’ when building guix for aarch64 on x86_64.

2021-02-06 Thread Stefan
Hi Mathieu! This is still failing, see . > Yes, I reconfigured them yesterday Could it be that the services qemu-binfmt and guix-daemon still need to be restarted? Bye Stefan

bug#45716: Bug in ‘network-interface-names’ when building guix for aarch64 on x86_64.

2021-02-02 Thread Mathieu Othacehe
Hey Ludo, > Mathieu, did you reconfigure the build nodes recently or should we do so? Yes, I reconfigured them yesterday with Guix at 85843123dedc3060a128457f7814d7461cccb412. Mathieu

bug#45716: Bug in ‘network-interface-names’ when building guix for aarch64 on x86_64.

2021-02-01 Thread Ludovic Courtès
Hi, Leo Famulari skribis: > On Sat, Jan 23, 2021 at 04:27:05PM +0100, Stefan wrote: >> Hi Ludo’! >> >> > Applied, thanks! >> >> Thanks. >> >> Unfortunately the bug still appears on ci.guix.gnu.org, for example see >> . >> >> I think that the

bug#45716: Bug in ‘network-interface-names’ when building guix for aarch64 on x86_64.

2021-01-23 Thread Leo Famulari
On Sat, Jan 23, 2021 at 04:27:05PM +0100, Stefan wrote: > Hi Ludo’! > > > Applied, thanks! > > Thanks. > > Unfortunately the bug still appears on ci.guix.gnu.org, for example see > . > > I think that the build machines need to be reconfigured to

bug#45716: Bug in ‘network-interface-names’ when building guix for aarch64 on x86_64.

2021-01-23 Thread Stefan
Hi Ludo’! > Applied, thanks! Thanks. Unfortunately the bug still appears on ci.guix.gnu.org, for example see . I think that the build machines need to be reconfigured to get the fixed qemu version. Bye Stefan

bug#45716: Bug in ‘network-interface-names’ when building guix for aarch64 on x86_64.

2021-01-11 Thread Ludovic Courtès
Hi Danny, Danny Milosavljevic skribis: >>(define ifreq-struct-size >> ;; 'struct ifreq' begins with an array of IF_NAMESIZE bytes containing the >> ;; interface name (nul-terminated), followed by a bunch of stuff. This is >> ;; its size in bytes. >> (if (= 8 (sizeof '*)) >> 40 >>

bug#45716: Bug in ‘network-interface-names’ when building guix for aarch64 on x86_64.

2021-01-08 Thread Stefan
Hi! I think I found the root cause of this issue in qemu. I'm about to prepare a patch. Bye Stefan

bug#45716: Bug in ‘network-interface-names’ when building guix for aarch64 on x86_64.

2021-01-08 Thread Stefan
Hi! > I think that should rather be (sizeof* '*) instead of (sizeof '*). Ludo? For aarch64 I tried using ‘sizeof*’ instead of ‘sizeof’ in ‘ifreq-struct-size’, but this makes no different at all. Well, pointers have to be 8 bytes long on x86_64 and aarch64, so this was expected. However, it

bug#45716: Bug in ‘network-interface-names’ when building guix for aarch64 on x86_64.

2021-01-08 Thread Stefan
Hi Danny and Ludo’! > Can you try printing (@@ (guix build syscalls) ifreq-struct-size) directly? I did that, it's printing 40 in both cases. That’s the value which is ending up in stride. > Is it qemu-user or qemu-system? ~$ /usr/local/bin/qemu-system-x86_64 --version QEMU emulator version

bug#45716: Bug in ‘network-interface-names’ when building guix for aarch64 on x86_64.

2021-01-07 Thread Danny Milosavljevic
Hi Stefan, >I have however no clue, why the number of bytes is only 32 in case of aarch64. >This value is taken from the struct ifconf read via ioctl(SIOCGIFCONF). guix/build/syscalls.scm has: >(define ifreq-struct-size > ;; 'struct ifreq' begins with an array of IF_NAMESIZE bytes containing

bug#45716: Bug in ‘network-interface-names’ when building guix for aarch64 on x86_64.

2021-01-07 Thread Stefan
Hi! This change makes the reproducer working and prints some more values: diff --git a/guix/build/syscalls.scm b/guix/build/syscalls.scm index 85c1c45f81..250c577d33 100644 --- a/guix/build/syscalls.scm +++ b/guix/build/syscalls.scm @@ -1473,7 +1473,19 @@ most LEN bytes from BV." (()

bug#45716: Bug in ‘network-interface-names’ when building guix for aarch64 on x86_64.

2021-01-07 Thread Stefan
Hi! When building for aarch64 on a x86…64 system, then the ‘network-interface-names’ function produces an error. Because of this building guix for aarch64 fails during the test with this: test-name: network-interface-names location: