all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Ekaitz Zarraga <ekaitz@elenq.tech>
To: 39794@debbugs.gnu.org
Subject: bug#39794: AVR-Toolchain-5 avr/io not found
Date: Tue, 25 Feb 2020 22:12:30 +0000	[thread overview]
Message-ID: <I-mxT4KmnM0TbAqtK4PxzrULw5U_nc-p9KeICdpguLfoZ_yd1gHfaUv5aaRYNzbJhMnCB4BpsSgGppr8b9oLSyPpUJezr9vyCwRA2JDLljY=@elenq.tech> (raw)

Hi,

I've been trying to debug AVR toolchain errors found in here:

https://lists.gnu.org/archive/html/help-guix/2020-02/msg00204.html

I'm not experienced enough to know all that's going on here and I need some assistance to make everything work.


I'm working on QMK-Firmware (helix keyboard specifically, that is an Atmega32u4) has and I'm able to make it compile with avr-gcc@4.9 but when I try with 5 first it fails because it doesn't find `avr/io.h`.

Exporting a new CPATH variable fixes it:

`export CPATH=$CPATH:/gnu/store/.../avr/include`

Once the export is done it fails because it's unable to find `gnu/stubs-32.h` and I don't know which package carries that. Can you point me to it?
Should it be added to avr-gcc dependencies?

If someone has the time to help me make it work I'll make the patches and the tests needed, but now I don't know what else to do.

First I'd say the package for avr-gcc@5 should not inherit from avr-gcc@4.9 because 4.9 uses CROSS_* variables and works correctly but 5 doesn't use them like that. So these changes solve that issue:

diff --git a/gnu/packages/avr.scm b/gnu/packages/avr.scm
index 1f99f636e0..74caec5b94 100644
--- a/gnu/packages/avr.scm
+++ b/gnu/packages/avr.scm
@@ -76,7 +76,15 @@
   (package
     (inherit avr-gcc-4.9)
     (version (package-version gcc-5))
-    (source (package-source gcc-5))))
+    (source (package-source gcc-5))
+    (native-search-paths
+      (list (search-path-specification
+              (variable "CPATH")
+              (files '("avr/include")))
+            (search-path-specification
+              (variable "LIBRARY_PATH")
+              (files '("avr/lib")))))))
+

 (define (avr-libc avr-gcc)
   (package


But I don't see how to solve the `gnu/stubs-32.h` error.
Can anyone help me a little on this?

Thanks,

ElenQ Technology
Ethical Innovation

             reply	other threads:[~2020-02-25 22:13 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-02-25 22:12 Ekaitz Zarraga [this message]
2020-02-26  8:44 ` bug#39794: AVR-Toolchain-5 avr/io not found Ekaitz Zarraga
2020-02-28 22:42   ` Ekaitz Zarraga
2020-02-29 15:06     ` Arun Isaac
2020-02-29 15:46       ` Ekaitz Zarraga
2020-02-29 15:58         ` Ekaitz Zarraga
2020-02-29 19:14         ` Arun Isaac
2020-02-29 19:26           ` Ekaitz Zarraga
2020-02-29 20:42             ` Arun Isaac
2020-02-29 21:19               ` Ekaitz Zarraga
2020-03-01  7:07                 ` Arun Isaac

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='I-mxT4KmnM0TbAqtK4PxzrULw5U_nc-p9KeICdpguLfoZ_yd1gHfaUv5aaRYNzbJhMnCB4BpsSgGppr8b9oLSyPpUJezr9vyCwRA2JDLljY=@elenq.tech' \
    --to=ekaitz@elenq.tech \
    --cc=39794@debbugs.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.