edstrange
u/edstrange
I got my avr-tools environment working so I wanted to put it into a channel. I made one here:
https://gitlab.com/strange-crew/strange-guix/channel
I put this in ~/.config/guix/channels.scm:
(cons (channel
`(name 'strange-crew)`
`(url "`[`https://gitlab.com/strange-crew/strange-guix/channel.git`](https://gitlab.com/strange-crew/strange-guix/channel.git)`"))`
%default-channels)
And I am trying to refer to it with this:
(define-module (strange-crew derp)
#:use-module (strange-crew avr))
I had more but I'm now just trying to get it to find the module.
And here's the error:
guix environment -l test.scm
`guix en
I am trying to get the avr tools to work in guix. I've managed to build everything, but for whatever reason the libc library can't be 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
crimson-horror@wormwood:~/development/guix-avr/binutils$
I'm using the following module file. It uses the avr module that already exists to compile a more recent gcc and compiles libc-avr so I have a public name for that package (someone hinted in an earlier post). I've tried both a trivial build package and a manifest but I keep getting the above error.
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
Thank you for the help on my last question, I have another...
I followed along with the 'hello' example and tried to make a build of binutils for the avr architecture. When I run `guix build -f default.scm` I get the error mentioned in the title. I'm not finding it particularly helpful--like why is it something we cannot build? :p Maybe I'm not making the kind of file I think I am?
Here is the content of my file:
(define-module (gnu packages binutils-avr)
#:use-module (guix packages)
#:use-module (guix download)
#:use-module (guix build-system gnu)
#:use-module (guix licenses))
(define-public binutils-avr
(package
`(name "binutils-avr")
I'm just installing guix and playing around with it the first time. Last night I did a `guix pull` not realizing it was going to download and build *everything* including X libraries I didn't ask for. After several hours it failed on a hash match. Today I re-installed the system and just ran `guix environment` and it's downloading, building (looking like a bootstrap), and finally adding these things to the store.
Is there a way to avoid all that building? Is there a way to keep it from building 3-4 different versions of gcc? Like right now it's in the build phase for `balhblahhash-gcc-cross-boot0-5.5.0.drv` and top shows several instances of the compiler running. If it's going
So I build this: https://gitlab.com/strange-crew/strange-embedded/arduino/nix-avr/blob/master/binutils/default.nix
And I try to run it but I get these errors:
crazy-eddie@chaos-pit:~/environments/strange-crew/nix-avr/binutils$ nix-shell -p avr-binutils
error: undefined variable 'avr-binutils' at (string):1:94
(use '--show-trace' to show detailed location information)
crazy-eddie@chaos-pit:~/environments/strange-crew/nix-avr/binutils$ nix-env -q avr-binutils
error: selector 'avr-binutils' matches no derivations
What am I missing here? I expected that to work.
T
You've reached the end of this feed.