From mboxrd@z Thu Jan 1 00:00:00 1970 From: Manolis Ragkousis Subject: Re: [PATCH 3/5] gnu: avr-libc: Fix build. Date: Thu, 14 Apr 2016 17:02:53 +0300 Message-ID: <570FA30D.3050604@gmail.com> References: <1460639824-9976-1-git-send-email-dthompson2@worcester.edu> <1460639824-9976-4-git-send-email-dthompson2@worcester.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:59233) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aqhrI-0004Lv-G8 for guix-devel@gnu.org; Thu, 14 Apr 2016 10:03:01 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aqhrE-0007qy-GD for guix-devel@gnu.org; Thu, 14 Apr 2016 10:03:00 -0400 Received: from mail-wm0-x243.google.com ([2a00:1450:400c:c09::243]:33796) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aqhrE-0007qf-8z for guix-devel@gnu.org; Thu, 14 Apr 2016 10:02:56 -0400 Received: by mail-wm0-x243.google.com with SMTP id n3so23208391wmn.1 for ; Thu, 14 Apr 2016 07:02:56 -0700 (PDT) In-Reply-To: <1460639824-9976-4-git-send-email-dthompson2@worcester.edu> 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: David Thompson Cc: guix-devel@gnu.org On 04/14/16 16:17, David Thompson wrote: > + (modify-phases %standard-phases > + (add-before 'unpack 'fix-cpath > + (lambda _ > + ;; C_INCLUDE_PATH poses issues for cross-building, leading to > + ;; failures when building avr-libc on 64-bit systems. Simply > + ;; unsetting it allows the build to succeed because it doesn't > + ;; try to use any of the native system's headers. > + (unsetenv "C_INCLUDE_PATH") > + #t))))) Currently I am building it on arm to see if it works there as well. The reason why this works is because avr-gcc has it's own definition of limits.h and it uses that when glibc is not present. Manolis