[LLVMdev] tools build issue with lnt in cross platform testing

Reed Kotler rkotler at mips.com
Thu Jun 6 19:09:22 PDT 2013


The issues seems to be this line in the tools Makefile

timeit-target: timeit.c
	$(LD_ENV_OVERRIDES) $(LCC) -o $@ $< $(LDFLAGS) $(CFLAGS) 
$(TARGET_FLAGS) -O3

It should not add target flags if we are simulating the target on the host.


On 06/06/2013 06:59 PM, reed kotler wrote:
> I want to get lnt to use qemu for the execution.
>
> In that case, RHOST= is not set.
>
> But  I change the Arch because I am going to run in cross mode.
>
> Then I'm setting RUNUNDER to be a script which runs qemu.
>
> In this case it builds timeit-target as a Mips which fails because this
> is running on x86.
>
> ~/mysandbox/bin/lnt runtest nt  --sandbox ~/mysandbox --cc
> /local/llvmpb_a/install/bin/clang  --cflag "-target mipsel-linux-gnu -EL
> -mips16 -gcc-toolchain
> /mips/arch/overflow/codesourcery/mips-linux-gnu/pro/release/2011.09-90/Linux
> -fPIC" --test-suite ~/workspace/test-suite -j 1 --only-test
> SingleSource/UnitTests/Mips --make-param=MIPSARCH=mips16
> --llvm-arch=Mips
> --make-param=RUNUNDER=/home/rkotler/test-suite/qemusample/qemueluser.sh
>
> Seems like this is just a bug in the rules for building the tools but
> maybe there is a way around this?
>
> One other thing is that I'm using a script for RUNUNDER but would like
> to just invoke qemu and pass the parameters through lnt. Is there a way
> to do this?





More information about the llvm-dev mailing list