On Fri, Apr 20, 2018 at 07:42:14 +0100, Alex Bennée wrote: > > Richard Henderson <richard.hender...@linaro.org> writes: (snip) > >> Finally the end of the series has me adding Emilio's fp-test to the > >> per-target builds. Unfortunately although some osdep.h and softfloat.c > >> fiddling allows us to build in most cases I still can't build for > >> example an i386 fp-test on an x86_64 host using the cross compiler as > >> it triggers incompatibilities with config-host.h - in this case Int128 > >> support. Currently I just hackily disable fp-test for non-64 bit > >> platforms. > > > > It seems I can't even build fp-test for x86_64. > > > > CROSS-BUILD x86_64 guest-tests with cc > > In file included from /home/rth/work/qemu/qemu/tests/fp/fp-test.c:14:0: > > /home/rth/work/qemu/qemu/include/qemu/osdep.h:30:10: fatal error: > > config-host.h: No such file or directory > > #include "config-host.h" > > ^~~~~~~~~~~~~~~ > > compilation terminated. > > Weird as that works for me. Has configure been run? Are you in a > external build dir?
config-host.h is generated when running "make" (to build whatever targets were configured), so the recipe in tests/fp expects that to have happened. I think this is commonly expected when building tests/, but if I'm mistaken we could fix it by adding a rule for config-host.h as a prerequisite. E.