can not build clang toolchains in yocto 5.4-zeus

cancel
Showing results for 
Search instead for 
Did you mean: 

can not build clang toolchains in yocto 5.4-zeus

Jump to solution
93 Views
jin1
Contributor V

hi all,

I am playing imx8qm iwave board with yocto 5.4-zeus , I neeed clang toolchains. I have added 

TOOLCHAIN = " clang"   in local.conf,

but after  bitbake imx-image-full -c populate_sdk to generate the toolchain,

but there is no clang after installing the toolchains.

before I played  yocto L4.14.98-2.0.0_GA . it worked well.

why yocto 5.4-zeus no clang toolchains?

 

any help ?

Thank you

0 Kudos
1 Solution
63 Views
jin1
Contributor V

after I remove CORE_IMAGE_EXTRA_INSTALL += " chromium-ozone-wayland" in local.conf.

clang toolchain can build and work well.

View solution in original post

3 Replies
83 Views
Bio_TICFSL
NXP TechSupport
NXP TechSupport

Hello jin1,

I think whats missing it dependency on C++ runtime. default is libstdc++ so I guess you have to add a dependency on gcc-runtime

 

Regards

 

0 Kudos
76 Views
jin1
Contributor V

Thank you 

@Bio_TICFSL 

I found one issue , I forgot to add meta-clang into the source code , but after  adding it and adding TOOLCHAIN ?= " clang"   in local.conf, there is still a error to build

bitbake imx-image-full  (I want to build it successfully ,and then to build bitbake imx-image-full -c populate_sdk)

:

my host is ubuntu 18.04

ERROR: nn-imx-1.0.4-r0 do_configure: oe_runmake failed

ERROR: nn-imx-1.0.4-r0 do_configure: Execution of '/home/rnd2/work/iw-5.4.24/iwg27s-release-bsp/build_imx8qm/tmp/work/aarch64-poky-linux/nn-imx/1.0.4-r0/temp/run.do_configure.24114' failed with exit code 1:

remove *.so and *.o

rm: cannot remove '*.o': No such file or directory

makefile:20: recipe for target 'clean' failed

make: *** [clean] Error 1

WARNING: exit code 1 from a shell command.

 

ERROR: Logfile of failure stored in: /home/rnd2/work/iw-5.4.24/iwg27s-release-bsp/build_imx8qm/tmp/work/aarch64-poky-linux/nn-imx/1.0.4-r0/temp/log.do_configure.24114

Log data follows:

| DEBUG: Executing shell function do_configure

| NOTE: make SDKTARGETSYSROOT=/home/rnd2/work/iw-5.4.24/iwg27s-release-bsp/build_imx8qm/tmp/work/aarch64-poky-linux/nn-imx/1.0.4-r0/recipe-sysroot AQROOT=/home/rnd2/work/iw-5.4.24/iwg27s-release-bsp/build_imx8qm/tmp/work/aarch64-poky-linux/nn-imx/1.0.4-r0/git clean

| remove *.so and *.o

| rm: cannot remove '*.o': No such file or directory

| makefile:20: recipe for target 'clean' failed

| make: *** [clean] Error 1

| ERROR: oe_runmake failed

| WARNING: exit code 1 from a shell command.

| ERROR: Execution of '/home/rnd2/work/iw-5.4.24/iwg27s-release-bsp/build_imx8qm/tmp/work/aarch64-poky-linux/nn-imx/1.0.4-r0/temp/run.do_configure.24114' failed with exit code 1:

| remove *.so and *.o

| rm: cannot remove '*.o': No such file or directory

| makefile:20: recipe for target 'clean' failed

| make: *** [clean] Error 1

| WARNING: exit code 1 from a shell command.

|

ERROR: Task (/home/rnd2/work/iw-5.4.24/iwg27s-release-bsp/sources/meta-imx/meta-ml/recipes-libraries/nn-imx/nn-imx_1.0.4.bb:do_configure) failed with exit code '1'

why nn-imx can not pass builing? before there was no TOOLCHAIN ?= " clang"   in local.conf, it's OK to build image and normal toolchains.

 

any more help?

Thank you

0 Kudos
64 Views
jin1
Contributor V

after I remove CORE_IMAGE_EXTRA_INSTALL += " chromium-ozone-wayland" in local.conf.

clang toolchain can build and work well.

View solution in original post