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.

TDA4VM: Yocto compilation failed

Part Number: TDA4VM
Other Parts Discussed in Thread: CSD

Hi,

I use psdk version as bellow.

PSDKLA6.2.0.07

PSDKRA6.2.0.21

I execute the following instructions to compile.

MACHINE=j7-evm bitbake tisdk-rootfs-image

ERROR:

ERROR: chromium-ozone-wayland-75.0.3770.142-r0.arago0 do_check_fdlimit_for_linking: The current maximum number of open file descriptors is too low (1024), and causes ld.bfd to fail to link Chromium. Please use ulimit -n to increase it to a higher value, such as 4096, or switch to gold or lld.
ERROR: chromium-ozone-wayland-75.0.3770.142-r0.arago0 do_check_fdlimit_for_linking: Function failed: do_check_fdlimit_for_linking
ERROR: Logfile of failure stored in: /mnt/data/home/allenhsu/project/tda4/psdk_620/otobrite/psdk_linux/yocto-build/build/arago-tmp-external-arm-toolchain/work/aarch64-linux/chromium-ozone-wayland/75.0.3770.142-r0.arago0/temp/log.do_check_fdlimit_for_linking.17801
ERROR: Task (/mnt/data/home/allenhsu/project/tda4/psdk_620/otobrite/psdk_linux/yocto-build/sources/meta-browser/recipes-browser/chromium/chromium-ozone-wayland_75.0.3770.142.bb:do_check_fdlimit_for_linking) failed with exit code '1'
NOTE: Tasks Summary: Attempted 3437 tasks of which 3436 didn't need to be rerun and 1 failed.
NOTE: Writing buildhistory

  • Hi Allen,

    can you check the soft limit with this command:

    ulimit -Sn

    and try to increase it (for example to 4096) like this:

    ulimit -Sn 4096

    Regards,

    Yordan

  • Hi Yordan

    still have another error

    ERROR:

    | [760/23925] aarch64-linux-gnu-g++  --sysroot=/mnt/data/home/allenhsu/project/tda4/psdk_620/otobrite/psdk_linux/yocto-build/build/arago-tmp-external-arm-toolchain/work/aarch64-linux/chromium-ozone-wayland/75.0.3770.142-r0.arago0/recipe-sysroot -MMD -MF obj/v8/src/inspector/inspector/v8-debugger-agent-impl.o.d -DUSE_UDEV -DUSE_AURA=1 -DUSE_NSS_CERTS=1 -DUSE_OZONE=1 -DNO_TCMALLOC -DFULL_SAFE_BROWSING -DSAFE_BROWSING_CSD -DSAFE_BROWSING_DB_LOCAL -DOFFICIAL_BUILD -DCHROMIUM_BUILD -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D_FORTIFY_SOURCE=2 -DNDEBUG -DNVALGRIND -DDYNAMIC_ANNOTATIONS_ENABLED=0 -DV8_TYPED_ARRAY_MAX_SIZE_IN_HEAP=64 -DENABLE_MINOR_MC -DV8_INTL_SUPPORT -DV8_USE_SNAPSHOT -DV8_USE_EXTERNAL_STARTUP_DATA -DV8_CONCURRENT_MARKING -DV8_EMBEDDED_BUILTINS -DV8_DEPRECATION_WARNINGS -DV8_TARGET_ARCH_ARM64 -DDISABLE_UNTRUSTED_CODE_MITIGATIONS -DV8_DEPRECATION_WARNINGS -DV8_DEPRECATION_WARNINGS -I../.. -Igen -I../../v8/include -I../../v8 -Igen/v8 -fno-strict-aliasing --param=ssp-buffer-size=4 -fstack-protector -funwind-tables -fPIC -pipe -pthread -Wall -Wno-unused-local-typedefs -Wno-maybe-uninitialized -Wno-deprecated-declarations -Wno-comments -Wno-missing-field-initializers -Wno-unused-parameter -fno-omit-frame-pointer -g0 -fvisibility=hidden -Wno-strict-overflow -Wno-return-type -O3 -fno-ident -fdata-sections -ffunction-sections -std=gnu++14 -Wno-narrowing -fno-exceptions -fno-rtti -fvisibility-inlines-hidden  -isystem/mnt/data/home/allenhsu/project/tda4/psdk_620/otobrite/psdk_rtos/gcc-arm-8.3-2019.03-x86_64-aarch64-linux-gnu/aarch64-linux-gnu/include   -isystem/mnt/data/home/allenhsu/project/tda4/psdk_620/otobrite/psdk_rtos/gcc-arm-8.3-2019.03-x86_64-aarch64-linux-gnu/aarch64-linux-gnu/include  -O2 -pipe  -feliminate-unused-debug-types -fdebug-prefix-map=/mnt/data/home/allenhsu/project/tda4/psdk_620/otobrite/psdk_linux/yocto-build/build/arago-tmp-external-arm-toolchain/work/aarch64-linux/chromium-ozone-wayland/75.0.3770.142-r0.arago0=/usr/src/debug/chromium-ozone-wayland/75.0.3770.142-r0.arago0 -fdebug-prefix-map=/mnt/data/home/allenhsu/project/tda4/psdk_620/otobrite/psdk_linux/yocto-build/build/arago-tmp-external-arm-toolchain/work/aarch64-linux/chromium-ozone-wayland/75.0.3770.142-r0.arago0/recipe-sysroot= -fdebug-prefix-map=/mnt/data/home/allenhsu/project/tda4/psdk_620/otobrite/psdk_linux/yocto-build/build/arago-tmp-external-arm-toolchain/work/aarch64-linux/chromium-ozone-wayland/75.0.3770.142-r0.arago0/recipe-sysroot-native= -g1 -c ../../v8/src/inspector/v8-debugger-agent-impl.cc -o obj/v8/src/inspector/inspector/v8-debugger-agent-impl.o
    | ninja: build stopped: subcommand failed.
    | WARNING: /mnt/data/home/allenhsu/project/tda4/psdk_620/otobrite/psdk_linux/yocto-build/build/arago-tmp-external-arm-toolchain/work/aarch64-linux/chromium-ozone-wayland/75.0.3770.142-r0.arago0/temp/run.do_compile.2261:1 exit 1 from 'ninja -v -j 24 chrome chrome_sandbox chromedriver'
    | ERROR: Function failed: do_compile (log file is located at /mnt/data/home/allenhsu/project/tda4/psdk_620/otobrite/psdk_linux/yocto-build/build/arago-tmp-external-arm-toolchain/work/aarch64-linux/chromium-ozone-wayland/75.0.3770.142-r0.arago0/temp/log.do_compile.2261)
    ERROR: Task (/mnt/data/home/allenhsu/project/tda4/psdk_620/otobrite/psdk_linux/yocto-build/sources/meta-browser/recipes-browser/chromium/chromium-ozone-wayland_75.0.3770.142.bb:do_compile) failed with exit code '1'
    NOTE: Tasks Summary: Attempted 7333 tasks of which 7332 didn't need to be rerun and 1 failed.

  • Hi Allen,

    1. Could you please make sure that you installed all host dependencies as listed in the SDK Getting Started Documentation?

    2. Also, after that you can try to recompile the failing recipe like its shown below, and then bitbake the entire tisdk-rootfs-image?

    TOOLCHAIN_BASE=<PATH_TO_TOOLCHAIN> MACHINE=j7-evm bitbake -c cleanall chromium-ozone_wayland

    TOOLCHAIN_BASE=<PATH_TO_TOOLCHAIN> MACHINE=j7-evm bitbake chromium-ozone_wayland

    Regards

    Karthik

  • Hi Karthik,

    1. Could you please make sure that you installed all host dependencies as listed in the SDK Getting Started Documentation?

    The environment in which we run the compilation is on the same server.
    We did not encounter any errors in the SDK 6.1.1 provided by TI.

    2.

    MACHINE=j7-evm bitbake  -c cleanall chromium-ozone_wayland
    When I executed the first instruction you provided, I got the following error.
    ERROR:
    WARNING: Layer meta-psdkla should set LAYERSERIES_COMPAT_meta-psdkla in its conf/layer.conf file to list the core layer names it is compatible with.
    NOTE: Started PRServer with DBfile: /mnt/data/home/allenhsu/project/tda4/psdk_620/otobrite/psdk_linux/yocto-build/build/cache/prserv.sqlite3, IP: 127.0.0.1, PORT: 34103, PID: 4024
    WARNING: Layer meta-psdkla should set LAYERSERIES_COMPAT_meta-psdkla in its conf/layer.conf file to list the core layer names it is compatible with.
    Loading cache: 100% |#########################################################################################################################################| Time: 0:00:01
    Loaded 4012 entries from dependency cache.
    WARNING: No recipes available for:
      /mnt/data/home/allenhsu/project/tda4/psdk_620/otobrite/psdk_linux/yocto-build/sources/meta-arago/meta-arago-distro/recipes-browser/chromium/chromium-wayland_%.bbappend
    ERROR: Nothing PROVIDES 'chromium-ozone_wayland'. Close matches:
      chromium-ozone-wayland

  • Hi Allen,

    Lets try this command:

    TOOLCHAIN_BASE=<PATH_TO_TOOLCHAIN> MACHINE=j7-evm bitbake  -c cleanall chromium-wayland

    TOOLCHAIN_BASE=<PATH_TO_TOOLCHAIN> MACHINE=j7-evm bitbake chromium-wayland

    Regards

    Karthik

  • Hi Karthik,

    After I did the following actions, an error occurred.
    TOOLCHAIN_BASE=<PATH_TO_TOOLCHAIN> MACHINE=j7-evm bitbake  -c cleanall chromium-wayland

    ERROR: Nothing PROVIDES 'chromium-wayland'. Close matches:

      chromium-ozone-wayland

    In the 6.2 version of the psdk, only two chromium-wayland related files are under the source folder.
     
    ./meta-arago/meta-arago-distro/recipes-browser/chromium/chromium-wayland
    ./meta-arago/meta-arago-distro/recipes-browser/chromium/chromium-wayland_%.bbappend
     
    But in the 6.1 version of the psdk, there are four chromium-wayland related files.
     
    ./meta-arago/meta-arago-distro/recipes-browser/chromium/chromium-wayland
    ./meta-arago/meta-arago-distro/recipes-browser/chromium/chromium-wayland_%.bbappend
    ./meta-browser/recipes-browser/chromium/chromium/chromium-wayland
    ./meta-browser/recipes-browser/chromium/chromium-wayland_53.0.2785.143.bb

    In the 6.2 version of the psdk, I found that in the path below, the chromium-wayland 53.0.2785.143.bb file is missing.
    meta-browser/recipes-browser/chromium
    yocto-build/sources/meta-browser/recipes-browser/chromium$ls -l
    total 92
    -rw-rw-r-- 1 allenhsu allenhsu 20908 Mar 27 10:46 chromium-gn.inc
    -rw-rw-r-- 1 allenhsu allenhsu  1273 Mar 27 10:46 chromium.inc
    drwxrwxr-x 2 allenhsu allenhsu  4096 Mar 27 10:46 chromium-ozone-wayland
    -rw-rw-r-- 1 allenhsu allenhsu  3078 Mar 27 10:46 chromium-ozone-wayland_75.0.3770.142.bb
    -rw-rw-r-- 1 allenhsu allenhsu   234 Mar 27 10:46 chromium-unbundle.inc
    -rw-rw-r-- 1 allenhsu allenhsu 23532 Mar 27 10:46 chromium-upstream-tarball.inc
    -rw-rw-r-- 1 allenhsu allenhsu   499 Mar 27 10:46 chromium-x11_75.0.3770.142.bb
    drwxrwxr-x 3 allenhsu allenhsu  4096 Mar 27 10:46 files
    -rw-rw-r-- 1 allenhsu allenhsu  1153 Mar 27 10:46 gn-native_75.0.3770.142.bb
    -rw-rw-r-- 1 allenhsu allenhsu  5032 Mar 27 10:46 gn-utils.inc
    -rw-rw-r-- 1 allenhsu allenhsu  4206 Mar 27 10:46 README

  • Hi Allen,

    I just tried to replicate the error that you reported, please copy paste these commands below and let me know how things go.

    The recipe is part of the meta-browser and meta-arago layer:

    ./meta-browser/recipes-browser/chromium/chromium-ozone-wayland_75.0.3770.142.bb
    ./meta-arago/meta-arago-distro/recipes-browser/chromium/chromium-ozone-wayland_%.bbappend

    Commands:

    TOOLCHAIN_BASE=/home/karthik MACHINE=j7-evm bitbake -c cleanall chromium-ozone-wayland

    TOOLCHAIN_BASE=/home/karthik MACHINE=j7-evm bitbake chromium-ozone-wayland

    Regards

    Karthik

  • Hi,

    after execute the command bellow

    MACHINE=j7-evm bitbake chromium-ozone-wayland

    some errors happen

    | [14180/38091] g++ -MMD -MF yocto_native/obj/base/base/activity_analyzer.o.d -DUSE_SYMBOLIZE -DUSE_UDEV -DUSE_AURA=1 -DUSE_NSS_CERTS=1 -DUSE_OZONE=1 -DNO_TCMALLOC -DFULL_S
    AFE_BROWSING -DSAFE_BROWSING_CSD -DSAFE_BROWSING_DB_LOCAL -DOFFICIAL_BUILD -DCHROMIUM_BUILD -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D_FORTIFY_SOURCE=2 -DNDEBUG -DNVALGRIND -DDYNAMIC_ANNOTATIONS_ENABLED=0 -DBASE_IMPLEMENTATION -I../.. -Iyocto_native/gen -fno-strict-aliasing --param=ssp-buffer-size=4 -fstack-protector -funwind-tables -fPIC -pipe -pthread -m64 -march=x86-64 -Wall -Wno-unused-local-typedefs -Wno-maybe-uninitialized -Wno-deprecated-declarations -Wno-comments -Wno-missing-field-initializers -Wno-unused-parameter -fno-omit-frame-pointer -g0 -fvisibility=hidden -O2 -fno-ident -fdata-sections -ffunction-sections -std=gnu++14 -Wno-narrowing -fno-exceptions -fno-rtti -fvisibility-inlines-hidden -isystem/mnt/data/home/allenhsu/project/tda4/psdk_620/otobrite/psdk_linux/yocto-build/build/arago-tmp-external-arm-toolchain/work/aarch64-linux/chromium-ozone-wayland/75.0.3770.142-r0.arago0/recipe-sysroot-native/usr/include -isystem/mnt/data/home/allenhsu/project/tda4/psdk_620/otobrite/psdk_linux/yocto-build/build/arago-tmp-external-arm-toolchain/work/aarch64-linux/chromium-ozone-wayland/75.0.3770.142-r0.arago0/recipe-sysroot-native/usr/include -O2 -pipe -c ../../base/debug/activity_analyzer.cc -o yocto_native/obj/base/base/activity_analyzer.o
    | [14181/38091] g++ -MMD -MF yocto_native/obj/base/base/activity_tracker.o.d -DUSE_SYMBOLIZE -DUSE_UDEV -DUSE_AURA=1 -DUSE_NSS_CERTS=1 -DUSE_OZONE=1 -DNO_TCMALLOC -DFULL_SAFE_BROWSING -DSAFE_BROWSING_CSD -DSAFE_BROWSING_DB_LOCAL -DOFFICIAL_BUILD -DCHROMIUM_BUILD -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D_FORTIFY_SOURCE=2 -DNDEBUG -DNVALGRIND -DDYNAMIC_ANNOTATIONS_ENABLED=0 -DBASE_IMPLEMENTATION -I../.. -Iyocto_native/gen -fno-strict-aliasing --param=ssp-buffer-size=4 -fstack-protector -funwind-tables -fPIC -pipe -pthread -m64 -march=x86-64 -Wall -Wno-unused-local-typedefs -Wno-maybe-uninitialized -Wno-deprecated-declarations -Wno-comments -Wno-missing-field-initializers -Wno-unused-parameter -fno-omit-frame-pointer -g0 -fvisibility=hidden -O2 -fno-ident -fdata-sections -ffunction-sections -std=gnu++14 -Wno-narrowing -fno-exceptions -fno-rtti -fvisibility-inlines-hidden -isystem/mnt/data/home/allenhsu/project/tda4/psdk_620/otobrite/psdk_linux/yocto-build/build/arago-tmp-external-arm-toolchain/work/aarch64-linux/chromium-ozone-wayland/75.0.3770.142-r0.arago0/recipe-sysroot-native/usr/include -isystem/mnt/data/home/allenhsu/project/tda4/psdk_620/otobrite/psdk_linux/yocto-build/build/arago-tmp-external-arm-toolchain/work/aarch64-linux/chromium-ozone-wayland/75.0.3770.142-r0.arago0/recipe-sysroot-native/usr/include -O2 -pipe -c ../../base/debug/activity_tracker.cc -o yocto_native/obj/base/base/activity_tracker.o
    | ninja: build stopped: subcommand failed.
    | WARNING: /mnt/data/home/allenhsu/project/tda4/psdk_620/otobrite/psdk_linux/yocto-build/build/arago-tmp-external-arm-toolchain/work/aarch64-linux/chromium-ozone-wayland/75.0.3770.142-r0.arago0/temp/run.do_compile.20936:1 exit 1 from 'ninja -v -j 24 chrome chrome_sandbox chromedriver'
    | ERROR: Function failed: do_compile (log file is located at /mnt/data/home/allenhsu/project/tda4/psdk_620/otobrite/psdk_linux/yocto-build/build/arago-tmp-external-arm-toolchain/work/aarch64-linux/chromium-ozone-wayland/75.0.3770.142-r0.arago0/temp/log.do_compile.20936)
    ERROR: Task (/mnt/data/home/allenhsu/project/tda4/psdk_620/otobrite/psdk_linux/yocto-build/sources/meta-browser/recipes-browser/chromium/chromium-ozone-wayland_75.0.3770.142.bb:do_compile) failed with exit code '1'

  • Hi Allen,

    Can you please attach this log?

    /mnt/data/home/allenhsu/project/tda4/psdk_620/otobrite/psdk_linux/yocto-build/build/arago-tmp-external-arm-toolchain/work/aarch64-linux/chromium-ozone-wayland/75.0.3770.142-r0.arago0/temp/log.do_compile.20936

    Regards

    Karthik

  • Hi,

    The log you need is already attached

    log.do_compile.20936.tar.gz

  • Hi Allen,

    Looking up the error in the log file, can you confirm the version of Ubuntu that you are using? You mentioned earlier that the 6.01 compiled fine.

    In file included from ../../base/containers/any_internal.cc:5:0:
    ../../base/containers/any_internal.h:48:18: error: enclosing class of constexpr non-static member function ‘bool base::internal::AnyInternal::has_value() const’ is not a literal type
       constexpr bool has_value() const noexcept { return !!type_ops_; }
                      ^
    ../../base/containers/any_internal.h:24:19: note: ‘base::internal::AnyInternal’ is not literal because:
     class BASE_EXPORT AnyInternal {
                       ^
    ../../base/containers/any_internal.h:24:19: note:   ‘base::internal::AnyInternal’ has a non-trivial destructor
    ../../base/containers/any_internal.h:163:59: error: ‘constexpr’ needed for in-class initialization of static data member ‘const base::internal::AnyInternal::TypeOps base::internal::AnyInternal::TypeOpsHelper<T>::type_ops’ of non-integral type [-fpermissive]
     const AnyInternal::TypeOps AnyInternal::TypeOpsHelper<T>::type_ops;

    I'm going to run a fresh clean build once again and check what I find.

    Regards

    Karthik

  • Is there any problem in the file provided by me?

  • Hi Allen,

    All builds run by me are passing. Do you have any other findings - can you confirm the answer to my question above - confirm the version of Ubuntu and also confirm that on the same machine you were able to run the 6.01 release successfully?

    Regards

    Karthik

  • Hi Karthik,

    Thanks for your reply.

    Q:confirm the version of Ubuntu

    A:The version of ubuntu is as bellow.

    allenhsu@dell-r540:~$lsb_release -a
    No LSB modules are available.
    Distributor ID: Ubuntu
    Description: Ubuntu 16.04.6 LTS
    Release: 16.04
    Codename: xenial

    Q:on the same machine you were able to run the 6.01 release successfully

    A:

    In version 6.0.1, we only have the files as bellow, and no chromium-ozone-wayland related files.

    release 6.0.1:

    -rw-rw-r-- 1 allenhsu allenhsu 319 Feb 24 17:27 chromium-wayland_%.bbappend
    drwxrwxr-x 2 allenhsu allenhsu 4.0K Feb 24 17:27 chromium-wayland

    release 6.2:

    -rw-rw-r-- 1 allenhsu allenhsu 319 Mar 27 10:45 chromium-wayland_%.bbappend
    drwxrwxr-x 2 allenhsu allenhsu 4.0K Mar 27 10:45 chromium-wayland
    -rw-rw-r-- 1 allenhsu allenhsu 104 Mar 27 10:45 chromium-ozone-wayland_%.bbappend

  • Hi Allen,

    Thanks for confirming that Ubuntu version. The only difference that I see from your response is that I'm using 18.04 Ubuntu and you are on 16.04.

    I do not have access to the 16.04 based machine right now, all our machines are upgraded to 18.04 recently.

    Is it possible for you to try on the 18.04 Ubuntu and report back the results? 

    Regards

    Karthik

  • Hi Karthik,

    Because we use a server to compile the code, it is not so easy to update the operating system version.

  • Hi Allen,

    Can you please check if you have install the following packages?

    sudo apt-get install libstdc++6:i386 libncurses5:i386 libz1:i386 libc6:i386 libc6-dev-i386 g++-multilib

    After you have done this, please make sure that you rerun this command and attach the log?

    TOOLCHAIN_BASE=/home/karthik MACHINE=j7-evm bitbake -c cleanall chromium-ozone-wayland

    TOOLCHAIN_BASE=/home/karthik MACHINE=j7-evm bitbake chromium-ozone-wayland

    Sorry, I do not have access to the 16.04 Ubuntu to try your exact case and it is taking very long to enable you further.

    Regards

    Karthik