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-OMAPL138: Building Processor SDK

Part Number: PROCESSOR-SDK-OMAPL138
Other Parts Discussed in Thread: OMAPL138, OMAP-L138

When building for the OMAP-L138-LCDK board, the machine type listed in the Platforms section of the wiki is incorrect.

The value should be omapl138-lcdk

This reflects the entries within both the Layer Configuration section of the same wiki, and the values within tisdk_omap/sources/meta-ti/conf/machine/

  • Actually, when trying to build using MACHINE=omapl138-lcdk bitbake arago-core-tisdk-image I now see

    juansta@marlin ~/ti/tisdk $ cd build/
    juansta@marlin ~/ti/tisdk/build $ . conf/setenv
    juansta@marlin ~/ti/tisdk/build $ export PATH=$HOME/gcc-linaro-6.2.1-2016.11-x86_64_arm-linux-gnueabihf/bin:$PATH
    juansta@marlin ~/ti/tisdk/build $ MACHINE=omapl138-lcdk bitbake arago-core-tisdk-image
    ERROR: No valid toolchain in PATH
    ERROR: Unable to parse /home/juansta/ti/tisdk/sources/bitbake/lib/bb/data_smart.py
    Traceback (most recent call last):
      File "/home/juansta/ti/tisdk/sources/bitbake/lib/bb/data_smart.py", line 400, in DataSmart.expandWithRefs(s="${@bool(d.getVar('TOOLCHAIN_SYSPATH', d, 1)) and (os.path.exists(d.getVar('TOOLCHAIN_SYSPATH', d, 1)) and os.path.dirname(d.getVar('TOOLCHAIN_SYSPATH', d, 1)) or bb.fatal('No valid toolchain in PATH')) or ''}", varname='TOOLCHAIN_PATH[:=]'):
                     except Exception as exc:
        >                raise ExpansionError(varname, s, exc) from exc
         
    bb.data_smart.ExpansionError: Failure expanding variable TOOLCHAIN_PATH[:=], expression was ${@bool(d.getVar('TOOLCHAIN_SYSPATH', d, 1)) and (os.path.exists(d.getVar('TOOLCHAIN_SYSPATH', d, 1)) and os.path.dirname(d.getVar('TOOLCHAIN_SYSPATH', d, 1)) or bb.fatal('No valid toolchain in PATH')) or ''} which triggered exception BBHandledException: 
    
    juansta@marlin ~/ti/tisdk/build $ MACHINE=omapl138 bitbake arago-core-tisdk-image
    ERROR: Failed to obtain external Linaro toolchain version: Execution of '/home/juansta/gcc-linaro-6.2.1-2016.11-x86_64_arm-linux-gnueabihf/bin/INVALID-linux-gcc -v' failed: command not found
    ERROR: Failed to obtain external Linaro toolchain version: Execution of '/home/juansta/gcc-linaro-6.2.1-2016.11-x86_64_arm-linux-gnueabihf/bin/INVALID-linux-gcc -v' failed: command not found
    ERROR: Failed to obtain external Linaro toolchain version: Execution of '/home/juansta/gcc-linaro-6.2.1-2016.11-x86_64_arm-linux-gnueabihf/bin/INVALID-linux-gcc -v' failed: command not found
    ERROR: Failed to obtain external Linaro toolchain version: Execution of '/home/juansta/gcc-linaro-6.2.1-2016.11-x86_64_arm-linux-gnueabihf/bin/INVALID-linux-gcc -v' failed: command not found
    NOTE: Your conf/bblayers.conf has been automatically updated.
    ERROR: Failed to obtain external Linaro toolchain version: Execution of '/home/juansta/gcc-linaro-6.2.1-2016.11-x86_64_arm-linux-gnueabihf/bin/INVALID-linux-gcc -v' failed: command not found
    ERROR: Failed to obtain external Linaro toolchain version: Execution of '/home/juansta/gcc-linaro-6.2.1-2016.11-x86_64_arm-linux-gnueabihf/bin/INVALID-linux-gcc -v' failed: command not found
    ERROR: Failed to obtain external Linaro toolchain version: Execution of '/home/juansta/gcc-linaro-6.2.1-2016.11-x86_64_arm-linux-gnueabihf/bin/INVALID-linux-gcc -v' failed: command not found
    ERROR: Failed to obtain external Linaro toolchain version: Execution of '/home/juansta/gcc-linaro-6.2.1-2016.11-x86_64_arm-linux-gnueabihf/bin/INVALID-linux-gcc -v' failed: command not found
    NOTE: Your conf/bblayers.conf has been automatically updated.
    ERROR: Failed to obtain external Linaro toolchain version: Execution of '/home/juansta/gcc-linaro-6.2.1-2016.11-x86_64_arm-linux-gnueabihf/bin/INVALID-linux-gcc -v' failed: command not found
    ERROR: Failed to obtain external Linaro toolchain version: Execution of '/home/juansta/gcc-linaro-6.2.1-2016.11-x86_64_arm-linux-gnueabihf/bin/INVALID-linux-gcc -v' failed: command not found
    ERROR: Failed to obtain external Linaro toolchain version: Execution of '/home/juansta/gcc-linaro-6.2.1-2016.11-x86_64_arm-linux-gnueabihf/bin/INVALID-linux-gcc -v' failed: command not found
    ERROR: Failed to obtain external Linaro toolchain version: Execution of '/home/juansta/gcc-linaro-6.2.1-2016.11-x86_64_arm-linux-gnueabihf/bin/INVALID-linux-gcc -v' failed: command not found
    ERROR: Failed to obtain external Linaro toolchain version: Execution of '/home/juansta/gcc-linaro-6.2.1-2016.11-x86_64_arm-linux-gnueabihf/bin/INVALID-linux-gcc -v' failed: command not found
    ERROR: Failed to obtain external Linaro toolchain version: Execution of '/home/juansta/gcc-linaro-6.2.1-2016.11-x86_64_arm-linux-gnueabihf/bin/INVALID-linux-gcc -v' failed: command not found
    ERROR: Failed to obtain external Linaro toolchain version: Execution of '/home/juansta/gcc-linaro-6.2.1-2016.11-x86_64_arm-linux-gnueabihf/bin/INVALID-linux-gcc -v' failed: command not found
    ERROR: Failed to obtain external Linaro toolchain version: Execution of '/home/juansta/gcc-linaro-6.2.1-2016.11-x86_64_arm-linux-gnueabihf/bin/INVALID-linux-gcc -v' failed: command not found
    ERROR: Failed to obtain external Linaro toolchain version: Execution of '/home/juansta/gcc-linaro-6.2.1-2016.11-x86_64_arm-linux-gnueabihf/bin/INVALID-linux-gcc -v' failed: command not found
    ERROR: Failed to obtain external Linaro toolchain version: Execution of '/home/juansta/gcc-linaro-6.2.1-2016.11-x86_64_arm-linux-gnueabihf/bin/INVALID-linux-gcc -v' failed: command not found
    ERROR: Failed to obtain external Linaro toolchain version: Execution of '/home/juansta/gcc-linaro-6.2.1-2016.11-x86_64_arm-linux-gnueabihf/bin/INVALID-linux-gcc -v' failed: command not found
    ERROR: Failed to obtain external Linaro toolchain version: Execution of '/home/juansta/gcc-linaro-6.2.1-2016.11-x86_64_arm-linux-gnueabihf/bin/INVALID-linux-gcc -v' failed: command not found
    ERROR:  OE-core's config sanity checker detected a potential misconfiguration.
        Either fix the cause of this error or at your own risk disable the checker (see sanity.conf).
        Following is the list of potential problems / advisories:
    
        Please set a valid MACHINE in your local.conf or environment
    
    
    Summary: There were 21 ERROR messages shown, returning a non-zero exit code.
    juansta@marlin ~/ti/tisdk/build $ echo $PATH
    /home/juansta/gcc-linaro-6.2.1-2016.11-x86_64_arm-linux-gnueabihf/bin:/home/juansta/ti/tisdk/sources/meta-browser/scripts:/home/juansta/ti/tisdk/sources/oe-core/scripts:/home/juansta/ti/tisdk/sources/bitbake/bin:/usr/local/bin:/usr/bin:/bin:/opt/bin:/usr/x86_64-pc-linux-gnu/gcc-bin/4.9.4
    
    

    Again, building for am335x-evm sees no errors...

  • Can you try the following:
    1. Export all paths manually:
    export PATH:/path/to/toolchain/:$PATH
    export CROSS_COMPILE=arm-linux-gnueabihf-
    export ARCH=arm

    2. Check the permissions in your sdk folder. You should have the subfolders in it accessible by all users in your system.

    Best Regards,
    Yordan
  • Manually setting the exports does not help

    juansta@marlin ~/ti/tisdk/build $ export PATH=$HOME/gcc-linaro-6.2.1-2016.11-x86_64_arm-linux-gnueabihf/bin:$PATH
    juansta@marlin ~/ti/tisdk/build $ export CROSS_COMPILE=arm-linux-gnueabihf-
    juansta@marlin ~/ti/tisdk/build $ export ARCH=arm
    juansta@marlin ~/ti/tisdk/build $ MACHINE=omapl138-lcdk bitbake arago-core-tisdk-image
    ERROR: No valid toolchain in PATH
    ERROR: Unable to parse /home/juansta/ti/tisdk/sources/bitbake/lib/bb/data_smart.py
    Traceback (most recent call last):
      File "/home/juansta/ti/tisdk/sources/bitbake/lib/bb/data_smart.py", line 400, in DataSmart.expandWithRefs(s="${@bool(d.getVar('TOOLCHAIN_SYSPATH', d, 1)) and (os.path.exists(d.getVar('TOOLCHAIN_SYSPATH', d, 1)) and os.path.dirname(d.getVar('TOOLCHAIN_SYSPATH', d, 1)) or bb.fatal('No valid toolchain in PATH')) or ''}", varname='TOOLCHAIN_PATH[:=]'):
                     except Exception as exc:
        >                raise ExpansionError(varname, s, exc) from exc
         
    bb.data_smart.ExpansionError: Failure expanding variable TOOLCHAIN_PATH[:=], expression was ${@bool(d.getVar('TOOLCHAIN_SYSPATH', d, 1)) and (os.path.exists(d.getVar('TOOLCHAIN_SYSPATH', d, 1)) and os.path.dirname(d.getVar('TOOLCHAIN_SYSPATH', d, 1)) or bb.fatal('No valid toolchain in PATH')) or ''} which triggered exception BBHandledException: 
    
    juansta@marlin ~/ti/tisdk/build $ MACHINE=omapl138 bitbake arago-core-tisdk-image
    ERROR: Failed to obtain external Linaro toolchain version: Execution of '/home/juansta/gcc-linaro-6.2.1-2016.11-x86_64_arm-linux-gnueabihf/bin/INVALID-linux-gcc -v' failed: command not found
    ERROR: Failed to obtain external Linaro toolchain version: Execution of '/home/juansta/gcc-linaro-6.2.1-2016.11-x86_64_arm-linux-gnueabihf/bin/INVALID-linux-gcc -v' failed: command not found
    ERROR: Failed to obtain external Linaro toolchain version: Execution of '/home/juansta/gcc-linaro-6.2.1-2016.11-x86_64_arm-linux-gnueabihf/bin/INVALID-linux-gcc -v' failed: command not found
    ERROR: Failed to obtain external Linaro toolchain version: Execution of '/home/juansta/gcc-linaro-6.2.1-2016.11-x86_64_arm-linux-gnueabihf/bin/INVALID-linux-gcc -v' failed: command not found
    ERROR: Failed to obtain external Linaro toolchain version: Execution of '/home/juansta/gcc-linaro-6.2.1-2016.11-x86_64_arm-linux-gnueabihf/bin/INVALID-linux-gcc -v' failed: command not found
    ERROR: Failed to obtain external Linaro toolchain version: Execution of '/home/juansta/gcc-linaro-6.2.1-2016.11-x86_64_arm-linux-gnueabihf/bin/INVALID-linux-gcc -v' failed: command not found
    ERROR: Failed to obtain external Linaro toolchain version: Execution of '/home/juansta/gcc-linaro-6.2.1-2016.11-x86_64_arm-linux-gnueabihf/bin/INVALID-linux-gcc -v' failed: command not found
    ERROR: Failed to obtain external Linaro toolchain version: Execution of '/home/juansta/gcc-linaro-6.2.1-2016.11-x86_64_arm-linux-gnueabihf/bin/INVALID-linux-gcc -v' failed: command not found
    ERROR: Failed to obtain external Linaro toolchain version: Execution of '/home/juansta/gcc-linaro-6.2.1-2016.11-x86_64_arm-linux-gnueabihf/bin/INVALID-linux-gcc -v' failed: command not found
    ERROR: Failed to obtain external Linaro toolchain version: Execution of '/home/juansta/gcc-linaro-6.2.1-2016.11-x86_64_arm-linux-gnueabihf/bin/INVALID-linux-gcc -v' failed: command not found
    ERROR: Failed to obtain external Linaro toolchain version: Execution of '/home/juansta/gcc-linaro-6.2.1-2016.11-x86_64_arm-linux-gnueabihf/bin/INVALID-linux-gcc -v' failed: command not found
    ERROR: Failed to obtain external Linaro toolchain version: Execution of '/home/juansta/gcc-linaro-6.2.1-2016.11-x86_64_arm-linux-gnueabihf/bin/INVALID-linux-gcc -v' failed: command not found
    ERROR:  OE-core's config sanity checker detected a potential misconfiguration.
        Either fix the cause of this error or at your own risk disable the checker (see sanity.conf).
        Following is the list of potential problems / advisories:
    
        Please set a valid MACHINE in your local.conf or environment
    
    
    Summary: There were 13 ERROR messages shown, returning a non-zero exit code.

    This is also from a fresh download, so all file permissions should be OK.

    From the same terminal I can access the toolchain (using bash completion, straight after the failure to find anything above)

    juansta@marlin ~/ti/tisdk/build $ which arm-linux-gnueabihf-gcc
    /home/juansta/gcc-linaro-6.2.1-2016.11-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf-gcc
    juansta@marlin ~/ti/tisdk/build $ arm-linux-gnueabihf-gcc --version
    arm-linux-gnueabihf-gcc (Linaro GCC 6.2-2016.11) 6.2.1 20161016
    Copyright (C) 2016 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.
    

  • What version of the cross compiler is required to build?

    • gnueabi, or
    • gnueabihf

    The instructions in the wiki seem to point to gnueabihf... However, the provided tools in the SDK download (ti-processor-sdk-linux-omapl138-lcdk-04.00.00.04/linux-devkit/sysroots/x86_64-arago-linux) are arm-linux-gnueabi.

    I've managed to start the SDK build using gnueabi with the tool chain downloaded from releases.linaro.org/.../gcc-linaro-6.
        2.1-2016.11-x86_64_arm-linux-gnueabi.tar.xz.

    I see the following warnings;

    WARNING: /home/juansta/tools/tisdk/sources/meta-processor-sdk/recipes-ti/devtools/ti-cgt6x_8.1.3.bb: ti-cgt6x-8.1.3 ONLY supports hardfp mode for now
    WARNING: /home/juansta/tools/tisdk/sources/meta-ti/recipes-ti/devtools/ti-cgt6x_8.1.0.bb: ti-cgt6x-8.1.0 ONLY supports hardfp mode for now
    WARNING: /home/juansta/tools/tisdk/sources/meta-ti/recipes-graphics/libgal/ti-gc320-libs_5.0.11.p7.bb: ti-gc320-libs-5.0.11.p7 ONLY supports hardfp mode for now
    WARNING: /home/juansta/tools/tisdk/sources/meta-ti/recipes-graphics/libgles/ti-sgx-ddk-um_1.14.3699939.bb: ti-sgx-ddk-um-1.14.3699939 ONLY supports hardfp mode for now

    This leads to the following configuration;

    Build Configuration:
    BB_VERSION        = "1.32.0"
    BUILD_SYS         = "x86_64-linux"
    NATIVELSBSTRING   = "Gentoo"
    TARGET_SYS        = "arm-linux-gnueabi"
    MACHINE           = "omapl138-lcdk"
    DISTRO            = "arago"
    DISTRO_VERSION    = "2017.05"
    TUNE_FEATURES     = "arm armv5 thumb dsp"
    TARGET_FPU        = "soft"
    meta-processor-sdk = "HEAD:3d2f620a6a98b1b6abb1103d7dc986921436ed19"
    meta-arago-distro 
    meta-arago-extras = "HEAD:b727bf8fce8e9cb5a6b5d5b48c45f0088e67eb53"
    meta-browser      = "HEAD:880a7bd1d3b9a1b2003f5b0620350f03158bbd43"
    meta-qt5          = "HEAD:3601fd2c5306ac6d5d0d536e0be8cbb90da9b4c1"
    meta-networking   
    meta-ruby         
    meta-python       
    meta-oe           
    meta-gnome        = "HEAD:fe5c83312de11e80b85680ef237f8acb04b4b26e"
    meta-ti           = "HEAD:41d6fdc0fe5ea6054616cfccda13baac3ff33791"
    meta-linaro-toolchain 
    meta-optee        = "HEAD:d84874bad834657dd04ea69c35a74dd9dbd535b8"
    meta              = "HEAD:ddf907ca95a19f54785079b4396935273b3747f6"

    Is this expected, or will I run into other problems further on? May main concerns are related to all non-graphics warnings...

    WARNING: /home/juansta/tools/tisdk/sources/meta-processor-sdk/recipes-ti/devtools/ti-cgt6x_8.1.3.bb: ti-cgt6x-8.1.3 ONLY supports hardfp mode for now
    WARNING: /home/juansta/tools/tisdk/sources/meta-ti/recipes-ti/devtools/ti-cgt6x_8.1.0.bb: ti-cgt6x-8.1.0 ONLY supports hardfp mode for now

    Does the OMAPL138 expect gnueabihf?

    Im not familiar with the MCSDK for the OMAPL138, but it looks like (from the wiki pages) that uses gnueabi?

  • Even though the build actually begins... Im still seeing failures...

    juansta@marlin ~/tools/tisdk/build $ MACHINE=omapl138-lcdk bitbake arago-core-tisdk-image
    NOTE: Your conf/bblayers.conf has been automatically updated.
    NOTE: Your conf/bblayers.conf has been automatically updated.
    Loading cache: 100% |###########################################################################################################################################################################################################################################| Time: 0:00:01
    Loaded 3236 entries from dependency cache.
    WARNING: /home/juansta/tools/tisdk/sources/meta-processor-sdk/recipes-ti/devtools/ti-cgt6x_8.1.3.bb: ti-cgt6x-8.1.3 ONLY supports hardfp mode for now                                                                                                          | ETA:  --:--:--
    WARNING: /home/juansta/tools/tisdk/sources/meta-ti/recipes-ti/devtools/ti-cgt6x_8.1.0.bb: ti-cgt6x-8.1.0 ONLY supports hardfp mode for now###########                                                                                                           | ETA:  0:00:03
    WARNING: /home/juansta/tools/tisdk/sources/meta-ti/recipes-graphics/libgles/ti-sgx-ddk-um_1.14.3699939.bb: ti-sgx-ddk-um-1.14.3699939 ONLY supports hardfp mode for now#####                                                                                    | ETA:  0:00:02
    Parsing recipes: 100% |#########################################################################################################################################################################################################################################| Time: 0:00:06
    Parsing of 2488 .bb files complete (2174 cached, 314 parsed). 3236 targets, 564 skipped, 0 masked, 0 errors.
    NOTE: Resolving any missing task queue dependencies
    
    Build Configuration:
    BB_VERSION        = "1.32.0"
    BUILD_SYS         = "x86_64-linux"
    NATIVELSBSTRING   = "Gentoo"
    TARGET_SYS        = "arm-linux-gnueabi"
    MACHINE           = "omapl138-lcdk"
    DISTRO            = "arago"
    DISTRO_VERSION    = "2017.05"
    TUNE_FEATURES     = "arm armv5 thumb dsp"
    TARGET_FPU        = "soft"
    meta-processor-sdk = "HEAD:3d2f620a6a98b1b6abb1103d7dc986921436ed19"
    meta-arago-distro 
    meta-arago-extras = "HEAD:b727bf8fce8e9cb5a6b5d5b48c45f0088e67eb53"
    meta-browser      = "HEAD:880a7bd1d3b9a1b2003f5b0620350f03158bbd43"
    meta-qt5          = "HEAD:3601fd2c5306ac6d5d0d536e0be8cbb90da9b4c1"
    meta-networking   
    meta-ruby         
    meta-python       
    meta-oe           
    meta-gnome        = "HEAD:fe5c83312de11e80b85680ef237f8acb04b4b26e"
    meta-ti           = "HEAD:41d6fdc0fe5ea6054616cfccda13baac3ff33791"
    meta-linaro-toolchain 
    meta-optee        = "HEAD:d84874bad834657dd04ea69c35a74dd9dbd535b8"
    meta              = "HEAD:ddf907ca95a19f54785079b4396935273b3747f6"
    
    Initialising tasks: 100% |######################################################################################################################################################################################################################################| Time: 0:00:14
    NOTE: Executing SetScene Tasks
    NOTE: Executing RunQueue Tasks
    ERROR: opkg-utils-0.3.2+gitAUTOINC+3ffece9bf1-r0 do_compile: oe_runmake failed
    ERROR: opkg-utils-0.3.2+gitAUTOINC+3ffece9bf1-r0 do_compile: Function failed: do_compile (log file is located at /home/juansta/tools/tisdk/build/arago-tmp-external-linaro-toolchain/work/armv5e-linux-gnueabi/opkg-utils/0.3.2+gitAUTOINC+3ffece9bf1-r0/temp/log.do_compile.24541)
    ERROR: Logfile of failure stored in: /home/juansta/tools/tisdk/build/arago-tmp-external-linaro-toolchain/work/armv5e-linux-gnueabi/opkg-utils/0.3.2+gitAUTOINC+3ffece9bf1-r0/temp/log.do_compile.24541
    Log data follows:
    | DEBUG: Executing shell function do_compile
    | NOTE: make -j 8
    | ERROR: oe_runmake failed
    | arm-linux-gnueabi-gcc  -march=armv5e -marm  -L/home/juansta/gcc-linaro-6.2.1-2016.11-x86_64_arm-linux-gnueabi/arm-linux-gnueabi/lib -Wl,-rpath-link,/home/juansta/gcc-linaro-6.2.1-2016.11-x86_64_arm-linux-gnueabi/arm-linux-gnueabi/lib -Wl,-O1 -Wl,--hash-style=gnu --sysroot=/home/juansta/tools/tisdk/build/arago-tmp-external-linaro-toolchain/sysroots/omapl138-lcdk  -isystem/home/juansta/gcc-linaro-6.2.1-2016.11-x86_64_arm-linux-gnueabi/arm-linux-gnueabi/include  -O2 -pipe -g -feliminate-unused-debug-types -fdebug-prefix-map=/home/juansta/tools/tisdk/build/arago-tmp-external-linaro-toolchain/work/armv5e-linux-gnueabi/opkg-utils/0.3.2+gitAUTOINC+3ffece9bf1-r0=/usr/src/debug/opkg-utils/0.3.2+gitAUTOINC+3ffece9bf1-r0 -fdebug-prefix-map=/home/juansta/tools/tisdk/build/arago-tmp-external-linaro-toolchain/sysroots/x86_64-linux= -fdebug-prefix-map=/home/juansta/tools/tisdk/build/arago-tmp-external-linaro-toolchain/sysroots/omapl138-lcdk=  -o opkg-compare-versions opkg-compare-versions.c
    | Assembler messages:
    | Error: unknown architecture `armv5e'
    | 
    | Error: unrecognized option -march=armv5e
    | make: *** [Makefile:12: opkg-compare-versions] Error 2
    | ERROR: Function failed: do_compile (log file is located at /home/juansta/tools/tisdk/build/arago-tmp-external-linaro-toolchain/work/armv5e-linux-gnueabi/opkg-utils/0.3.2+gitAUTOINC+3ffece9bf1-r0/temp/log.do_compile.24541)
    ERROR: Task (/home/juansta/tools/tisdk/sources/oe-core/meta/recipes-devtools/opkg-utils/opkg-utils_git.bb:do_compile) failed with exit code '1'
    ERROR: zlib-1.2.8-r0 do_configure: Function failed: do_configure (log file is located at /home/juansta/tools/tisdk/build/arago-tmp-external-linaro-toolchain/work/armv5e-linux-gnueabi/zlib/1.2.8-r0/temp/log.do_configure.24540)
    ERROR: Logfile of failure stored in: /home/juansta/tools/tisdk/build/arago-tmp-external-linaro-toolchain/work/armv5e-linux-gnueabi/zlib/1.2.8-r0/temp/log.do_configure.24540
    Log data follows:
    | DEBUG: Executing python function sysroot_cleansstate
    | DEBUG: Python function sysroot_cleansstate finished
    | DEBUG: Executing shell function do_configure
    | Compiler error reporting is too harsh for ./configure (perhaps remove -Werror).
    | ** ./configure aborting.
    | WARNING: /home/juansta/tools/tisdk/build/arago-tmp-external-linaro-toolchain/work/armv5e-linux-gnueabi/zlib/1.2.8-r0/temp/run.do_configure.24540:1 exit 1 from './configure --prefix=/usr --shared --libdir=/usr/lib'
    | ERROR: Function failed: do_configure (log file is located at /home/juansta/tools/tisdk/build/arago-tmp-external-linaro-toolchain/work/armv5e-linux-gnueabi/zlib/1.2.8-r0/temp/log.do_configure.24540)
    ERROR: Task (/home/juansta/tools/tisdk/sources/oe-core/meta/recipes-core/zlib/zlib_1.2.8.bb:do_configure) failed with exit code '1'
    ERROR: libtool-cross-2.4.6-r0 do_configure: configure failed
    ERROR: libtool-cross-2.4.6-r0 do_configure: Function failed: do_configure (log file is located at /home/juansta/tools/tisdk/build/arago-tmp-external-linaro-toolchain/work/armv5e-linux-gnueabi/libtool-cross/2.4.6-r0/temp/log.do_configure.24539)
    ERROR: Logfile of failure stored in: /home/juansta/tools/tisdk/build/arago-tmp-external-linaro-toolchain/work/armv5e-linux-gnueabi/libtool-cross/2.4.6-r0/temp/log.do_configure.24539
    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
    | DEBUG: Executing python function autotools_copy_aclocals
    | DEBUG: Considering setscene task: ['texinfo-dummy-native', 'do_populate_sysroot']
    | DEBUG:   considering dependency: ['texinfo-dummy-native', 'do_populate_sysroot']
    | DEBUG:   considering dependency: ['automake-native', 'do_populate_sysroot']
    | DEBUG: Considering setscene task: ['external-linaro-toolchain-cross-arm', 'do_populate_sysroot']
    | DEBUG:   considering dependency: ['external-linaro-toolchain', 'do_populate_sysroot']
    | DEBUG:   considering dependency: ['external-linaro-toolchain-cross-arm', 'do_populate_sysroot']
    | NOTE: Skipping setscene dependency /home/juansta/tools/tisdk/sources/meta-arago/meta-arago-extras/recipes-core/meta/external-linaro-toolchain-cross.bb:do_populate_sysroot for m4 macro copying
    | DEBUG: Considering setscene task: ['linux-libc-headers', 'do_populate_sysroot']
    | DEBUG:   considering dependency: ['external-linaro-toolchain', 'do_populate_sysroot']
    | DEBUG: Considering setscene task: ['pseudo-native', 'do_populate_sysroot']
    | DEBUG:   considering dependency: ['pseudo-native', 'do_populate_sysroot']
    | DEBUG:   considering dependency: ['external-linaro-toolchain', 'do_populate_sysroot']
    | NOTE: Skipping setscene dependency virtual:native:/home/juansta/tools/tisdk/sources/oe-core/meta/recipes-devtools/pseudo/pseudo_1.8.1.bb:do_populate_sysroot for m4 macro copying
    | DEBUG: Considering setscene task: ['m4-native', 'do_populate_sysroot']
    | DEBUG:   considering dependency: ['autoconf-native', 'do_populate_sysroot']
    | DEBUG: Considering setscene task: ['pseudo-native', 'do_populate_sysroot']
    | DEBUG:   considering dependency: ['pseudo-native', 'do_populate_sysroot']
    | DEBUG:   considering dependency: ['linux-libc-headers', 'do_populate_sysroot']
    | NOTE: Skipping setscene dependency virtual:native:/home/juansta/tools/tisdk/sources/oe-core/meta/recipes-devtools/pseudo/pseudo_1.8.1.bb:do_populate_sysroot for m4 macro copying
    | DEBUG: Considering setscene task: ['unifdef-native', 'do_populate_sysroot']
    | DEBUG:   considering dependency: ['unifdef-native', 'do_populate_sysroot']
    | DEBUG:   considering dependency: ['linux-libc-headers', 'do_populate_sysroot']
    | NOTE: Skipping setscene dependency virtual:native:/home/juansta/tools/tisdk/sources/oe-core/meta/recipes-devtools/unifdef/unifdef_2.11.bb:do_populate_sysroot for m4 macro copying
    | DEBUG: Considering setscene task: ['xz-native', 'do_populate_sysroot']
    | DEBUG:   considering dependency: ['xz-native', 'do_populate_sysroot']
    | DEBUG:   considering dependency: ['linux-libc-headers', 'do_populate_sysroot']
    | NOTE: Skipping setscene dependency virtual:native:/home/juansta/tools/tisdk/sources/oe-core/meta/recipes-extended/xz/xz_5.2.2.bb:do_populate_sysroot for m4 macro copying
    | 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_copy_aclocals finished
    | DEBUG: Executing shell function do_configure
    | NOTE: Executing ACLOCAL="aclocal --system-acdir=/home/juansta/tools/tisdk/build/arago-tmp-external-linaro-toolchain/work/armv5e-linux-gnueabi/libtool-cross/2.4.6-r0/aclocal-copy/" autoreconf --verbose --install --force --exclude=libtoolize -I /home/juansta/tools/tisdk/build/arago-tmp-external-linaro-toolchain/work/armv5e-linux-gnueabi/libtool-cross/2.4.6-r0/libtool-2.4.6/m4/ -I /home/juansta/tools/tisdk/build/arago-tmp-external-linaro-toolchain/work/armv5e-linux-gnueabi/libtool-cross/2.4.6-r0/libtool-2.4.6/tests/
    | NOTE: Running ../libtool-2.4.6/configure  --build=x86_64-linux                  --host=arm-linux-gnueabi                --target=arm-linux-gnueabi              --prefix=/usr                   --exec_prefix=/usr              --bindir=/usr/bin               --sbindir=/usr/sbin            --libexecdir=/usr/libexec               --datadir=/home/juansta/tools/tisdk/build/arago-tmp-external-linaro-toolchain/sysroots/omapl138-lcdk/usr/share                  --sysconfdir=/etc               --sharedstatedir=/com                   --localstatedir=/var                   --libdir=/usr/lib               --includedir=/usr/include               --oldincludedir=/usr/include            --infodir=/home/juansta/tools/tisdk/build/arago-tmp-external-linaro-toolchain/sysroots/omapl138-lcdk/usr/share/info             --mandir=/home/juansta/tools/tisdk/build/arago-tmp-external-linaro-toolchain/sysroots/omapl138-lcdk/usr/share/man              --disable-silent-rules                  --disable-dependency-tracking                   --with-libtool-sysroot=/home/juansta/tools/tisdk/build/arago-tmp-external-linaro-toolchain/sysroots/omapl138-lcdk
    | NOTE: The following config.log files may provide further information.
    | NOTE: /home/juansta/tools/tisdk/build/arago-tmp-external-linaro-toolchain/work/armv5e-linux-gnueabi/libtool-cross/2.4.6-r0/build/config.log
    | ERROR: configure failed
    | Unescaped left brace in regex is deprecated, passed through in regex; marked by <-- HERE in m/\${ <-- HERE ([^ \t=:+{}]+)}/ at /home/juansta/tools/tisdk/build/arago-tmp-external-linaro-toolchain/sysroots/x86_64-linux/usr/bin/automake line 3939.
    | Unescaped left brace in regex is deprecated, passed through in regex; marked by <-- HERE in m/\${ <-- HERE ([^ \t=:+{}]+)}/ at /home/juansta/tools/tisdk/build/arago-tmp-external-linaro-toolchain/sysroots/x86_64-linux/usr/bin/automake line 3939.
    | automake (GNU automake) 1.15
    | Copyright (C) 2014 Free Software Foundation, Inc.
    | License GPLv2+: GNU GPL version 2 or later <gnu.org/.../gpl-2.0.html>
    | This is free software: you are free to change and redistribute it.
    | There is NO WARRANTY, to the extent permitted by law.
    | 
    | Written by Tom Tromey <tromey@redhat.com>
    |        and Alexandre Duret-Lutz <adl@gnu.org>.
    | AUTOV is 1
    | autoreconf: Entering directory `.'
    | autoreconf: configure.ac: not using Gettext
    | autoreconf: running: aclocal --system-acdir=/home/juansta/tools/tisdk/build/arago-tmp-external-linaro-toolchain/work/armv5e-linux-gnueabi/libtool-cross/2.4.6-r0/aclocal-copy/ -I /home/juansta/tools/tisdk/build/arago-tmp-external-linaro-toolchain/work/armv5e-linux-gnueabi/libtool-cross/2.4.6-r0/libtool-2.4.6/m4/ -I /home/juansta/tools/tisdk/build/arago-tmp-external-linaro-toolchain/work/armv5e-linux-gnueabi/libtool-cross/2.4.6-r0/libtool-2.4.6/tests/ --force -I m4
    | autoreconf: configure.ac: tracing
    | autoreconf: running: /home/juansta/tools/tisdk/build/arago-tmp-external-linaro-toolchain/sysroots/x86_64-linux/usr/bin/autoconf --include=/home/juansta/tools/tisdk/build/arago-tmp-external-linaro-toolchain/work/armv5e-linux-gnueabi/libtool-cross/2.4.6-r0/libtool-2.4.6/m4/ --include=/home/juansta/tools/tisdk/build/arago-tmp-external-linaro-toolchain/work/armv5e-linux-gnueabi/libtool-cross/2.4.6-r0/libtool-2.4.6/tests/ --force
    | autoreconf: running: /home/juansta/tools/tisdk/build/arago-tmp-external-linaro-toolchain/sysroots/x86_64-linux/usr/bin/autoheader --include=/home/juansta/tools/tisdk/build/arago-tmp-external-linaro-toolchain/work/armv5e-linux-gnueabi/libtool-cross/2.4.6-r0/libtool-2.4.6/m4/ --include=/home/juansta/tools/tisdk/build/arago-tmp-external-linaro-toolchain/work/armv5e-linux-gnueabi/libtool-cross/2.4.6-r0/libtool-2.4.6/tests/ --force
    | autoreconf: running: automake --add-missing --copy --force-missing
    | Unescaped left brace in regex is deprecated, passed through in regex; marked by <-- HERE in m/\${ <-- HERE ([^ \t=:+{}]+)}/ at /home/juansta/tools/tisdk/build/arago-tmp-external-linaro-toolchain/sysroots/x86_64-linux/usr/bin/automake line 3939.
    | autoreconf: running: gnu-configize
    | autoreconf: Leaving directory `.'
    | configure: loading site script /home/juansta/tools/tisdk/sources/meta-openembedded/meta-oe/site/endian-little
    | configure: loading site script /home/juansta/tools/tisdk/sources/oe-core/meta/site/endian-little
    | configure: loading site script /home/juansta/tools/tisdk/sources/oe-core/meta/site/arm-common
    | configure: loading site script /home/juansta/tools/tisdk/sources/oe-core/meta/site/arm-32
    | configure: loading site script /home/juansta/tools/tisdk/sources/oe-core/meta/site/common-linux
    | configure: loading site script /home/juansta/tools/tisdk/sources/oe-core/meta/site/common-glibc
    | configure: loading site script /home/juansta/tools/tisdk/sources/oe-core/meta/site/arm-linux
    | configure: loading site script /home/juansta/tools/tisdk/sources/oe-core/meta/site/common
    | ## ------------------------- ##
    | ## Configuring libtool 2.4.6 ##
    | ## ------------------------- ##
    | 
    | checking for GNU M4 that supports accurate traces... /home/juansta/tools/tisdk/build/arago-tmp-external-linaro-toolchain/sysroots/x86_64-linux/usr/bin/m4
    | checking whether /home/juansta/tools/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-gnueabi-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... marlin
    | configure: autobuild mode... default
    | configure: autobuild timestamp... 20170811T034954Z
    | checking for arm-linux-gnueabi-gcc... arm-linux-gnueabi-gcc  -march=armv5e -marm --sysroot=/home/juansta/tools/tisdk/build/arago-tmp-external-linaro-toolchain/sysroots/omapl138-lcdk
    | checking whether the C compiler works... no
    | configure: error: in `/home/juansta/tools/tisdk/build/arago-tmp-external-linaro-toolchain/work/armv5e-linux-gnueabi/libtool-cross/2.4.6-r0/build':
    | configure: error: C compiler cannot create executables
    | See `config.log' for more details
    | WARNING: /home/juansta/tools/tisdk/build/arago-tmp-external-linaro-toolchain/work/armv5e-linux-gnueabi/libtool-cross/2.4.6-r0/temp/run.do_configure.24539:1 exit 1 from 'exit 1'
    | ERROR: Function failed: do_configure (log file is located at /home/juansta/tools/tisdk/build/arago-tmp-external-linaro-toolchain/work/armv5e-linux-gnueabi/libtool-cross/2.4.6-r0/temp/log.do_configure.24539)
    ERROR: Task (/home/juansta/tools/tisdk/sources/oe-core/meta/recipes-devtools/libtool/libtool-cross_2.4.6.bb:do_configure) failed with exit code '1'
    NOTE: Tasks Summary: Attempted 963 tasks of which 954 didn't need to be rerun and 3 failed.
    
    Summary: 3 tasks failed:
      /home/juansta/tools/tisdk/sources/oe-core/meta/recipes-devtools/opkg-utils/opkg-utils_git.bb:do_compile
      /home/juansta/tools/tisdk/sources/oe-core/meta/recipes-core/zlib/zlib_1.2.8.bb:do_configure
      /home/juansta/tools/tisdk/sources/oe-core/meta/recipes-devtools/libtool/libtool-cross_2.4.6.bb:do_configure
    Summary: There were 3 WARNING messages shown.
    Summary: There were 5 ERROR messages shown, returning a non-zero exit code.

  • Output of arm-linux-gnueabi-gcc --help=target

    Known ARM architectures (for use with the -march= option):
        armv2 armv2a armv3 armv3m armv4 armv4t armv5 armv5e armv5t armv5te armv6 armv6-m armv6j armv6k armv6kz armv6s-m armv6t2 armv6z armv6zk armv7 armv7-a armv7-m armv7-r armv7e-m armv7ve armv8-a armv8-a+crc armv8-m.base armv8-m.main armv8-m.main+dsp armv8.1-a
        armv8.1-a+crc armv8.2-a armv8.2-a+fp16 iwmmxt iwmmxt2 native

  • Can you also check the following guide:
    arago-project.org/.../Setting_Up_Build_Environment

    Best Regards,
    Yordan
  • It looks like ARM9 requires a different toolchain?

    arago-project.org/.../Setting_Up_Build_Environment

    • For users who are interested in ARM 9 machines (ie AM18x) then the Linaro toolchain can not be used. Instead the Arago Toolchain must be used.

    I guess this is why the Processor SDK for the OMAP-L138 is packaged with linux-devkit/sysroots/x86_64-arago-linux...

    I've tried to use the arago toolchain instead - as per arago-project wiki... And everything seems to start building... Im not seeing PATH or unknown machine type errors as above... However, Im now seeing errors during the build process (when trying to obtain the kernel sources I think)... Is git://git.ti.com up ?

    Im not sure if that is our internet connection here at work, which can be a little flaky at times... Or if it is something else... Im going to mark this thread as solved, and start a new one if I run into other unrelated build issues...