From: ludo@gnu.org (Ludovic Courtès)
To: Danny Milosavljevic <dannym@scratchpost.org>
Cc: guix-devel@gnu.org
Subject: Re: Cross Compilation for armhf - libc (stdio.h) missing
Date: Tue, 08 Nov 2016 13:42:57 +0100 [thread overview]
Message-ID: <87y40u87n2.fsf@gnu.org> (raw)
In-Reply-To: <20161107111233.6e2b6503@scratchpost.org> (Danny Milosavljevic's message of "Mon, 7 Nov 2016 11:12:33 +0100")
Danny Milosavljevic <dannym@scratchpost.org> skribis:
> I'm trying to build the part of sunxi-tools that is target-specific for the 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=c99 -Iinclude/ -static -D_POSIX_C_SOURCE=200112L -D_BSD_SOURCE -D_DEFAULT_SOURCE -D__ARM_PCS_VFP -o sunxi-meminfo meminfo.c
> meminfo.c:19:19: fatal error: stdio.h: No such file or directory
> #include <stdio.h>
> ^
> compilation terminated.
You need to make sure CROSS_C_INCLUDE_PATH points to the target libc.
That happens automatically when doing a “regular” cross build, like
‘guix build --target=arm-linux-gnueabihf’, but here you may need to set
CROSS_C_INCLUDE_PATH by hand.
HTH!
Ludo’.
prev parent reply other threads:[~2016-11-08 12:43 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-11-07 10:12 Cross Compilation for armhf - libc (stdio.h) missing Danny Milosavljevic
2016-11-08 12:42 ` Ludovic Courtès [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://guix.gnu.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87y40u87n2.fsf@gnu.org \
--to=ludo@gnu.org \
--cc=dannym@scratchpost.org \
--cc=guix-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/guix.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).