1 2 Previous Next 19 Replies Latest reply on Dec 20, 2016 11:40 AM by Intel Corporation

    Yocto build error with the task: ncurses/ncurses_5.9.bb, do_install) failed with exit code '1'

    dapenglan

      Hi all,

       

      I am trying to rebuild the Edison image to support 3g, GPRS module.

       

      I am using Ubunti 14.04 LTS and building the image iot-devkit-yp-poky-edison-20160606.

       

      I am following the instructions here: http://bovs.org/post/168/Building-Yocto-linux-for-Intel-Edison-with-3G-USB-modems-support

      Building Yocto linux for Intel Edison with 3G USB modems support - BOVS

       

      And also:

      Need 3G connection on Arduino board with Huawei E171

       

      When in the step:

      bitbake edison-image u-boot

       

      I got the flowing error:

       

      | make: Leaving directory '/home/kic/Documents/intel/new1/iot-devkit-yp-poky-edison-20160606/build_edison/tmp/work/i686-linux/ncurses-native/5.9-r15.1/build/narrowc'

      | ERROR: oe_runmake failed

      | WARNING: exit code 1 from a shell command.

      | ERROR: Function failed: do_install (log file is located at /home/kic/Documents/intel/new1/iot-devkit-yp-poky-edison-20160606/build_edison/tmp/work/i686-linux/ncurses-native/5.9-r15.1/temp/log.do_install.32176)

      ERROR: Task 1800 (virtual:native:/home/kic/Documents/intel/new1/iot-devkit-yp-poky-edison-20160606/build_edison/../poky/meta/recipes-core/ncurses/ncurses_5.9.bb, do_install) failed with exit code '1'

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

      Waiting for 0 running tasks to finish:

       

      I have searched for many days and cannot find the answer.

       

      Can anyone provide some info for this? Thanks a lot!

        • 1. Re: Yocto build error with the task: ncurses/ncurses_5.9.bb, do_install) failed with exit code '1'
          Intel Corporation
          This message was posted on behalf of Intel Corporation

          Hello dapenglan,

          Thanks for reaching out!

          This might be due to several factors, the most common one (in my experience) is that the internet connection went down for a moment and made the building crash. If that was the case, you could simply run bitbake again and this time it should work.

          However, there are other reasons why this would happen. I would like you to check the following links:

          http://cgit.openembedded.org/cgit.cgi/openembedded-core/tree/meta/recipes-core/ncurses/ncurses_5.9.bb?h=dizzy
          http://cgit.openembedded.org/cgit.cgi/openembedded-core/tree/meta/recipes-core/ncurses/ncurses_5.9.bb?h=jethro

          Then go to /home/kic/Documents/intel/new1/iot-devkit-yp-poky-edison-20160606/build_edison/../poky/meta/recipes-core/ncurses/ncurses_5.9.bbv verify if your ncurses recipe looks like one of those and let me know.

          Also, the error log found in /home/kic/Documents/intel/new1/iot-devkit-yp-poky-edison-20160606/build_edison/tmp/work/i686-linux/ncurses-native/5.9-r15.1/temp/log.do_install.32176 might also have some important information that we could use. So, if possible, could you please share the content of this file with us?

          We'll be waiting for your response.
          -Peter.

          • 2. Re: Yocto build error with the task: ncurses/ncurses_5.9.bb, do_install) failed with exit code '1'
            dapenglan

            Hi, thanks very much for efficient reply.

            1. I am the WiFi connection issue before so that I am using Ethernet right now. I can exclusive the issue of connection problem now.

             

            2. Here is the file content in my ncurse_5.9.bb:

             

            require ncurses.inc

             

            PR = "${INC_PR}.1"

             

            SRC_URI += "file://tic-hang.patch \

                        file://config.cache \

            "

             

            SRC_URI[md5sum] = "8cb9c412e5f2d96bc6f459aa8c6282a1"

            SRC_URI[sha256sum] = "9046298fb440324c9d4135ecea7879ffed8546dd1b58e59430ea07a4633f563b"

             

            It is the same as: http://cgit.openembedded.org/cgit.cgi/openembedded-core/tree/meta/recipes-core/ncurses/ncurses_5.9.bb?h=dizzy

             

            3. here is my log.do_install.32176 file:

            #############################################################################################

            #!/bin/sh

             

            # Emit a useful diagnostic if something fails:

            bb_exit_handler() {

                ret=$?

                case $ret in

                0)  ;;

                *)  case $BASH_VERSION in

                    "")   echo "WARNING: exit code $ret from a shell command.";;

                    *)    echo "WARNING: ${BASH_SOURCE[0]}:${BASH_LINENO[0]} exit $ret from

              "$BASH_COMMAND"";;

                    esac

                    exit $ret

                esac

            }

            trap 'bb_exit_handler' 0

            set -e

            export prefix="/home/kic/Documents/intel/new1/iot-devkit-yp-poky-edison-20160606/build_edison/tmp/sysroots/i686-linux/usr"

            export STRIP="strip"

            export localstatedir="/home/kic/Documents/intel/new1/iot-devkit-yp-poky-edison-20160606/build_edison/tmp/sysroots/i686-linux/var"

            export USER="kic"

            export libexecdir="/home/kic/Documents/intel/new1/iot-devkit-yp-poky-edison-20160606/build_edison/tmp/sysroots/i686-linux/usr/lib/ncurses"

            export datadir="/home/kic/Documents/intel/new1/iot-devkit-yp-poky-edison-20160606/build_edison/tmp/sysroots/i686-linux/usr/share"

            export PKG_CONFIG_SYSROOT_DIR=""

            export BUILD_CXX="g++ "

            export LD="ld  "

            export LDFLAGS="-L/home/kic/Documents/intel/new1/iot-devkit-yp-poky-edison-20160606/build_edison/tmp/sysroots/i686-linux/usr/lib -L/home/kic/Documents/intel/new1/iot-devkit-yp-poky-edison-20160606/build_edison/tmp/sysroots/i686-linux/lib -Wl,-rpath-link,/home/kic/Documents/intel/new1/iot-devkit-yp-poky-edison-20160606/build_edison/tmp/sysroots/i686-linux/usr/lib -Wl,-rpath-link,/home/kic/Documents/intel/new1/iot-devkit-yp-poky-edison-20160606/build_edison/tmp/sysroots/i686-linux/lib -Wl,-rpath,/home/kic/Documents/intel/new1/iot-devkit-yp-poky-edison-20160606/build_edison/tmp/sysroots/i686-linux/usr/lib -Wl,-rpath,/home/kic/Documents/intel/new1/iot-devkit-yp-poky-edison-20160606/build_edison/tmp/sysroots/i686-linux/lib -Wl,-O1"

            export bindir="/home/kic/Documents/intel/new1/iot-devkit-yp-poky-edison-20160606/build_edison/tmp/sysroots/i686-linux/usr/bin"

            export CCLD="gcc "

            export TARGET_CXXFLAGS="-isystem/home/kic/Documents/intel/new1/iot-devkit-yp-poky-edison-20160606/build_edison/tmp/sysroots/i686-linux/usr/include -D_GNU_SOURCE -P -O2 -pipe"

            export includedir="/home/kic/Documents/intel/new1/iot-devkit-yp-poky-edison-20160606/build_edison/tmp/sysroots/i686-linux/usr/include"

            export BUILD_CC="gcc "

            export BUILD_LDFLAGS="-L/home/kic/Documents/intel/new1/iot-devkit-yp-poky-edison-20160606/build_edison/tmp/sysroots/i686-linux/usr/lib -L/home/kic/Documents/intel/new1/iot-devkit-yp-poky-edison-20160606/build_edison/tmp/sysroots/i686-linux/lib -Wl,-rpath-link,/home/kic/Documents/intel/new1/iot-devkit-yp-poky-edison-20160606/build_edison/tmp/sysroots/i686-linux/usr/lib -Wl,-rpath-link,/home/kic/Documents/intel/new1/iot-devkit-yp-poky-edison-20160606/build_edison/tmp/sysroots/i686-linux/lib -Wl,-rpath,/home/kic/Documents/intel/new1/iot-devkit-yp-poky-edison-20160606/build_edison/tmp/sysroots/i686-linux/usr/lib -Wl,-rpath,/home/kic/Documents/intel/new1/iot-devkit-yp-poky-edison-20160606/build_edison/tmp/sysroots/i686-linux/lib -Wl,-O1"

            export CPP_FOR_BUILD="cpp "

            unset TARGET_ARCH

            export STRINGS="strings"

            export BUILD_LD="ld "

            export oldincludedir="/home/kic/Documents/intel/new1/iot-devkit-yp-poky-edison-20160606/build_edison/tmp/sysroots/i686-linux/usr/include"

            export BUILD_CCLD="gcc "

            export CFLAGS_FOR_BUILD="-isystem/home/kic/Documents/intel/new1/iot-devkit-yp-poky-edison-20160606/build_edison/tmp/sysroots/i686-linux/usr/include -D_GNU_SOURCE -P -O2 -pipe"

            export BUILD_CFLAGS="-isystem/home/kic/Documents/intel/new1/iot-devkit-yp-poky-edison-20160606/build_edison/tmp/sysroots/i686-linux/usr/include -D_GNU_SOURCE -P -O2 -pipe"

            export CXXFLAGS_FOR_BUILD="-isystem/home/kic/Documents/intel/new1/iot-devkit-yp-poky-edison-20160606/build_edison/tmp/sysroots/i686-linux/usr/include -D_GNU_SOURCE -P -O2 -pipe"

            export docdir="/home/kic/Documents/intel/new1/iot-devkit-yp-poky-edison-20160606/build_edison/tmp/sysroots/i686-linux/usr/share/doc"

            export infodir="/home/kic/Documents/intel/new1/iot-devkit-yp-poky-edison-20160606/build_edison/tmp/sysroots/i686-linux/usr/share/info"

            export base_prefix="/home/kic/Documents/intel/new1/iot-devkit-yp-poky-edison-20160606/build_edison/tmp/sysroots/i686-linux"

            export CC="gcc "

            export TERM="xterm"

            export RANLIB="ranlib"

            export CPPFLAGS="-isystem/home/kic/Documents/intel/new1/iot-devkit-yp-poky-edison-20160606/build_edison/tmp/sysroots/i686-linux/usr/include -D_GNU_SOURCE -P"

            export BUILD_CPP="cpp "

            export base_sbindir="/home/kic/Documents/intel/new1/iot-devkit-yp-poky-edison-20160606/build_edison/tmp/sysroots/i686-linux/sbin"

            export CXX="g++ "

            export FC="gfortran "

            export BUILD_RANLIB="ranlib"

            export PKG_CONFIG_PATH="/home/kic/Documents/intel/new1/iot-devkit-yp-poky-edison-20160606/build_edison/tmp/sysroots/i686-linux/usr/lib/pkgconfig:/home/kic/Documents/intel/new1/iot-devkit-yp-poky-edison-20160606/build_edison/tmp/sysroots/i686-linux/usr/share/pkgconfig"

            export BUILD_NM="nm"

            export LD_FOR_BUILD="ld "

            export AS="as "

            export AR="ar"

            export BUILD_CPPFLAGS="-isystem/home/kic/Documents/intel/new1/iot-devkit-yp-poky-edison-20160606/build_edison/tmp/sysroots/i686-linux/usr/include -D_GNU_SOURCE -P"

            export CPP="gcc  -E"

            export mandir="/home/kic/Documents/intel/new1/iot-devkit-yp-poky-edison-20160606/build_edison/tmp/sysroots/i686-linux/usr/share/man"

            export CONFIG_SITE="/home/kic/Documents/intel/new1/iot-devkit-yp-poky-edison-20160606/poky/meta/site/native"

            export BUILD_CXXFLAGS="-isystem/home/kic/Documents/intel/new1/iot-devkit-yp-poky-edison-20160606/build_edison/tmp/sysroots/i686-linux/usr/include -D_GNU_SOURCE -P -O2 -pipe"

            export OBJCOPY="objcopy"

            export CCACHE_DISABLE="1"

            export servicedir="/home/kic/Documents/intel/new1/iot-devkit-yp-poky-edison-20160606/build_edison/tmp/sysroots/i686-linux/srv"

            export HOME="/home/kic"

            export TARGET_CPPFLAGS="-isystem/home/kic/Documents/intel/new1/iot-devkit-yp-poky-edison-20160606/build_edison/tmp/sysroots/i686-linux/usr/include -D_GNU_SOURCE -P"

            export PKG_CONFIG_DIR="/home/kic/Documents/intel/new1/iot-devkit-yp-poky-edison-20160606/build_edison/tmp/sysroots/i686-linux/usr/lib/pkgconfig"

            export sysconfdir="/home/kic/Documents/intel/new1/iot-devkit-yp-poky-edison-20160606/build_edison/tmp/sysroots/i686-linux/etc"

            export LC_ALL="C"

            export BUILD_FC="gfortran "

            export base_libdir="/home/kic/Documents/intel/new1/iot-devkit-yp-poky-edison-20160606/build_edison/tmp/sysroots/i686-linux/usr/lib"

            export MAKE="make"

            export LOGNAME="kic"

            export PATH="/home/kic/Documents/intel/new1/iot-devkit-yp-poky-edison-20160606/poky/scripts/native-intercept:/home/kic/Documents/intel/new1/iot-devkit-yp-poky-edison-20160606/poky/scripts:/home/kic/Documents/intel/new1/iot-devkit-yp-poky-edison-20160606/build_edison/tmp/sysroots/i686-linux/usr/bin/i686-linux:/home/kic/Documents/intel/new1/iot-devkit-yp-poky-edison-20160606/build_edison/tmp/sysroots/i686-linux/usr/bin:/home/kic/Documents/intel/new1/iot-devkit-yp-poky-edison-20160606/build_edison/tmp/sysroots/i686-linux/usr/sbin:/home/kic/Documents/intel/new1/iot-devkit-yp-poky-edison-20160606/build_edison/tmp/sysroots/i686-linux/usr/bin:/home/kic/Documents/intel/new1/iot-devkit-yp-poky-edison-20160606/build_edison/tmp/sysroots/i686-linux/sbin:/home/kic/Documents/intel/new1/iot-devkit-yp-poky-edison-20160606/build_edison/tmp/sysroots/i686-linux/bin:/home/kic/Documents/intel/new1/iot-devkit-yp-poky-edison-20160606/poky/scripts:/home/kic/Documents/intel/new1/iot-devkit-yp-poky-edison-20160606/poky/bitbake/bin:/home/kic/Documents/intel/yocto/iot-devkit-yp-poky-edison-20160315/poky/scripts:/home/kic/Documents/intel/yocto/iot-devkit-yp-poky-edison-20160315/poky/bitbake/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games"

            export TARGET_CFLAGS="-isystem/home/kic/Documents/intel/new1/iot-devkit-yp-poky-edison-20160606/build_edison/tmp/sysroots/i686-linux/usr/include -D_GNU_SOURCE -P -O2 -pipe"

            export base_bindir="/home/kic/Documents/intel/new1/iot-devkit-yp-poky-edison-20160606/build_edison/tmp/sysroots/i686-linux/bin"

            export PKG_CONFIG_LIBDIR="/home/kic/Documents/intel/new1/iot-devkit-yp-poky-edison-20160606/build_edison/tmp/sysroots/i686-linux/usr/lib/pkgconfig"

            unset MACHINE

            export sbindir="/home/kic/Documents/intel/new1/iot-devkit-yp-poky-edison-20160606/build_edison/tmp/sysroots/i686-linux/usr/sbin"

            export CFLAGS="-isystem/home/kic/Documents/intel/new1/iot-devkit-yp-poky-edison-20160606/build_edison/tmp/sysroots/i686-linux/usr/include -D_GNU_SOURCE -P -O2 -pipe"

            export BUILD_AR="ar"

            export BUILD_AS="as "

            export sharedstatedir="/home/kic/Documents/intel/new1/iot-devkit-yp-poky-edison-20160606/build_edison/tmp/sysroots/i686-linux/com"

            export OBJDUMP="objdump"

            unset DISTRO

            export exec_prefix="/home/kic/Documents/intel/new1/iot-devkit-yp-poky-edison-20160606/build_edison/tmp/sysroots/i686-linux/usr"

            export TARGET_LDFLAGS="-L/home/kic/Documents/intel/new1/iot-devkit-yp-poky-edison-20160606/build_edison/tmp/sysroots/i686-linux/usr/lib -L/home/kic/Documents/intel/new1/iot-devkit-yp-poky-edison-20160606/build_edison/tmp/sysroots/i686-linux/lib -Wl,-rpath-link,/home/kic/Documents/intel/new1/iot-devkit-yp-poky-edison-20160606/build_edison/tmp/sysroots/i686-linux/usr/lib -Wl,-rpath-link,/home/kic/Documents/intel/new1/iot-devkit-yp-poky-edison-20160606/build_edison/tmp/sysroots/i686-linux/lib -Wl,-rpath,/home/kic/Documents/intel/new1/iot-devkit-yp-poky-edison-20160606/build_edison/tmp/sysroots/i686-linux/usr/lib -Wl,-rpath,/home/kic/Documents/intel/new1/iot-devkit-yp-poky-edison-20160606/build_edison/tmp/sysroots/i686-linux/lib -Wl,-O1"

            export PKG_CONFIG_DISABLE_UNINSTALLED="yes"

            export libdir="/home/kic/Documents/intel/new1/iot-devkit-yp-poky-edison-20160606/build_edison/tmp/sysroots/i686-linux/usr/lib"

            export nonarch_base_libdir="/home/kic/Documents/intel/new1/iot-devkit-yp-poky-edison-20160606/build_edison/tmp/sysroots/i686-linux/lib"

            export PSEUDO_DISABLED="1"

            export CPPFLAGS_FOR_BUILD="-isystem/home/kic/Documents/intel/new1/iot-devkit-yp-poky-edison-20160606/build_edison/tmp/sysroots/i686-linux/usr/include -D_GNU_SOURCE -P"

            export PSEUDO_UNLOAD="1"

            export CC_FOR_BUILD="gcc "

            export LDFLAGS_FOR_BUILD="-L/home/kic/Documents/intel/new1/iot-devkit-yp-poky-edison-20160606/build_edison/tmp/sysroots/i686-linux/usr/lib -L/home/kic/Documents/intel/new1/iot-devkit-yp-poky-edison-20160606/build_edison/tmp/sysroots/i686-linux/lib -Wl,-rpath-link,/home/kic/Documents/intel/new1/iot-devkit-yp-poky-edison-20160606/build_edison/tmp/sysroots/i686-linux/usr/lib -Wl,-rpath-link,/home/kic/Documents/intel/new1/iot-devkit-yp-poky-edison-20160606/build_edison/tmp/sysroots/i686-linux/lib -Wl,-rpath,/home/kic/Documents/intel/new1/iot-devkit-yp-poky-edison-20160606/build_edison/tmp/sysroots/i686-linux/usr/lib -Wl,-rpath,/home/kic/Documents/intel/new1/iot-devkit-yp-poky-edison-20160606/build_edison/tmp/sysroots/i686-linux/lib -Wl,-O1"

            export SHELL="/bin/bash"

            export systemd_unitdir="/lib/systemd"

            export CXX_FOR_BUILD="g++ "

            export CCACHE_DIR="/home/kic"

            unset lt_cv_sys_lib_dlsearch_path_spec

            export PATCH_GET="0"

            export CXXFLAGS="-isystem/home/kic/Documents/intel/new1/iot-devkit-yp-poky-edison-20160606/build_edison/tmp/sysroots/i686-linux/usr/include -D_GNU_SOURCE -P -O2 -pipe"

            export NM="nm"

            export BUILD_STRIP="strip"

            do_install() {

                    # Order of installation is important; widec installs a 'curses.h'

                    # header with more definitions and must be installed last hence.

                    # Compatibility of these headers will be checked in 'do_test()'.

                    oe_runmake -C narrowc   DESTDIR='/home/kic/Documents/intel/new1/iot-devkit-yp-poky-edison-20160606/build_edison/tmp/work/i686-linux/ncurses-native/5.9-r15.1/image'   PKG_CONFIG_LIBDIR='/home/kic/Documents/intel/new1/iot-devkit-yp-poky-edison-20160606/build_edison/tmp/sysroots/i686-linux/usr/lib/pkgconfig'    install.libs install.includes install.man  \

                            install.progs

             

                    # The install.data should run after install.libs, otherwise

                    # there would be a race issue in a very critical conditon, since

                    # tic will be run by install.data, and tic needs libtinfo.so

                    # which would be regenerated by install.libs.

                    oe_runmake -C narrowc   DESTDIR='/home/kic/Documents/intel/new1/iot-devkit-yp-poky-edison-20160606/build_edison/tmp/work/i686-linux/ncurses-native/5.9-r15.1/image'   PKG_CONFIG_LIBDIR='/home/kic/Documents/intel/new1/iot-devkit-yp-poky-edison-20160606/build_edison/tmp/sysroots/i686-linux/usr/lib/pkgconfig'  \

                            install.data

             

             

                    ! true || \

                        oe_runmake -C widec   DESTDIR='/home/kic/Documents/intel/new1/iot-devkit-yp-poky-edison-20160606/build_edison/tmp/work/i686-linux/ncurses-native/5.9-r15.1/image'   PKG_CONFIG_LIBDIR='/home/kic/Documents/intel/new1/iot-devkit-yp-poky-edison-20160606/build_edison/tmp/sysroots/i686-linux/usr/lib/pkgconfig'    install.libs install.includes install.man

             

                    cd narrowc

             

                    # include some basic terminfo files

                    # stolen from gentoo and modified a bit

                    for x in ansi console dumb linux rxvt screen sun vt52 vt100 vt102 vt200 vt220 xterm-color xterm-xfree86 xterm-256color

                    do

                            local termfile="$(find "/home/kic/Documents/intel/new1/iot-devkit-yp-poky-edison-20160606/build_edison/tmp/work/i686-linux/ncurses-native/5.9-r15.1/image/home/kic/Documents/intel/new1/iot-devkit-yp-poky-edison-20160606/build_edison/tmp/sysroots/i686-linux/usr/share/terminfo/" -name "${x}" 2>/dev/null)"

                            local basedir="$(basename $(dirname "${termfile}"))"

             

                            if [ -n "${termfile}" ]

                            then

                                    install -d /home/kic/Documents/intel/new1/iot-devkit-yp-poky-edison-20160606/build_edison/tmp/work/i686-linux/ncurses-native/5.9-r15.1/image/home/kic/Documents/intel/new1/iot-devkit-yp-poky-edison-20160606/build_edison/tmp/sysroots/i686-linux/etc/terminfo/${basedir}

                                    mv ${termfile} /home/kic/Documents/intel/new1/iot-devkit-yp-poky-edison-20160606/build_edison/tmp/work/i686-linux/ncurses-native/5.9-r15.1/image/home/kic/Documents/intel/new1/iot-devkit-yp-poky-edison-20160606/build_edison/tmp/sysroots/i686-linux/etc/terminfo/${basedir}/

                                    ln -s /etc/terminfo/${basedir}/${x} \

                                            /home/kic/Documents/intel/new1/iot-devkit-yp-poky-edison-20160606/build_edison/tmp/work/i686-linux/ncurses-native/5.9-r15.1/image/home/kic/Documents/intel/new1/iot-devkit-yp-poky-edison-20160606/build_edison/tmp/sysroots/i686-linux/usr/share/terminfo/${basedir}/${x}

                            fi

                    done

                    # i think we can use xterm-color as default xterm

                    if [ -e /home/kic/Documents/intel/new1/iot-devkit-yp-poky-edison-20160606/build_edison/tmp/work/i686-linux/ncurses-native/5.9-r15.1/image/home/kic/Documents/intel/new1/iot-devkit-yp-poky-edison-20160606/build_edison/tmp/sysroots/i686-linux/etc/terminfo/x/xterm-color ]

                    then

                            ln -sf xterm-color /home/kic/Documents/intel/new1/iot-devkit-yp-poky-edison-20160606/build_edison/tmp/work/i686-linux/ncurses-native/5.9-r15.1/image/home/kic/Documents/intel/new1/iot-devkit-yp-poky-edison-20160606/build_edison/tmp/sysroots/i686-linux/etc/terminfo/x/xterm

                    fi

             

                    rm -f /home/kic/Documents/intel/new1/iot-devkit-yp-poky-edison-20160606/build_edison/tmp/work/i686-linux/ncurses-native/5.9-r15.1/image/home/kic/Documents/intel/new1/iot-devkit-yp-poky-edison-20160606/build_edison/tmp/sysroots/i686-linux/usr/lib/terminfo

             

                    # create linker scripts for libcurses.so and libncurses to

                    # link against -ltinfo when needed. Some builds might break

                    # else when '-Wl,--no-copy-dt-needed-entries' has been set in

                    # linker flags.

                    for i in libncurses libncursesw; do

                            f=/home/kic/Documents/intel/new1/iot-devkit-yp-poky-edison-20160606/build_edison/tmp/work/i686-linux/ncurses-native/5.9-r15.1/image/home/kic/Documents/intel/new1/iot-devkit-yp-poky-edison-20160606/build_edison/tmp/sysroots/i686-linux/usr/lib/$i.so

                            test -h $f || continue

                            rm -f $f

                            echo '/* GNU ld script */'  >$f

                            echo "INPUT($i.so.5 AS_NEEDED(-ltinfo))" >>$f

                    done

             

                    # Make sure that libcurses is linked so that it gets -ltinfo

                    # also, this should be addressed upstream really.

                    ln -sf libncurses.so /home/kic/Documents/intel/new1/iot-devkit-yp-poky-edison-20160606/build_edison/tmp/work/i686-linux/ncurses-native/5.9-r15.1/image/home/kic/Documents/intel/new1/iot-devkit-yp-poky-edison-20160606/build_edison/tmp/sysroots/i686-linux/usr/lib/libcurses.so

             

                    # create libtermcap.so linker script for backward compatibility

                    f=/home/kic/Documents/intel/new1/iot-devkit-yp-poky-edison-20160606/build_edison/tmp/work/i686-linux/ncurses-native/5.9-r15.1/image/home/kic/Documents/intel/new1/iot-devkit-yp-poky-edison-20160606/build_edison/tmp/sysroots/i686-linux/usr/lib/libtermcap.so

                    echo '/* GNU ld script */' >$f

                    echo 'INPUT(AS_NEEDED(-ltinfo))' >>$f

             

                    if [ ! -d "/home/kic/Documents/intel/new1/iot-devkit-yp-poky-edison-20160606/build_edison/tmp/work/i686-linux/ncurses-native/5.9-r15.1/image/home/kic/Documents/intel/new1/iot-devkit-yp-poky-edison-20160606/build_edison/tmp/sysroots/i686-linux/usr/lib" ]; then

                        # Setting base_libdir to libdir as is done in the -native

                        # case will skip this code

                        mkdir /home/kic/Documents/intel/new1/iot-devkit-yp-poky-edison-20160606/build_edison/tmp/work/i686-linux/ncurses-native/5.9-r15.1/image/home/kic/Documents/intel/new1/iot-devkit-yp-poky-edison-20160606/build_edison/tmp/sysroots/i686-linux/usr/lib

                        mv /home/kic/Documents/intel/new1/iot-devkit-yp-poky-edison-20160606/build_edison/tmp/work/i686-linux/ncurses-native/5.9-r15.1/image/home/kic/Documents/intel/new1/iot-devkit-yp-poky-edison-20160606/build_edison/tmp/sysroots/i686-linux/usr/lib/libncurses.so.* /home/kic/Documents/intel/new1/iot-devkit-yp-poky-edison-20160606/build_edison/tmp/work/i686-linux/ncurses-native/5.9-r15.1/image/home/kic/Documents/intel/new1/iot-devkit-yp-poky-edison-20160606/build_edison/tmp/sysroots/i686-linux/usr/lib

                        ! true || \

                            mv /home/kic/Documents/intel/new1/iot-devkit-yp-poky-edison-20160606/build_edison/tmp/work/i686-linux/ncurses-native/5.9-r15.1/image/home/kic/Documents/intel/new1/iot-devkit-yp-poky-edison-20160606/build_edison/tmp/sysroots/i686-linux/usr/lib/libncursesw.so.* /home/kic/Documents/intel/new1/iot-devkit-yp-poky-edison-20160606/build_edison/tmp/work/i686-linux/ncurses-native/5.9-r15.1/image/home/kic/Documents/intel/new1/iot-devkit-yp-poky-edison-20160606/build_edison/tmp/sysroots/i686-linux/usr/lib

             

                        mv /home/kic/Documents/intel/new1/iot-devkit-yp-poky-edison-20160606/build_edison/tmp/work/i686-linux/ncurses-native/5.9-r15.1/image/home/kic/Documents/intel/new1/iot-devkit-yp-poky-edison-20160606/build_edison/tmp/sysroots/i686-linux/usr/lib/libtinfo.so.* /home/kic/Documents/intel/new1/iot-devkit-yp-poky-edison-20160606/build_edison/tmp/work/i686-linux/ncurses-native/5.9-r15.1/image/home/kic/Documents/intel/new1/iot-devkit-yp-poky-edison-20160606/build_edison/tmp/sysroots/i686-linux/usr/lib

                        rm /home/kic/Documents/intel/new1/iot-devkit-yp-poky-edison-20160606/build_edison/tmp/work/i686-linux/ncurses-native/5.9-r15.1/image/home/kic/Documents/intel/new1/iot-devkit-yp-poky-edison-20160606/build_edison/tmp/sysroots/i686-linux/usr/lib/libtinfo.so

             

                        # Use lnr to ensure this is a relative link despite absolute paths

                        # (as we can't know the relationship between base_libdir and libdir).

                        # At some point we can rely on coreutils 8.16 which has ln -r.

                        lnr /home/kic/Documents/intel/new1/iot-devkit-yp-poky-edison-20160606/build_edison/tmp/work/i686-linux/ncurses-native/5.9-r15.1/image/home/kic/Documents/intel/new1/iot-devkit-yp-poky-edison-20160606/build_edison/tmp/sysroots/i686-linux/usr/lib/libtinfo.so.5 /home/kic/Documents/intel/new1/iot-devkit-yp-poky-edison-20160606/build_edison/tmp/work/i686-linux/ncurses-native/5.9-r15.1/image/home/kic/Documents/intel/new1/iot-devkit-yp-poky-edison-20160606/build_edison/tmp/sysroots/i686-linux/usr/lib/libtinfo.so

                    fi

             

                    oe_multilib_header curses.h

                for x in /home/kic/Documents/intel/new1/iot-devkit-yp-poky-edison-20160606/build_edison/tmp/sysroots/i686-linux/usr/bin/ncurses-config; do

                    echo "#!/bin/sh" > /home/kic/Documents/intel/new1/iot-devkit-yp-poky-edison-20160606/build_edison/tmp/work/i686-linux/ncurses-native/5.9-r15.1/image$x

                    echo "exit 1" >> /home/kic/Documents/intel/new1/iot-devkit-yp-poky-edison-20160606/build_edison/tmp/work/i686-linux/ncurses-native/5.9-r15.1/image$x

                done

             

            }

             

            oe_runmake() {

                oe_runmake_call "$@" || die "oe_runmake failed"

             

            }

             

            oe_multilib_header() {

                return

             

            }

             

            die() {

                bbfatal "$*"

             

            }

             

            oe_runmake_call() {

                bbnote make -j 4  "$@"

                make -j 4  "$@"

             

            }

             

            bbfatal() {

                echo "ERROR: $*"

                exit 1

             

            }

             

            bbnote() {

                echo "NOTE: $*"

             

            }

             

            cd '/home/kic/Documents/intel/new1/iot-devkit-yp-poky-edison-20160606/build_edison/tmp/work/i686-linux/ncurses-native/5.9-r15.1/build'

            do_install

             

            # cleanup

            ret=$?

            trap '' 0

            exit $?

            ############################################################################################

             

            Thanks a lot.

            • 3. Re: Yocto build error with the task: ncurses/ncurses_5.9.bb, do_install) failed with exit code '1'
              Intel Corporation
              This message was posted on behalf of Intel Corporation

              Thank you for sharing this information. I would like to see the result of using the other recipe. Could you please try using the recipe found in http://cgit.openembedded.org/cgit.cgi/openembedded-core/tree/meta/recipes-core/ncurses/ncurses_5.9.bb?h=jethro

              Let us know how it goes.
              -Peter.

              • 4. Re: Yocto build error with the task: ncurses/ncurses_5.9.bb, do_install) failed with exit code '1'
                dapenglan

                Hi,

                 

                I changed the recipe and still have the same issue as follows, can you tell me what is the reason?

                 

                 

                 

                installing /home/kic/Documents/intel/new1/iot-devkit-yp-poky-edison-20160606/build_edison/tmp/work/i686-linux/ncurses-native/5.9-r15.1/image/home/kic/Documents/intel/new1/iot-devkit-yp-poky-edison-20160606/build_edison/tmp/sysroots/i686-linux/usr/share/man/man3/wresize.3ncurses

                | make[1]: Leaving directory '/home/kic/Documents/intel/new1/iot-devkit-yp-poky-edison-20160606/build_edison/tmp/work/i686-linux/ncurses-native/5.9-r15.1/build/narrowc/man'

                | make: Leaving directory '/home/kic/Documents/intel/new1/iot-devkit-yp-poky-edison-20160606/build_edison/tmp/work/i686-linux/ncurses-native/5.9-r15.1/build/narrowc'

                | ERROR: oe_runmake failed

                | WARNING: exit code 1 from a shell command.

                | ERROR: Function failed: do_install (log file is located at /home/kic/Documents/intel/new1/iot-devkit-yp-poky-edison-20160606/build_edison/tmp/work/i686-linux/ncurses-native/5.9-r15.1/temp/log.do_install.20640)

                ERROR: Task 1800 (virtual:native:/home/kic/Documents/intel/new1/iot-devkit-yp-poky-edison-20160606/build_edison/../poky/meta/recipes-core/ncurses/ncurses_5.9.bb, do_install) failed with exit code '1'

                 

                 

                Thanks.

                • 5. Re: Yocto build error with the task: ncurses/ncurses_5.9.bb, do_install) failed with exit code '1'
                  Intel Corporation
                  This message was posted on behalf of Intel Corporation

                  I have tried to replicate the issue you described on my end but I'm not able to see this issue. Let me see if I can find out what might be happening. If I find something useful I'll make sure to post it here.
                   
                  -Peter.

                  • 6. Re: Yocto build error with the task: ncurses/ncurses_5.9.bb, do_install) failed with exit code '1'
                    dapenglan

                    Thanks a lot!

                     

                    Can you tell me which version of linux and intel image you are using?

                    Maybe there is some wrong with my Linux version.

                     

                    Best,

                    Dapeng

                    • 7. Re: Yocto build error with the task: ncurses/ncurses_5.9.bb, do_install) failed with exit code '1'
                      Intel Corporation
                      This message was posted on behalf of Intel Corporation

                      Hi Dapeng,
                       
                      I ran it on an Ubuntu 14.04 PC using the latest image, which should be iot-devkit-yp-poky-edison-20160606. So, I believe we are on the same conditions.
                       
                      Could you please let us know if you have done any modifications to the image already? The guide you posted on your first reply (http://bovs.org/post/168/Building-Yocto-linux-for-Intel-Edison-with-3G-USB-modems-support) throws an error, so I'm not able to check it.
                       
                      Could you please explain us the steps you have taken so far?
                       
                      We'll be waiting for your reply.
                      -Peter.

                      • 8. Re: Yocto build error with the task: ncurses/ncurses_5.9.bb, do_install) failed with exit code '1'
                        dapenglan

                        Hi.

                        (http://bovs.org/post/168/Building-Yocto-linux-for-Intel-Edison-with-3G-USB-modems-support)

                        This link now works.

                         

                        Now I changed to another computer Macbook with parallel virtual machine also using Ubuntu 14.04.

                        It seems the problem above did not appear. However, I have another problem:

                         

                        | WARNING: exit code 1 from a shell command.

                        | ERROR: Function failed: do_compile (log file is located at /home/parallels/Documents/intel/iot-devkit-yp-poky-edison-20160606/build_edison/tmp/work/core2-32-poky-linux/iotivity/1.0.0-r0/temp/log.do_compile.26354)

                        ERROR: Task 1446 (/home/parallels/Documents/intel/iot-devkit-yp-poky-edison-20160606/build_edison/../poky/meta-oic/recipes-core/iotivity/iotivity_1.0.0.bb, do_compile) failed with exit code '1'

                        NOTE: Tasks Summary: Attempted 2507 tasks of which 2503 didn't need to be rerun and 2 failed.

                        Waiting for 0 running tasks to finish:

                         

                         

                        Summary: 2 tasks failed:

                          /home/parallels/Documents/intel/iot-devkit-yp-poky-edison-20160606/build_edison/../poky/meta/recipes-extended/libarchive/libarchive_3.1.2.bb, do_configure

                          /home/parallels/Documents/intel/iot-devkit-yp-poky-edison-20160606/build_edison/../poky/meta-oic/recipes-core/iotivity/iotivity_1.0.0.bb, do_compile

                        Summary: There was 1 WARNING message shown.

                        Summary: There were 2 ERROR messages shown, returning a non-zero exit code.

                         

                        What's the problem with this one ? Thanks.

                        • 9. Re: Yocto build error with the task: ncurses/ncurses_5.9.bb, do_install) failed with exit code '1'
                          Intel Corporation
                          This message was posted on behalf of Intel Corporation

                          Although this is a different error, it is also unexpected. In my personal experience I have never seen it, I'd like to ask you, in the guide you shared (http://bovs.org/post/168/Building-Yocto-linux-for-Intel-Edison-with-3G-USB-modems-support), you are in the "Building image without tuning" section, right?

                          I'm interested in your network connection, is it restricted? If so, is it possible for you to connect to an open network and try to build the image again? Network restrictions, such as the ones found on a corporate network, could affect the building process.

                          In case you are in an open network, could you please download the Edison's source from http://iotdk.intel.com/src/3.5/edison/iot-devkit-yp-poky-edison-20160606.zip and follow the instructions found in the README.edison file? The instructions found in that document should build the standard image, I would like to know if you are able to complete the process with those steps.

                          Let us know.
                          -Peter.

                          • 10. Re: Yocto build error with the task: ncurses/ncurses_5.9.bb, do_install) failed with exit code '1'
                            dapenglan

                            Hi,

                             

                            Yes. I am in the step "Building image without tuning".

                             

                            1. Actually I use both the network "Eduroam" which is an University network and my personal network at home. It doesn't make much different.

                             

                            2. Actually I downed the Edison's source from http://iotdk.intel.com/src/3.5/edison/iot-devkit-yp-poky-edison-20160606.zip exactly as the link you provided and got stuck at the step: bitbake edison-image u-boot

                             

                            Still cannot find the reason. Maybe I need to change to another computer to test it again:(

                            • 11. Re: Yocto build error with the task: ncurses/ncurses_5.9.bb, do_install) failed with exit code '1'
                              dapenglan

                              Hi,

                               

                              here is the whole Errors info:

                               

                               

                               

                               

                              ocuments/intel/iot-devkit-yp-poky-edison-20160606/build_edison/tmp/work/core2-32-poky-linux/libarchive/3.1.2-r0/temp/log.do_configure.1274)

                              ERROR: Task 3642 (/home/parallels/Documents/intel/iot-devkit-yp-poky-edison-20160606/build_edison/../poky/meta/recipes-extended/libarchive/libarchive_3.1.2.bb, do_configure) failed with exit code '1'

                              ERROR: Function failed: do_compile (log file is located at /home/parallels/Documents/intel/iot-devkit-yp-poky-edison-20160606/build_edison/tmp/work/core2-32-poky-linux/iotivity/1.0.0-r0/temp/log.do_compile.1273)

                              ERROR: Logfile of failure stored in: /home/parallels/Documents/intel/iot-devkit-yp-poky-edison-20160606/build_edison/tmp/work/core2-32-poky-linux/iotivity/1.0.0-r0/temp/log.do_compile.1273

                              Log data follows:

                              | DEBUG: Executing shell function do_compile

                              | checking file extlibs/hippomocks-master/HippoMocks/hippomocks.h

                              | Reversed (or previously applied) patch detected!  Assume -R? [n]

                              | Apply anyway? [n]

                              | Skipping patch.

                              | 1 out of 1 hunk ignored

                              | scons: Reading SConscript files ...

                              | Checking for POSIX Thread Support...(cached) yes

                              | Given Transport is ALL

                              | Given OS is linux

                              | BUILD_SAMPLE is ON

                              | CA Transport is ALL

                              | Reading ca script ALL

                              | Reading common folder script

                              | Reading IP adapter script

                              | Reading BT EDR adapter script

                              | Reading BLE adapter script for linux

                              | Include path is ['../api', '/home/parallels/Documents/intel/iot-devkit-yp-poky-edison-20160606/build_edison/tmp/work/core2-32-poky-linux/iotivity/1.0.0-r0/iotivity-1.0.0/deps/linux/include', '/home/parallels/Documents/intel/iot-devkit-yp-poky-edison-20160606/build_edison/tmp/work/core2-32-poky-linux/iotivity/1.0.0-r0/iotivity-1.0.0/extlibs/tinycbor/tinycbor/src', '/home/parallels/Documents/intel/iot-devkit-yp-poky-edison-20160606/build_edison/tmp/work/core2-32-poky-linux/iotivity/1.0.0-r0/iotivity-1.0.0/out/yocto/i586/release/resource/c_common', '/home/parallels/Documents/intel/iot-devkit-yp-poky-edison-20160606/build_edison/tmp/work/core2-32-poky-linux/iotivity/1.0.0-r0/iotivity-1.0.0/out/yocto/i586/release/resource/c_common/oic_malloc/include', '/home/parallels/Documents/intel/iot-devkit-yp-poky-edison-20160606/build_edison/tmp/work/core2-32-poky-linux/iotivity/1.0.0-r0/iotivity-1.0.0/out/yocto/i586/release/resource/c_common/oic_string/include', '../inc', '../lib/libcoap-4.1.1', '../common/inc', 'common/inc/', '/home/parallels/Documents/intel/iot-devkit-yp-poky-edison-20160606/build_edison/tmp/sysroots/edison/usr/include/gio-unix-2.0/', '/home/parallels/Documents/intel/iot-devkit-yp-poky-edison-20160606/build_edison/tmp/sysroots/edison/usr/include/glib-2.0', '/home/parallels/Documents/intel/iot-devkit-yp-poky-edison-20160606/build_edison/tmp/sysroots/edison/usr/lib/glib-2.0/include', '/home/parallels/Documents/intel/iot-devkit-yp-poky-edison-20160606/build_edison/tmp/work/core2-32-poky-linux/iotivity/1.0.0-r0/iotivity-1.0.0/out/yocto/i586/release/resource/csdk/connectivity/src/bt_le_adapter/linux']

                              | Files path is ['./../common/src/uarraylist.c', './../common/src/ulinklist.c', './../common/src/uqueue.c', './../common/src/caremotehandler.c', './../common/src/logger.c', './../common/src/oic_logger.c', './../common/src/oic_console_logger.c', './../common/src/cathreadpool_pthreads.c', './../common/src/camutex_pthreads.c', './adapter_util/caadapterutils.c', './adapter_util/cafragmentation.c', './cablockwisetransfer.c', './caconnectivitymanager.c', './cainterfacecontroller.c', './camessagehandler.c', './canetworkconfigurator.c', './caprotocolmessage.c', './caqueueingthread.c', './caretransmission.c', './ip_adapter/caipadapter.c', './ip_adapter/caipserver.c', './ip_adapter/linux/caipnwmonitor.c', './bt_edr_adapter/caedradapter.c', './bt_edr_adapter/linux/caedradapter.c', './bt_le_adapter/caleadapter.c', './bt_le_adapter/linux/object_manager-glue.c', './bt_le_adapter/linux/object_manager-glue.h', './bt_le_adapter/linux/bluez-glue.c', './bt_le_adapter/linux/bluez-glue.h', './bt_le_adapter/linux/characteristic.c', './bt_le_adapter/linux/descriptor.c', './bt_le_adapter/linux/service.c', './bt_le_adapter/linux/advertisement.c', './bt_le_adapter/linux/utils.c', './bt_le_adapter/linux/central.c', './bt_le_adapter/linux/peripheral.c', './bt_le_adapter/linux/client.c', './bt_le_adapter/linux/server.c', './bt_le_adapter/linux/recv.c', './bt_le_adapter/linux/caleinterface.c']

                              | Reading ca script ALL

                              | Reading sample application build script

                              | Sample secured flag is 0

                              |  sample src ['./sample_main.c']

                              |

                              | *********************************** Warning ***********************************

                              | * You are trying cross build, please make sure (i586) version libraries are     *

                              | * installed!                                                                  *

                              | *******************************************************************************

                              |

                              |

                              | *********************************** Warning ***********************************

                              | * You are trying cross build, please make sure (i586) version libraries are     *

                              | * installed!                                                                  *

                              | *******************************************************************************

                              |

                              |

                              | *********************************** Warning ***********************************

                              | * You are trying cross build, please make sure (i586) version libraries are     *

                              | * installed!                                                                  *

                              | *******************************************************************************

                              |

                              |

                              | *********************************** Warning ***********************************

                              | * You are trying cross build, please make sure (i586) version libraries are     *

                              | * installed!                                                                  *

                              | *******************************************************************************

                              |

                              |

                              | *********************************** Warning ***********************************

                              | * You are trying cross build, please make sure (i586) version libraries are     *

                              | * installed!                                                                  *

                              | *******************************************************************************

                              |

                              |

                              | *********************************** Warning ***********************************

                              | * You are trying cross build, please make sure (i586) version libraries are     *

                              | * installed!                                                                  *

                              | *******************************************************************************

                              |

                              | *** Checking for installation of google unit test 1.7.0 ***

                              | *** Checking for installation of hippomocks ***

                              |

                              | *********************************** Warning ***********************************

                              | * You are trying cross build, please make sure (i586) version libraries are     *

                              | * installed!                                                                  *

                              | *******************************************************************************

                              |

                              |

                              | *********************************** Warning ***********************************

                              | * You are trying cross build, please make sure (i586) version libraries are

                              | * installed!                                                            *

                              | *******************************************************************************

                              |

                              | Checking for C++ library boost_thread... (cached) yes

                              | Checking for C++ library boost_system... (cached) yes

                              |

                              | *********************************** Warning ***********************************

                              | * You are trying cross build, please make sure (i586) version libraries are

                              | * installed!                                                            *

                              | *******************************************************************************

                              |

                              | Checking for C++ library boost_thread... (cached) yes

                              | Checking for C++ library boost_system... (cached) yes

                              |

                              | *********************************** Warning ***********************************

                              | * You are trying cross build, please make sure (i586) version libraries are

                              | * installed!                                                            *

                              | *******************************************************************************

                              |

                              | Checking for C++ library boost_thread... (cached) yes

                              | Checking for C++ library boost_system... (cached) yes

                              |

                              | *********************************** Warning ***********************************

                              | * You are trying cross build, please make sure (i586) version libraries are

                              | * installed!                                                            *

                              | *******************************************************************************

                              |

                              | Checking for C++ library boost_thread... (cached) yes

                              | Checking for C++ library boost_system... (cached) yes

                              |

                              | scons: warning: Ignoring missing SConscript 'out/yocto/i586/release/service/things-manager/sampleapp/linux/groupsyncaction/SConscript'

                              | File "/home/parallels/Documents/intel/iot-devkit-yp-poky-edison-20160606/build_edison/tmp/work/core2-32-poky-linux/iotivity/1.0.0-r0/iotivity-1.0.0/service/things-manager/sampleapp/SConscript", line 44, in <module>

                              |

                              | *********************************** Warning ***********************************

                              | * You are trying cross build, please make sure (i586) version libraries are

                              | * installed!                                                            *

                              | *******************************************************************************

                              |

                              | Checking for C++ library boost_thread... (cached) yes

                              | Checking for C++ library boost_system... (cached) yes

                              | *** Checking for installation of google unit test 1.7.0 ***

                              | *** Checking for installation of hippomocks ***

                              |

                              | *********************************** Warning ***********************************

                              | * You are trying cross build, please make sure (i586) version libraries are

                              | * installed!                                                            *

                              | *******************************************************************************

                              |

                              | Checking for C++ library boost_thread... (cached) yes

                              | Checking for C++ library boost_system... (cached) yes

                              |

                              | *********************************** Warning ***********************************

                              | * You are trying cross build, please make sure (i586) version libraries are

                              | * installed!                                                            *

                              | *******************************************************************************

                              |

                              | Checking for C++ library boost_thread... (cached) yes

                              | Checking for C++ library boost_system... (cached) yes

                              |

                              | *********************************** Warning ***********************************

                              | * You are trying cross build, please make sure (i586) version libraries are

                              | * installed!                                                            *

                              | *******************************************************************************

                              |

                              | Checking for C++ library boost_thread... (cached) yes

                              | Checking for C++ library boost_system... (cached) yes

                              |

                              | *********************************** Warning ***********************************

                              | * You are trying cross build, please make sure (i586) version libraries are

                              | * installed!                                                            *

                              | *******************************************************************************

                              |

                              | Checking for C++ library boost_thread... (cached) yes

                              | Checking for C++ library boost_system... (cached) yes

                              |

                              | *********************************** Warning ***********************************

                              | * You are trying cross build, please make sure (i586) version libraries are

                              | * installed!                                                            *

                              | *******************************************************************************

                              |

                              | Checking for C++ library boost_thread... (cached) yes

                              | Checking for C++ library boost_system... (cached) yes

                              |

                              | *********************************** Warning ***********************************

                              | * You are trying cross build, please make sure (i586) version libraries are

                              | * installed!                                                            *

                              | *******************************************************************************

                              |

                              | Checking for C++ library boost_thread... (cached) yes

                              | Checking for C++ library boost_system... (cached) yes

                              |

                              | *********************************** Warning ***********************************

                              | * You are trying cross build, please make sure (i586) version libraries are

                              | * installed!                                                            *

                              | *******************************************************************************

                              |

                              | Checking for C++ library boost_thread... (cached) yes

                              | Checking for C++ library boost_system... (cached) yes

                              |

                              | *********************************** Warning ***********************************

                              | * You are trying cross build, please make sure (i586) version libraries are

                              | * installed!                                                            *

                              | *******************************************************************************

                              |

                              | Checking for C++ library boost_thread... (cached) yes

                              | Checking for C++ library boost_system... (cached) yes

                              | *** Checking for installation of google unit test 1.7.0 ***

                              | *** Checking for installation of hippomocks ***

                              |

                              | *********************************** Warning ***********************************

                              | * You are trying cross build, please make sure (i586) version libraries are

                              | * installed!                                                            *

                              | *******************************************************************************

                              |

                              | Checking for C++ library boost_thread... (cached) yes

                              | Checking for C++ library boost_system... (cached) yes

                              |

                              | *********************************** Warning ***********************************

                              | * You are trying cross build, please make sure (i586) version libraries are

                              | * installed!                                                            *

                              | *******************************************************************************

                              |

                              | Checking for C++ library boost_thread... (cached) yes

                              | Checking for C++ library boost_system... (cached) yes

                              |

                              | *********************************** Warning ***********************************

                              | * You are trying cross build, please make sure (i586) version libraries are

                              | * installed!                                                            *

                              | *******************************************************************************

                              |

                              | Checking for C++ library boost_thread... (cached) yes

                              | Checking for C++ library boost_system... (cached) yes

                              |

                              |

                              | *********************************** Warning ***********************************

                              | * You are trying cross build, please make sure (i586) version libraries are

                              | * installed!                                                            *

                              | *******************************************************************************

                              |

                              | Checking for C++ library boost_thread... (cached) yes

                              | Checking for C++ library boost_system... (cached) yes

                              |

                              | *********************************** Warning ***********************************

                              | * You are trying cross build, please make sure (i586) version libraries are

                              | * installed!                                                            *

                              | *******************************************************************************

                              |

                              | Checking for C++ library boost_thread... (cached) yes

                              | Checking for C++ library boost_system... (cached) yes

                              |

                              | *********************************** Warning ***********************************

                              | * You are trying cross build, please make sure (i586) version libraries are

                              | * installed!                                                            *

                              | *******************************************************************************

                              |

                              | Checking for C++ library boost_thread... (cached) yes

                              | Checking for C++ library boost_system... (cached) yes

                              |

                              | *********************************** Warning ***********************************

                              | * You are trying cross build, please make sure (i586) version libraries are

                              | * installed!                                                            *

                              | *******************************************************************************

                              |

                              | Checking for C++ library boost_thread... (cached) yes

                              | Checking for C++ library boost_system... (cached) yes

                              | Checking for C library curl... (cached) yes

                              |

                              | *********************************** Warning ***********************************

                              | * You are trying cross build, please make sure (i586) version libraries are

                              | * installed!                                                            *

                              | *******************************************************************************

                              |

                              | Checking for C++ library boost_thread... (cached) yes

                              | Checking for C++ library boost_system... (cached) yes

                              |

                              | *********************************** Warning ***********************************

                              | * You are trying cross build, please make sure (i586) version libraries are

                              | * installed!                                                            *

                              | *******************************************************************************

                              |

                              | Checking for C++ library boost_thread... (cached) yes

                              | Checking for C++ library boost_system... (cached) yes

                              |

                              | *********************************** Warning ***********************************

                              | * You are trying cross build, please make sure (i586) version libraries are

                              | * installed!                                                            *

                              | *******************************************************************************

                              |

                              | Checking for C++ library boost_thread... (cached) yes

                              | Checking for C++ library boost_system... (cached) yes

                              | Reading top Zigbee Wrapper.

                              | Reading top Telegesis Wrapper.

                              | Reading Telegesis Wrapper (TW) script

                              | Reading Zigbee Wrapper (ZW) script

                              | Reading PI script

                              | Include path is ['/home/parallels/Documents/intel/iot-devkit-yp-poky-edison-20160606/build_edison/tmp/work/core2-32-poky-linux/iotivity/1.0.0-r0/iotivity-1.0.0/resource/csdk/connectivity/lib/libcoap-4.1.1', '/home/parallels/Documents/intel/iot-devkit-yp-poky-edison-20160606/build_edison/tmp/work/core2-32-poky-linux/iotivity/1.0.0-r0/iotivity-1.0.0/resource/c_common/oic_malloc/include', '../api', '/home/parallels/Documents/intel/iot-devkit-yp-poky-edison-20160606/build_edison/tmp/work/core2-32-poky-linux/iotivity/1.0.0-r0/iotivity-1.0.0/deps/linux/include', '/home/parallels/Documents/intel/iot-devkit-yp-poky-edison-20160606/build_edison/tmp/work/core2-32-poky-linux/iotivity/1.0.0-r0/iotivity-1.0.0/extlibs/tinycbor/tinycbor/src', '/home/parallels/Documents/intel/iot-devkit-yp-poky-edison-20160606/build_edison/tmp/work/core2-32-poky-linux/iotivity/1.0.0-r0/iotivity-1.0.0/out/yocto/i586/release/resource/c_common', '/home/parallels/Documents/intel/iot-devkit-yp-poky-edison-20160606/build_edison/tmp/work/core2-32-poky-linux/iotivity/1.0.0-r0/iotivity-1.0.0/out/yocto/i586/release/resource/c_common/oic_malloc/include', '/home/parallels/Documents/intel/iot-devkit-yp-poky-edison-20160606/build_edison/tmp/work/core2-32-poky-linux/iotivity/1.0.0-r0/iotivity-1.0.0/out/yocto/i586/release/resource/c_common/oic_string/include', '../inc', '../lib/libcoap-4.1.1', '../common/inc', 'common/inc/', '/home/parallels/Documents/intel/iot-devkit-yp-poky-edison-20160606/build_edison/tmp/sysroots/edison/usr/include/gio-unix-2.0/', '/home/parallels/Documents/intel/iot-devkit-yp-poky-edison-20160606/build_edison/tmp/sysroots/edison/usr/include/glib-2.0', '/home/parallels/Documents/intel/iot-devkit-yp-poky-edison-20160606/build_edison/tmp/sysroots/edison/usr/lib/glib-2.0/include', '/home/parallels/Documents/intel/iot-devkit-yp-poky-edison-20160606/build_edison/tmp/work/core2-32-poky-linux/iotivity/1.0.0-r0/iotivity-1.0.0/out/yocto/i586/release/resource/csdk/connectivity/src/bt_le_adapter/linux', '/home/parallels/Documents/intel/iot-devkit-yp-poky-edison-20160606/build_edison/tmp/work/core2-32-poky-linux/iotivity/1.0.0-r0/iotivity-1.0.0/out/yocto/i586/release/resource/csdk/routing/./include', '/home/parallels/Documents/intel/iot-devkit-yp-poky-edison-20160606/build_edison/tmp/work/core2-32-poky-linux/iotivity/1.0.0-r0/iotivity-1.0.0/plugins/include', '/home/parallels/Documents/intel/iot-devkit-yp-poky-edison-20160606/build_edison/tmp/work/core2-32-poky-linux/iotivity/1.0.0-r0/iotivity-1.0.0/plugins/include/internal', '/home/parallels/Documents/intel/iot-devkit-yp-poky-edison-20160606/build_edison/tmp/work/core2-32-poky-linux/iotivity/1.0.0-r0/iotivity-1.0.0/resource/oc_logger/include', '/home/parallels/Documents/intel/iot-devkit-yp-poky-edison-20160606/build_edison/tmp/work/core2-32-poky-linux/iotivity/1.0.0-r0/iotivity-1.0.0/resource/csdk/stack/include', '/home/parallels/Documents/intel/iot-devkit-yp-poky-edison-20160606/build_edison/tmp/work/core2-32-poky-linux/iotivity/1.0.0-r0/iotivity-1.0.0/resource/csdk/logger/include', '/home/parallels/Documents/intel/iot-devkit-yp-poky-edison-20160606/build_edison/tmp/work/core2-32-poky-linux/iotivity/1.0.0-r0/iotivity-1.0.0/resource/c_common/oic_string/include', '/home/parallels/Documents/intel/iot-devkit-yp-poky-edison-20160606/build_edison/tmp/work/core2-32-poky-linux/iotivity/1.0.0-r0/iotivity-1.0.0/plugins/zigbee_wrapper/telegesis_wrapper/include', '/home/parallels/Documents/intel/iot-devkit-yp-poky-edison-20160606/build_edison/tmp/work/core2-32-poky-linux/iotivity/1.0.0-r0/iotivity-1.0.0/plugins/zigbee_wrapper/include']

                              | Files path is ['/home/parallels/Documents/intel/iot-devkit-yp-poky-edison-20160606/build_edison/tmp/work/core2-32-poky-linux/iotivity/1.0.0-r0/iotivity-1.0.0/resource/csdk/logger/src/logger.c', 'pluginlist.c', 'plugininterface.c']

                              | scons: done reading SConscript files.

                              | scons: Building targets ...

                              | scons: building associated VariantDir targets: out/yocto/i586/release

                              | Compiling out/yocto/i586/release/examples/OICMiddle/LineInput.o

                              | Compiling out/yocto/i586/release/resource/src/OCPlatform_impl.os

                              | In file included from resource/include/IServerWrapper.h:27:0,

                              |                  from resource/include/WrapperFactory.h:27,

                              |                  from resource/include/OCPlatform_impl.h:36,

                              |                  from resource/src/OCPlatform_impl.cpp:33:

                              | resource/include/OCResourceRequest.h: In constructor 'OC::OCResourceRequest::OCResourceRequest()':

                              | resource/include/OCResourceRequest.h:58:37: warning: missing initializer for member 'OC::ObservationInfo::action' [-Wmissing-field-initializers]

                              |              m_resourceHandle{nullptr}

                              |                                      ^

                              | resource/include/OCResourceRequest.h:58:37: warning: missing initializer for member 'OC::ObservationInfo::obsId' [-Wmissing-field-initializers]

                              | resource/include/OCResourceRequest.h:58:37: warning: missing initializer for member 'OC::ObservationInfo::connectivityType' [-Wmissing-field-initializers]

                              | resource/include/OCResourceRequest.h:58:37: warning: missing initializer for member 'OC::ObservationInfo::address' [-Wmissing-field-initializers]

                              | resource/include/OCResourceRequest.h:58:37: warning: missing initializer for member 'OC::ObservationInfo::port' [-Wmissing-field-initializers]

                              | In file included from resource/include/IServerWrapper.h:27:0,

                              |                  from resource/include/WrapperFactory.h:27,

                              |                  from resource/include/OCPlatform_impl.h:36,

                              |                  from resource/include/OCPlatform.h:31,

                              |                  from examples/OICMiddle/WrapResource.h:28,

                              |                  from examples/OICMiddle/LineInput.cpp:26:

                              | resource/include/OCResourceRequest.h: In constructor 'OC::OCResourceRequest::OCResourceRequest()':

                              | resource/include/OCResourceRequest.h:58:37: warning: missing initializer for member 'OC::ObservationInfo::action' [-Wmissing-field-initializers]

                              |              m_resourceHandle{nullptr}

                              |                                      ^

                              | resource/include/OCResourceRequest.h:58:37: warning: missing initializer for member 'OC::ObservationInfo::obsId' [-Wmissing-field-initializers]

                              | resource/include/OCResourceRequest.h:58:37: warning: missing initializer for member 'OC::ObservationInfo::connectivityType' [-Wmissing-field-initializers]

                              | resource/include/OCResourceRequest.h:58:37: warning: missing initializer for member 'OC::ObservationInfo::address' [-Wmissing-field-initializers]

                              | resource/include/OCResourceRequest.h:58:37: warning: missing initializer for member 'OC::ObservationInfo::port' [-Wmissing-field-initializers]

                              | virtual memory exhausted: Cannot allocate memory

                              | i586-poky-linux-g++: internal compiler error: Killed (program cc1plus)

                              | Please submit a full bug report,

                              | with preprocessed source if appropriate.

                              | See <http://gcc.gnu.org/bugs.html> for instructions.

                              | scons: *** [out/yocto/i586/release/resource/src/OCPlatform_impl.os] Error 4

                              | scons: *** [out/yocto/i586/release/examples/OICMiddle/LineInput.o] Error 1

                              | scons: building terminated because of errors.

                              | ERROR: scons build execution failed.

                              | WARNING: exit code 1 from a shell command.

                              | ERROR: Function failed: do_compile (log file is located at /home/parallels/Documents/intel/iot-devkit-yp-poky-edison-20160606/build_edison/tmp/work/core2-32-poky-linux/iotivity/1.0.0-r0/temp/log.do_compile.1273)

                              ERROR: Task 1446 (/home/parallels/Documents/intel/iot-devkit-yp-poky-edison-20160606/build_edison/../poky/meta-oic/recipes-core/iotivity/iotivity_1.0.0.bb, do_compile) failed with exit code '1'

                              NOTE: Tasks Summary: Attempted 2507 tasks of which 2505 didn't need to be rerun and 2 failed.

                              Waiting for 0 running tasks to finish:

                               

                               

                              Summary: 2 tasks failed:

                                /home/parallels/Documents/intel/iot-devkit-yp-poky-edison-20160606/build_edison/../poky/meta/recipes-extended/libarchive/libarchive_3.1.2.bb, do_configure

                                /home/parallels/Documents/intel/iot-devkit-yp-poky-edison-20160606/build_edison/../poky/meta-oic/recipes-core/iotivity/iotivity_1.0.0.bb, do_compile

                              Summary: There was 1 WARNING message shown.

                              Summary: There were 2 ERROR messages shown, returning a non-zero exit code.

                              • 12. Re: Yocto build error with the task: ncurses/ncurses_5.9.bb, do_install) failed with exit code '1'
                                Intel Corporation
                                This message was posted on behalf of Intel Corporation

                                I understand, maybe the network found in your University could have some restrictions that might affect the building process. However, if your personal network doesn't have any restrictions it should not affect the process.

                                If the issue was related to a network drop, I'd doubt that it would always fail on the same point. So, I believe we can discard this possibility.

                                Does your PC has any sort of power saving modes? If so, do you think it could be disconnecting you from the internet after some time? If that was the case, are you able to disable these modes?

                                If possible, yes, I would like you to try with another PC to see if this makes a difference.
                                -Peter.

                                • 13. Re: Yocto build error with the task: ncurses/ncurses_5.9.bb, do_install) failed with exit code '1'
                                  dapenglan

                                  Hi,

                                   

                                  I have try another PC, still got some bugs.

                                   

                                  Screen Shot 2016-12-01 at 3.12.33 PM.png

                                   

                                   

                                  Can you provide a ubuntu image which is successfully compiled?  Therefore I can add the model I want.

                                   

                                  Thanks a lot!

                                   

                                  /Dapeng Lan

                                  • 14. Re: Yocto build error with the task: ncurses/ncurses_5.9.bb, do_install) failed with exit code '1'
                                    Intel Corporation
                                    This message was posted on behalf of Intel Corporation

                                    Hi Dapeng,

                                     

                                    The behavior you are experiencing is very strange, I mean every time you try to build the image the error message is different. I'm not sure what's causing this issues as you mentioned that there are no network restrictions, that you have not done any modifications to the image and that the issues continue even if you try on a different computer.

                                     

                                    Regarding your question, the PC I used to build an image has the following configuration:

                                     

                                    makers@makers:~$ sudo lshw -short
                                    H/W path       Device     Class          Description
                                    ====================================================
                                                              system         ()
                                    /0                        bus            D54250WYK
                                    /0/0                      memory         64KiB BIOS
                                    /0/3a                     processor      Intel(R) Core(TM) i5-4250U CPU @ 1.30GHz
                                    /0/3a/3b                  memory         512KiB L2 cache
                                    /0/3a/3c                  memory         128KiB L1 cache
                                    /0/3a/3d                  memory         3MiB L3 cache
                                    /0/3e                     memory         8GiB System Memory
                                    /0/3e/0                   memory         4GiB SODIMM DDR3 Synchronous 1600 MHz (0.6 ns)
                                    /0/3e/1                   memory         4GiB SODIMM DDR3 Synchronous 1600 MHz (0.6 ns)
                                    /0/100                    bridge         Haswell-ULT DRAM Controller
                                    /0/100/2                  display        Haswell-ULT Integrated Graphics Controller
                                    /0/100/3                  multimedia     Haswell-ULT HD Audio Controller
                                    /0/100/14                 bus            8 Series USB xHCI HC
                                    /0/100/16                 communication  8 Series HECI #0
                                    /0/100/19      eth0       network        Ethernet Connection I218-V
                                    /0/100/1b                 multimedia     8 Series HD Audio Controller
                                    /0/100/1c                 bridge         8 Series PCI Express Root Port 1
                                    /0/100/1c.3               bridge         8 Series PCI Express Root Port 4
                                    /0/100/1c.3/0  wlan0      network        Centrino Advanced-N 6205 [Taylor Peak]
                                    /0/100/1d                 bus            8 Series USB EHCI #1
                                    /0/100/1f                 bridge         8 Series LPC Controller
                                    /0/100/1f.2               storage        8 Series SATA Controller 1 [AHCI mode]
                                    /0/100/1f.3               bus            8 Series SMBus Controller
                                    /0/1           scsi0      storage       
                                    /0/1/0.0.0     /dev/sda   disk           1TB WDC WD10JPVX-22J
                                    /0/1/0.0.0/1   /dev/sda1  volume         127MiB reserved partition
                                    /0/1/0.0.0/2   /dev/sda2  volume         173GiB Windows NTFS volume
                                    /0/1/0.0.0/3   /dev/sda3  volume         199MiB Windows FAT volume
                                    /0/1/0.0.0/4   /dev/sda4  volume         953MiB Linux swap volume
                                    /0/1/0.0.0/6   /dev/sda6  volume         756GiB EXT4 volume
                                    /0/2           scsi3      storage       
                                    /0/2/0.0.0     /dev/sdb   disk           180GB INTEL SSDMCEAW18
                                    /0/2/0.0.0/1   /dev/sdb1  volume         511MiB Windows FAT volume
                                    /0/2/0.0.0/2   /dev/sdb2  volume         159GiB EXT4 volume
                                    /0/2/0.0.0/3   /dev/sdb3  volume         8118MiB Linux swap volume
                                    /1                        power          To Be Filled By O.E.M.
                                    makers@makers:~$ uname -a
                                    Linux makers 4.4.0-38-generic #57~14.04.1-Ubuntu SMP Tue Sep 6 17:20:43 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux
                                    

                                     

                                     

                                    Let me investigate some more about this. If I'm able to find something useful I will post it here.
                                    -Peter.

                                    1 2 Previous Next