From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id uOfJCWSnzWbRKQAA62LTzQ:P1 (envelope-from ) for ; Tue, 27 Aug 2024 10:16:04 +0000 Received: from aspmx1.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1.migadu.com with LMTPS id uOfJCWSnzWbRKQAA62LTzQ (envelope-from ) for ; Tue, 27 Aug 2024 12:16:04 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=mailbox.org header.s=mail20150812 header.b=Lyp30ITD; 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=reject) header.from=mailbox.org ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1724753764; 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: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=azz8WgENIeeV+5onFMQEQUmqvXUrRojnCtNlwJQHmWA=; b=VQXJLenirvQnZq+gnOI2Aw/jHIKBmqxVFTy3eULpNtNgUxALgBw6788SQT+vBwF3kRbpl6 kDtZkMZKRZWsOkMMgO7d5b6MIHRoWvtW4LMnAFSzauQsp0r6w8cWOQ6CGlhgIZ8y+NSlLB 7OHPIzx5V4C8TCP6JtHL0A584FBOdtDMXVJ5b+/epINcFrxciS9G/nWiwTsQtALxQQutwW iFJfG86pyScCwSvK5x4KMChlTBpir4UwS7RJPN+pFCJX0I85w0NCrn0VJPX1JN/YZJiI2k 9omOSlu40wlyG6u/ThZYnlrjfdr9LaF6r+DDI1fvr+l8MmoON6VzBPVJJzkERQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=mailbox.org header.s=mail20150812 header.b=Lyp30ITD; 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=reject) header.from=mailbox.org ARC-Seal: i=1; s=key1; d=yhetil.org; t=1724753764; a=rsa-sha256; cv=none; b=G3pUlXYv4lyEhjChxKtgBd4iWALFsjPaX87pdger47vo5vKzbtehm9lFqo0oXFOK9sEGK0 wLF/l1Gif4d6+N6A2KGoNHQpCeB90FyaTvyRBQsYra17H7IgXLRe9JTr/64ZaE6o8pt7v5 amjMxsTwX5kCWQ8N/beaZXDgra/Zhvw8aFQbLJuJvtGGbOhThkYP6DqHkaWUv0bu5mdJIT bWDmPTI39ywq/6vkcAbAhiQNTStqwOP9bkOzCmUfPpLRdoOqERmg0H4Bps+ncJQQGNbdst ib9CaWgL/GOpOdAKFXsv1dlLnz038W0ZIaLoUlX7zy6M9vGpQwMEzcxpMZl4XA== 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 F028D7CE42 for ; Tue, 27 Aug 2024 12:16:03 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sitET-000389-0V; Tue, 27 Aug 2024 06:15:25 -0400 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 ) id 1sitER-00037p-EP for help-guix@gnu.org; Tue, 27 Aug 2024 06:15:23 -0400 Received: from mout-p-202.mailbox.org ([2001:67c:2050:0:465::202]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_CHACHA20_POLY1305:256) (Exim 4.90_1) (envelope-from ) id 1sitEO-0002eh-PI for help-guix@gnu.org; Tue, 27 Aug 2024 06:15:22 -0400 Received: from smtp1.mailbox.org (smtp1.mailbox.org [10.196.197.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mout-p-202.mailbox.org (Postfix) with ESMTPS id 4WtNhY05BPz9sTM for ; Tue, 27 Aug 2024 12:15:09 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mailbox.org; s=mail20150812; t=1724753709; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=azz8WgENIeeV+5onFMQEQUmqvXUrRojnCtNlwJQHmWA=; b=Lyp30ITDJHjGhSoSvQM3Tc4fyTJgWcT7T6r3yb3vX4sY7VRYB3zqnBpg1E3NrnX5mLAh0D D1Jyfg3IiYqQBvMiFoq7KgZH3oGjulqWhvkVft0TMb5Nf3SrYg4q2kJYR5/uaXHv1oSXCB n7pQHUjtaeIx1NjUaSKpTIy9miWxD9XO9oDNu/5kUCQEVmQugUQfFvI9t4IBHcmzFkEin3 pNBCLa3vNXfIYBgtRFZ9gj8eiaN58b+p2iae83Wb+dWzr5W58ME2v7Xw5Y7WvEVVtj2Eyo Z403X+x9uZQuTmdXXaRuwtM69IsWPRWMin4D2tVGvCmTQwGGb2M5P/3s1rB47g== Message-ID: <6736cfe0-1914-9725-ca0e-e8aca6ae04a5@mailbox.org> Date: Tue, 27 Aug 2024 12:15:07 +0200 MIME-Version: 1.0 Subject: Re: Rust development in guix Content-Language: en-US To: help-guix@gnu.org References: <3f5713a8-726d-4dd1-20a4-7df6630a9eb3@walter.hamburg> From: Worni In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-MBO-RS-ID: 0f18a958e396ddf8bd7 X-MBO-RS-META: yfpiug5r561znr9wxr45saoudahqodon Received-SPF: pass client-ip=2001:67c:2050:0:465::202; envelope-from=worni@mailbox.org; helo=mout-p-202.mailbox.org X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_NONE=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-Spam-Score: -9.88 X-Migadu-Queue-Id: F028D7CE42 X-Migadu-Scanner: mx10.migadu.com X-Migadu-Spam-Score: -9.88 X-TUID: Kl/XnxooLE2g Hi Jean, I was able to solve this problem with the help of someone who messaged me directly. It turns out I was running into this bug: https://issues.guix.gnu.org/63728 installing `gcc-toolchain:static` and rebooting fixed the issue. Thank you for your help! Hannes On 27/08/2024 01:13, woshilapin wrote: > Hi Hannes, > > I've had success setting up, compiling and running a Rust project (a simple main "Hello world" function), dropping in a shell with only these 2 dependencies. > > ``` > guix shell rust rust:cargo > ``` > > Is your program specific in any way? Including external C libraries maybe? > Sincerely, > -- > Jean SIMARD aka woshilapin > > Le mercredi 21 août 2024 à 15:25, Hannes Walter a écrit : > >> Hi all, >> >> >> I'm trying to learn how to program in rust, but using default rust >> package with `guix install rust` throws an error during the linking phase >> >> --8<---------------cut here---------------start------------->8--- >> >> ld: cannot find -lrt: No such file or directory >> --8<---------------cut here---------------end--------------->8--- >> >> >> I also tried setting up rustup in a container as described in >> https://guix.gnu.org/en/blog/2023/the-filesystem-hierarchy-standard-comes-to-guix-containers/ >> but I can't get cargo to start a new project there and I thought before >> I start pulling out my hair I would ask how others have set up a rust >> development environment, maybe even with emacs integration? Perhaps even >> Doomemacs? >> >> What's the guix way of doing things? Or should I just use rustup and >> leave it all outside of the guix system? >> >> Thanks in advance, >> >> Worni