This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

SK-AM62B-P1: Getting weird error messages while running bitbake after adding Flutter meta payer

Part Number: SK-AM62B-P1


Tool/software:

Hello dear experts,

My goal is to add Flutter meta layer into Yocto build (using SDK 10.0). Went through instructions given in https://e2e.ti.com/support/processors-group/processors/f/processors-forum/1205636/faq-am625-is-flutter-the-right-gui-toolkit-for-me-an-engineers-perspective:

Starting SDK 10.0, TI upgraded to Scarthgap Yocto version and above instructions are outdated. For simplicity, please use the following Yocto config for building Flutter: https://gist.github.com/StaticRocket/e07d692dda28912f9991e5a0de6ed8bc 

But then after running:

./oe-layertool-setup.sh -f configs/processor-sdk/processor-sdk-scarthgap-flutter-10.00.07.04-config.txt
cd build
. conf/setenv
MACHINE=am62xx-evm bitbake -k tisdk-default-image

I'm getting the following Yocto build errors:

ERROR: ParseError at /home/davmelikyan/QuickSilver/processor-AM62X/tisdk/sources/meta-flutter/meta-flutter-apps/recipes-graphics/flutter-apps/first-party/googleads-flutter-samples-admob-app-open-example_1.0.0.bb:24: Could not inherit file classes/flutter-app.bbclass
ERROR: Parsing halted due to errors, see error messages above

Any help is appreciated, thanks.
  • Hi Davit,

    Can you try using the latest top-of-branch `scarthgap` from here https://github.com/meta-flutter/meta-flutter as part of your setup? I was told important improvements were made, that should help compatibility in the context of SDK v10.x.

    Regards, Andreas

  • Hi Andreas,

    Thank you for taking the time to answer me. Actually I took the latest 'scarthgap' top-of-branch commit, which is Dec 19 commit 4add4040f42c6a9e816f056af5b14ebf68f840fb. But still getting the same kind of error:

    ERROR: ParseError at /home/davmelikyan/QuickSilver/processor-AM62X/tisdk/sources/meta-flutter/meta-flutter-apps/recipes-graphics/flutter-apps/first-party/flutter-samples-navigation-and-routing-bookstore_1.0.0.bb:25: Could not inherit file classes/flutter-app.bbclass
    ERROR: Parsing halted due to errors, see error messages above

    Thanks,

    Davit

  • Hi Davit,

    Let me try to setup a test build to see if I can re-create this and report back here.

    Regards, Andreas

  • Hello Andreas,

    The problem comes from the malfunctioning script:

    ./oe-layertool-setup.sh -f configs/processor-sdk/processor-sdk-scarthgap-flutter-10.00.07.04-config.txt

    As it is supposed to create in tisdk/build/conf/bblayers.conf file under BBLAYERS+=  /home/user/tisdk/sources/meta-flutter \

    But I can see that in tisdk/build/conf/bblayers.conf there is no meta-flutter layer entry in bblayers.conf and it only creates meta-flutter-apps entry for some reason. This brings to the mentioned error. 

    I think this should be escalated to TI support so they can fix the oe-layertool-setup.sh script.

    Thanks,

    Davit

  • As it is supposed to create in tisdk/build/conf/bblayers.conf file under BBLAYERS+=  /home/user/tisdk/sources/meta-flutter \

    Good find. First I was able to re-create your error, but then after adding both of...

            /home/a0797059/tisdk/am62xx-evm/sources/meta-flutter \
            /home/a0797059/tisdk/am62xx-evm/sources/meta-flutter/meta-flutter-apps \

    ...to conf/bblayers.conf the build seems to start successfully. Let me see if it goes all the way through and then figure out how we can best resolve this officially. Adding `meta-flutter` to the config script (.txt file) doesn't seem to work as-is as a solution, as this change won't make it past the `verify_layers()` function inside oe-layertool-setup.sh. It looks like the `meta-flutter` layer is somewhat constructed in a non-standard way.

    Regards, Andreas

  • Hello Andreas,

    Still having trouble with the yocto build. It's either crashes at some point along-with the terminal or ending with building errors like:

    Summary: 3 tasks failed:
    /home/user/processor-AM62X/tisdk/sources/meta-qt5/recipes-qt/qt5/qtmultimedia_git.bb:do_compile
    /home/user/processor-AM62X/tisdk/sources/meta-qt5/recipes-qt/qt5/qtxmlpatterns_git.bb:do_compile
    /home/user/processor-AM62X/tisdk/sources/meta-ti/meta-ti-extras/recipes-connectivity/wl18xx-calibrator/wl18xx-calibrator_8.7.3.bb:do_compile
    Summary: There were 9 WARNING messages.
    Summary: There were 6 ERROR messages, returning a non-zero exit code.

    Tried to run it several times still no success.

    Running build using processor-sdk-scarthgap-10.00.07.04-config.txt without Flutter meta layer was pretty smooth though.

    Thanks,

    Davit

  • Hi Davit,

    I just checked, my build went to completion, without any issues.

    $ ll deploy-ti/images/am62xx-evm/*wic*
    -rw-r--r-- 2 a0797059 a0797059       4528 Feb  4 18:35 deploy-ti/images/am62xx-evm/tisdk-default-image-am62xx-evm.rootfs-20250204190600.wic.bmap
    -rw-r--r-- 2 a0797059 a0797059 1009589576 Feb  4 18:35 deploy-ti/images/am62xx-evm/tisdk-default-image-am62xx-evm.rootfs-20250204190600.wic.xz
    lrwxrwxrwx 2 a0797059 a0797059         61 Feb  4 18:35 deploy-ti/images/am62xx-evm/tisdk-default-image-am62xx-evm.rootfs.wic.bmap -> tisdk-default-image-am62xx-evm.rootfs-20250204190600.wic.bmap
    lrwxrwxrwx 2 a0797059 a0797059         59 Feb  4 18:35 deploy-ti/images/am62xx-evm/tisdk-default-image-am62xx-evm.rootfs.wic.xz -> tisdk-default-image-am62xx-evm.rootfs-20250204190600.wic.xz

    My config file:

    # This file takes repo entries in the format
    # repo name,repo uri,repo branch,repo commit[,layers=layer1:layer2...:layern]
    
    bitbake,https://git.openembedded.org/bitbake,2.8,6c2641f7a9e92c1b82e306f59ddd3c1249c52cbf
    meta-tisdk,https://github.com/TexasInstruments/meta-tisdk.git,scarthgap,10.01.10.04,layers=
    meta-arago,https://git.yoctoproject.org/meta-arago,scarthgap,10.01.10,layers=meta-arago-distro:meta-arago-extras:meta-arago-demos:meta-arago-test
    meta-flutter,https://github.com/meta-flutter/meta-flutter.git,scarthgap,f12d340d5ac0bb5519e0bdb3d750c805501af308,layers=meta-flutter-apps
    meta-qt5,https://github.com/meta-qt5/meta-qt5.git,scarthgap,eb828418264a49b8d00035cb3d7b12fcea3be801,layers=
    meta-virtualization,https://git.yoctoproject.org/meta-virtualization,scarthgap,450941a1b6df96285691e8c23d4f332d3c88a994,layers=
    meta-openembedded,https://git.openembedded.org/meta-openembedded,scarthgap,b8d1a14f7f3b76457c36752202ea7ae5881b6654,layers=meta-networking:meta-python:meta-oe:meta-gnome:meta-filesystems:m
    meta-ti,https://git.yoctoproject.org/meta-ti,scarthgap,10.01.10,layers=meta-ti-extras:meta-ti-bsp
    meta-arm,https://git.yoctoproject.org/meta-arm,scarthgap,7088279c0ab00c7dabefdd4544951b4746b48476,layers=meta-arm:meta-arm-toolchain
    meta-clang,https://github.com/kraj/meta-clang,scarthgap,9fbfa9db33131abdf3870a94f00199eb53e276e5,layers=
    oe-core,https://git.openembedded.org/openembedded-core,scarthgap,dac630ab5ee7aa6c5c7c294093adbd11b116c765,layers=meta
    meta-edgeai,https://git.ti.com/git/edgeai/meta-edgeai.git,scarthgap,10.01.10.04,layers=
    
    OECORELAYERCONF=./sample-files/bblayers.conf.sample
    OECORELOCALCONF=./sample-files/local-arago64-v2.conf.sample
    BITBAKE_INCLUSIVE_VARS=yes
    

    My conf/bblayers.conf additions:

            /home/a0797059/tisdk/am62xx-evm/sources/meta-flutter \
            /home/a0797059/tisdk/am62xx-evm/sources/meta-flutter/meta-flutter-apps \

    My conf/local.conf additions:

    # Flutter stuff
    IMAGE_INSTALL:append = " flutter-wayland-client flutter-samples-material-3-demo"

    Still having trouble with the yocto build. It's either crashes at some point along-with the terminal or ending with building errors like:

    Summary: 3 tasks failed:
    /home/user/processor-AM62X/tisdk/sources/meta-qt5/recipes-qt/qt5/qtmultimedia_git.bb:do_compile
    /home/user/processor-AM62X/tisdk/sources/meta-qt5/recipes-qt/qt5/qtxmlpatterns_git.bb:do_compile
    /home/user/processor-AM62X/tisdk/sources/meta-ti/meta-ti-extras/recipes-connectivity/wl18xx-calibrator/wl18xx-calibrator_8.7.3.bb:do_compile
    Summary: There were 9 WARNING messages.
    Summary: There were 6 ERROR messages, returning a non-zero exit code.

    Tried to run it several times still no success.

    Try deleting the entire build folder. Then before re-starting, also dial down the parallel build like shown below (may try even smaller numbers, really depends on your setup) by updating conf/local.conf accordingly, you might be running out of memory during build, which can result in strange issues like bitbake-server hangs etc. 

    BB_NUMBER_THREADS ?= "8"
    PARALLEL_MAKE ?= "-j 8"
    

    Regards, Andreas

  • Thanks Andreas, it worked for me.