Me again -- avr-toolchain won't build anything.
So I've been messing about trying to build an avr environment on my own and I found that there was one already in gnu/packages/avr.scm.
I expected to be able to run `guix environment --pure avr-toolchain-5` and get a build environment. The first surprise was that this name is not found. It's `avr-toolchain` without any version. What I don't get about that is that there are two packages named `avr-toolchain-4.9` and `avr-toolchain-5` that are created via a function called `avr-toolchain` that takes an argument to the gcc package to use it with. There's no avr-toolchain package described as far as I can tell so I'm shocked that's the name I have to use, and the ones I think are packages don't work.
So the next thing I tried was `guix environment --pure avr-toolchain`. This creates an environment that contains the right binutils and avr-gcc but it can't find its libc. That surprises me because the avr-toolchain function describes a package that has propagated-inputs that include libc-avr.
I thought maybe I was looking at a more recent version of the guix store and so I did a pull. This didn't solve the issue though :(
Any ideas? The source is in guix/gnu/packages/avr.scm. Thank you for any help. Following is my attempt to use the environment.
crimson-horror@wormwood:~/development/guix-avr/binutils$ guix environment --pure avr-toolchain
guile: warning: failed to install locale
Command 'lesspipe' is available in the following places
* /bin/lesspipe
* /usr/bin/lesspipe
The command could not be located because '/bin:/usr/bin' is not included in the PATH environment variable.
lesspipe: command not found
Command 'dircolors' is available in '/usr/bin/dircolors'
The command could not be located because '/usr/bin' is not included in the PATH environment variable.
dircolors: command not found
crimson-horror@wormwood:~/development/guix-avr/binutils$ avr-gcc test.c
avr-ld: cannot find -lm
avr-ld: cannot find -lc
collect2: error: ld returned 1 exit status
Posted Sep 21, 2019, 4:22 AM UTC