guix-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Cross Compilation for armhf - libc (stdio.h) missing


From: Ludovic Courtès
Subject: Re: Cross Compilation for armhf - libc (stdio.h) missing
Date: Tue, 08 Nov 2016 13:42:57 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1 (gnu/linux)

Danny Milosavljevic <address@hidden> 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’.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]