From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ricardo Wurmus Subject: Re: Microscheme failed Date: Mon, 04 Jul 2016 08:14:55 +0200 Message-ID: <87vb0mdj4w.fsf@elephly.net> References: <448fd23bfc5b716dadbaf46aac1b85ce@d4n1.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]:48468) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bJx9v-0000Vh-Qk for help-guix@gnu.org; Mon, 04 Jul 2016 02:15:08 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bJx9q-0006KC-On for help-guix@gnu.org; Mon, 04 Jul 2016 02:15:07 -0400 Received: from sender163-mail.zoho.com ([74.201.84.163]:24574) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bJx9q-0006K0-HG for help-guix@gnu.org; Mon, 04 Jul 2016 02:15:02 -0400 In-reply-to: <448fd23bfc5b716dadbaf46aac1b85ce@d4n1.org> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+gcggh-help-guix=m.gmane.org@gnu.org Sender: "Help-Guix" To: Daniel Pimentel Cc: help-guix@gnu.org Hi Daniel, > I try compile to Arduino plataform using Microscheme (installed with: > guix package -i microscheme) on GuixSD, but there are errors. > > I did: > sudo microscheme -m UNO -d /dev/ttyACM0 -au lightom.ms This is unrelated but I recommend not using “sudo” here. You can add a udev rule to your system configuration to change the ownership of /dev/ttyACM0. For my AVR programmers I have this in my system configuration: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ (define avrispmkii-udev-rule (udev-rule "90-avrispmkii.rules" "\ SUBSYSTEM!=\"usb\", ACTION!=\"add\", GOTO=\"avrisp_end\" # Atmel Corp. JTAG ICE mkII ATTR{idVendor}==\"03eb\", ATTR{idProduct}==\"2103\", MODE=\"660\", GROUP=\"dialout\" # Atmel Corp. AVRISP mkII ATTR{idVendor}==\"03eb\", ATTR{idProduct}==\"2104\", MODE=\"660\", GROUP=\"dialout\" # Atmel Corp. Dragon ATTR{idVendor}==\"03eb\", ATTR{idProduct}==\"2107\", MODE=\"660\", GROUP=\"dialout\" LABEL=\"avrisp_end\"\n")) (operating-system … (services (cons* (modify-services %desktop-services (udev-service-type config => (udev-configuration (inherit config) (rules (append (udev-configuration-rules config) (list avrispmkii-udev-rule)))))))) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > Errors: > ... >>> 32 lines compiled OK >>> Assembling... > avr-ld: cannot find crtatmega328p.o: No such file or directory This is a bug in our AVR toolchain. The internal search path for these files appears to be wrong. What I did was copy the “crt*.o” file I needed to my working directory. Maybe you can send an email to bug-guix@gnu.org to report this as a bug? > I have avr-gcc avr-libc avrdude avr-binutils avr-toolchain installed. You only need “avr-toolchain” as it contains all the other packages. ~~ Ricardo