[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#39794: AVR-Toolchain-5 avr/io not found

From: Arun Isaac
Subject: bug#39794: AVR-Toolchain-5 avr/io not found
Date: Sun, 01 Mar 2020 00:44:01 +0530

> ```
> QMK Firmware 0.7.163
> Making helix/rev2 with keymap default                                         
>                          [ERRORS]
> In file included from drivers/avr/pro_micro.h:28:0,
>                  from keyboards/helix/rev2/matrix.c:33:
> /gnu/store/gq69j5j0458dcc4jp5ymq62wgnd0mscl-profile/avr/include/avr/pgmspace.h:1456:25:
>  error: unknown type name 'uint_farptr_t'
>  extern size_t strlen_PF(uint_farptr_t src) __ATTR_CONST__; /* program memory 
> can't change */
> ```

I'm not able to reproduce this error. Could you provide the exact steps
you did? Here's what I did.

After applying the patch, drop into an environment with the new avr-toolchain.

--8<---------------cut here---------------start------------->8---
$ ./pre-inst-env guix environment --ad-hoc avr-toolchain
--8<---------------cut here---------------end--------------->8---

Check the version of avr-gcc.

--8<---------------cut here---------------start------------->8---
$ avr-gcc --version

avr-gcc (GCC) 5.5.0
Copyright (C) 2015 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
--8<---------------cut here---------------end--------------->8---

Check avr-gcc include paths.

--8<---------------cut here---------------start------------->8---
$ avr-gcc -E -v -

Using built-in specs.
Reading specs from 
Target: avr
Configured with: 
Thread model: single
gcc version 5.5.0 (GCC) 
COLLECT_GCC_OPTIONS='-E' '-v' '-specs=device-specs/specs-avr2'
 -E -quiet -v - -mn-flash=6 -mskip-bug
ignoring nonexistent directory 
ignoring nonexistent directory 
#include "..." search starts here:
#include <...> search starts here:
End of search list.
--8<---------------cut here---------------end--------------->8---

Navigate to qmk-firmware and clean previous build results.

--8<---------------cut here---------------start------------->8---
$ cd qmk-firmware
$ make clean
--8<---------------cut here---------------end--------------->8---

I'm checking out 0.7.163 and building helix since that's what you seem
to be doing.

--8<---------------cut here---------------start------------->8---
$ git checkout 0.7.163
$ make helix

QMK Firmware 0.7.163
 Python 3 is not installed. It will be required by a future version
 of qmk_firmware.

 Please run util/qmk_install.sh to install all the dependencies QMK requires.

WARNING: Some git submodules are out of date or modified.
 Please consider running make git-submodule.

Making helix/rev2 with keymap default                                           
Making helix/rev2 with keymap edvorakjp                                         
Making helix/rev2 with keymap five_rows                                         
Making helix/rev2 with keymap five_rows_jis                                     
Making helix/rev2 with keymap froggy                                            
Making helix/rev2 with keymap led_test                                          
Making helix/rev2 with keymap xulkal                                            
Making helix/rev2 with keymap yshrsmz                                           
--8<---------------cut here---------------end--------------->8---

Attachment: signature.asc
Description: PGP signature

reply via email to

[Prev in Thread] Current Thread [Next in Thread]