From: ludo@gnu.org (Ludovic Courtès)
To: Danny Milosavljevic <dannym@scratchpost.org>
Cc: guix-devel@gnu.org
Subject: Re: "guix environment --pure" different to guix-daemon's environment
Date: Sat, 31 Mar 2018 22:33:04 +0200 [thread overview]
Message-ID: <87605chtof.fsf@gnu.org> (raw)
In-Reply-To: <20180331005317.073c34e4@scratchpost.org> (Danny Milosavljevic's message of "Sat, 31 Mar 2018 00:53:17 +0200")
Hello!
Danny Milosavljevic <dannym@scratchpost.org> skribis:
> 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").
> 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’.
prev parent reply other threads:[~2018-03-31 20:33 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-03-30 22:53 "guix environment --pure" different to guix-daemon's environment Danny Milosavljevic
2018-03-31 20:33 ` Ludovic Courtès [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://guix.gnu.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87605chtof.fsf@gnu.org \
--to=ludo@gnu.org \
--cc=dannym@scratchpost.org \
--cc=guix-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/guix.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).