Discussion:
"guix environment --pure" different to guix-daemon's environment
Danny Milosavljevic
2018-03-30 22:53:17 UTC
Permalink
Hi,

so I'm trying to get mrustc to work (see attachment) but I've hit a snag.

When I use "guix build", gcc will eventually fail with SIGABRT.
When I then try to reproduce the problem via "guix environment" gcc works just
fine (using the failed tempdir and the failed command line).

What could be up in this case?

Can I get guix-daemon to make gcc dump core on SIGABRT? (setrlimit in a build phase? :->)
Ludovic Courtès
2018-03-31 20:33:04 UTC
Permalink
Hello!
Post by Danny Milosavljevic
so I'm trying to get mrustc to work (see attachment) but I've hit a snag.
When I use "guix build", gcc will eventually fail with SIGABRT.
When I then try to reproduce the problem via "guix environment" gcc works just
fine (using the failed tempdir and the failed command line).
What could be up in this case?
Did you try ‘guix environment -C’? There’d still be a few differences
compared to what guix-daemon does, but not that much (info "(guix)
Debugging Build Failures").
Post by Danny Milosavljevic
Can I get guix-daemon to make gcc dump core on SIGABRT? (setrlimit in a build phase? :->)
Yes, you can! :-)

Add a phase that does this:

;; Allow us to dump core during the test suite so GDB
;; can report backtraces.
(let ((MiB (* 1024 1024)))
(setrlimit 'core (* 300 MiB) (* 500 MiB)))

(From <https://gitlab.inria.fr/guix-hpc/guix-hpc/blob/master/modules/inria/storm.scm#L59>.)

HTH,
Ludo’.

Loading...