unofficial mirror of help-guix@gnu.org 
 help / color / mirror / Atom feed
* Rust development in guix
@ 2024-08-21 13:25 Hannes Walter
  2024-08-26 23:13 ` woshilapin
  0 siblings, 1 reply; 3+ messages in thread
From: Hannes Walter @ 2024-08-21 13:25 UTC (permalink / raw)
  To: help-guix

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



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Rust development in guix
  2024-08-21 13:25 Rust development in guix Hannes Walter
@ 2024-08-26 23:13 ` woshilapin
  2024-08-27 10:15   ` Worni
  0 siblings, 1 reply; 3+ messages in thread
From: woshilapin @ 2024-08-26 23:13 UTC (permalink / raw)
  To: Hannes Walter; +Cc: help-guix

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 <hannes@walter.hamburg> 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


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Rust development in guix
  2024-08-26 23:13 ` woshilapin
@ 2024-08-27 10:15   ` Worni
  0 siblings, 0 replies; 3+ messages in thread
From: Worni @ 2024-08-27 10:15 UTC (permalink / raw)
  To: help-guix

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 <hannes@walter.hamburg> 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



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2024-08-27 10:16 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-08-21 13:25 Rust development in guix Hannes Walter
2024-08-26 23:13 ` woshilapin
2024-08-27 10:15   ` Worni

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).