Vasileios Kalintiris via llvm-dev
2016-Feb-02 16:21 UTC
[llvm-dev] What is the correct way to cross-compile LLVM and run the (in-tree) tests on a target board?
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? 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. Thanks, Vasileios
Vasileios Kalintiris via llvm-dev
2016-Feb-12 10:55 UTC
[llvm-dev] What is the correct way to cross-compile LLVM and run the (in-tree) tests on a target board?
Ping. I suppose that this has not been attempted before. Regardless of my use case, I was thinking that it would be a useful feature to have, for quickly testing targets where building Clang/LLVM natively is slow. - Vasileios ________________________________________ From: Vasileios Kalintiris Sent: 02 February 2016 16:21 To: llvm-dev at lists.llvm.org Subject: What is the correct way to cross-compile LLVM and run the (in-tree) tests on a target board? 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? 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. Thanks, Vasileios
Renato Golin via llvm-dev
2016-Feb-13 13:55 UTC
[llvm-dev] What is the correct way to cross-compile LLVM and run the (in-tree) tests on a target board?
On 2 February 2016 at 16:21, Vasileios Kalintiris via llvm-dev <llvm-dev at lists.llvm.org> wrote:> 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?Hi Vasileios, It is possible, although a bit hacky. Gabor (CC'd) has done a similar thing for AArch64 when the only thing we had were models. There was a buildbot on it, maybe you can use the code to guide you through. cheers, --renato
Jonathan Roelofs via llvm-dev
2016-Feb-13 16:22 UTC
[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
Vasileios Kalintiris via llvm-dev
2016-Feb-15 22:17 UTC
[llvm-dev] What is the correct way to cross-compile LLVM and run the (in-tree) tests on a target board?
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.> 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