From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ekaitz Zarraga Subject: bug#39794: AVR-Toolchain-5 avr/io not found Date: Tue, 25 Feb 2020 22:12:30 +0000 Message-ID: Reply-To: Ekaitz Zarraga Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:56027) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j6iRv-0007Tu-Bd for bug-guix@gnu.org; Tue, 25 Feb 2020 17:13:09 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1j6iRt-0000ux-E8 for bug-guix@gnu.org; Tue, 25 Feb 2020 17:13:07 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:50265) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1j6iRq-0000t6-S5 for bug-guix@gnu.org; Tue, 25 Feb 2020 17:13:05 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1j6iRq-0008Rm-Ll for bug-guix@gnu.org; Tue, 25 Feb 2020 17:13:02 -0500 Sender: "Debbugs-submit" Resent-Message-ID: Received: from eggs.gnu.org ([2001:470:142:3::10]:55401) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j6iRX-0007EZ-8w for bug-guix@gnu.org; Tue, 25 Feb 2020 17:12:47 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1j6iRV-0000DH-KN for bug-guix@gnu.org; Tue, 25 Feb 2020 17:12:42 -0500 Received: from mail-40131.protonmail.ch ([185.70.40.131]:10006) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1j6iRV-00006h-4w for bug-guix@gnu.org; Tue, 25 Feb 2020 17:12:41 -0500 List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+gcggb-bug-guix=m.gmane-mx.org@gnu.org Sender: "bug-Guix" To: 39794@debbugs.gnu.org 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 Atmega= 32u4) has and I'm able to make it compile with avr-gcc@4.9 but when I try w= ith 5 first it fails because it doesn't find `avr/io.h`. Exporting a new CPATH variable fixes it: `export CPATH=3D$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 t= he 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 t= hem 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