How do you debug build-side code?

2022-04-03 Thread David Arroyo
Hello, I currently use Guix on a foreign distro to define development and build environments. I'm trying to extend guix with types that build an s6[1] supervision tree in the store from a declarative definition. I can then use that to build a guix profile (or a pack) with everything needed for

Re: How do you debug build-side code?

2022-04-03 Thread David Arroyo
On Sun, Apr 3, 2022, at 15:54, David Arroyo wrote: > I'd love to hear how others debug errors in the build-side code. Is > there any way for me to trace the function calls or even have an > interactive debugging session? Partially answering my own question, by rifling through th

Defining a toolchain with musl libc

2022-04-11 Thread David Arroyo
Hello, I want to rebuild the packages in the `skarnet` module to be statically linked with musl libc. I don't mind if my C/C++ toolchain itself does not use musl libc, so initially, I tried simply modifying the packages and their direct dependencies, like so: (define (compose . fns)

Re: Defining a toolchain with musl libc

2022-04-12 Thread David Arroyo
On Mon, Apr 11, 2022, at 22:34, David Arroyo wrote: > error: in phase 'patch-source-shebangs': uncaught exception: > encoding-error "scm_to_stringn" "cannot convert narrow string to > output locale" 84 #f #f Looking further into this error, err

Re: Defining a toolchain with musl libc

2022-05-09 Thread David Arroyo
#x27;s not urgent for me anymore. On Mon, May 9, 2022, at 13:09, zimoun wrote: > On Mon, 11 Apr 2022 at 22:34, "David Arroyo" wrote: > Maybe “guix graph --path” could help. Well, maybe skalibs and/or > execline retain a reference to bash or bash-minimal which probably drags > glib