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.

Build errors while building Linux-c6x 2.0 for C6678 evm



1212.env.txt

0121.setenv.txt

4162.build_linux.txt

Hi all,

I tried to build the Linux kernel and the root file system with full-root option and syslink build using the steps mentionned at http://www.linux-c6x.org/wiki/index.php/Linux-c6x_2.0_Release.

On doing "./prj build", I get the following error :

make -C /home/rachid/my-linux-c6x/Build/uClibc.el_hardfp CROSS=/home/rachid/my-linux-c6x/opt/gcc-c6x/bin/c6x-uclinux- PREFIX=/home/rachid/my-linux-c6x/sdk/c6x-uclinux/libc/c674x install
install -m 755 ./lib/lib*-0.9.32-rc2-git.so \
        /home/rachid/my-linux-c6x/sdk/c6x-uclinux/libc/c674x/lib/
(cd ./lib && tar -cf - *.so.*) | tar -xf - -C /home/rachid/my-linux-c6x/sdk/c6x-uclinux/libc/c674x/lib/
tar: error while loading shared libraries: libpthread.so.0: ELF file OS ABI invalid
tar: This does not look like a tar archive
tar: Exiting with failure status due to previous errors
make[3]: *** [install_runtime] Error 2
make[2]: *** [one-sdk-gcc] Error 2
make[1]: *** [one-sdk] Error 2
make: *** [sdk] Error 2

attached is my setenv file, the compilation log file and my environment variables

I'm using the Linux-c6x 2.0 Release and ubuntu 10.04 as host

Can any one suggest what is causing this error?

Best Regards

  • Hi,

    Do you get anything under sdk/c6x-uclinux/libc/c674x/lib? Is libpthread.so.0 soft linked to libpthread-0.9.32-rc2-git.so? Do you have them under c6x-gcc where the gcc compiler is installed?

  • Hi,

    the following is what I have under sdk/c6x-uclinux/libc/c674x/lib :


    libcrypt-0.9.32-rc2-git.so
    libdl-0.9.32-rc2-git.so
    libm-0.9.32-rc2-git.so
    libnsl-0.9.32-rc2-git.so
    libpthread-0.9.32-rc2-git.so
    libresolv-0.9.32-rc2-git.so
    librt-0.9.32-rc2-git.so
    libthread_db-0.9.32-rc2-git.so
    libuClibc-0.9.32-rc2-git.so
    libutil-0.9.32-rc2-git.so

    the libpthread.so.0 is under opt/gcc-c6x/c6x-uclinux/libc and is soft linked to libpthread-0.9.32-rc2-git.so.

    Thanks,

    Rachid

  • Hi, Rachid,

    Do you only have those *.rc2-git.so under sdk/c6x-uclinux/libc/c674x/lib? any *.so.* soft link to these files in the same sdk directory? I have not been able to see the same error as yours when building full-root and syslink as configured in your setenv. The files in my gcc-c6x/c6x-uclinux/libc/c674x/lib is the same as those in sdk, including soft links. Could you bootstrap again and see if the same error happens? If it sitill happens, send me step by step you did and I'll see if I can reproduce the error.

    Rex

  • Hi Rex,

    yes, I have only those *.rc2-git.so under /sdk/c6x-uclinux/libc/c674x/lib.

    I boostrap again and the same errors happened. I followed the steps mentionned at http://www.linux-c6x.org/wiki/index.php/Linux-c6x_2.0_Release.L

    Thanks,

    Rachid

  • Hi, Rachid,

    Not having the soft link in sdk/c6x-uclinux/libc/c674x/lib may be the reason for build failure, but I am not sure why the soft links are missing. It simply is a copy from c6x-gcc directory. What type of file system is the linux-c6x 2.0 project in? Is it type ext3 or ext4?

    Rex

  • 6303.setenv.txt

    Hi rex,

    I solved the problem by copying the files under gcc-c6x/c6x-uclinux/libc/c674x/lib to sdk/c6x-uclinux/libc/c674x/lib.

    Now, I have the following problem :

    making device SPI_CFG=-DSPI_MODE=1 -DSPI_ADDR_WIDTH=24 -DSPI_NPIN=5 -DSPI_CSEL=2 -DSPI_C2TDEL=1 -DSPI_CLKDIV=8 -DSPI_ROM=1 -DPAD_FILE_ID_1=1 -DPAD_FILE_ID_2=1 -DINIT_EXE_FILE="ibl_c66x/ibl_init.i2c.be.ccs" -DEXE_FILE_1="" -DEXE_FILE_2="ibl_c66x/ibl.i2c.be.ccs" CDEFS= EXCLUDES=COFF BIS NAND_GPIO
    make -C ../device/c64x/make CDEFS='-DIBL_CFG_I2C_MAP_TABLE_DATA_BUS_ADDR=0x51 -DEXCLUDE_COFF -DEXCLUDE_BIS -DEXCLUDE_NAND_GPIO -DSPI_MODE=1 -DSPI_ADDR_WIDTH=24 -DSPI_NPIN=5 -DSPI_CSEL=2 -DSPI_C2TDEL=1 -DSPI_CLKDIV=8 -DSPI_ROM=1 -DPAD_FILE_ID_1=1 -DPAD_FILE_ID_2=1 -DINIT_EXE_FILE='"ibl_c66x/ibl_init.i2c.be.ccs"' -DEXE_FILE_1='""' -DEXE_FILE_2='"ibl_c66x/ibl.i2c.be.ccs"'' device
    q -I -a -ele.oa -o$.da ../../../device/c64x/c64x.s
    /bin/sh: q: command not found
    make[6]: [c64x.da] Error 127 (ignored)
    Checking command line dependencies
    same
    making ethboot
    make -C ../ethboot/c64x/make ethboot
    cl6x -ppd=ethboot.dc_TMP -c -k -mi200 -ml0 -ms3 -o2 -pm -pds1111 -pds827 -pds824 -pds837 -pds1037 -pds195 -pds97 -pden -pdr -mv6400+ -I/home/rachid/TI/TI_CGT_C6000_7.2.2/include -I/home/rachid/TI/TI_CGT_C6000_7.2.2/lib ../../..  -I../../../arch/c64x  -I../../../device  -I../../../device/c66x  -I../../../ethboot  -I../../../driver/eth  -I/home/rachid/opt/ti/TI_CGT_C6000_7.2.2/include -I/home/rachid/opt/ti/TI_CGT_C6000_7.2.2/lib  -I../../../hw/macs  -I../../../hw/mdio  -I../../../hw/sgmii  -I../../../hw/cpsw  -I../../../hw/qm  -I../../../hw/cpdma  -I../../../hw/pa -as  -ss  -dTNFNAME=ethboot.c  ../../../ethboot/ethboot.c
    >> WARNING: more than one source file is specified; preprocessor output will be generated for last file only
    [...]
    Fatal error #5: could not open source file "../../.."
    1 fatal error detected in the compilation of "../../..".
    Compilation terminated.

    >> Compilation failure
    Checking command line dependencies
    diff: cdefdep: No such file or directory
    cl6x -c -k -mi200 -ml0 -ms3 -o2 -pm -pds1111 -pds827 -pds824 -pds837 -pds1037 -pds195 -pds97 -pden -pdr -mv6400+ -I/home/rachid/TI/TI_CGT_C6000_7.2.2/include -I/home/rachid/TI/TI_CGT_C6000_7.2.2/lib ../../..  -I../../../arch/c64x  -I../../../device  -I../../../device/c66x  -I../../../ethboot  -I../../../driver/eth  -I/home/rachid/opt/ti/TI_CGT_C6000_7.2.2/include -I/home/rachid/opt/ti/TI_CGT_C6000_7.2.2/lib  -I../../../hw/macs  -I../../../hw/mdio  -I../../../hw/sgmii  -I../../../hw/cpsw  -I../../../hw/qm  -I../../../hw/cpdma  -I../../../hw/pa -as  -ss  -dTNFNAME=ethboot.c  ../../../ethboot/ethboot.c -eo.le.oc
    [...]
    Fatal error #5: could not open source file "../../.."
    1 fatal error detected in the compilation of "../../..".
    Compilation terminated.

    >> Compilation failure
    make[6]: *** [ethboot.le.oc] Error 1
    make[5]: *** [ethboot] Error 2
    make[4]: *** [le_target] Error 2
    make[3]: *** [evm_c6678_i2c] Error 2
    make[2]: *** [one-one-ibl] Error 2
    Build of one-ibl for evmc6678 Failed
    make[1]: *** [one-ibl] Error 2
    make: *** [ibl] Error 2

    attached is my new setenv file.

    Thanks,

    Rachid

  • Hi, Rachid,

    Your system behaves a bit different. Is this 32-bit machine or 64-bit? What type of file system do you have? It seems like the command line gets truncated to me. Could you try to unset your environment variables C6X_C_DIR and TOOLCHAIN_PATH? Besides, could you also remove the android-sdk from your PATH and give it a try again? Please let me know your system's configuration. Thanks!

    Rex

  • Hi, Rex,

    removing the environment varibles C6X_C_DIR and TOOLCHAIN_PATH resolved the problem.

    Thank you very much for your help.

    Rachid