From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id 6BqOALY6zmV+kAAAe85BDQ:P1 (envelope-from ) for ; Thu, 15 Feb 2024 17:24:22 +0100 Received: from aspmx1.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2.migadu.com with LMTPS id 6BqOALY6zmV+kAAAe85BDQ (envelope-from ) for ; Thu, 15 Feb 2024 17:24:22 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=wolfsden.cz header.s=mail header.b=dxHnfC0p; dkim=pass header.d=wolfsden.cz header.s=mail header.b=GXd8P038; dmarc=pass (policy=none) header.from=wolfsden.cz; spf=pass (aspmx1.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1708014261; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=QJWkx8QuFb5WCVC2gBu6KUxXVO9VZagHz8lju033BJc=; b=k7Pz2iQohiPdQ8GY+Jglktv/qx79sTrNX2R0tS/kcEWl/LKzTOrDg0oXoaQQ16D6lJCO8G IvI+kebEFRZaFNxEWoIEaEWd+AUyDRn4r5nAWp0e69TZSGXAs9UN5CTnwOsr3gE0QWu6bs 4sgZVySZOe3en5GYFQdwHZbuIv4hYDAiTO8hN1IWOY2sbTrrsGrgWNRbbyv/Rq6mJxs9Fl g8sKmUCQDOQuBDgmmLMbKNU00nOpgHwt3o/aMyFrijWjosBHHJ67TeXgDrIYmK8omdGP55 8sWlv1J3TcBFfEC7vsH/ceu7JQxQTZ2Lr+XtfOk5xdkEFjDd/N1OEflbMkipyQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=wolfsden.cz header.s=mail header.b=dxHnfC0p; dkim=pass header.d=wolfsden.cz header.s=mail header.b=GXd8P038; dmarc=pass (policy=none) header.from=wolfsden.cz; spf=pass (aspmx1.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org" ARC-Seal: i=1; s=key1; d=yhetil.org; t=1708014261; a=rsa-sha256; cv=none; b=MSWswJArxUfu/7EBbxlBbjewHWpyz4+0ZB4Hn9VoYZh36n2ZJoWMlMr7u0n31fWZGrQCLg Z6LCWMy9qIZlNLwPlcdbIwoVuEW4FUxMMir4cEg6aH1FaYI+WTD3YjXzFV3gBku+gdZ09C yJFgOWB1lpt51hCQI0FK6KLkzwaHpNN28q7aYKV5jJOPJqxOrt5Wq+8JTIGpDgaFxQo2uk api+JydNLuHUmrbO0Fec1xV5qJ0qfvhacD50cCLh1sKDh4kBXxAdEScRqiLwXOSQ0Hc5TQ 1B1kIElVOMQ67Zjn7yBMjNObIA6MS6KbDBW20+RdJn9kCMMGjOz+23h8dtOwDg== Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 7F6E75677B for ; Thu, 15 Feb 2024 17:24:21 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1raeWa-0003nw-DA; Thu, 15 Feb 2024 11:23:48 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <~@wolfsden.cz>) id 1raeWZ-0003nm-1U for help-guix@gnu.org; Thu, 15 Feb 2024 11:23:47 -0500 Received: from wolfsden.cz ([37.205.8.62]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <~@wolfsden.cz>) id 1raeWW-00074H-Ne for help-guix@gnu.org; Thu, 15 Feb 2024 11:23:46 -0500 Received: by wolfsden.cz (Postfix, from userid 104) id B93B828D69C; Thu, 15 Feb 2024 16:23:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=wolfsden.cz; s=mail; t=1708014221; bh=GK50X6HAFQ2gkLFTnRAqupxHiKYxqI3e/CdAeRw9xbw=; h=Date:From:To:Cc:Subject:References:In-Reply-To; b=dxHnfC0poSVde8e1evCOHSlrn1+9d78CmyFSR2Tbv7v2fcMBlERDEN675I4I+V8oJ Bf4AeQjcoi2d1tiiBwGyWt4mOPan/m9aXZ5wq9GsJilPqQcQfTvoaGIFFN+tMT+VJR /IYkPymhinu+Y0OqOYxwDzoNQFFLf4qG7nq5VrhrK4lHxJ5XKSlwXAcx+ZVVXjpZ+C J+1HiLHoazCrBzTGwPpQUoDu71pqEDzzjLUH3828xZgQUOlFOUJuBar8UcOu7dPkmv R5j93r6JHw91YFNl99j++8uS8yMQShs7O60496xmSrX7q3ZTS79iRKD4Lij1/p4mky tctU7943XodSIP3acBTEzB9MHylqG9+kK96VR9lZFsXPgya4VbXrnfYwgH3R+TOWX/ sj+q2Y0MRFd9/BEFehjC6tAcF8IzBaIFzQ1hg7aeWWcedBgDfI6LIZG7U+27Qv4XMe h1cmxVggRCAQ3n8R4qGs3AcV1eWvxNQkwvOe/yMYmiGYVXxONZ721XRQBR0N/RgmcZ Z4Wk1nMVe54ReQZIiHa/nvKwS48q9aPWCYyqtAeI+MS4bNMMhMTlyIMvExrohUVyV/ F+qaRpDRJ/EYfCc5gDr2e/x1NWLg8LwPk8fhXgm3555N9vtYng07aQApef3I1KMqkg zyuhL/V+GCZFd3w9hD+EWi3g= Received: from localhost (unknown [193.32.127.154]) by wolfsden.cz (Postfix) with ESMTPSA id 9C5D628CFB5; Thu, 15 Feb 2024 16:23:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=wolfsden.cz; s=mail; t=1708014220; bh=GK50X6HAFQ2gkLFTnRAqupxHiKYxqI3e/CdAeRw9xbw=; h=Date:From:To:Cc:Subject:References:In-Reply-To; b=GXd8P038bKPaAyeA9Rr9LW0LVJYx3zgshCLQB/fGRlNkFfn5YeUHy5AuGMV+WbtPm Uup/Mbj2x9RRXXgDeKrN+3S1pi7VYZ7i6jDvZIugZrki6lNolkoMmOPU95iALkHQ8s uEqHa1trhxd2fva1ps7ehn5hTMub5Kl8nvqhIwRBHN+IpSmMi9fKijY31riptn1WhX wsveOeZU/RoC9jYXnuGkDCDCVyuVkO1FEVFOxLdJAPJ8Ru/xcceANHyvCNmMZG4luf vg4UoGpAJV7u/SYLdF3JpY9EGtjtpzTC01OtC/jjRiEEwKUmCmn/rwfXlJNUsUI52Q 9Fa8QyrHtQLpGd2q1wxnezRucvkGifLdXVrZoekosMW3GzD9pDQDBSkzb8xRc9Le+J yZ++d3WQWaa1Frkdzje/8rT/dqGyCXiDK0ZMveyNP1uSWSIQI5VWl+zPsL3R1hHJD1 z76W1bH0Tt6cYlOcv5EtrvMAEZF3kd+LJ9sr/g6i1bCqGzgG/ZguJjN7MIqDoNaM+w zQX5i78O4zb+ibPAR/6CuTSsNNoyyE6Hbu6cKT8gP2UsLdRlb78RzkWl4DYEAGhEek KjfqHvOOZk1xH/Z6LmBlIG031ULr8c1U4Jc0hwvPavEun28M5b3UPsBwyt8odzRjsk 75ttaDLketivIGB4ZF0yKGnc= Date: Thu, 15 Feb 2024 17:23:40 +0100 From: Tomas Volf <~@wolfsden.cz> To: Nils Landt Cc: help-guix@gnu.org Subject: Re: How to debug a failed build of rust application under cargo-build-system? Message-ID: Mail-Followup-To: Nils Landt , help-guix@gnu.org References: <651390050.176762.1708008171345@office.mailbox.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="fAQjDjhLE/YHRa8G" Content-Disposition: inline In-Reply-To: <651390050.176762.1708008171345@office.mailbox.org> Received-SPF: pass client-ip=37.205.8.62; envelope-from=~@wolfsden.cz; helo=wolfsden.cz X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-guix@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+larch=yhetil.org@gnu.org Sender: help-guix-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Spam-Score: -10.66 X-Spam-Score: -10.66 X-Migadu-Queue-Id: 7F6E75677B X-Migadu-Scanner: mx13.migadu.com X-TUID: JokxEQQbrKMz --fAQjDjhLE/YHRa8G Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On 2024-02-15 15:42:51 +0100, Nils Landt wrote: > > 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 :) Oh... Right, so I managed to track down the difference. The importer uses async-stream in 0.3.2 while cargo in 0.3.5. After updating the packaged version to 0.3.5, it now compiles, so that is nice. Wait, it is not. I assumed that rust is big on the semver. Should 0.3.2 and 0.3.5 be the same (except bug fixes)? :-O > > > > > 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 > Yep, you need to provide PROTOC environment variable or patch the source code (what I do). But thanks to you I managed to solve this, so thanks :) Tomas -- There are only two hard things in Computer Science: cache invalidation, naming things and off-by-one errors. --fAQjDjhLE/YHRa8G Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEEt4NJs4wUfTYpiGikL7/ufbZ/wakFAmXOOowACgkQL7/ufbZ/ wakJGQ/+JRMGvfNQ+QffrlsspHyfyYqhSwr46XdDSoY49/r8hFngMzJ4cJsDxCW6 CBSUhfG+NOJh65OxfAQyW63pR3P+ApkXnqQXstSMKHfK8y1C7ICuV1nA2kIAxkIz Eokp7r/Bqh0IS3loqEFWUBW8b/b3m6Pa7S2Aflipr6O9gXqtlvXb2691eoVh6B65 vC0dl5KHhb86x1p01Usq+7P9Jnd7QbitXohT0NcRna+HuqcWCe5xgvcBW2TStps/ xs8bcJD8urB8plpBC0tdm28FAd7GCJtLr600l/Dl6UfnepSV2ME75WMggs3tn+qM 4v5kwEXgcmpWrl8/Nc4EQfxrNYtfDWXwoe2oZLUc0T6E1yf+ydrZXLrhgEtoJil6 eqVQJUD3ie1PzsRPV872QSsrFwvId12uFhRIgVXCJ70sn0QexdmHLfcOucqsz0LS LlW62v3KFpg9y5b/QFVH6nfDarQfen/SfsTeiR6dhRdxukLc5nQ0rbrI8oQa/P6i is2zVBIgaFWOUMK4oftmfDeHHEqXZOy/ZBEXVyyL092EFp+sG0h7J9ahQKAARy/G ExAWpvMqPAKHe2GL6VhOYxP0bdKi8FiwanNlHoVAYlVkDGvZh1VGpaXeQHSabPJd HOtYoTyKo0hlALpp0tj3N7BA1oXKMXqaO4S41qFhFRzc6BfB4Tg= =YDBw -----END PGP SIGNATURE----- --fAQjDjhLE/YHRa8G--