<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">On 2016年10月13日 22:59, Burton, Ross
wrote:<br>
</div>
<blockquote
cite="mid:CAJTo0LaFVw6oUW5jL7kR-B3TWenNwowGRzcG8=5K=CGqPFx+5w@mail.gmail.com"
type="cite">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<div dir="ltr">
<div class="gmail_extra"><br>
<div class="gmail_quote">On 13 October 2016 at 15:40, Kang Kai
<span dir="ltr"><<a moz-do-not-send="true"
href="mailto:Kai.Kang@windriver.com" target="_blank">Kai.Kang@windriver.com</a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">
<div bgcolor="#FFFFFF" text="#000000">gcc checks tsan and
lsan support in source file gcc/libsanitizer/configure.<wbr>tgt,
it seems only support x86_64. Then tsan and lsan related
packages will be empty for other target.<br>
For qemuarm project, add in local.conf:<br>
<br>
IMAGE_INSTALL_append = " libtsan"</div>
</blockquote>
</div>
<br>
If libtsan is x86-64 only, why not only add it for x86-64
images? The package not existing on machines it can't be
built for is more obvious than existing but being empty.</div>
</div>
</blockquote>
<br>
The real scenario is for x86-64 kernel with x86 rootfs. We created a
template to enable gcc sanitize support. It just simple adds
sanitize related packages to image:<br>
<br>
LIBX_DEV ?=
""
<br>
LIBX_DEV_x86-64 = "liblsan-dev libtsan-dev"<br>
<br>
IMAGE_INSTALL += " \<br>
gcc-sanitizers \<br>
libasan-dev \<br>
libubsan-dev \<br>
${LIBX_DEV} \<br>
"<br>
<br>
When multilib is enabled, it fails for x86-64 kernel with x86 rootfs
such as lib32-xxx-image on qemux86-64. Var IMAGE_INSTALL will be
expand with prefix lib32 but lib32-lsan* and lib32-tsan* are empty
then cause the failures.<br>
<br>
Regards,<br>
Kai<br>
<br>
<blockquote
cite="mid:CAJTo0LaFVw6oUW5jL7kR-B3TWenNwowGRzcG8=5K=CGqPFx+5w@mail.gmail.com"
type="cite">
<div dir="ltr">
<div class="gmail_extra"><br>
</div>
<div class="gmail_extra">Ross</div>
</div>
</blockquote>
<br>
<br>
<pre class="moz-signature" cols="72">--
Regards,
Neil | Kai Kang</pre>
</body>
</html>