Hi Kevin, Kevin Vigouroux <[email protected]> writes:
> Hi! > > I started reading the Guix manual from the beginning. > > I am trying to build an OpenWrt image with OpenWrt Buildroot in a development > environment defined using 'guix shell'. It doesn't work. Some header files are > not detected when I run one of the scripts (./openwrt/scripts/feeds > ...). Interesting! I think I had tried that in the past, but this was before we had --emulate-fhs (-F), and it there were many failures to detect libraries due to the OpenWrt build system looking at FHS locations. I investigated with LibreCMC, which shares the same code base as OpenWrt, and came up with this: --8<---------------cut here---------------start------------->8--- modified include/toplevel.mk @@ -36,7 +36,7 @@ unexport P4PORT P4USER P4CONFIG P4CLIENT # prevent user defaults for quilt from interfering unexport QUILT_PATCHES QUILT_PATCH_OPTS -unexport C_INCLUDE_PATH CROSS_COMPILE ARCH +#unexport C_INCLUDE_PATH CROSS_COMPILE ARCH # prevent distro default LPATH from interfering --8<---------------cut here---------------end--------------->8--- It'd be perhaps nicer if we could have a FHS friendly gcc-toolchain package that could find includes under /usr/include instead of having to rely on the usual C_INCLUDE_PATH environment variable. Let me know how far you can get with this! -- Thanks, Maxim
