From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ricardo Wurmus Subject: Re: [PATCH 2/5] gnu: Add avr-gcc. Date: Wed, 10 Aug 2016 09:52:11 +0200 Message-ID: <874m6tdpsk.fsf@mdc-berlin.de> 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> <87a8glemzq.fsf@elephly.net> <20160810091511.22120e53@scratchpost.org> Mime-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:52295) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bXOJO-0006cl-3I for guix-devel@gnu.org; Wed, 10 Aug 2016 03:52:27 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bXOJJ-0004qw-SR for guix-devel@gnu.org; Wed, 10 Aug 2016 03:52:25 -0400 Received: from sinope02.bbbm.mdc-berlin.de ([141.80.25.24]:36199) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bXOJJ-0004qa-IA for guix-devel@gnu.org; Wed, 10 Aug 2016 03:52:21 -0400 In-Reply-To: <20160810091511.22120e53@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: >> Did you install the =E2=80=9Cavr-toolchain=E2=80=9D package or just th= e =E2=80=9Cavr-gcc=E2=80=9D?=20 > > I have installed the package "avr-toolchain". The program "avr-gcc" is = in my profile but I think it was not from the package avr-gcc. > > $ ls -l /home/dannym/.guix-profile/bin/avr-gcc > lrwxrwxrwx 143 root guixbuild 69 1. Jan 1970 /home/dannym/.guix-profi= le/bin/avr-gcc -> /gnu/store/lhy6jlpwf92yknmfai3675lmr8bhc4jf-avr-gcc-5.3= .0/bin/avr-gcc > $ guix package -r avr-gcc > nothing to be done > $ ls -l /home/dannym/.guix-profile/bin/avr-gcc > lrwxrwxrwx 143 root guixbuild 69 1. Jan 1970 /home/dannym/.guix-profi= le/bin/avr-gcc -> /gnu/store/lhy6jlpwf92yknmfai3675lmr8bhc4jf-avr-gcc-5.3= .0/bin/avr-gcc > > I've read through the mailing list but even the "-D__x86_64__" hack doe= sn't work anymore. Hmm... > >> Should application setup for individual applications also be added to = the manual? > > In general yes - but I think avr-gcc is special in that it really doesn= 't need host system stuff at all. There should be no configuration necess= ary. (It is necessary, but it shouldn't be) > > Also, I manually added avr/include and avr/lib as a workaround. This mo= stly works. However, when linking I get: I=E2=80=99m pretty sure I didn=E2=80=99t have to do this. Instead it was= sufficient to set a couple of environment variables. The effect is the same, though. > ... > avr-ld: cannot find crtatmega32u4.o: No such file or directory > avr-ld: cannot find -latmega32u4 > > And indeed this crt doesn't exist at all. I encountered the same issue last time I used avr-gcc. This hasn=E2=80=99= t always been like this. If I recall correctly the names of the crt files changed after we enabled multilib support. Maybe Dave knows more about this? ~~ Ricardo