[LTP] uclinux support?

Christophe Lyon
2018-11-11T20:23:17Z

Hello,

I wanted to try to run at least some of the LTP tests on a uclinux
system for arm (arm-uclinuxfdpiceabi), as I am in the process of
upstreaming the toolchain support for the FDPIC ABI for ARM.

I've tried this:
$ make autotools
$ configure CC=~XXX/bin/arm-none-uclinuxfdpiceabi-gcc
CXX=~XXX/bin/arm-none-uclinuxfdpiceabi-g++ --host
arm-none-uclinuxfdpiceabi
$ make all
XXX/lib/gcc/arm-none-uclinuxfdpiceabi/9.0.0/../../../../arm-none-uclinuxfdpiceabi/bin/ld:
../../lib/libltp.a(tst_test.o): in function `fork_testrun':
XXX/ltp/lib/tst_test.c:1104: undefined reference to `fork'
XXX/lib/gcc/arm-none-uclinuxfdpiceabi/9.0.0/../../../../arm-none-uclinuxfdpiceabi/bin/ld:
../../lib/libltp.a(tst_test.o): in function `safe_fork':
XXX/ltp/lib/tst_test.c:395: undefined reference to `fork'
XXX/lib/gcc/arm-none-uclinuxfdpiceabi/9.0.0/../../../../arm-none-uclinuxfdpiceabi/bin/ld:
../../lib/libltp.a(tst_res.o): in function `tst_fork':
XXX/ltp/lib/tst_res.c:421: undefined reference to `fork'

config.h has:
#define UCLINUX 1
/* #undef HAVE_FORK */
#define HAVE_VFORK 1

so it looks like confgure correctly detected the target system.

Am I missing something?

Thanks

Christophe