[llvm-dev] What is the correct way to cross-compile LLVM and run the (in-tree) tests on a target board?

Jonathan Roelofs via llvm-dev llvm-dev at lists.llvm.org
Mon Feb 15 14:32:18 PST 2016



On 2/15/16 3:17 PM, Vasileios Kalintiris wrote:
> Hi Jon,
>
>> We cross-build from linux build machines to
>> windows+cygwin host machines, and to run the tests we just nfs mount the
>> build dir on the windows machine and fire up the testsuite in the
>> "normal" way, just on the other machine.
>
> That's what we are trying to do too. I guess something goes wary at configuration time. I'll give it another try and see if I can get it to work correctly.

One thing that might help is to mount things in the same place as they 
would be on the other machine so the absolute paths still match up.


Jon

>
>> There was a buildbot on it, maybe you can use the code to guide you through.
>
> @Renato: Is the buildbot or its configuration still available anywhere (I guess in zorg's history)? I'd like to take a look out of curiosity.
>
> Thanks,
> Vasileios
>
> ________________________________________
> From: Jonathan Roelofs [jonathan at codesourcery.com]
> Sent: 13 February 2016 16:22
> To: Vasileios Kalintiris; llvm-dev at lists.llvm.org
> Subject: Re: [llvm-dev] What is the correct way to cross-compile LLVM and run the (in-tree) tests on a target board?
>
> On 2/2/16 9:21 AM, Vasileios Kalintiris via llvm-dev wrote:
>> Hi all,
>>
>> Is there any way to cross-compile LLVM and run check-all, or just the
>> llvm-lit tests, (after moving the build directory) on the target
>> machine?
>
> You mean on the $host, when $build != $host? The only real $target tests
> are for the runtimes.
>
> For libcxx and libcxxabi, there's a TargetExecutor thing that can be
> used to execute tests on a remote target over ssh (or with a script).
> Compiler-rt has a similar thing, with executor scripts, but I don't know
> the details.
>
>>
>> As far as I can tell from the CMakefiles, there's support only for
>> cross-compiling LLVM and not for running the tests with the resulting
>> compiler.
>
> As for running the host tests in the lit suite when $host != $build, I
> think copying is sufficient. We cross-build from linux build machines to
> windows+cygwin host machines, and to run the tests we just nfs mount the
> build dir on the windows machine and fire up the testsuite in the
> "normal" way, just on the other machine.
>
>
> Jon
>
>>
>> Thanks, Vasileios
>> _______________________________________________
>> LLVM Developers mailing list
>> llvm-dev at lists.llvm.org
>> http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev
>>
>
> --
> Jon Roelofs
> jonathan at codesourcery.com
> CodeSourcery / Mentor Embedded
>

-- 
Jon Roelofs
jonathan at codesourcery.com
CodeSourcery / Mentor Embedded


More information about the llvm-dev mailing list