clang build regression
Hi,
somewhere in commits 9dfd4f44d4..3fc1fa77da caused a build regression for clang-native:
ERROR: Task virtual:native:/mnt2/zozo/yocto-5.3/conf/../layers/openembedded-core/meta/recipes-devtools/clang/clang_git.bb:do_collect_spdx_deps has circular dependency on virtual:native:/mnt2/zozo/yocto-5.3/conf/../layers/openembedded-core/meta/recipes-devtools/clang/clang_git.bb:do_create_spdx
ERROR: Command execution failed: 1
and for clang:
ERROR: Task /mnt2/zozo/yocto-5.3/conf/../layers/openembedded-core/meta/recipes-devtools/clang/clang_git.bb:do_package has circular dependency on /mnt2/zozo/yocto-5.3/conf/../layers/openembedded-core/meta/recipes-devtools/clang/clang_git.bb:do_packagedata
ERROR: Command execution failed: 1
Using the preceding commit allows building these, i.e.:
cd layers/openembedded-core
git checkout -b work2 9dfd4f44d4f40e7926dc88cb564baa2345c2a24f
git bisect lead to:
commit 448f4a84cb22c380d97e069d0b98ddbe1cb8de18
llvm: add recipe for just the LLVM libraries
still allows starting to build clang-native, which eventually fails to link executables, due to libLLVM.so.21.1 being missing.
commit d76dc362c8e18779cc4ddc6a778fb423c0e66a65
clang: use llvm recipe
already fails to start clang-native with the above circular dependency
That leaves
commit acc8c5c89c0f1bff3413d2301a65afd89bd0d9ff
clang: globally disable build-time RPATHs for reproducibility as the last usable commit.
I use meta-intel and MACHINE=intel-corei7-64.
Best regards,
Zoltán Böszörményi
Don't you have something like:
PREFERRED_PROVIDER_llvm = "clang" PREFERRED_PROVIDER_llvm-native = "clang-native" PREFERRED_PROVIDER_nativesdk-llvm = "nativesdk-clang" PROVIDES:pn-clang = "llvm" PROVIDES:pn-clang-native = "llvm-native" PROVIDES:pn-nativesdk-clang = "nativesdk-llvm"
somewhere in your build configuration? It was needed with older meta-clang (to avoid building llvm twice), but it's not needed now and causes the circular dependency like this.
Cheers,
Quoted 56 lines · Zoltan Boszormenyi via lists.openembedded.org
Hi,
somewhere in commits
9dfd4f44d4..3fc1fa77dacaused a build regression for clang-native:ERROR: Task virtual:native:/mnt2/zozo/yocto-5.3/conf/../layers/openembedded-core/meta/recipes-devtools/clang/clang_git.bb:do_collect_spdx_deps has circular dependency on virtual:native:/mnt2/zozo/yocto-5.3/conf/../layers/openembedded-core/meta/recipes-devtools/clang/clang_git.bb:do_create_spdx
ERROR: Command execution failed: 1and for clang:
ERROR: Task /mnt2/zozo/yocto-5.3/conf/../layers/openembedded-core/meta/recipes-devtools/clang/clang_git.bb:do_package has circular dependency on /mnt2/zozo/yocto-5.3/conf/../layers/openembedded-core/meta/recipes-devtools/clang/clang_git.bb:do_packagedata
ERROR: Command execution failed: 1Using the preceding commit allows building these, i.e.:
cd layers/openembedded-core
git checkout -b work29dfd4f44d4f40e7926dc88cb564baa2345c2a24fgit bisect lead to:
commit
448f4a84cb22c380d97e069d0b98ddbe1cb8de18
llvm: add recipe for just the LLVM libraries
still allows starting to build clang-native, which eventually fails to link executables, due to libLLVM.so.21.1 being missing.commit
d76dc362c8e18779cc4ddc6a778fb423c0e66a65
clang: use llvm recipe
already fails to start clang-native with the above circular dependencyThat leaves
commitacc8c5c89c0f1bff3413d2301a65afd89bd0d9ff
clang: globally disable build-time RPATHs for reproducibility as the last usable commit.I use meta-intel and MACHINE=intel-corei7-64.
Best regards,
Zoltán Böszörményi-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#224766): https://lists.openembedded.org/g/openembedded-core/message/224766
Mute This Topic: https://lists.openembedded.org/mt/115731404/3617156
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-
Hi,
2025. 10. 13. 11:24 keltezéssel, Martin Jansa írta:
Quoted 9 lines
Don't you have something like:
PREFERRED_PROVIDER_llvm= "clang" PREFERRED_PROVIDER_llvm-native = "clang-native" PREFERRED_PROVIDER_nativesdk-llvm = "nativesdk-clang" PROVIDES:pn-clang = "llvm" PROVIDES:pn-clang-native = "llvm-native" PROVIDES:pn-nativesdk-clang = "nativesdk-llvm"
Quoted 3 lines
somewhere in your build configuration? It was needed with older meta-clang (to avoid building llvm twice), but it's not needed now and causes the circular dependency like this.
Yes, that was the problem exactly.
Thanks!
Quoted 61 lines
Cheers,
Quoted 55 lines · Zoltan Boszormenyi via lists.openembedded.org
Hi,
somewhere in commits
9dfd4f44d4..3fc1fa77dacaused a build regression for clang-native:ERROR: Task virtual:native:/mnt2/zozo/yocto-5.3/conf/../layers/openembedded-core/meta/recipes-devtools/clang/clang_git.bb:do_collect_spdx_deps has circular dependency on virtual:native:/mnt2/zozo/yocto-5.3/conf/../layers/openembedded-core/meta/recipes-devtools/clang/clang_git.bb:do_create_spdx
ERROR: Command execution failed: 1and for clang:
ERROR: Task /mnt2/zozo/yocto-5.3/conf/../layers/openembedded-core/meta/recipes-devtools/clang/clang_git.bb:do_package has circular dependency on /mnt2/zozo/yocto-5.3/conf/../layers/openembedded-core/meta/recipes-devtools/clang/clang_git.bb:do_packagedata
ERROR: Command execution failed: 1Using the preceding commit allows building these, i.e.:
cd layers/openembedded-core
git checkout -b work29dfd4f44d4f40e7926dc88cb564baa2345c2a24fgit bisect lead to:
commit
448f4a84cb22c380d97e069d0b98ddbe1cb8de18
llvm: add recipe for just the LLVM libraries
still allows starting to build clang-native, which eventually fails to link executables, due to libLLVM.so.21.1 being missing.commit
d76dc362c8e18779cc4ddc6a778fb423c0e66a65
clang: use llvm recipe
already fails to start clang-native with the above circular dependencyThat leaves
commitacc8c5c89c0f1bff3413d2301a65afd89bd0d9ff
clang: globally disable build-time RPATHs for reproducibility as the last usable commit.I use meta-intel and MACHINE=intel-corei7-64.
Best regards,
Zoltán Böszörményi-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#224766): https://lists.openembedded.org/g/openembedded-core/message/224766
Mute This Topic: https://lists.openembedded.org/mt/115731404/3617156
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-