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.

PROCESSOR-SDK-AM335X: Build Error: For SDK 9.1.0.001

Part Number: PROCESSOR-SDK-AM335X

HI All,

I have seen build error as below, This build error is observed with ubuntu 22.04 host machine.

| go tool dist: FAILED: /home/tisdk/build/arago-tmp-default-glibc/work/x86_64-linux/go-cross-armv7at2hf-neon/1.17.13-r0/go/pkg/tool/native_native/go_bootstrap install -gcflags=all= -ldflags=all= std cmd: exit status 2
| WARNING: /home/tisdk/build/arago-tmp-default-glibc/work/x86_64-linux/go-cross-armv7at2hf-neon/1.17.13-r0/temp/run.do_compile.765299:160 exit 2 from './make.bash --host-only --no-banner'
| WARNING: Backtrace (BB generated script):
| #1: do_compile, /home/tisdk/build/arago-tmp-default-glibc/work/x86_64-linux/go-cross-armv7at2hf-neon/1.17.13-r0/temp/run.do_compile.765299, line 160
| #2: main, /home/tisdk/build/arago-tmp-default-glibc/work/x86_64-linux/go-cross-armv7at2hf-neon/1.17.13-r0/temp/run.do_compile.765299, line 165
ERROR: Task (/home/tisdk/sources/oe-core/meta/recipes-devtools/go/go-cross_1.17.13.bb:do_compile) failed with exit code '1'
NOTE: Tasks Summary: Attempted 2174 tasks of which 2163 didn't need to be rerun and 11 failed.
NOTE: Writing buildhistory
NOTE: Writing buildhistory took: 3 seconds

Summary: 11 tasks failed:

I have continued further but i am getting below error

sable-indev=jack --disable-libopus --disable-libvorbis --enable-lzma --disable-libmfx --disable-mipsdsp --disable-mipsdspr2 --disable-libmp3lame --disable-openssl --enable-pic --enable-postproc --enable-pthreads --disable-sdl2 --enable-shared --disable-libspeex --disable-libsrt --disable-stripping --enable-swresample --enable-swscale --enable-libtheora --disable-vaapi --disable-vdpau --disable-libvpx --disable-libx264 --disable-libx265 --enable-libxcb --enable-outdev=xv --enable-zlib'
| WARNING: Backtrace (BB generated script):
| #1: do_configure, /home/sem3user/tisdk/build/arago-tmp-default-glibc/work/armv7at2hf-neon-oe-linux-gnueabi/ffmpeg/5.0.1-r0.arago0/temp/run.do_configure.3727275, line 151
| #2: main, /home/sem3user/tisdk/build/arago-tmp-default-glibc/work/armv7at2hf-neon-oe-linux-gnueabi/ffmpeg/5.0.1-r0.arago0/temp/run.do_configure.3727275, line 155
ERROR: Task (/home/sem3user/tisdk/sources/oe-core/meta/recipes-multimedia/ffmpeg/ffmpeg_5.0.1.bb:do_configure) failed with exit code '1'
Setscene tasks: 4081 of 4081

Please let me know how to move further

Request to please provide how to move further.

  • Are you building the tisdk-default-image, without any modifications? Or what are you building?

    Can you post more of your log? Usually there's references to files containing detailed errors, but I don't see this in the short extract you posted here. We'd want to look at those files.

    Then one thing you can try is completely clearing out the build output of the offending recipe, like this...

    $ MACHINE=am335x-evm bitbake -c cleansstate go-cross-armv7at2hf-neon

    ...and then re-starting your build.

    Regards, Andreas

  • Are you building the tisdk-default-image, without any modifications? Or what are you building?

    Yes

    am i correct or do i need to do anymore changes?

    Below is more log

    | DEBUG: Executing shell function autotools_preconfigure
    | DEBUG: Shell function autotools_preconfigure finished
    | DEBUG: Executing python function autotools_aclocals
    | DEBUG: SITE files ['endian-little', 'bit-32', 'arm-common', 'arm-32', 'common-linux', 'common-glibc', 'arm-linux', 'arm-linux-gnueabi', 'common']
    | DEBUG: Python function autotools_aclocals finished
    | DEBUG: Executing shell function do_configure
    | Unable to create and execute files in /tmp. Set the TMPDIR environment
    | variable to another directory and make sure that it is not mounted noexec.
    | Sanity test failed.
    |
    | If you think configure made a mistake, make sure you are using the latest
    | version from Git. If the latest version fails, report the problem to the
    | ffmpeg-user@ffmpeg.org mailing list or IRC #ffmpeg on irc.libera.chat.
    | Include the log file "ffbuild/config.log" produced by configure as this will help
    | solve the problem.
    | WARNING: /home/sem3user/tisdk/build/arago-tmp-default-glibc/work/armv7at2hf-neon-oe-linux-gnueabi/ffmpeg/5.0.1-r0.arago0/temp/run.do_configure.3727275:151 exit 1 from '/home/sem3user/tisdk/build/arago-tmp-default-glibc/work/armv7at2hf-neon-oe-linux-gnueabi/ffmpeg/5.0.1-r0.arago0/ffmpeg-5.0.1/configure --cross-prefix=arm-oe-linux-gnueabi- --ld='arm-oe-linux-gnueabi-gcc -march=armv7-a -mthumb -mfpu=neon -mfloat-abi=hard --sysroot=/home/sem3user/tisdk/build/arago-tmp-default-glibc/work/armv7at2hf-neon-oe-linux-gnueabi/ffmpeg/5.0.1-r0.arago0/recipe-sysroot' --cc='arm-oe-linux-gnueabi-gcc -march=armv7-a -mthumb -mfpu=neon -mfloat-abi=hard --sysroot=/home/sem3user/tisdk/build/arago-tmp-default-glibc/work/armv7at2hf-neon-oe-linux-gnueabi/ffmpeg/5.0.1-r0.arago0/recipe-sysroot' --cxx='arm-oe-linux-gnueabi-g++ -march=armv7-a -mthumb -mfpu=neon -mfloat-abi=hard --sysroot=/home/sem3user/tisdk/build/arago-tmp-default-glibc/work/armv7at2hf-neon-oe-linux-gnueabi/ffmpeg/5.0.1-r0.arago0/recipe-sysroot' --arch=arm --target-os='linux' --enable-cross-compile --extra-cflags=' -O2 -pipe -g -feliminate-unused-debug-types -fmacro-prefix-map=/home/sem3user/tisdk/build/arago-tmp-default-glibc/work/armv7at2hf-neon-oe-linux-gnueabi/ffmpeg/5.0.1-r0.arago0=/usr/src/debug/ffmpeg/5.0.1-r0.arago0 -fdebug-prefix-map=/home/sem3user/tisdk/build/arago-tmp-default-glibc/work/armv7at2hf-neon-oe-linux-gnueabi/ffmpeg/5.0.1-r0.arago0=/usr/src/debug/ffmpeg/5.0.1-r0.arago0 -fdebug-prefix-map=/home/sem3user/tisdk/build/arago-tmp-default-glibc/work/armv7at2hf-neon-oe-linux-gnueabi/ffmpeg/5.0.1-r0.arago0/recipe-sysroot= -fdebug-prefix-map=/home/sem3user/tisdk/build/arago-tmp-default-glibc/work/armv7at2hf-neon-oe-linux-gnueabi/ffmpeg/5.0.1-r0.arago0/recipe-sysroot-native= -march=armv7-a -mthumb -mfpu=neon -mfloat-abi=hard --sysroot=/home/sem3user/tisdk/build/arago-tmp-default-glibc/work/armv7at2hf-neon-oe-linux-gnueabi/ffmpeg/5.0.1-r0.arago0/recipe-sysroot' --extra-ldflags='-Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed -fmacro-prefix-map=/home/sem3user/tisdk/build/arago-tmp-default-glibc/work/armv7at2hf-neon-oe-linux-gnueabi/ffmpeg/5.0.1-r0.arago0=/usr/src/debug/ffmpeg/5.0.1-r0.arago0 -fdebug-prefix-map=/home/sem3user/tisdk/build/arago-tmp-default-glibc/work/armv7at2hf-neon-oe-linux-gnueabi/ffmpeg/5.0.1-r0.arago0=/usr/src/debug/ffmpeg/5.0.1-r0.arago0 -fdebug-prefix-map=/home/sem3user/tisdk/build/arago-tmp-default-glibc/work/armv7at2hf-neon-oe-linux-gnueabi/ffmpeg/5.0.1-r0.arago0/recipe-sysroot= -fdebug-prefix-map=/home/sem3user/tisdk/build/arago-tmp-default-glibc/work/armv7at2hf-neon-oe-linux-gnueabi/ffmpeg/5.0.1-r0.arago0/recipe-sysroot-native= ' --sysroot='/home/sem3user/tisdk/build/arago-tmp-default-glibc/work/armv7at2hf-neon-oe-linux-gnueabi/ffmpeg/5.0.1-r0.arago0/recipe-sysroot' ${EXTRA_FFCONF} --libdir=/usr/lib --shlibdir=/usr/lib --datadir=/usr/share/ffmpeg --cpu=generic --pkg-config=pkg-config --enable-alsa --disable-altivec --enable-avcodec --enable-avdevice --enable-avfilter --enable-avformat --enable-bzlib --disable-libfdk-aac --disable-gpl --disable-libgsm --disable-indev=jack --disable-libopus --disable-libvorbis --enable-lzma --disable-libmfx --disable-mipsdsp --disable-mipsdspr2 --disable-libmp3lame --disable-openssl --enable-pic --enable-postproc --enable-pthreads --disable-sdl2 --enable-shared --disable-libspeex --disable-libsrt --disable-stripping --enable-swresample --enable-swscale --enable-libtheora --disable-vaapi --disable-vdpau --disable-libvpx --disable-libx264 --disable-libx265 --enable-libxcb --enable-outdev=xv --enable-zlib'
    | WARNING: Backtrace (BB generated script):
    | #1: do_configure, /home/sem3user/tisdk/build/arago-tmp-default-glibc/work/armv7at2hf-neon-oe-linux-gnueabi/ffmpeg/5.0.1-r0.arago0/temp/run.do_configure.3727275, line 151
    | #2: main, /home/sem3user/tisdk/build/arago-tmp-default-glibc/work/armv7at2hf-neon-oe-linux-gnueabi/ffmpeg/5.0.1-r0.arago0/temp/run.do_configure.3727275, line 155
    ERROR: Task (/home/sem3user/tisdk/sources/oe-core/meta/recipes-multimedia/ffmpeg/ffmpeg_5.0.1.bb:do_configure) failed with exit code '1'
    Setscene tasks: 4081 of 4081
    Currently 8 running tasks (7100 of 10121) 70% |################################################################################################# |
    0: qtwebkit-5.15.7+gitAUTOINC+10cd6a106e-r0.arago8 do_compile - 1h34m21s (pid 3670247) 76% |######################################################################## |
    1: llvm-native-13.0.1-r0 do_compile - 1h0m57s (pid 4076599) 83% |###################################################################################################### |
    2: opencv-4.5.5-r0 do_compile - 42m59s (pid 127251) 89% |#################################################################################################################### |
    3: nodejs-16.20.2-r0 do_compile - 39m58s (pid 161471)
    4: ltp-ddt-1_20230127+gitAUTOINC+f2866cee38-r7 do_compile - 27m48s (pid 228348)
    5: piglit-1.0+gitrAUTOINC+2f80c7cc9c-r0 do_install - 9m42s (pid 340853)
    6: opensc-0.22.0-r0 do_package - 5s (pid 407108)
    7: softap-udhcpd-config-1.0-r1 do_package - 2s (pid 407273)

    But building is still under process can i wait till it finishes?

    I used below steps,

    1 history
    2 ls
    3 git clone git.ti.com/.../oe-layersetup.git tisdk
    4 cd tisdk/
    5 ./oe-layertool-setup.sh -f configs/processor-sdk/processor-sdk-09.01.00-legacy-config.txt
    6 ls
    7 cd build/
    8 . conf/setenv
    9  MACHINE=am335x-evm bitbake -k tisdk-default-image

  • | Unable to create and execute files in /tmp. Set the TMPDIR environment
    | variable to another directory and make sure that it is not mounted noexec.
    | Sanity test failed.

    Something is going very wrong here. Please make sure that....

    1) You have enough free storage space before starting the build (200+ GB)

    2) You have enough RAM. 32GB, or better 64GB.

    3) Make sure "swap" is enabled It's common to set this up to double the amount of memory available to the system (e.g., with 32GB DDR, setup swap size to 32GB, resulting in a total of 64GB of memory)

    4) Delete all temporary build artifacts and start again

    Also, are you building in a virtualized environment of sorts?

    Regards. Andreas

  • are you building in a virtualized environment of sorts?

    -> yes i am building in a virtualized environment of ubuntu 22.04 

  • -> yes i am building in a virtualized environment of ubuntu 22.04 

    You mean you are running Ubuntu 22.04 inside a VM, and do your Yocto builds straight on there, right? If so, that in by itself should not be an issue. This is a very common thing to do. Please go through the other steps to check that I provided.

    Regards, Andreas

  • Thanks,

    , after the build its showing build directory as 283GB this increase total tisdk size to 310GB how can i reduce ?

    when i see older tisdk(8.2) the its showing 28GB..

  • , after the build its showing build directory as 283GB this increase total tisdk size to 310GB how can i reduce ?

    when i see older tisdk(8.2) the its showing 28GB..

    One reason for the larger size is probably that starting with our SDK v9.x Yocto is now configured to build its own toolchain (called "internal toolchain"), which likely uses an considerable anount of disk space. But there are other components I'm sure (like graphics and UI related) that also increased build size requirements. If you are curious which packages uses the most space you could analyze the build/ directory using the Linux `du` command line tool (https://manpages.ubuntu.com/manpages/trusty/man1/du.1.html, probably want to use the `-h` and `-d` command line parameters to make the output more usable).

    If you want to reduce the size what you can do is the following:

    • Make sure you have the Yocto shared state cache setup to reside in a location on your drive that doesn't easily get erased (here's some good summary what this feature does https://bootlin.com/blog/yocto-sharing-the-sstate-cache-and-download-directories/)
    • After your initial build, delete the entire build/ folder and re-start your build after that
      • This should avoid re-compilation of most packages for this build (and future builds), and simply pulling them from the shared state cache
      • The build/ folder will now be much smaller

    Or, you can build smaller TI-provided images (like tisdk-base-image) which come with far less packages turned on, which will result in smaller build storage requirements.

    Ultimately I think you should get a larger disk drive, Nowadays fast 2TB-sized NMVe drive is very reasonably priced and provide ample storage for Yocto builds and your other activities.

    Regards, Andreas