From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ricardo Wurmus Subject: Re: [PATCH 2/5] gnu: Add avr-gcc. Date: Tue, 09 Aug 2016 21:55:05 +0200 Message-ID: <87a8glemzq.fsf@elephly.net> References: <1460639824-9976-1-git-send-email-dthompson2@worcester.edu> <1460639824-9976-3-git-send-email-dthompson2@worcester.edu> <87y48gje6d.fsf@gnu.org> <87vb1sehb6.fsf@gnu.org> <20160809212257.404b88d9@scratchpost.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:45949) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bXD7R-00033f-6Y for guix-devel@gnu.org; Tue, 09 Aug 2016 15:55:22 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bXD7P-0005Mn-B7 for guix-devel@gnu.org; Tue, 09 Aug 2016 15:55:20 -0400 In-reply-to: <20160809212257.404b88d9@scratchpost.org> List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: Danny Milosavljevic Cc: guix-devel Danny Milosavljevic writes: > Hi, > > hmm, does avr-gcc work for anyone on Guix? > > I tried to compile a simple Arduino project and I get: > > /home/dannym/.guix-profile/bin/avr-g++ -x c++ -include Arduino.h -MMD -c -mmcu=atmega32u4 -DF_CPU=16000000L -DARDUINO=100 -DARDUINO_ARCH_AVR -D__PROG_TYPES_COMPAT__ -Iarduino-1.6.10/hardware/arduino/avr/cores/arduino -Iarduino-1.6.10/hardware/arduino/avr/variants/leonardo -Iarduino-1.6.10/hardware/arduino/avr/libraries/SPI/src -Wall -ffunction-sections -fdata-sections -Os -DUSB_VID=0x2341 -DUSB_PID=0x8036 -fno-exceptions main.ino -o build-leonardo/main.ino.o > In file included from /home/dannym/.guix-profile/include/features.h:389:0, > from /home/dannym/.guix-profile/include/stdlib.h:24, > from arduino-1.6.10/hardware/arduino/avr/cores/arduino/Arduino.h:23, > from :0: > /home/dannym/.guix-profile/include/gnu/stubs.h:7:27: fatal error: gnu/stubs-32.h: No such file or directory > compilation terminated. > > As you can see it tries to include the host system headers - which will not work. > > I have the newest Git Guix. Did you install the “avr-toolchain” package or just the “avr-gcc”? I had it working for me in the past after setting a couple of environment variables (I think it was the “CROSS_*” family of variables), but I don’t remember the details, unfortunately. I find that this is true for a number of packages that need additional configuration after installation. Should application setup for individual applications also be added to the manual? Currently we do have a section for application setup, but it’s only for generic things like locale settings and ensuring that applications find certificates, etc. I wouldn’t like to have to dig out old emails on the mailing list if I decide a few months from now to use AVR GCC again. What do others think? ~~ Ricardo