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.

K2E: Yocto build of MCSDK 03.01.03.06 -- failed conftest.c in classpath-native

Hi,

Going exactly by the instructions at

http://processors.wiki.ti.com/index.php/MCSDK_UG_Chapter_Exploring#Yocto8561.config.log

with all exports done as outlined and with Linaro Toolchain installed like

http://arago-project.org/wiki/index.php/Setting_Up_Build_Environment

The build is running for a while (about 750 tasks of 6300) and then I am getting the following error

| configure: exit 1
| ERROR: oe_runconf failed
| ERROR: Function failed: do_configure (see /home/gunter/oe/mcsdk/oe-layersetup/build/arago-tmp-external-linaro-toolchain/work/x86_64-linux/classpath-native/0.99-r6.0/temp/log.do_configure.22224 for further information)
ERROR: Task 4780 (/home/gunter/oe/mcsdk/oe-layersetup/sources/meta-java/recipes-core/classpath/classpath-native_0.99.bb, do_configure) failed with exit code '1'
NOTE: Tasks Summary: Attempted 748 tasks of which 740 didn't need to be rerun and 1 failed.
Waiting for 0 running tasks to finish:

Summary: 1 task failed:
/home/gunter/oe/mcsdk/oe-layersetup/sources/meta-java/recipes-core/classpath/classpath-native_0.99.bb, do_configure
Summary: There was 1 WARNING message shown.
Summary: There was 1 ERROR message shown, returning a non-zero exit code.

Digging deeper I am looking at the config.log file at 

/home/gunter/oe/mcsdk/oe-layersetup/build/arago-tmp-external-linaro-toolchain/work/x86_64-linux/classpath-native/0.99-r6.0/classpath-0.99/config.log

it is attached. Here I find that a bunch of include files are missing, e.g.

gunter@gunter-Latitude-E4300:~/oe/mcsdk/oe-layersetup/build/arago-tmp-external-linaro-toolchain/work/x86_64-linux/classpath-native/0.99-r6.0/classpath-0.99$ grep fatal config.log
conftest.c:11: fatal error: ac_nonexistent.h: No such file or directory
conftest.cpp:24: fatal error: ac_nonexistent.h: No such file or directory
conftest.cpp:24: fatal error: ac_nonexistent.h: No such file or directory
conftest.c:24: fatal error: ac_nonexistent.h: No such file or directory
conftest.c:64: fatal error: sys/config.h: No such file or directory
conftest.c:31: fatal error: sys/config.h: No such file or directory
conftest.c:69: fatal error: sys/utime.h: No such file or directory
conftest.c:36: fatal error: sys/utime.h: No such file or directory
conftest.c:69: fatal error: sys/filio.h: No such file or directory
conftest.c:36: fatal error: sys/filio.h: No such file or directory
conftest.c:71: fatal error: crt_externs.h: No such file or directory
conftest.c:38: fatal error: crt_externs.h: No such file or directory
conftest.c:74: fatal error: sys/event.h: No such file or directory
conftest.c:41: fatal error: sys/event.h: No such file or directory
conftest.c:79: fatal error: sys/loadavg.h: No such file or directory
conftest.c:46: fatal error: sys/loadavg.h: No such file or directory
conftest.c:79: fatal error: sys/sockio.h: No such file or directory
conftest.c:46: fatal error: sys/sockio.h: No such file or directory
conftest.c:49: fatal error: sys/config.h: No such file or directory
conftest.c:146: fatal error: gmp.h: No such file or directory
conftest.c:113: fatal error: gmp.h: No such file or directory

BTW, build-essentials are installed, not sure where the include files should be coming from, whether there is an include path missing ...

Please let me know.

Thanks,

--Gunter

  • Hi,

    sorry, I need to include the config.log file again

    7220.config.log

    Regards,

    --Gunter

  • Hi,
    Could you provide the configuration that you used for yocto build.
  • Hi Guntur,

    In which host machine you have done yocto build ? Is it Ubuntu 14 or Ubuntu 12.04?

    I have tried on both the versions of ubuntu. I was successful in the version 12.04 and seems to have some build errors  in the version 14. However, the recommended version for yocto build is 12.04.

    Please use the following commands for yocot build on Ubuntu 12.04 LTS host machine.

    $git clone arago-project.org/.../oe-layersetup.git

    $cd oe-layersetup

    $./oe-layertool-setup.sh -f configs/mcsdk/mcsdk-03.01.03.06-config.txt

    $export CROSS_COMPILE=arm-linux-gnueabihf-

    $export ARCH=arm

    $cd oe-layersetup/build

    $source conf/setenv

    $MACHINE=k2hk-evm TOOLCHAIN_BRAND=linaro ARAGO_BRAND=mcsdk bitbake tisdk-server-rootfs-image

    Attached the boot log of the successful build.

    8484.yocto_build_log.txt

     

    Regards,

    Shankari

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

    Please click the verify answer button if this post answer your question.

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

  • Hello,

    I have the same error:

    | ERROR: oe_runconf failed
    | ERROR: Function failed: do_configure (see /home/jonas/oe-layersetup/build/arago-tmp-external-linaro-toolchain/work/i686-linux/classpath-native/0.99-r6.0/temp/log.do_configure.23129 for further information)
    ERROR: Task 4780 (/home/jonas/oe-layersetup/sources/meta-java/recipes-core/classpath/classpath-native_0.99.bb, do_configure) failed with exit code '1'
    NOTE: Tasks Summary: Attempted 1176 tasks of which 1156 didn't need to be rerun and 1 failed.

    Extraction from: log.do_configure.23129:

    checking if /home/jonas/oe-layersetup/build/arago-tmp-external-linaro-toolchain/sysroots/i686-linux/usr/bin/ecj-initial is a version of gcj... no
    checking if /home/jonas/oe-layersetup/build/arago-tmp-external-linaro-toolchain/sysroots/i686-linux/usr/bin/ecj-initial works... configure: error: The Java compiler /home/jonas/oe-layersetup/build/arago-tmp-external-linaro-toolchain/sysroots/i686-linux/usr/bin/ecj-initial failed (see config.log, check the CLASSPATH?)
    Configure failed. The contents of all config.log files follows to aid debugging
    /home/jonas/oe-layersetup/build/arago-tmp-external-linaro-toolchain/work/i686-linux/classpath-native/0.99-r6.0/classpath-0.99/config.log
    This file contains any messages produced by compilers while
    running configure, to aid debugging if configure makes a mistake.

    I am using ubuntu 12.04 and have used the following guide:

    processors.wiki.ti.com/.../MCSDK_UG_Chapter_Exploring

    Anyone have an idea what causes this?

    Br,

    Jonas

  • Hi,

    in my log.do_configure.22224 I can see the following:

    configure:24615: checking if /home/gunter/oe/mcsdk/oe-layersetup/build/arago-tmp-external-linaro-toolchain/sysroots/x86_64-linux/usr/bin/ecj-initial is a version of gcj

    configure:24629: result: no

    configure:24644: checking if /home/gunter/oe/mcsdk/oe-layersetup/build/arago-tmp-external-linaro-toolchain/sysroots/x86_64-linux/usr/bin/ecj-initial works

    configure:24669: /home/gunter/oe/mcsdk/oe-layersetup/build/arago-tmp-external-linaro-toolchain/sysroots/x86_64-linux/usr/bin/ecj-initial -nowarn -source 1.5 -target 1.5 Object.java

    /home/gunter/oe/mcsdk/oe-layersetup/build/arago-tmp-external-linaro-toolchain/sysroots/x86_64-linux/usr/bin/ecj-initial: line 4: 30049 Aborted                 (core dumped) ${RUNTIME} -Xmx512m -cp ${ECJ_JAR} org.eclipse.jdt.internal.compiler.batch.Main ${1+"$@"}

    configure:24672: $? = 134

    configure:24676: error: The Java compiler /home/gunter/oe/mcsdk/oe-layersetup/build/arago-tmp-external-linaro-toolchain/sysroots/x86_64-linux/usr/bin/ecj-initial failed (see config.log, check the CLASSPATH?)

    What could cause this?

    I am also running on Ubuntu 12.04 with all the MCSDK UG Yocto steps done.

     

    Regards,

    --Gunter

     

  • Hi Gunter and Jonas,

    We need complete yocto config & build log including package installation steps, could you please attach it.

    I have also successfully completed the yocto build for new MCSDK 3.01.03.06 release.

    How did you build yocto ?

    Fetching arago sources from internet or from local computer that already downloaded ?

    processors.wiki.ti.com/.../MCSDK_UG_Chapter_Exploring

    Shankari step seems to be that she downloaded the package already by using the following link and building yocto, how about you ?

    software-dl.ti.com/sdoemb/sdoemb_public_sw/mcsdk/latest/exports/mcsdk-3_01_03_06.arago.src.tar.gz

    Have you installed the following packages ?

    sudo apt-get -y install diffstat texi2html texinfo subversion chrpath build-essential subversion ccache sed wget cvs coreutils unzip texinfo docbook-utils gawk help2man file g++ bison flex htmldoc chrpath libxext-dev xserver-xorg-dev doxygen socat uboot-mkimage git
  • Hellog again,

    I managed to get i working. I am not sure what the problem was and I don't have time to investigate, but it must have something to do with the status of my Ubunt-installation.

    I made a clean install of Ubuntu 12.04 and then it worked. These are the exact steps I followed to get it working:

    1) Download releases.ubuntu.com/.../ubuntu-12.04.5-desktop-i386.iso (32-bit Ubuntu 12.04.5)
    2) Install in virtual machine (8 cores, 16G RAM, 100G disk) using "VMWare Workstation 9.0.4 build-1945795"
    -- Ubuntu Language: English

    3) Run the following commands in order:
    # sudo apt-get update
    # sudo apt-get dist-upgrade
    # sudo reboot
    # sudo apt-get -y install diffstat texi2html texinfo subversion chrpath build-essential subversion ccache sed wget cvs coreutils unzip texinfo docbook-utils gawk help2man file g++ bison flex htmldoc chrpath libxext-dev xserver-xorg-dev doxygen socat uboot-mkimage gitsudo apt-get -y install diffstat texi2html texinfo subversion chrpath build-essential subversion ccache sed wget cvs coreutils unzip texinfo docbook-utils gawk help2man file g++ bison flex htmldoc chrpath libxext-dev xserver-xorg-dev doxygen socat uboot-mkimage git
    # git clone arago-project.org/.../oe-layersetup.git
    # cd oe-layersetup
    # ./oe-layertool-setup.sh -f configs/mcsdk/mcsdk-03.01.03.06-config.txt
    # cd ~/
    # wget launchpad.net/.../gcc-linaro-arm-linux-gnueabihf-4.7-2013.03-20130313_linux.tar.bz2
    # tar xjf gcc-linaro-arm-linux-gnueabihf-4.7-2013.03-20130313_linux.tar.bz2
    # export CROSS_COMPILE=arm-linux-gnueabihf-
    # export ARCH=arm
    # PATH=$HOME/gcc-linaro-arm-linux-gnueabihf-4.7-2013.03-20130313_linux/bin:$PATH
    Download... software-dl.ti.com/.../mcsdk-3_01_03_06.arago.src.tar.gz
    # cd ~/oe-layersetup
    # tar xzvf ~/Downloads/mcsdk-3_01_03_06.arago.src.gz
    # cd build
    # source conf/setenv
    # MACHINE=k2hk-evm TOOLCHAIN_BRAND=linaro ARAGO_BRAND=mcsdk bitbake tisdk-server-rootfs-image

    Hope this helps... God luck!

    Best regards

    Jonas Lindahl

  • Hi Jonas,

    Glad to hear that you got it working. Thanks for the update.

    Regards,

    Shankari

  • Hi Jonas,

    could you maybe attach your latest file for
    mcsdk/oe-layersetup/build/arago-tmp-external-linaro-toolchain/work/x86_64-linux/classpath-native/0.99-r6.0/temp/log.do_configure.xxxxx

    It would be interesting to compare.

    Unfortunately I cannot reinstall U12.04, since the machine is native and I have a lot of packages on it for different work. But I did go through all the packages listed in the MCSDK UG.

    Regards,
    --Gunter
  • Hi Gunter,

    could you maybe attach your latest file for

    mcsdk/oe-layersetup/build/arago-tmp-external-linaro-toolchain/work/x86_64-linux/classpath-native/0.99-r6.0/temp/log.do_configure.xxxxx

    It seems to be you are using 64 bit ubuntu 12.04 machine, so please make sure that you installled required packages for 64bit machines.

    I've attached the configure log for classpath package.

    1057.log.do_configure.31983

    Regards,

    Shankari

  • Hi,

    I have followed steps suggested by "Jonas Lindahl" (previous steps). I am facing the following error.

    I am trying to build with mcsdk 3.1.3.6

     make[4]: *** [/home/crypto/Desktop/Linux/Yocto/oe-layersetup/build/arago-tmp-external-linaro-toolchain/work/i686-linux/icedtea6-native/1.8.11-r5.3/icedtea6-1.8.11/openjdk-ecj/build/linux-x86/lib/currency.data] Error 1
    | make[4]: Leaving directory `/home/crypto/Desktop/Linux/Yocto/oe-layersetup/build/arago-tmp-external-linaro-toolchain/work/i686-linux/icedtea6-native/1.8.11-r5.3/icedtea6-1.8.11/openjdk-ecj/jdk/make/java/java'
    | make[3]: *** [all] Error 1
    | make[3]: Leaving directory `/home/crypto/Desktop/Linux/Yocto/oe-layersetup/build/arago-tmp-external-linaro-toolchain/work/i686-linux/icedtea6-native/1.8.11-r5.3/icedtea6-1.8.11/openjdk-ecj/jdk/make/java'
    | make[2]: *** [all] Error 1
    | make[2]: Leaving directory `/home/crypto/Desktop/Linux/Yocto/oe-layersetup/build/arago-tmp-external-linaro-toolchain/work/i686-linux/icedtea6-native/1.8.11-r5.3/icedtea6-1.8.11/openjdk-ecj/jdk/make'
    | make[1]: *** [jdk-build] Error 2
    | make[1]: Leaving directory `/home/crypto/Desktop/Linux/Yocto/oe-layersetup/build/arago-tmp-external-linaro-toolchain/work/i686-linux/icedtea6-native/1.8.11-r5.3/icedtea6-1.8.11/openjdk-ecj'
    | make: *** [stamps/icedtea-ecj.stamp] Error 2
    | ERROR: oe_runmake failed
    | ERROR: Function failed: do_compile (see /home/crypto/Desktop/Linux/Yocto/oe-layersetup/build/arago-tmp-external-linaro-toolchain/work/i686-linux/icedtea6-native/1.8.11-r5.3/temp/log.do_compile.21486 for further information)

    ERROR: Task 3770 (/home/crypto/Desktop/Linux/Yocto/oe-layersetup/sources/meta-java/recipes-core/icedtea/icedtea6-native_1.8.11.bb, do_compile) failed with exit code '1'
    NOTE: Tasks Summary: Attempted 3929 tasks of which 381 didn't need to be rerun and 1 failed.
    Waiting for 0 running tasks to finish: 

    Note: I have installed Ubuntu 12.04.5-i386 32 bit using gcc-linaro-arm-linux-gnueabihf-4.7-2013.03-20130313_linux.tar.bz2 compiler.

    I have followed all the steps given in mcsdk user guide can any one help me on this?

    is there any depedency there?


    Regards,

    Sivanantham

  • Hi,
    I am trying to build file system through yocto as per mcsdk user guide. I am trying with mcsdk-3.1.3.6 package

    i got the following error


    | make[4]: *** [/home/crypto/Desktop/Linux/Yocto/oe-layersetup/build/arago-tmp-external-linaro-toolchain/work/i686-linux/icedtea6-native/1.8.11-r5.3/icedtea6-1.8.11/openjdk-ecj/build/linux-x86/lib/currency.data] Error 1
    | make[4]: Leaving directory `/home/crypto/Desktop/Linux/Yocto/oe-layersetup/build/arago-tmp-external-linaro-toolchain/work/i686-linux/icedtea6-native/1.8.11-r5.3/icedtea6-1.8.11/openjdk-ecj/jdk/make/java/java'
    | make[3]: *** [all] Error 1
    | make[3]: Leaving directory `/home/crypto/Desktop/Linux/Yocto/oe-layersetup/build/arago-tmp-external-linaro-toolchain/work/i686-linux/icedtea6-native/1.8.11-r5.3/icedtea6-1.8.11/openjdk-ecj/jdk/make/java'
    | make[2]: *** [all] Error 1
    | make[2]: Leaving directory `/home/crypto/Desktop/Linux/Yocto/oe-layersetup/build/arago-tmp-external-linaro-toolchain/work/i686-linux/icedtea6-native/1.8.11-r5.3/icedtea6-1.8.11/openjdk-ecj/jdk/make'
    | make[1]: *** [jdk-build] Error 2
    | make[1]: Leaving directory `/home/crypto/Desktop/Linux/Yocto/oe-layersetup/build/arago-tmp-external-linaro-toolchain/work/i686-linux/icedtea6-native/1.8.11-r5.3/icedtea6-1.8.11/openjdk-ecj'
    | make: *** [stamps/icedtea-ecj.stamp] Error 2
    | ERROR: oe_runmake failed
    | ERROR: Function failed: do_compile (see /home/crypto/Desktop/Linux/Yocto/oe-layersetup/build/arago-tmp-external-linaro-toolchain/work/i686-linux/icedtea6-native/1.8.11-r5.3/temp/log.do_compile.23560 for further information)
    ERROR: Task 3770 (/home/crypto/Desktop/Linux/Yocto/oe-layersetup/sources/meta-java/recipes-core/icedtea/icedtea6-native_1.8.11.bb, do_compile) failed with exit code '1'
    NOTE: Tasks Summary: Attempted 4127 tasks of which 4041 didn't need to be rerun and 1 failed.
    Waiting for 0 running tasks to finish:

    Summary: 1 task failed:
    /home/crypto/Desktop/Linux/Yocto/oe-layersetup/sources/meta-java/recipes-core/icedtea/icedtea6-native_1.8.11.bb, do_compile
    Summary: There was 1 WARNING message shown.
    Summary: There was 1 ERROR message shown, returning a non-zero exit code.



    I have installed the following prerequisite packages as per mcsdk user guide

    sudo apt-get -y install diffstat texi2html texinfo subversion chrpath build-essential subversion ccache sed wget cvs coreutils unzip texinfo docbook-utils gawk help2man file g++ bison flex htmldoc chrpath libxext-dev xserver-xorg-dev doxygen socat uboot-mkimage git

    I am using gcc-linaro-arm-linux-gnueabihf-4.7-2013.03-20130313_linux compiler

    export CROSS_COMPILE=arm-linux-gnueabihf-
    export ARCH=arm
    PATH=$PATH:$HOME/gcc-linaro-arm-linux-gnueabihf-4.7-2013.03-20130313_linux/bin:$PATH
    OS:Ubuntu 12.04.5-i386 32 bit

    can anyone help me on this problem as soon as possible?

    Is there any dependency packages?

    Regards,
    Sivanantham