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.

AM57x Linux SDK build error

Hi all,

   I am building the linux sdk 03_01_00_06, strictly following the guide in . But met the building issue as below:

sitara@Sitara-Server:~/tisdk/build$ MACHINE=am57xx-evm bitbake arago-core-tisdk-image
Loading cache: 100% |#############################################################################################################| ETA:  00:00:0
Loaded 2924 entries from dependency cache.
WARNING: No recipes available for:
  /home/sitara/tisdk/sources/meta-arago/meta-arago-distro/recipes-multimedia/libav/libav_9.16.bbappend
  /home/sitara/tisdk/sources/meta-processor-sdk/recipes-core/udev/udev_182.bbappend
NOTE: Resolving any missing task queue dependencies

Build Configuration:
BB_VERSION        = "1.30.0"
BUILD_SYS         = "x86_64-linux"
NATIVELSBSTRING   = "Ubuntu-12.04"
TARGET_SYS        = "arm-linux-gnueabi"
MACHINE           = "am57xx-evm"
DISTRO            = "arago"
DISTRO_VERSION    = "2016.08"
TUNE_FEATURES     = "arm armv7a vfp thumb neon       callconvention-hard"
TARGET_FPU        = "hard"
meta-processor-sdk = "HEAD:6b3984287c3c15fde80dcc5a0999fb85c6a8a6c6"
meta-arago-distro
meta-arago-extras = "HEAD:b6fea965af0129f552d45e9c7d85937e6076f645"
meta-qt5          = "HEAD:48b4084675a15fe3fd10b58f54728dfaa2bd6c72"
meta-networking
meta-ruby
meta-python
meta-oe
meta-gnome        = "HEAD:247b1267bbe95719cd4877d2d3cfbaf2a2f4865a"
meta-ti           = "HEAD:008497c611bc381014d310678e7dd39668959fea"
meta-linaro-toolchain = "HEAD:85faf6c6824597e7fd9e2d35fc9d8da2e9f90bc7"
meta              = "HEAD:8bbfe9bd229e3f795577eb5df1cd5104651e2ba2"

NOTE: Preparing RunQueue
NOTE: Executing SetScene Tasks
NOTE: Executing RunQueue Tasks
ERROR: ti-llvm3.6-native-3.6-r4.tisdk0 do_configure: configure failed
ERROR: ti-llvm3.6-native-3.6-r4.tisdk0 do_configure: Function failed: do_configure (log file is located at /home/sitara/tisdk/build/arago-tmp-extrnal-linaro-toolchain/work/x86_64-linux/ti-llvm3.6-native/3.6-r4.tisdk0/temp/log.do_configure.6389)
ERROR: Logfile of failure stored in: /home/sitara/tisdk/build/arago-tmp-external-linaro-toolchain/work/x86_64-linux/ti-llvm3.6-native/3.6-r4.tisd0/temp/log.do_configure.6389
Log data follows:
| DEBUG: Executing python function sysroot_cleansstate
| DEBUG: Python function sysroot_cleansstate finished
| DEBUG: Executing shell function autotools_preconfigure
| DEBUG: Shell function autotools_preconfigure finished
| DEBUG: Executing python function autotools_copy_aclocals
| DEBUG: Python function autotools_copy_aclocals finished
| DEBUG: Executing shell function do_configure
| NOTE: Running ../git/configure  --build=x86_64-linux            --host=x86_64-linux             --target=x86_64-linux                   --prefi=/home/sitara/tisdk/build/arago-tmp-external-linaro-toolchain/sysroots/x86_64-linux/usr                   --exec_prefix=/home/sitara/tisdk/build/rago-tmp-external-linaro-toolchain/sysroots/x86_64-linux/usr              --bindir=/home/sitara/tisdk/build/arago-tmp-external-linaro-toolchain/ssroots/x86_64-linux/usr/bin               --sbindir=/home/sitara/tisdk/build/arago-tmp-external-linaro-toolchain/sysroots/x86_64-linux/usr/sbin   --libexecdir=/home/sitara/tisdk/build/arago-tmp-external-linaro-toolchain/sysroots/x86_64-linux/usr/libexec              --datadir=/home/sitara/isdk/build/arago-tmp-external-linaro-toolchain/sysroots/x86_64-linux/usr/share            --sysconfdir=/home/sitara/tisdk/build/arago-tmp-externa-linaro-toolchain/sysroots/x86_64-linux/etc               --sharedstatedir=/home/sitara/tisdk/build/arago-tmp-external-linaro-toolchain/sysroots/86_64-linux/com                   --localstatedir=/home/sitara/tisdk/build/arago-tmp-external-linaro-toolchain/sysroots/x86_64-linux/var          --libdir=/home/sitara/tisdk/build/arago-tmp-external-linaro-toolchain/sysroots/x86_64-linux/usr/lib              --includedir=/home/sitara/tisdkbuild/arago-tmp-external-linaro-toolchain/sysroots/x86_64-linux/usr/include               --oldincludedir=/home/sitara/tisdk/build/arago-tmp-extenal-linaro-toolchain/sysroots/x86_64-linux/usr/include            --infodir=/home/sitara/tisdk/build/arago-tmp-external-linaro-toolchain/sysrootsx86_64-linux/usr/share/info               --mandir=/home/sitara/tisdk/build/arago-tmp-external-linaro-toolchain/sysroots/x86_64-linux/usr/share/mn                 --disable-silent-rules                  --disable-dependency-tracking                     --disable-assertions                 --enable-debug-runtime                  --disable-expensive-checks                  --enable-bindings=none                  --enable-keep-symbols                 --enable-libffi                  --enable-optimized                  --enable-shared                  --enable-targets=host-only --enable-targets=host,arm,c6000,msp430                   --disable-zlib                   --disable-terminfo                   --disable-libedit
| configure: loading site script /home/sitara/tisdk/sources/oe-core/meta/site/native
| checking for x86_64-linux-clang... gcc
| checking for C compiler default output file name... a.out
| checking whether the C compiler works... yes
| checking whether we are cross compiling... no
| checking for suffix of executables...
| checking for suffix of object files... o
| checking whether we are using the GNU C compiler... yes
| checking whether gcc  accepts -g... yes
| checking for gcc  option to accept ISO C89... none needed
| checking whether we are using the GNU C++ compiler... yes
| checking whether g++  accepts -g... yes
| checking how to run the C preprocessor... gcc  -E
| checking whether GCC or Clang is our host compiler... gcc
| checking build system type... x86_64-pc-linux-gnu
| checking host system type... x86_64-pc-linux-gnu
| checking target system type... x86_64-pc-linux-gnu
| checking type of operating system we're going to host on... Linux
| checking type of operating system we're going to target... Linux
| checking target architecture... x86_64
| checking whether GCC is new enough... no
| configure: error:
| The selected GCC C++ compiler is not new enough to build LLVM. Please upgrade
| to GCC 4.7. You may pass --disable-compiler-version-checks to configure to
| bypass these sanity checks.
| NOTE: The following config.log files may provide further information.
| NOTE:
| WARNING: /home/sitara/tisdk/build/arago-tmp-external-linaro-toolchain/work/x86_64-linux/ti-llvm3.6-native/3.6-r4.tisdk0/temp/run.do_configure.689:1 exit 1 from 'exit 1'
| ERROR: configure failed
| ERROR: Function failed: do_configure (log file is located at /home/sitara/tisdk/build/arago-tmp-external-linaro-toolchain/work/x86_64-linux/ti-lvm3.6-native/3.6-r4.tisdk0/temp/log.do_configure.6389)
ERROR: Task 6361 (virtual:native:/home/sitara/tisdk/sources/meta-arago/meta-arago-extras/recipes-core/llvm/ti-llvm3.6_3.6.bb, do_configure) faile with exit code '1'
NOTE: Tasks Summary: Attempted 1798 tasks of which 1794 didn't need to be rerun and 1 failed.
Waiting for 0 running tasks to finish:

Summary: 1 task failed:
  virtual:native:/home/sitara/tisdk/sources/meta-arago/meta-arago-extras/recipes-core/llvm/ti-llvm3.6_3.6.bb, do_configure
Summary: There was 1 WARNING message shown.
Summary: There were 2 ERROR messages shown, returning a non-zero exit code.

Here, the CCS used is CCS6.1.3.00034_linux.tar.gz.

So could you help to check it ?

Thanks!

Yaoming

  • I have checked the link e2e.ti.com/.../506433
    But it can't help me to fix the issue.
  • The software team have been notified. They will respond here.
  • Hello,

    I see this error in your log:
    | The selected GCC C++ compiler is not new enough to build LLVM. Please upgrade
    | to GCC 4.7. You may pass --disable-compiler-version-checks to configure to
    | bypass these sanity checks.

    Could you try to upgrade it?

    BR
    Margarita
  • Hello,

    I tried on my side with MACHINE=am57xx-evm bitbake ti-llvm3.6 only for do_configure.
    On my side do_configure log has :
    checking for x86_64-linux-g++... g++
    checking whether GCC is new enough... yes

    I am using Ubuntu 14.04 64-bit.
    I am exporting PATH=$HOME/gcc-linaro-5.3-2016.02-x86_64_arm-linux-gnueabihf/bin:$PATH
    Here is the result from gcc --version command on my side also:
    gcc (Ubuntu 4.8.4-2ubuntu1~14.04.3) 4.8.4

    Hope this helps.

    BR
    Margarita
  • Hi  Margarita,

     Thanks for your reply!

     Agree with you all, the root cause should be the GCC version.

    However, my Ubuntu version is 12.04 LTS, so I upgrade the GCC version by .

    and the log is as following

     sitara@Sitara-Server:~/tisdk/build$ gcc --version

    gcc (Ubuntu 4.8.1-2ubuntu1~12.04) 4.8.1

    Copyright (C) 2013 Free Software Foundation, Inc.

    This is free software; see the source for copying conditions.  There is NO

    warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

    But when I rerun the bitbake the error is the same:

    | configure: error:

    | The selected GCC C++ compiler is not new enough to build LLVM. Please upgrade

    | to GCC 4.7. You may pass --disable-compiler-version-checks to configure to

    | bypass these sanity checks.

    | NOTE: The following config.log files may provide further information.

    | NOTE:

    | ERROR: configure failed

    | ERROR: Function failed: do_configure (log file is located at /home/sitara/tisdk/build/arago-tmp-external-linaro-toolchain/work/x86_64-linux/ti-llvm3.6-native/3.6-r4.tisdk0/temp/log.do_configure.28689)

    ERROR: Task 6361 (virtual:native:/home/sitara/tisdk/sources/meta-arago/meta-arago-extras/recipes-core/llvm/ti-llvm3.6_3.6.bb, do_configure) failed with exit code '1'

    NOTE: Tasks Summary: Attempted 1812 tasks of which 1808 didn't need to be rerun and 1 failed.

    Waiting for 0 running tasks to finish:

    It seems that the GCC version is not update, so do you know how to update it?

    thanks!

  • Hello,

    It seems so.

    One note in the guide for building ProcessorSDK the recommended Linux distribution is Ubuntu 14.04 or Ubuntu 16.04.

    BR
    Margarita
  • Finally, I got rid of it by update the g++ as in gist.github.com/.../6404505.

    It seems that g++ needs to upgrade as well...

    Thanks all the same.