From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id EKHeJCIHzmVxRgEA62LTzQ:P1 (envelope-from ) for ; Thu, 15 Feb 2024 13:44:18 +0100 Received: from aspmx1.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1.migadu.com with LMTPS id EKHeJCIHzmVxRgEA62LTzQ (envelope-from ) for ; Thu, 15 Feb 2024 13:44:18 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=wolfsden.cz header.s=mail header.b=kISVDDKN; dkim=pass header.d=wolfsden.cz header.s=mail header.b=tOaz7Fue; 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"; dmarc=pass (policy=none) header.from=wolfsden.cz ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1708001058; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=MhXDF9DB95mv9nrER61A+AnFgaveZSGqIJ5BaqnPRLE=; b=TzBAs3+AwiXbbsr4a/FRKh8teo4ToNNjls+1hPyRr4H/Pzul23k9DRDwnizR6P2+PC4WfL DNjIhibl0pQDn9jOOYY2gAgRMInWVlE83z0YmKWslaDrcZzfoerw/2VaQhX4z/Ad892EQ+ lJzfeUBwwYPKuxxcyksjmDtGj39lgCTCtCC1lZqweSmFFxIYQh3eyyjLmDy4mJoKorVITV CSdl9HdHGNOaXQ0+HC9RL5WDW8Ni8EYAYABGJulAC1p9ChQH3NrxHMPNMcdJ9F06aKElPB h+HxRacfsLQ3Z8/IWJjPmJR9O4NgkvrqUHxE7QBradZw8LT9Xsb8kEN4lNeGQw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=wolfsden.cz header.s=mail header.b=kISVDDKN; dkim=pass header.d=wolfsden.cz header.s=mail header.b=tOaz7Fue; 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"; dmarc=pass (policy=none) header.from=wolfsden.cz ARC-Seal: i=1; s=key1; d=yhetil.org; t=1708001058; a=rsa-sha256; cv=none; b=TsPPch35gtDW0icyvWfNk1kW3OGwIynHX1yCbS4DO+lJamzSkE3Ag0hByKNgx3oBc4S/O6 kMZsiwDTPL8bGdIrxsfLWJwc0Wv3nWwHgmkWpnb/A6mH4kQRw62v69M/N1rxJkOA1QLEy2 EGZ/DHwyw/HZksNGtwBGmohpvoig2iJYgKN4xI5RmpUvFJVZOMF8RP3i9GsyHMTx7d+mSR Ol/sjlS/Wj/WBKYWIbueWBlTANY8jr7Ffza5vMgKdOzCSo74CoPAe4JV5TX+k2G7Rwy+Nz dFR0p9XncTfJSBbB0g6FXtLbdujjH/Rz4X1QZ1yto3VtmY1hij1Od2lfdkaKUg== 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 54A1261133 for ; Thu, 15 Feb 2024 13:44:18 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rab5e-0003a3-Df; Thu, 15 Feb 2024 07:43:46 -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 1rab5c-0003Zo-N9 for help-guix@gnu.org; Thu, 15 Feb 2024 07:43:44 -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 1rab5a-0002Qf-Fn for help-guix@gnu.org; Thu, 15 Feb 2024 07:43:44 -0500 Received: by wolfsden.cz (Postfix, from userid 104) id 661DB28C5E7; Thu, 15 Feb 2024 12:43:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=wolfsden.cz; s=mail; t=1708001019; bh=2zyY9JtJH1IDKbWbymtLeLFgQd1FU6qdmahtMJIugmg=; h=Date:From:To:Subject; b=kISVDDKN+1MF838ufqRV6oKm5i4m4Pb8gofySeF/Riz+kawbcKS02CtSudjOvR8Ua gPJm3IiA0F6QTjK6lKyjmusuXdIgspCwOIVwjvBblF6eBOhB7EER/Uq5T3I8jPCNhW QaMjAu1Wli9j7YLvO7DOYvYYr4EIWHqU7v+G2+sKdLdUDmn4Q4nyHZMYJAX2sihCH5 bQKxp1A5PPpKjcTgKbmxWEyBdQPjOR/uBIqJ4nmaP6w576pMtC7G8LqPXo4/KCZngv dxQ3saZzpwJR7FL1cj29jGvB7ONxxKDiC75vnyEIRSPMZM3j4DoZ8K6c/HauEQAABv EsJAPYHrBsAehpDEB2YoIRxw2hz6pMF6hMUoj1d2rrKm8IfFYqMYgjK3vmYDBMYwDs hXWtgOxpIwQgl0b/H5NVFYjUTvV+8u5ipmQjucRlZAeORSvKPQfuHm9WlhUNLqm2f2 9m7zyhjlZk9uP84MX4gd4M33zNdXvCTZX3YdBrfJxipRot/4KyC9wKEGtuEvRhc+Xk oJEUjdYDXK6BhsfbXMnAa3n88FNu+ugFmJNr4B6P2juvJ/59SYuwSJiDVjuHDFoEvk oB0ftNZspSOlw+HuEt+1T/sbsgYXHjmJXHrrfoaP/aFw3Xpa8QcuKUINusa7iGXvRm Z/UUD0e1DNDl/EvJyYHRm8tM= Received: from localhost (unknown [193.32.127.154]) by wolfsden.cz (Postfix) with ESMTPSA id 86A1928C6FB for ; Thu, 15 Feb 2024 12:43:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=wolfsden.cz; s=mail; t=1708001018; bh=2zyY9JtJH1IDKbWbymtLeLFgQd1FU6qdmahtMJIugmg=; h=Date:From:To:Subject; b=tOaz7FueQ+VBk50FMJVllNsNurDjd4qzBL8IFABd7fNflfbTjTAto1UK63vROeAFO H4Dh9A6mjS+BLYY63EQPsJAv66hA58+DLuMto8Ia4JvHQxqfARrjghbf2MiNCEtUl/ leGkFP3xy2fjCxjlKqa1rggOsMIOVvhT4FDee1nwhxO8ioMyzWSpwssGXi+3cKQiNZ sw+xr4B10haEQRafTI7YEFCIW+RaLvDF1qFDMdkA7BX3t5ik/nWtUy1CM12ADLa3l6 16qsEBPx7pQ16zeQD8NF8fpCEZg+m8VnNd9FIdqWCwUYjycmOy8uD8jbUOyeNo/2nL eCOy0F6SfFRoMqF+MF4mM41ST9qxgZuURKPDa/8cFePmJclLYBuD6TExY14aAVQm5g D+Zn/Vlhi7repkngs7/h45c4i7ii3cwUUOSoMeasKHq+p1Gwc0urwvL0X94tpWtEvN /ckWd6Q475OqSDJ3wII+rugXO3RWiTi7WX9NO+FukKquIHSaB19uwVu6FTyMh2nsY2 xYNKrLsBQ9v1PCGGyPVXzYWDHZ29JeoyX8KxcyMWwx08Ly7mIruH5xo7yUr9bxwNHO WHD5/TQU6Xn6w5qXn4icQuJNZo4Un9IXBnr/ZZsw2mZcTHpRl4Gb8ObOcEfB37cn3e g7c83jCyQI3xQPUJwm9RSSyo= Date: Thu, 15 Feb 2024 13:43:37 +0100 From: Tomas Volf <~@wolfsden.cz> To: help-guix@gnu.org Subject: How to debug a failed build of rust application under cargo-build-system? Message-ID: Mail-Followup-To: help-guix@gnu.org MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="vByQZsXtnAkLHohp" Content-Disposition: inline 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-Country: US X-Migadu-Flow: FLOW_IN X-Migadu-Scanner: mx12.migadu.com X-Migadu-Spam-Score: -10.63 X-Spam-Score: -10.63 X-Migadu-Queue-Id: 54A1261133 X-TUID: Hv2GJVwFt1yy --vByQZsXtnAkLHohp Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Greetings, I am trying to package a rust application and the build fails. I am not sure how to debug that. When I try to compile the application using `cargo install', it does pass and build just fine. However, when I try to build the application (imported using the cargo importer) using `guix build', I get this error: Compiling tonic v0.10.2 error[E0277]: the `?` operator can only be used in an async block that returns `Result` or `Option` (or another type that implements `FromResidual`) --> /tmp/guix-build-netavark-1.10.3.drv-0/netavark-1.10.3/guix-vendor/rust-tonic-0.10.2.tar.gz/src/transport/server/incoming.rs:32:45 | 28 | / async_stream::try_stream! { 29 | | tokio::pin!(incoming); 30 | | 31 | | while let Some(item) = incoming.next().await { 32 | | yield item.map(ServerIo::new_io)? | | ^ cannot use the `?` operator in an async block that returns `()` 33 | | } 34 | | } | |_____- this function should return `Result` or `Option` to accept `?` | = help: the trait `FromResidual>` is not implemented for `()` For more information about this error, try `rustc --explain E0277`. error: could not compile `tonic` (lib) due to previous error I am not know rust, but this looks like a code error? If that is the case, I do not understand why `cargo install' works, since it should be using the same code. Could someone nudge me in the right direction regarding how to debug this issue? I am not really sure where to start. Thank you and have a nice day, Tomas Volf -- There are only two hard things in Computer Science: cache invalidation, naming things and off-by-one errors. --vByQZsXtnAkLHohp Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEEt4NJs4wUfTYpiGikL7/ufbZ/wakFAmXOBvkACgkQL7/ufbZ/ wak5cxAAjy/VsrrzpVllv42doBJsYz/YukgU7XszWEdNd2M9gwpv0FDM/iLQ99QA D02v6TaNDr9OdUo64GYYcjubysTfeFpb606xGUie91uu/Lv8IohsUbogMQsGVeri q3uL3YNUL3j7MHevdwJzmhiMAgRpePFlpGyWPROA7TsWZKqHCKzPX8WqN2PnkA0P eUINtbBHo8ESYJm6AEqL8jm3hssECam0s/r9mPrzbB4ja1pv+njm8QNF7qijm6TC 5CiUcjTjLdhgTicAXsoLoguK1UXfFvu0cVTS60f+P23V0q8sqhK6gfXB9PJ4Y69r 4/vdV8IniAZe+VJgQezR6OcizzWOgxbz3NOroWm/hxdK6SS9f6vO/Mk1eKj6OAHy ON7TL0TofLayFdHnZFbGQbplsYEeLAzp81FX5xYS+dralvXYLS8zvKKVilrl/kup If9azISvrzBw7Rineg5qZ7+lqYmXyUF1UtW16O0vL54gsYZf7Ai4ejONGQWz8aXi ZOIBsbi/w18WbPJwIAQqXnkBgjS/5luIdIpprPDM75aVU8bUwByK/AdJ1gYuB7V8 QwImebZ026hnmEbNE3g3d+EmHe4Otink8Fga+sNc0n6E89JqmW1q75HniiSKvFLp 6VZwJ94K6oaFotjqaeut91hdbyYFCECTYwXnuUQrXt6Js1vzBmA= =Ov7Q -----END PGP SIGNATURE----- --vByQZsXtnAkLHohp--