Hi!
Jan Nieuwenhuizen skribis:
> (use-modules (guix build syscalls))
>
> (define LOOPBACK? #t)
> (define IP "127.0.0.1" )
> (define INTERFACE "lo")
> (define NETMASK #f)
> (define GATEWAY #f)
>
> (format #t "ifreq-struct-size: ~a\n" (@@ (guix build syscalls)
> ifreq-struct-size))
> (format #t "
Hi,
Vincent Legoll skribis:
> On Tue, May 5, 2020 at 11:23 AM Ludovic Courtès wrote:
>> The patch below appears to fix it:
>
> Is target-word-size checking always equivalent to cross-compiling ?
In this case it’s sufficient: it’s just about ‘sizeof’ and ‘alignof’, so
the word size is all that
Ludovic Courtès writes:
Hi,
>> Something like that: sizeof-ifconf is set to 16 (like on x86_64), but
>> it's size should be 8.
>
> Oh, that’s because ‘define-c-struct’ does all the work at
> macro-expansion time, with the host types and alignment constraints. I
> wonder how we didn’t notice it e
Hello,
On Tue, May 5, 2020 at 11:23 AM Ludovic Courtès wrote:
> The patch below appears to fix it:
Is target-word-size checking always equivalent to cross-compiling ?
Aren't there cross-compilation host/target combos where this will
be true, but still there will be other differences (endianness
Hi,
Jan Nieuwenhuizen skribis:
>> Could it be ‘ifreq-struct-size’ that’s off on GNU/Hurd, or one of its
>> friends?
>
> Something like that: sizeof-ifconf is set to 16 (like on x86_64), but
> it's size should be 8.
Oh, that’s because ‘define-c-struct’ does all the work at
macro-expansion time,
Ludovic Courtès writes:
>> herd: exeception caught while executing 'start' on service 'loopback':
>> Value out of range 0 to 4294967295: -1
>
> Ah see, it’s out of range.
>
> Could you run Guile, load (guix build syscalls), and try to run the code
> of the ‘start’ method that appears in
>
Hi,
Jan Nieuwenhuizen skribis:
> Ah, great! I rewrote this to use ...and it almost
> works already. I have added
>
> (service static-networking-service-type
> (list (static-networking (interface "lo")
> (ip "127.0.0.1")
>
Ludovic Courtès writes:
> guix-comm...@gnu.org skribis:
>
>> +(define (hurd-loopback-shepherd-service _)
>> + "Return the 'loopback' Shepherd service."
>> +
>> + (list (shepherd-service
>> + (documentation "Dummy for bootstrapping (gnu services) on the
>> Hurd.")
>> + (provision
guix-comm...@gnu.org skribis:
> +(define (hurd-loopback-shepherd-service _)
> + "Return the 'loopback' Shepherd service."
> +
> + (list (shepherd-service
> + (documentation "Dummy for bootstrapping (gnu services) on the
> Hurd.")
> + (provision '(loopback))
> + (requirem