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.

Linux/AM5728: SDK build errors

Part Number: AM5728

Tool/software: Linux

Dears,

build AM5728 SDK ERROR, please help ,thanks,

-----------------------

 makedepend: warning:  gost2001.c (reading ../../include/openssl/buffer.h, line 68): cannot find include file "stddef.h"
|       not in ../../include/stddef.h
|       not in /usr/include/stddef.h
| makedepend: warning:  gost2001.c (reading ../../include/openssl/buffer.h, line 71): cannot find include file "sys/types.h"
|       not in ../../include/sys/types.h
|       not in /usr/include/sys/types.h
| makedepend: warning:  gost2001.c (reading ../../include/openssl/sha.h, line 63): cannot find include file "stddef.h"
|       not in ../../include/stddef.h
|       not in /usr/include/stddef.h
| makedepend: warning:  gost2001.c (reading /usr/include/string.h, line 32): cannot find include file "stddef.h"
|       not in ../../include/stddef.h
|       not in /usr/include/stddef.h
| NOTE: make -j 24 -e MAKEFLAGS=
| makedepend: warning:  gost2001.c (reading /usr/include/errno.h, line 35): cannot find include file "bits/errno.h"
|       not in ../../include/bits/errno.h
|       not in /usr/include/bits/errno.h
| makedepend: warning:  gost_pmeth.c (reading /usr/include/ctype.h, line 26): cannot find include file "bits/types.h"
|       not in ../../include/bits/types.h
|       not in /usr/include/bits/types.h
| makedepend: warning:  gost_pmeth.c (reading /usr/include/endian.h, line 36): cannot find include file "bits/endian.h"
|       not in ../../include/bits/endian.h
|       not in /usr/include/bits/endian.h
| makedepend: warning:  gost_pmeth.c (reading /usr/include/endian.h, line 60): cannot find include file "bits/byteswap.h"
|       not in ../../include/bits/byteswap.h
|       not in /usr/include/bits/byteswap.h
| make[2]: Leaving directory '/mnt/disk_2t/hillson/tisdk/build/arago-tmp-external-linaro-toolchain/work/armv7ahf-neon-linux-gnueabi/openssl/1.0.2j-r0.arago0/openssl-1.0.2j/engines/ccgost'
| make[1]: Leaving directory '/mnt/disk_2t/hillson/tisdk/build/arago-tmp-external-linaro-toolchain/work/armv7ahf-neon-linux-gnueabi/openssl/1.0.2j-r0.arago0/openssl-1.0.2j/engines'

-------------------------------------------

 make[3]: Entering directory '/mnt/disk_2t/hillson/tisdk/build/arago-tmp-external-linaro-toolchain/work/armv7ahf-neon-linux-gnueabi/openssl/1.0.2j-r0.arago0/openssl-1.0.2j'
| make[4]: Entering directory '/mnt/disk_2t/hillson/tisdk/build/arago-tmp-external-linaro-toolchain/work/armv7ahf-neon-linux-gnueabi/openssl/1.0.2j-r0.arago0/openssl-1.0.2j'
| libcrypto.a(dso_dlfcn.o): In function `dlfcn_globallookup':
| /usr/src/debug/openssl/1.0.2j-r0.arago0/openssl-1.0.2j/crypto/dso/dso_dlfcn.c:456: warning: Using 'dlopen' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
| /mnt/disk_2t/hillson/gcc-linaro-6.2.1-2016.11-x86_64_arm-linux-gnueabihf/bin/../lib/gcc/arm-linux-gnueabihf/6.2.1/../../../../arm-linux-gnueabihf/bin/ld: cannot find ../../lib/libc.so.6
| collect2: error: ld returned 1 exit status
| Makefile.shared:171: recipe for target 'link_a.gnu' failed
| make[4]: *** [link_a.gnu] Error 1
| make[4]: Leaving directory '/mnt/disk_2t/hillson/tisdk/build/arago-tmp-external-linaro-toolchain/work/armv7ahf-neon-linux-gnueabi/openssl/1.0.2j-r0.arago0/openssl-1.0.2j'
| Makefile:357: recipe for target 'do_linux-shared' failed
| make[3]: *** [do_linux-shared] Error 2
| make[3]: Leaving directory '/mnt/disk_2t/hillson/tisdk/build/arago-tmp-external-linaro-toolchain/work/armv7ahf-neon-linux-gnueabi/openssl/1.0.2j-r0.arago0/openssl-1.0.2j'
| Makefile:310: recipe for target 'libcrypto.so.1.0.0' failed
| make[2]: *** [libcrypto.so.1.0.0] Error 2
| make[2]: Leaving directory '/mnt/disk_2t/hillson/tisdk/build/arago-tmp-external-linaro-toolchain/work/armv7ahf-neon-linux-gnueabi/openssl/1.0.2j-r0.arago0/openssl-1.0.2j'
| Makefile:109: recipe for target 'shared' failed
| make[1]: *** [shared] Error 2
| make[1]: Leaving directory '/mnt/disk_2t/hillson/tisdk/build/arago-tmp-external-linaro-toolchain/work/armv7ahf-neon-linux-gnueabi/openssl/1.0.2j-r0.arago0/openssl-1.0.2j/crypto'
| Makefile:287: recipe for target 'build_crypto' failed
| make: *** [build_crypto] Error 1
| ERROR: Function failed: do_compile (log file is located at /home/hillson/disk/tisdk/build/arago-tmp-external-linaro-toolchain/work/armv7ahf-neon-linux-gnueabi/openssl/1.0.2j-r0.arago0/temp/log.do_compile.5959)
$<50>ERROR: Task (/home/hillson/disk/tisdk/sources/oe-core/meta/recipes-connectivity/openssl/openssl_1.0.2j.bb:do_compile) failed with exit code '1'
$<50>ERROR: libtool-cross-2.4.6-r0 do_configure: configure failed
$<50>ERROR: libtool-cross-2.4.6-r0 do_configure: Function failed: do_configure (log file is located at /home/hillson/disk/tisdk/build/arago-tmp-external-linaro-toolchain/work/armv7ahf-neon-linux-gnueabi/libtool-cross/2.4.6-r0/temp/log.do_configure.5956)
$<50>ERROR: Logfile of failure stored in: /home/hillson/disk/tisdk/build/arago-tmp-external-linaro-toolchain/work/armv7ahf-neon-linux-gnueabi/libtool-cross/2.4.6-r0/temp/log.do_configure.5956
Log data follows:
| DEBUG: Executing python function sysroot_cleansstate
| DEBUG: Python function sysroot_cleansstate finished
| DEBUG: SITE files ['endian-little', 'bit-32', 'arm-common', 'arm-32', 'common-linux', 'common-glibc', 'arm-linux', 'arm-linux-gnueabi', 'common']
| DEBUG: Executing shell function autotools_preconfigure
| DEBUG: Shell function autotools_preconfigure finished

------------------------------------------------------------------------

 ## ------------------------- ##
| ## Configuring libtool 2.4.6 ##
| ## ------------------------- ##
|
| checking for GNU M4 that supports accurate traces... /home/hillson/disk/tisdk/build/arago-tmp-external-linaro-toolchain/sysroots/x86_64-linux/usr/bin/m4
| checking whether /home/hillson/disk/tisdk/build/arago-tmp-external-linaro-toolchain/sysroots/x86_64-linux/usr/bin/m4 accepts --gnu... yes
| checking how m4 supports trace files... --debugfile
| checking for a BSD-compatible install... /usr/bin/install -c
| checking whether build environment is sane... yes
| checking for arm-linux-gnueabi-strip... arm-linux-gnueabihf-strip
| checking for a thread-safe mkdir -p... /bin/mkdir -p
| checking for gawk... gawk
| checking whether make sets $(MAKE)... yes
| checking whether make supports nested variables... yes
| checking whether make supports nested variables... (cached) yes
| checking build system type... x86_64-pc-linux-gnu
| checking host system type... arm-unknown-linux-gnueabi
| configure: autobuild project... GNU Libtool
| configure: autobuild revision... 2.4.6
| configure: autobuild hostname... uthost
| configure: autobuild mode... default
| configure: autobuild timestamp... 20180709T092915Z
| checking for arm-linux-gnueabi-gcc... arm-linux-gnueabihf-gcc  -march=armv7-a -marm -mfpu=neon  -mfloat-abi=hard --sysroot=/home/hillson/disk/tisdk/build/arago-tmp-external-linaro-toolchain/sysroots/am57xx-evm
| checking whether the C compiler works... no
| configure: error: in `/home/hillson/disk/tisdk/build/arago-tmp-external-linaro-toolchain/work/armv7ahf-neon-linux-gnueabi/libtool-cross/2.4.6-r0/build':
| configure: error: C compiler cannot create executables
| See `config.log' for more details
| WARNING: /home/hillson/disk/tisdk/build/arago-tmp-external-linaro-toolchain/work/armv7ahf-neon-linux-gnueabi/libtool-cross/2.4.6-r0/temp/run.do_configure.5956:1 exit 1 from 'exit 1'
| ERROR: Function failed: do_configure (log file is located at /home/hillson/disk/tisdk/build/arago-tmp-external-linaro-toolchain/work/armv7ahf-neon-linux-gnueabi/libtool-cross/2.4.6-r0/temp/log.do_configure.5956)
$<50>ERROR: Task (/home/hillson/disk/tisdk/sources/oe-core/meta/recipes-devtools/libtool/libtool-cross_2.4.6.bb:do_configure) failed with exit code '1'
$<50>NOTE: Tasks Summary: Attempted 611 tasks of which 607 didn't need to be rerun and 4 failed.
$<50>
Summary: 4 tasks failed:
  /home/hillson/disk/tisdk/sources/oe-core/meta/recipes-devtools/opkg-utils/opkg-utils_git.bb:do_compile
  /home/hillson/disk/tisdk/sources/oe-core/meta/recipes-core/zlib/zlib_1.2.8.bb:do_compile
  /home/hillson/disk/tisdk/sources/oe-core/meta/recipes-connectivity/openssl/openssl_1.0.2j.bb:do_compile
  /home/hillson/disk/tisdk/sources/oe-core/meta/recipes-devtools/libtool/libtool-cross_2.4.6.bb:do_configure
Summary: There was 1 WARNING message shown.
Summary: There were 8 ERROR messages shown, returning a non-zero exit code.

  • Hello user4996020,

    Please, start from scratch and strictly follow these commands.

    $ sudo apt-get install git build-essential python diffstat texinfo gawk chrpath dos2unix wget unzip socat doxygen libc6:i386 libncurses5:i386 libstdc++6:i386 libz1:i386

    $ sudo dpkg-reconfigure dash
    (Select "no" when prompted)

    $ wget https://releases.linaro.org/components/toolchain/binaries/6.2-2016.11/arm-linux-gnueabihf/gcc-linaro-6.2.1-2016.11-x86_64_arm-linux-gnueabihf.tar.xz
    $ tar -Jxvf gcc-linaro-6.2.1-2016.11-x86_64_arm-linux-gnueabihf.tar.xz -C $HOME

    $ git clone git://arago-project.org/git/projects/oe-layersetup.git tisdk
    $ cd tisdk
    $ ./oe-layertool-setup.sh -f configs/processor-sdk/processor-sdk-04.03.00.05-config.txt
    $ cd build
    $ . conf/setenv
    $ export PATH=$HOME/gcc-linaro-6.2.1-2016.11-x86_64_arm-linux-gnueabihf/bin:$PATH
    $ MACHINE=am57xx-evm bitbake tisdk-rootfs-image

    Best regards,
    Kemal

  • Dear Kemal,
    Fellow your direction, I tried tiwice, meet same error:



    $<50>Currently 21 running tasks (12877 of 14693) 87% |################################################################################################### $<50>Currently 21 running tasks (12878 of 14693) 87% |################################################################################################### $<50>Currently 21 running tasks (12883 of 14693) 87% |################################################################################################### $<50>Currently 21 running tasks (12884 of 14693) 87% $<50>Currently 23 running tasks (12885 of 14693) 87% |################################################################################################### $<50>ERROR: tf2-py-0.5.17-r0 do_package_qa: QA Issue: tf2-py rdepends on python3-dev [dev-deps]
    $<50>ERROR: tf2-py-0.5.17-r0 do_package_qa: QA run found fatal errors. Please consider fixing them.
    $<50>ERROR: tf2-py-0.5.17-r0 do_package_qa: Function failed: do_package_qa
    $<50>ERROR: Logfile of failure stored in: /mnt/disk_2t/hillson/am572xsdk/build/arago-tmp-external-linaro-toolchain/work/armv7ahf-neon-linux-gnueabi/tf2-py/0.5.17-r0/temp/log.do_package_qa.28533
    $<50>ERROR: Task (/mnt/disk_2t/hillson/am572xsdk/sources/meta-ros/recipes-ros/geometry2/tf2-py_0.5.17.bb:do_package_qa) failed with exit code '1'
    $<50>Currently 22 running tasks (12886 of 14693) 87% |################################################################################################### $<50>Waiting for 9 running tasks to finish:
    0: linux-ti-staging-4.9.69+gitAUTOINC+9ce43c71ae-r7a.arago5.tisdk22 do_create_srcipk - 20316s (pid 30826)
    1: chromium-wayland-53.0.2785.143-r0 do_compile (pid 21615) 99% |################################################################################################ |
    2: ti-llvm3.6-3.6-r6 do_package - 12975s (pid 13305)
    3: u-boot-ti-staging-2017.01+gitAUTOINC+c68ed086bd-r21 do_create_srcipk - 7402s (pid 23524)
    4: ti-sysbios-6_52_00_12-r0 do_package_qa - 3075s (pid 23783)
    5: perl-5.22.1-r0 do_package_qa - 1978s (pid 8322)
    6: edma3-lld-rtos-2.12.05.30C-r0.1 do_package_qa - 1174s (pid 20285)
    7: php-5.6.26-r0.arago1 do_configure - 846s (pid 24598)
    8: qtwebengine-5.7.1+gitAUTOINC+9cc97f0c63_b3c79e92f0-r0.arago0 do_package - 724s (pid 26689)
  • No, it is a different issue. Please, see this thread.

  • Thank you very much! success to finished.