GithubHelp home page GithubHelp logo

Comments (8)

zvecr avatar zvecr commented on June 12, 2024

Issue is due to differences in avr-gcc compiler version. Some have known regressions when it comes to generated code size and not really a QMK bug.

qmk compile --keyboard evyd13/gh80_1800 --keymap default --target production
Ψ Compiling keymap with make -r -R -f builddefs/build_keyboard.mk -s production KEYBOARD=evyd13/gh80_1800 KEYMAP=default KEYBOARD_FILESAFE=evyd13_gh80_1800 TARGET=evyd13_gh80_1800_default INTERMEDIATE_OUTPUT=.build/obj_evyd13_gh80_1800_default VERBOSE=false COLOR=true SILENT=false QMK_BIN="qmk" QMK_USERSPACE=/home/zvecr/qmk_userspace


Generating: .build/obj_evyd13_gh80_1800_default/src/info_deps.d                                     [OK]
avr-gcc (GCC) 13.2.0
...
AVR Memory Usage
----------------
Device: atmega32u4

Program:    3964 bytes (12.1% Full)
(.text + .data + .bootloader)

Data:        155 bytes (6.1% Full)
(.data + .bss + .noinit)


BootloaderDFU.hex copied to evyd13_gh80_1800_default_bootloader.hex
File sizes:
   text	   data	    bss	    dec	    hex	filename
      0	  16024	      0	  16024	   3e98	evyd13_gh80_1800_default.hex
      0	   4020	      0	   4020	    fb4	evyd13_gh80_1800_default_bootloader.hex
      0	  20044	      0	  20044	   4e4c	evyd13_gh80_1800_default_production.hex

8.x has been mentioned as good, 13 as used above builds fine.

from qmk_firmware.

MaxJ345 avatar MaxJ345 commented on June 12, 2024

Should I update avr-gcc using pacman?: pacman -S avr-gcc

Or is there some other/preferred way of doing it using the QMK CLI?

from qmk_firmware.

MaxJ345 avatar MaxJ345 commented on June 12, 2024

Actually, I don't see avr-gcc listed by pacman as an installed package.

How do I set the version of avr-gcc used by QMK?

from qmk_firmware.

zvecr avatar zvecr commented on June 12, 2024

https://packages.msys2.org/package/mingw-w64-x86_64-avr-gcc 12.2.0 is the latest available for MSYS.

from qmk_firmware.

MaxJ345 avatar MaxJ345 commented on June 12, 2024

So how did you get QMK to compile with avr-gcc version 13.2.0 above?

from qmk_firmware.

tzarc avatar tzarc commented on June 12, 2024

Put simply, I don't use QMK MSYS; different Linux distributions bundle different compiler versions, and in my case, I've compiled my own copy of gcc 13.2.0 to run under Linux.

Ultimately this is outside the scope of QMK's support -- we make a best-effort attempt at getting things to work on as many operating system combinations as possible, but with the number of people we have and the numerous variations in the wild, we can't support everything. We don't have control over which version of GCC is packaged by the MSYS team, and at the moment I'd hazard a guess and say that almost nobody can build production targets under QMK MSYS.

If it's critical that you build production targets, your best bet is to figure out an alternative compilation environment such as Linux. If you can run Docker locally you can try to use the prebuilt QMK CLI container which contains an older version of GCC (in the 8.x series) which under normal circumstances should work fine. Neither of these solutions are going to be as simple to get working as QMK MSYS.

EDIT: Arch Linux has 13.2.0, for example: https://archlinux.org/packages/?sort=&q=avr&maintainer=&flagged=

from qmk_firmware.

MaxJ345 avatar MaxJ345 commented on June 12, 2024

I see. That's unfortunate.

I'll try to see if I can get it working in a Linux-based environment. Thank you for your help!

from qmk_firmware.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.