| Message ID | 20251022050810.1572184-4-raj.khem@gmail.com |
|---|---|
| State | New |
| Headers | show |
| Series | [1/5] libcap: Pass OE defined BUILD_CC and BUILD_LDFLAGS | expand |
On 22 Oct 2025, at 06:08, Khem Raj via lists.openembedded.org <raj.khem=gmail.com@lists.openembedded.org> wrote: > > It has build errors with clang especially on native builds. > > Signed-off-by: Khem Raj <raj.khem@gmail.com> > --- > meta/recipes-devtools/pkgconfig/pkgconfig_git.bb | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/meta/recipes-devtools/pkgconfig/pkgconfig_git.bb b/meta/recipes-devtools/pkgconfig/pkgconfig_git.bb > index f537c635ef2..103b3e042a0 100644 > --- a/meta/recipes-devtools/pkgconfig/pkgconfig_git.bb > +++ b/meta/recipes-devtools/pkgconfig/pkgconfig_git.bb > @@ -20,6 +20,8 @@ SRC_URI = "git://gitlab.freedesktop.org/pkg-config/pkg-config.git;branch=master; > > inherit autotools > > +TOOLCHAIN_NATIVE = "gcc" How does target pkgconfig build with clang, but not pkgconfig-native? Ross
On Thu, Oct 23, 2025 at 5:17 AM Ross Burton <Ross.Burton@arm.com> wrote: > > On 22 Oct 2025, at 06:08, Khem Raj via lists.openembedded.org <raj.khem=gmail.com@lists.openembedded.org> wrote: > > > > It has build errors with clang especially on native builds. > > > > Signed-off-by: Khem Raj <raj.khem@gmail.com> > > --- > > meta/recipes-devtools/pkgconfig/pkgconfig_git.bb | 2 ++ > > 1 file changed, 2 insertions(+) > > > > diff --git a/meta/recipes-devtools/pkgconfig/pkgconfig_git.bb b/meta/recipes-devtools/pkgconfig/pkgconfig_git.bb > > index f537c635ef2..103b3e042a0 100644 > > --- a/meta/recipes-devtools/pkgconfig/pkgconfig_git.bb > > +++ b/meta/recipes-devtools/pkgconfig/pkgconfig_git.bb > > @@ -20,6 +20,8 @@ SRC_URI = "git://gitlab.freedesktop.org/pkg-config/pkg-config.git;branch=master; > > > > inherit autotools > > > > +TOOLCHAIN_NATIVE = "gcc" > > How does target pkgconfig build with clang, but not pkgconfig-native? We do not build them the same way, e.g. native is built with --with-internal-glib and that causes additional sources to compile I did not note down the compiler error which I should have noted the error messages but the build is not gone. I will re-create the env. > > Ross >
diff --git a/meta/recipes-devtools/pkgconfig/pkgconfig_git.bb b/meta/recipes-devtools/pkgconfig/pkgconfig_git.bb index f537c635ef2..103b3e042a0 100644 --- a/meta/recipes-devtools/pkgconfig/pkgconfig_git.bb +++ b/meta/recipes-devtools/pkgconfig/pkgconfig_git.bb @@ -20,6 +20,8 @@ SRC_URI = "git://gitlab.freedesktop.org/pkg-config/pkg-config.git;branch=master; inherit autotools +TOOLCHAIN_NATIVE = "gcc" + # Because of a faulty test, the current auto mode always evaluates to no, # so just continue that behaviour. #
It has build errors with clang especially on native builds. Signed-off-by: Khem Raj <raj.khem@gmail.com> --- meta/recipes-devtools/pkgconfig/pkgconfig_git.bb | 2 ++ 1 file changed, 2 insertions(+)