From mboxrd@z Thu Jan 1 00:00:00 1970 From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) Subject: Re: Cross Compilation for armhf - libc (stdio.h) missing Date: Tue, 08 Nov 2016 13:42:57 +0100 Message-ID: <87y40u87n2.fsf@gnu.org> References: <20161107111233.6e2b6503@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]:52525) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1c45jz-0005Ru-2q for guix-devel@gnu.org; Tue, 08 Nov 2016 07:43:03 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1c45jv-00050m-E7 for guix-devel@gnu.org; Tue, 08 Nov 2016 07:43:03 -0500 In-Reply-To: <20161107111233.6e2b6503@scratchpost.org> (Danny Milosavljevic's message of "Mon, 7 Nov 2016 11:12:33 +0100") 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@gnu.org Danny Milosavljevic skribis: > I'm trying to build the part of sunxi-tools that is target-specific for t= he target (2 tools). > > However, I cannot get it to pick up armhf glibc. > > What could be the cause? > > I get: > > arm-linux-gnueabihf-gcc -g -O0 -Wall -Wextra -std=3Dc99 -Iinclude/ -stati= c -D_POSIX_C_SOURCE=3D200112L -D_BSD_SOURCE -D_DEFAULT_SOURCE -D__ARM_PCS_V= FP -o sunxi-meminfo meminfo.c > meminfo.c:19:19: fatal error: stdio.h: No such file or directory > #include > ^ > compilation terminated. You need to make sure CROSS_C_INCLUDE_PATH points to the target libc. That happens automatically when doing a =E2=80=9Cregular=E2=80=9D cross bui= ld, like =E2=80=98guix build --target=3Darm-linux-gnueabihf=E2=80=99, but here you m= ay need to set CROSS_C_INCLUDE_PATH by hand. HTH! Ludo=E2=80=99.