From mboxrd@z Thu Jan 1 00:00:00 1970 From: Arun Isaac Subject: Re: AVR toolchain and AVR libc Date: Sun, 23 Feb 2020 23:20:15 +0530 Message-ID: References: <19JoeiC5D-yQvWRdr6EKEl-7bmePCEoX92jmGYXR4CSF5yTOj5wZmCmhR0M1O91CJCBiitfqAYOYQTupsnS1_WjMASoJKn6YnsIWfM1CoBA=@elenq.tech> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:38098) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j5vOn-00013Y-B4 for help-guix@gnu.org; Sun, 23 Feb 2020 12:50:40 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1j5vOl-0006rP-Ee for help-guix@gnu.org; Sun, 23 Feb 2020 12:50:36 -0500 Received: from mugam.systemreboot.net ([139.59.75.54]:50906) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1j5vOk-0006qR-AC for help-guix@gnu.org; Sun, 23 Feb 2020 12:50:35 -0500 In-Reply-To: List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+gcggh-help-guix=m.gmane-mx.org@gnu.org Sender: "Help-Guix" To: Ekaitz Zarraga Cc: help-guix@gnu.org --=-=-= Content-Type: text/plain > Now I made this environment and it still fails. > > guix environment --ad-hoc unzip wget avr-toolchain@4.9 dfu-programmer dfu-util gcc-toolchain arm-none-eabi-toolchain > > Now the error is different: > /gnu/store/p7cs7wfvz26jyyr1qifkl68cr9i61ndq-profile/avr/include/avr/power.h:1149:1: error: function declaration isn't a prototype [-Werror=strict-prototypes] This is the compiler treating the strict prototype warning as an error. You could get around this by using the ALLOW_WARNINGS=yes makeflag supported by the Makefile of the QMK firmware project. make ALLOW_WARNINGS=yes I tested this on the latest master (commit b353028ea5e0ac7b69e7fed4f224c7cb07015ec9) of the QMK firmware git repo with ergodox_ez:default as the make target, and it builds successfully. If you tell me what make target you are using, I could check with that also. > As I'm using Guix as a package manager I was able to try to compile > everything from my distro's package manager's tools and it worked... > I don't know what's going on on Guix. Maybe, the avr-gcc or avr-libc version is different in Guix and your other distro's package manager. That could be a reason for the strict-prototype warning being triggered in one case but not in the other. --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEEf3MDQ/Lwnzx3v3nTLiXui2GAK7MFAl5Su1cACgkQLiXui2GA K7MzkQgAsEoxrZrhjSBcZS5eNVGRmr58I3O2Ii9rKdp4ca+dKNC4AafrRcdIjdUk mFmfXjxcNvu61RRI5y0GThqGR8LtSbamCswD5crBwVN/t906eS/2ERz9+jIgNWRZ NzUfxgcXPgDZtFy/037BP6nWElBEGMvbEik7ZEtiTI3AIqJ5EjTthhqO07+tyLX8 I3uAkFrcL+TcZkV+V/IGEbYGDNBlHS5jPm/3h7MiyfysTjXugxWoSDHW5g8BLjDj 4ITqyS9Un/SCupb3SGLFuI9PjYsgkn4Su10HfFI7DpROu1CYntEISMO4SMNQOYn6 hi9tfF2BdwaXYetkY0e7rXrwUMg2Eg== =k1Xd -----END PGP SIGNATURE----- --=-=-=--