While building glibc, with ./pre-inst-env guix build -e '((@@ (gnu packages cross-base) cross-gcc) "i686-pc-gnu")' I noticed in the config.log file this:
> COLLECT_GCC=gcc
> COLLECT_LTO_WRAPPER=/gnu/store/z8qifq9172ad17a7mxg9w8jq51axwwqr-gcc-4.8.2/libexec/gcc/x86_64-unknown-linux-gnu/4.8.2/lto-wrapper
> Target: x86_64-unknown-linux-gnu
My question is why isn't it using the cross-gcc? I have cross-gcc as a native input.
In the config.log you can see that although it has included sans-libc gcc it uses the native.
> PATH: /gnu/store/bqdzvkhyvfnjsa4dhfvmafysa8kyw231-gcc-cross-sans-libc-i686-pc-gnu-4.8.2/bin
> PATH: /gnu/store/z8qifq9172ad17a7mxg9w8jq51axwwqr-gcc-4.8.2/bin
> configure:2470: found /gnu/store/z8qifq9172ad17a7mxg9w8jq51axwwqr-gcc-4.8.2/bin/gcc