<div dir="ltr">Please check again. <div>Please note that this file needs to be included in your PATH. The rest of the scripts don't have to.<div>Sample of test configuration file could be found here.</div><div><a href="https://android.googlesource.com/platform/external/lldb-utils/+/lldb-master-dev/buildbotScripts/testCfg/">https://android.googlesource.com/platform/external/lldb-utils/+/lldb-master-dev/buildbotScripts/testCfg/</a><br></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Oct 20, 2015 at 3:50 PM, Kamil Rytarowski <span dir="ltr"><<a href="mailto:n54@gmx.com" target="_blank">n54@gmx.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">-----BEGIN PGP SIGNED MESSAGE-----<br>
Hash: SHA256<br>
<br>
</span>Where can I find this updateScripts.sh? It's missing under your link:<br>
<br>
<a href="https://android.googlesource.com/platform/external/lldb-utils/+/lldb-mas
ter-dev/buildbotScripts/bashShell/svntotbuild/" rel="noreferrer" target="_blank">https://android.googlesource.com/platform/external/lldb-utils/+/lldb-mas<br>
ter-dev/buildbotScripts/bashShell/svntotbuild/</a><br>
<div><div class="h5"><br>
On 21.10.2015 00:29, Ying Chen wrote:<br>
> Hello Kamil, Galina,<br>
><br>
> If you would like to build LLDB with cmake and ninja, I suggest to<br>
> consider the following two factory functions. Depends on what you<br>
> described, I feel the first one works better for you.<br>
><br>
> 1. getLLDBUbuntuCMakeBuildFactory If you only run local lldb tests,<br>
> this is the factory to use.<br>
><br>
> For example, if you would like to build host lldb with clang and<br>
> Release config, and run tests with clang on x86_64 host, then call<br>
> the function this way,<br>
><br>
> getLLDBUbuntuCMakeBuildFactory(build_compiler = "clang", build_type<br>
> = "Release", local_test_archs=["x86_64"],<br>
> local_test_compilers=["clang"]) If you would like to run local<br>
> tests with gcc compiler as well, then pass<br>
> local_test_compilers=["clang", "gcc"]<br>
><br>
> Dependency: You need to have the required packages to build lldb.<br>
><br>
> Note*: please disable the last step in this function<br>
> "archiveLLDBTestTraces", this steps will upload the log files to a<br>
> cloud storage that you might not have access to.<br>
><br>
> 2. getLLDBScriptCommandsFactory<br>
><br>
> If you have multiple targets to run tests against, for example,<br>
> remote linux, remote android targets and etc, you should choose<br>
> this factory. The advantage of this factory is that it calls a<br>
> script in each step, so it's highly configurable and easy to make<br>
> changes. You just need to make sure the scripts are in builder<br>
> machine and have the correct commands. For your reference, the ones<br>
> that we're currently using could be found here.<br>
> <a href="https://android.googlesource.com/platform/external/lldb-utils/+/lldb-m
aster-dev/buildbotScripts/bashShell/svntotbuild/" rel="noreferrer" target="_blank">https://android.googlesource.com/platform/external/lldb-utils/+/lldb-m<br>
aster-dev/buildbotScripts/bashShell/svntotbuild/</a><br>
><br>
><br>
updateScript as the first step, is just copy the scripts to local builde<br>
rs.<br>
><br>
> Please let me know if you have further questions.<br>
><br>
> Thanks, Ying<br>
><br>
><br>
> On Tue, Oct 20, 2015 at 1:46 PM, Kamil Rytarowski <<a href="mailto:n54@gmx.com">n54@gmx.com</a><br>
</div></div><div><div class="h5">> <mailto:<a href="mailto:n54@gmx.com">n54@gmx.com</a>>> wrote:<br>
><br>
> Hello Ying,<br>
><br>
> I'm in trouble with my attempts to connect my NetBSD/amd64 machine<br>
> to the LLDB/LLVM build zone.<br>
><br>
> My host is NetBSD-7.0 (with buildslave ID:<br>
> lldb-amd64-ninja-netbsd7). I use pkgsrc (2015Q3) to ship packages.<br>
> I'm attaching a list of installed ones to this mail.<br>
><br>
> I talked with Joerg and it was decided to go for CMake and Ninja,<br>
> we don't want to change it for now (at least till single machine<br>
> will be plugged in).<br>
><br>
> Please try to spawn local NetBSD session and connect to the<br>
> staging buildbot and debug it locally, to cut the number of<br>
> iterations between me and the Galina.<br>
><br>
> I'm adding here a short tutorial to get to reproduce quickly the<br>
> setup of mine. It will take you like 2-5 minutes to get into<br>
> installed system (depends of an internet connection).<br>
><br>
> 1. Prepare a disk image. $ qemu-img create -f qcow2 netbsd7.0_amd64<br>
> 10G<br>
><br>
> 2. Get an installation media. $ $FETCH_TOOL<br>
> <a href="ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-7.0/amd64/installation/cdrom/bo" rel="noreferrer" target="_blank">ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-7.0/amd64/installation/cdrom/bo</a><br>
ot<br>
><br>
><br>
- -com.iso<br>
><br>
> 3. Spawn installation $ qemu-system-x86_64 \ -enable-kvm \ -net<br>
> user \ -m 2G \ -cdrom boot-com.iso \ -nographic \ -smp cores=2 \<br>
> -hda netbsd7.0_amd64 \ -boot d<br>
><br>
> 4. Inside the installer push ctrl-c and get the command line.<br>
><br>
> 5. Setup network connection: # dhcpcd<br>
><br>
> 6. Go to a writable dir, like /tmp # cd /tmp<br>
><br>
> 7. Fetch the autoinst.sh script of mine # ftp<br>
> <a href="ftp://ftp.netbsd.org/pub/NetBSD/misc/kamil/autoinst.sh" rel="noreferrer" target="_blank">ftp://ftp.netbsd.org/pub/NetBSD/misc/kamil/autoinst.sh</a><br>
><br>
> # sh autoinst.sh -s 128 -r mypass -c com0 -C 9600 -p wd0<br>
><br>
> (take a coffee break)<br>
><br>
> 8. If everything went OK, just type: # poweroff<br>
><br>
> 9. Start your newly installed system qemu-system-x86_64 \<br>
> -enable-kvm \ -net user \ -m 2G \ -nographic \ -smp cores=2 \ -hda<br>
> netbsd7.0_amd64 \ -boot c (root password is empty)<br>
><br>
> 10. Install dependencies from pkgsrc, like: # cd<br>
> /usr/pkgsrc/devel/cmake && make install<br>
><br>
> Please install packags needed for buildslave, create dedicated<br>
> user and try to connect it to the salve.<br>
><br>
> Thank you in advance,<br>
><br>
> On 20.10.2015 21:40, Galina Kistanova wrote:<br>
>> Hello Kamil,<br>
><br>
>> It looks like you are missing dependencies for the LLDB builder<br>
>> you have chosen.<br>
>> <a href="http://lab.llvm.org:8014/builders/lldb-amd64-ninja-netbsd7/builds/75/" rel="noreferrer" target="_blank">http://lab.llvm.org:8014/builders/lldb-amd64-ninja-netbsd7/builds/75/</a><br>
s<br>
><br>
>><br>
teps/update%20scripts/logs/stdio<br>
</div></div>> <<a href="http://lab.llvm.org:8014/builders/lldb-amd64-ninja-netbsd7/builds/75/" rel="noreferrer" target="_blank">http://lab.llvm.org:8014/builders/lldb-amd64-ninja-netbsd7/builds/75/</a><br>
<span class="">s<br>
><br>
><br>
teps/update%20scripts/logs/stdio><br>
><br>
><br>
><br>
> The getLLDBScriptCommandsFactory build factory does not document<br>
>> the assumed dependency, so you may want to contact Ying Chen,<br>
>> who is the author for the complete list of dependencies.<br>
><br>
>> Another thing you may want to do is to reconsider the builder<br>
>> you want to use. Maybe LLDBBuilder.getLLDBBuildFactory would<br>
>> work better for you, though it requires autoconfig and make.<br>
><br>
>> I'm adding the LLDB mail list in case somebody has an idea of<br>
>> what would be the easiest way to get the NetBSD builder for LLDB<br>
>> up and running.<br>
><br>
>> Hello everyone,<br>
><br>
>> Kamil is on the mission of getting LLDB builder for NetBSDwhich<br>
>> would build clang+LLVM, then LLDB and run tests. What is the<br>
>> shortest and less painful route there? Any suggestions? Just<br>
>> looking at the source code of the current set of the LLDB<br>
>> builders, it is hard to tell which one is the "main".<br>
><br>
>> Thanks<br>
><br>
>> Galina<br>
><br>
><br>
><br>
><br>
><br>
><br>
><br>
<br>
-----BEGIN PGP SIGNATURE-----<br>
Version: GnuPG v2<br>
<br>
</span>iQIcBAEBCAAGBQJWJsUwAAoJEEuzCOmwLnZs0swP/jYtjilLMNrqvLhgIrqRGPOF<br>
TyJ0Davl9OvB5eABlTAPMEtKt73c5hwFSj+oO6UkAAcpRBcF098DDP6ZNoLCKFag<br>
KEpg7HR5mc8FzHNvv4xlTAMJL0JnQU9Qoa0V4PbeRJn51g/Ul8TyeTFL5mzbMzUN<br>
y3qPN2ragyUbV86zkK8dPPQrSdagwY8+xnEGXfMnCF1hUKjNNu7z6cbXIKMypIym<br>
RJyZ8gPe7s+VwLt9byGRkJVfhCeniFNuUyi0V0NHQxwgInPrUnZUPzu9jjZOOX8z<br>
GITDTBtGRI/bWB8xDxMaRLnYO1DDDU2mxriggu2XbbQ8u7qlAgu7bUu1BCVzYTz+<br>
vgnm4ZaHkI4ozc/Tf8wv1UwLUTS0SjnDDcGP/ctDZxdxmktqCNk4ympUazyUjQgF<br>
+BWA9+tS6OKV3alQJEjt7RbbrGPj1bsS9FXc1HkmOOV8IMXD2RFplImNLAnsyZek<br>
34Fw4citgYtIVxIpQIa9+Tpz6XKfa1EVp2LIwcaqVX9wgNwMPeBVYkJcqKdXv30Q<br>
NoLX61Zt1aSKXgBlVireEOf8UMEKrwHGRD5gmpXfKNV8gU4CJOmEarxCQqcLttUh<br>
oMpVqEqWDX93OEVBg31S5JTiKTTTYjHNQMhk8KUSHI8sKmM89KbtMYPwnbxVzEhg<br>
0qG3hc6sGChno9l6WnRX<br>
=XiFI<br>
-----END PGP SIGNATURE-----<br>
</blockquote></div><br></div>