Follow up of the problem:
Looks like what it's missing is `multilib`, avr-gcc-4.9 package description
clearly activates multilib and states that in a comment:
(define-public avr-gcc-4.9
(let ((xgcc (cross-gcc "avr" #:xgcc gcc-4.9 #:xbinutils avr-binutils)))
(package
(inherit xgcc)
(name "avr-gcc")
(arguments
(substitute-keyword-arguments (package-arguments xgcc)
((#:phases phases)
`(modify-phases ,phases
;; Without a working multilib build, the resulting GCC lacks
;; support for nearly every AVR chip.
(add-after 'unpack 'fix-genmultilib
(lambda _
;; patch-shebang doesn't work here because there are actually
;; several scripts inside this script, each with a #!/bin/sh
;; that needs patching.
(substitute* "gcc/genmultilib"
(("#!/bin/sh") (string-append "#!" (which "sh"))))
#t))))
((#:configure-flags flags)
`(delete "--disable-multilib" ,flags))))
...
But looks like the avr-gcc-5.5, which is just inheriting the same description,
is not able to create the multilib.
Any idea about why?
I think once we solve that we could have a reasonable avr-toolchain and also go
for newer versions.
Regards,
Ekaitz
ElenQ Technology
Ethical Innovation