guix-devel
[Top][All Lists]
Advanced

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

Re: [PATCH 2/5] gnu: Add avr-gcc.


From: Ricardo Wurmus
Subject: Re: [PATCH 2/5] gnu: Add avr-gcc.
Date: Tue, 09 Aug 2016 21:55:05 +0200
User-agent: mu4e 0.9.16; emacs 25.1.1

Danny Milosavljevic <address@hidden> 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 <command-line>: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




reply via email to

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