From: Nils Landt <nils@landt.email>
To: Tomas Volf <~@wolfsden.cz>
Cc: help-guix@gnu.org
Subject: Re: How to debug a failed build of rust application under cargo-build-system?
Date: Thu, 15 Feb 2024 15:42:51 +0100 (CET) [thread overview]
Message-ID: <651390050.176762.1708008171345@office.mailbox.org> (raw)
In-Reply-To: <Zc4Q6H_w0O60-dbH@ws>
> Tomas Volf <~@wolfsden.cz> hat am 15.02.2024 14:26 CET geschrieben:
>
>
> On 2024-02-15 13:06:23 +0000, woshilapin wrote:
> > Hi,
> >
> > It is indeed a code error which looks weird. Are you sure the 2 compilations compile the same source code?
>
> Well, technically I am not sure. I ran the `guix import crate -r netavark' and
> used the output from that. My expectation was that it would walk the
> dependencies, and produce the same dependency tree cargo would use. Is that a
> correct expectation?
Not necessarily correct, no.
cargo install does not use the lockfile, see https://doc.rust-lang.org/cargo/commands/cargo-install.html#dealing-with-the-lockfile
The cargo-build-system also doesn't use it.
The crate importer also doesn't use it :)
> > > Could someone nudge me in the right direction regarding how to debug this issue?
> > > I am not really sure where to start.
First, I'd try to make sure that guix build rust-tonic works.
This page helped me a lot in getting started: https://guix.gnu.org/manual/en/html_node/Debugging-Build-Failures.html
I tried to reproduce this locally (import and build), building rust-tonic works fine for me.
Funnily enough, I'm running into a completely different error, related to https://github.com/hyperium/tonic/blob/408f46d5f2e1a25547831eb4b064bdeaf3868979/tonic-build/src/lib.rs#L47-L60
next prev parent reply other threads:[~2024-02-15 14:43 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-02-15 12:43 How to debug a failed build of rust application under cargo-build-system? Tomas Volf
2024-02-15 13:06 ` woshilapin
2024-02-15 13:26 ` Tomas Volf
2024-02-15 14:42 ` Nils Landt [this message]
2024-02-15 16:23 ` Tomas Volf
2024-02-15 18:07 ` Nils Landt
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=651390050.176762.1708008171345@office.mailbox.org \
--to=nils@landt.email \
--cc=help-guix@gnu.org \
--cc=~@wolfsden.cz \
/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 external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.