<feed xmlns='http://www.w3.org/2005/Atom'>
<title>linux/meta-clang.git, branch wrynose</title>
<subtitle>Mirror of github.com/kraj/meta-clang.git</subtitle>
<id>https://git.enea.com/cgit/linux/meta-clang.git/atom?h=wrynose</id>
<link rel='self' href='https://git.enea.com/cgit/linux/meta-clang.git/atom?h=wrynose'/>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/meta-clang.git/'/>
<updated>2026-04-07T17:35:37+00:00</updated>
<entry>
<title>gh/actions: Use checkout action to v6</title>
<updated>2026-04-07T17:35:37+00:00</updated>
<author>
<name>Khem Raj</name>
<email>khem.raj@oss.qualcomm.com</email>
</author>
<published>2026-04-04T18:33:34+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/meta-clang.git/commit/?id=78c5e12f08198f4f257a9348516d2103cd617c1d'/>
<id>urn:sha1:78c5e12f08198f4f257a9348516d2103cd617c1d</id>
<content type='text'>
Signed-off-by: Khem Raj &lt;khem.raj@oss.qualcomm.com&gt;
</content>
</entry>
<entry>
<title>layer.conf: Add wrynose (yocto 6.0) to compatible layers</title>
<updated>2026-03-18T21:50:12+00:00</updated>
<author>
<name>Khem Raj</name>
<email>raj.khem@gmail.com</email>
</author>
<published>2026-03-18T05:52:31+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/meta-clang.git/commit/?id=b044647662a6916299238e7f2d9476d54f528263'/>
<id>urn:sha1:b044647662a6916299238e7f2d9476d54f528263</id>
<content type='text'>
Signed-off-by: Khem Raj &lt;raj.khem@gmail.com&gt;
</content>
</entry>
<entry>
<title>conf/nonclangable: Remove conflicting definition with OE-Core for vulkan-samples</title>
<updated>2026-03-16T21:09:00+00:00</updated>
<author>
<name>Richard Purdie</name>
<email>richard.purdie@linuxfoundation.org</email>
</author>
<published>2026-03-12T21:37:49+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/meta-clang.git/commit/?id=6d818effc533cd80fc254c4cecd162f812a97abc'/>
<id>urn:sha1:6d818effc533cd80fc254c4cecd162f812a97abc</id>
<content type='text'>
This is different to the setting in OE-Core and is causing failures with
yocto-check-layer. The referenced bug was closed a while ago so the issue
is likely fixed, remove the conflicting definition.

Signed-off-by: Richard Purdie &lt;richard.purdie@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>conf/nonclangable: Remove conflicting definition with OE-Core for valgrind</title>
<updated>2026-03-16T21:09:00+00:00</updated>
<author>
<name>Richard Purdie</name>
<email>richard.purdie@linuxfoundation.org</email>
</author>
<published>2026-03-12T21:34:45+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/meta-clang.git/commit/?id=7abda0557dcf85f5b15828117420b507cc423fbf'/>
<id>urn:sha1:7abda0557dcf85f5b15828117420b507cc423fbf</id>
<content type='text'>
This is different to the setting in OE-Core and is causing failures with
yocto-check-layer. The referenced bug was closed a while ago so the issue
is likely fixed, remove the conflicting definition.

Signed-off-by: Richard Purdie &lt;richard.purdie@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>README.md: Fix typo in dependencies section</title>
<updated>2025-12-12T17:35:33+00:00</updated>
<author>
<name>Martin Jansa</name>
<email>martin.jansa@gmail.com</email>
</author>
<published>2025-12-12T07:42:35+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/meta-clang.git/commit/?id=cf20f8bd1366d41094c945597b95dd746e87b871'/>
<id>urn:sha1:cf20f8bd1366d41094c945597b95dd746e87b871</id>
<content type='text'>
Signed-off-by: Martin Jansa &lt;martin.jansa@gmail.com&gt;
</content>
</entry>
<entry>
<title>README.md: drop section about compiler-rt</title>
<updated>2025-12-12T17:35:33+00:00</updated>
<author>
<name>Martin Jansa</name>
<email>martin.jansa@gmail.com</email>
</author>
<published>2025-12-12T07:41:51+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/meta-clang.git/commit/?id=5273483a8af5dbdf4fdd23b6535bd6e68d0ba2b4'/>
<id>urn:sha1:5273483a8af5dbdf4fdd23b6535bd6e68d0ba2b4</id>
<content type='text'>
compiler-rt recipe is now in oe-core and the described issue doesn't
happen anymore.

Signed-off-by: Martin Jansa &lt;martin.jansa@gmail.com&gt;
</content>
</entry>
<entry>
<title>devtool-clang.sh: drop unused script</title>
<updated>2025-12-12T17:35:33+00:00</updated>
<author>
<name>Martin Jansa</name>
<email>martin.jansa@gmail.com</email>
</author>
<published>2025-12-12T07:40:31+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/meta-clang.git/commit/?id=889258576e90470c05db820dfcf0effc56d267dd'/>
<id>urn:sha1:889258576e90470c05db820dfcf0effc56d267dd</id>
<content type='text'>
It probably wasn't actively used for a while, it was last user of LLVMVERSION
variable which wasn't set correctly and was removed in previous commit

Signed-off-by: Martin Jansa &lt;martin.jansa@gmail.com&gt;
</content>
</entry>
<entry>
<title>layer.conf: drop LLVMVERSION</title>
<updated>2025-12-12T17:35:33+00:00</updated>
<author>
<name>Martin Jansa</name>
<email>martin.jansa@gmail.com</email>
</author>
<published>2025-12-11T20:59:05+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/meta-clang.git/commit/?id=820dedc16e6c373a603ccdbf7f3b93988b6ee2be'/>
<id>urn:sha1:820dedc16e6c373a603ccdbf7f3b93988b6ee2be</id>
<content type='text'>
The recipes were removed from this layer and this version doesn't match
with the clang version in oe-core (currently 21.1.7).

Better to drop this variable now as it's just confusing and if someone
needs to find a path to clang lib files like:
recipe-sysroot/usr/lib/clang/18.1.6/lib/linux
we need to use some other variable to do that.

scripts/devtool-clang.sh still references this variable, but I guess
the script isn't used anymore.

Signed-off-by: Martin Jansa &lt;martin.jansa@gmail.com&gt;
</content>
</entry>
<entry>
<title>clang-legacy.bbclass: Remove -fuse-ld=lld from SELECTED_OPTIMIZATION when using LTO.</title>
<updated>2025-12-07T05:21:34+00:00</updated>
<author>
<name>mark.yang</name>
<email>mark.yang@lge.com</email>
</author>
<published>2025-11-07T04:40:46+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/meta-clang.git/commit/?id=bf7ba60c794d0f670b502678660a313792243566'/>
<id>urn:sha1:bf7ba60c794d0f670b502678660a313792243566</id>
<content type='text'>
Referring to lto.inc in openembedded-core, when using lto, the LTO variable is added to SELECTED_OPTIMIZATION.
In this case, with the clang toolchain, -fuse-ld=lld is added when using -flto,
but the -fuse-ld=lld option is sufficient as a linker flag.

If -fuse-ld=lld is present in CFLAGS, an unused-command-line-argument warning occurs.
In recipes that treat this warning as an error, the build fails.
aarch64-yoe-linux-clang: error: argument unused during compilation: '-fuse-ld=lld' [-Werror,-Wunused-command-line-argument]

See more details https://errors.yoctoproject.org/Errors/Details/886599

Signed-off-by: mark.yang &lt;mark.yang@lge.com&gt;
</content>
</entry>
<entry>
<title>nonclangable.conf: Disable LTO for bluez5,systemd-boot, zlib</title>
<updated>2025-12-07T05:21:34+00:00</updated>
<author>
<name>mark.yang</name>
<email>mark.yang@lge.com</email>
</author>
<published>2025-11-07T04:24:48+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/meta-clang.git/commit/?id=c17e5716caea9d0297016eab4483911797d7d0f3'/>
<id>urn:sha1:c17e5716caea9d0297016eab4483911797d7d0f3</id>
<content type='text'>
bluez5 is forced to use the bfd linker.
https://github.com/kraj/meta-clang/commit/ee218b7bc9c4b43d66e56c9cde5405318d8d5deb
systemd-boot is forced to use the bfd linker.
https://github.com/openembedded/openembedded-core/commit/a157b2f9d93428ca21265cc860a3b58b3698b3aa#diff-02f955f0bb176d6a95cf74d4fa6b499d0318f7877cbe3c525936b09a4dc8f3ce

For LTO, the lld linker is required, but if using the bfd linker, the LLVMgold.so plugin must be used. However, the gold linker is no longer used.
```
usr/bin/aarch64-yoe-linux/aarch64-yoe-linux-ld.bfd: recipe-sysroot-native/usr/bin/aarch64-yoe-linux/../lib/LLVMgold.so: error loading plugin: /home/markyang/workspace/yoe-distro/build/tmp/work/cortexa72-yoe-linux/systemd-boot/257.8/recipe-sysroot-native/usr/bin/aarch64-yoe-linux/../lib/LLVMgold.so: cannot open shared object file: No such file or directory
````

openembedded-core(be5856616) forces the use of the bfd linker for zlib.
zlib does not build with lld, keep it until https://github.com/madler/zlib/pull/936
is addressed

When using LTO with clang, it is recommended to use the lld linker.
If it use the bfd linker, it need to use the LLVMgold.so plugin,
but the gold linker has been deprecated.

See more details https://errors.yoctoproject.org/Errors/Details/886598
```
error loading plugin: TOPDIR/build/tmp/work/cortexa72-yoe-linux/zlib/1.3.1/recipe-sysroot-native/usr/bin/aarch64-yoe-linux/../lib/LLVMgold.so: cannot open shared object file: No such file or directory
```

Signed-off-by: mark.yang &lt;mark.yang@lge.com&gt;
</content>
</entry>
</feed>
