From mboxrd@z Thu Jan 1 00:00:00 1970 From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) Subject: Re: avr-gcc Date: Wed, 13 Apr 2016 22:42:11 +0200 Message-ID: <87a8kxfdgc.fsf@gnu.org> 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 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:34441) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aqRc9-000576-Ad for guix-devel@gnu.org; Wed, 13 Apr 2016 16:42:18 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aqRc6-0001Zo-Kc for guix-devel@gnu.org; Wed, 13 Apr 2016 16:42:17 -0400 In-Reply-To: (David Thompson's message of "Tue, 12 Apr 2016 14:21:17 -0400") 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: "Thompson, David" Cc: "guix-devel@gnu.org" "Thompson, David" skribis: > avr-gcc -DHAVE_CONFIG_H -I. -I../../../../avr-libc-2.0.0/avr/lib/avr2 > -I../../.. -I../../../../avr-libc-2.0.0/common > -I../../../../avr-libc-2.0.0/include -I../../../include > -I../../../../avr-libc-2.0.0/common > -I../../../../avr-libc-2.0.0/include -I../../../include -x > assembler-with-cpp -mmcu=3Davr2 -D__COMPILING_AVR_LIBC__ -MT abort.o > -MD -MP -MF .deps/abort.Tpo -c -o abort.o > ../../../../avr-libc-2.0.0/libc/stdlib/abort.S > In file included from > /gnu/store/8m00x5x8ykmar27s9248cmhnkdb2n54a-glibc-2.22/include/features.h= :389:0, > from > /gnu/store/8m00x5x8ykmar27s9248cmhnkdb2n54a-glibc-2.22/include/limits.h:2= 5, > from ../../../../avr-libc-2.0.0/libc/stdlib/strtol.c:33: > /gnu/store/8m00x5x8ykmar27s9248cmhnkdb2n54a-glibc-2.22/include/gnu/stubs.= h:7:27: > fatal error: gnu/stubs-32.h: No such file or directory > # include > ^ > compilation terminated. is used when building on a 64-bit glibc system in 32-bit mode. However, our glibc does not provide it currently. > I don't know why it's including headers from the host system's libc. Right, that=E2=80=99s a problem. I would expect it to only include target = libc headers. Could you check C_INCLUDE_PATH and CROSS_CPATH in there? Note that our =E2=80=98gcc=E2=80=99 package is modified to honor the specia= l CROSS_CPATH variable, see gcc-cross-environment-variables.patch. Maybe the equivalent thing is missing from avr-gcc? Good that you=E2=80=99re getting there! Ludo=E2=80=99.