"not something we can build"
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")
(version "2.32")
(source (origin
(method url-fetch)
(uri "mirror://gnu/binutils/binutils-2.32.tar.xz")
(sha256
(base32 "017ffgj3d2rfr13692bzamsrz2qanywibfkj35bfv4kav1fwbdha"))))
(build-system gnu-build-system)
(arguments '(#:configure-flags '("--target=avr --disable-nls")))
(synopsis "Binutils for AVR")
(description "Binutils for the AVR architecture.")
(home-page "https://www.gnu.org/software/binutils/")
(license gpl3+)))
Posted Sep 19, 2019, 2:21 AM UTC
Answer: the file needs to evaluate to the package. So I needed to put `binutils-avr` at the end of the file. Now I am getting a stack of more informative errors.