From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Thompson, David" Subject: Re: avr-gcc Date: Tue, 12 Apr 2016 16:14:51 -0400 Message-ID: References: <87wptgmyv1.fsf@elephly.net> <87twoks459.fsf@gnu.org> <87a8qbr2mb.fsf@gnu.org> <87ziy8g3bp.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:38170) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aq4i5-0006To-QB for guix-devel@gnu.org; Tue, 12 Apr 2016 16:14:54 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aq4i4-0007xq-Tz for guix-devel@gnu.org; Tue, 12 Apr 2016 16:14:53 -0400 Received: from mail-yw0-x232.google.com ([2607:f8b0:4002:c05::232]:33908) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aq4i4-0007xc-Mn for guix-devel@gnu.org; Tue, 12 Apr 2016 16:14:52 -0400 Received: by mail-yw0-x232.google.com with SMTP id d68so40257026ywe.1 for ; Tue, 12 Apr 2016 13:14:52 -0700 (PDT) In-Reply-To: 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: =?UTF-8?Q?Ludovic_Court=C3=A8s?= Cc: "guix-devel@gnu.org" On Tue, Apr 12, 2016 at 2:21 PM, Thompson, David wrote: > I don't know why it's including headers from the host system's libc. > Manolis was able to get past it by including a cross-libc built for > i686. Does this seem wrong to anyone else? Any thoughts on what > might be going on here? Well, with a super nasty hack I've been able to successfully build an AVR toolchain without using that cross-libc! The issue is that, at least on x86_64, the avr-libc build happens without the __x86_64__ preprocessor definition. Adding it manually with the make flag 'CFLAGS=-D__x86_64__' yields a successful build. Does anyone have an idea what is going wrong here? If so, how can we make sure that all platforms will build this thing correctly? I use avr-gcc on ARM machines, for example. Thanks, - Dave