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