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.

L138 LCDK - u-boot compilation errors with: redefinition of typedef 'uint'

I am trying to rebuild u-boot for the OMAP L-138 LCDK eval board.  As a starting point, I have downloaded ti-sdk-omapl138-lcdk-01.00.00.bz2, and extracted the enclosed u-boot-2010.12-psp03.21.00.04.lcdk.bz2.

The problem is that the extracted project doesn't compile.  After kicking off the build process:

[linux-devkit]:~/u-boot-2010.12-psp03.21.00.04.lcdk> make all CROSS_COMPILE=arm-arago-linux-gnueabi-

The build process finds a type clash with uint, and errors out:

make[2]: Entering directory `/home/rclee/u-boot-2010.12-psp03.21.00.04.lcdk/tools/uflash'
gcc -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -I /home/rclee/u-boot-2010.12-psp03.21.00.04.lcdk/include -DUSE_HOSTCC -o uflash /home/rclee/u-boot-2010.12-psp03.21.00.04.lcdk/tools/uflash/uflash.c /home/rclee/u-boot-2010.12-psp03.21.00.04.lcdk/lib/crc32.c /home/rclee/u-boot-2010.12-psp03.21.00.04.lcdk/lib/errno.c
In file included from /home/rclee/u-boot-2010.12-psp03.21.00.04.lcdk/lib/crc32.c:14:
/home/rclee/u-boot-2010.12-psp03.21.00.04.lcdk/include/compiler.h:55: error: redefinition of typedef 'uint'
/home/rclee/ti-sdk-omapl138-lcdk-01.00.00/linux-devkit/arm-arago-linux-gnueabi/usr/include/sys/types.h:153: note: previous declaration of 'uint' was here
make[2]: *** [uflash] Error 1
make[2]: Leaving directory `/home/rclee/u-boot-2010.12-psp03.21.00.04.lcdk/tools/uflash'
make[1]: *** [subdirs] Error 1
make[1]: Leaving directory `/home/rclee/u-boot-2010.12-psp03.21.00.04.lcdk/tools'
make: *** [tools] Error 2

The cross environment is a running on a freshly installed Ubuntu 10.04 LTS virtual machine (via ubuntu-10.04.2-desktop-i386.iso).  There is entirely stock, specifically with no prior TI tool chains installed at all.

Any ideas?

Thanks,

Robert Lee

  • Hi Robert Lee,

    Welcome to the TI E2E forum. I hope you will find many good answers here and in the TI.com documents and in the TI Wiki Pages. Be sure to search those for helpful information and to browse for the questions others may have asked on similar topics.

    I personally, compiled the u-boot and kernel for the OMAP L-138 (  ti-sdk-omapl138-lcdk-01.00.00.bz2 ) several times and most likely, didnot face any problem especially on Ubuntu 10.04 as well as 12.04 LTS.

    There are good TI wiki links: http://processors.wiki.ti.com/index.php/OMAP-L138_LCDK_Linux_Software_Developer's_Guide#Steps_to_Install_and_Build_U-Boot_for_OMAP-L138_LCDK or http://processors.wiki.ti.com/index.php/GSG:_Building_Software_Components_for_OMAP-L1#Rebuilding_U-Boot which gives step by step instruction for compiling u-boot and kernel. I recommend you to follow the steps and check for any mismatch in the environmental variables, setups, e.t.c. ( Try options like using sudo prefixing linux commands. for example "sudo make ...." )

    And also make sure you followed the linux SDK installation steps correctly and verfied that the tool chains setup are appropriate. http://processors.wiki.ti.com/index.php/OMAP-L138_LCDK_Linux_SDK_Getting_Started_Guide#Linux_SDK_Installation_Steps 

    Other useful links:

    http://processors.wiki.ti.com/index.php/OMAP-L138_LCDK_Linux_Software_Developer%27s_Guide

    http://processors.wiki.ti.com/index.php/Building_03.22_PSP_release_Components_for_OMAP-L138

    http://processors.wiki.ti.com/index.php/Community_Linux_PSP_(Linux_3.3)_for_DA8x/OMAP-L1/AM1x

    http://processors.wiki.ti.com/index.php/Running_PSP_Components_on_OMAP-L138_LCDK_EVM

     

    Regards,

    Shankari

     

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

    Please click the Verify Answer button on this post if it answers your question.
    --------------------------------------------------------------------------------------------------------

  • Thanks for the pointers.

    I'm working around the problem for now.  Having looked at the error messages closer, the make bombs out not at cross compiling u-boot proper, but rather at building the 'uflash' host side utility.  This won't be needed for the moment so I just stubbed it out of the build process.

    Anyways, I have tried ti-sdk-omapl138-lcdk-01.00.00.bz2 (md5sum 8949e04cf80c51c8e21567b5f333b7e6) on freshly installed ubuntu-10.04.2-desktop-i386.iso (md5sum 477350cbea8936c63d587cf2be69181b) VMs.  I'm using 10.04 LTS per http://processors.wiki.ti.com/index.php/OMAP-L138_LCDK_Linux_SDK_Getting_Started_Guide.

    Thanks,

    Robert Lee

  • hi,robert 

    I have meet the same problem as you when i make u-boot for omal138-lcdk.
    Will you please give me your solution to the making.thanks

    and my email is: rose_duan@sina.com thanks

    rose duan

  • Hi Rose Duan,

    Can you please create new post for your issue.

  • Hi Titus S,

    I have the same problem as Robert's when I'm making u-boot for omapl138-lcdk following the reference as the sd said. The error is :   

            Redefinition of typedef 'uint'.

    The information for the error as following:

    root@dfr-desktop:~# export TI_SDK_PATH=/home/usr/SDKs/ti-sdk-omapl138-lcdk-01.00.00
    root@dfr-desktop:~# $PATH
    bash: /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games: No such file or directory
    root@dfr-desktop:~# cd /home/usr/SDKs/ti-sdk-omapl138-lcdk-01.00.00
    root@dfr-desktop:/home/usr/SDKs/ti-sdk-omapl138-lcdk-01.00.00# export TI_SDK_PATH=/home/usr/SDKs/ti-sdk-omapl138-lcdk-01.00.00
    root@dfr-desktop:/home/usr/SDKs/ti-sdk-omapl138-lcdk-01.00.00# $PATH
    bash: /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games: No such file or directory
    root@dfr-desktop:/home/usr/SDKs/ti-sdk-omapl138-lcdk-01.00.00# export TI_SDK_PATH=/home/usr/SDKs/ti-sdk-omapl138-lcdk-01.00.00
    root@dfr-desktop:/home/usr/SDKs/ti-sdk-omapl138-lcdk-01.00.00# source linux-devkit/environment-setup
    [linux-devkit]:/home/usr/SDKs/ti-sdk-omapl138-lcdk-01.00.00> $PATH
    bash: /home/usr/SDKs/ti-sdk-omapl138-lcdk-01.00.00/linux-devkit/bin:/home/usr/SDKs/ti-sdk-omapl138-lcdk-01.00.00/linux-devkit/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games: No such file or directory
    [linux-devkit]:/home/usr/SDKs/ti-sdk-omapl138-lcdk-01.00.00> ls
    bin filesystem setup.sh
    board-support host-tools setup_uimage-tftp_fs-nfs.minicom
    docs linux-3.1.10 u-boot-2010.12-psp03.21.00.04.lcdk
    dsp-tools linux-devkit
    example-applications Rules.make
    [linux-devkit]:/home/usr/SDKs/ti-sdk-omapl138-lcdk-01.00.00> cd u-boot-2010.12-psp03.21.00.04.lcdk
    [linux-devkit]:/home/usr/SDKs/ti-sdk-omapl138-lcdk-01.00.00/u-boot-2010.12-psp03.21.00.04.lcdk> make all CROSS_COMPILE=arm-arago-linux-gnueabi-
    for dir in tools examples/standalone examples/api arch/arm/cpu/arm926ejs /home/usr/SDKs/ti-sdk-omapl138-lcdk-01.00.00/u-boot-2010.12-psp03.21.00.04.lcdk/arch/arm/cpu/arm926ejs/ ; do \
    make -C $dir _depend ; done
    make[1]: Entering directory `/home/usr/SDKs/ti-sdk-omapl138-lcdk-01.00.00/u-boot-2010.12-psp03.21.00.04.lcdk/tools'
    make[1]: Nothing to be done for `_depend'.
    make[1]: Leaving directory `/home/usr/SDKs/ti-sdk-omapl138-lcdk-01.00.00/u-boot-2010.12-psp03.21.00.04.lcdk/tools'
    make[1]: Entering directory `/home/usr/SDKs/ti-sdk-omapl138-lcdk-01.00.00/u-boot-2010.12-psp03.21.00.04.lcdk/examples/standalone'
    make[1]: Nothing to be done for `_depend'.
    make[1]: Leaving directory `/home/usr/SDKs/ti-sdk-omapl138-lcdk-01.00.00/u-boot-2010.12-psp03.21.00.04.lcdk/examples/standalone'
    make[1]: Entering directory `/home/usr/SDKs/ti-sdk-omapl138-lcdk-01.00.00/u-boot-2010.12-psp03.21.00.04.lcdk/examples/api'
    make[1]: Nothing to be done for `_depend'.
    make[1]: Leaving directory `/home/usr/SDKs/ti-sdk-omapl138-lcdk-01.00.00/u-boot-2010.12-psp03.21.00.04.lcdk/examples/api'
    make[1]: Entering directory `/home/usr/SDKs/ti-sdk-omapl138-lcdk-01.00.00/u-boot-2010.12-psp03.21.00.04.lcdk/arch/arm/cpu/arm926ejs'
    make[1]: Nothing to be done for `_depend'.
    make[1]: Leaving directory `/home/usr/SDKs/ti-sdk-omapl138-lcdk-01.00.00/u-boot-2010.12-psp03.21.00.04.lcdk/arch/arm/cpu/arm926ejs'
    make[1]: Entering directory `/home/usr/SDKs/ti-sdk-omapl138-lcdk-01.00.00/u-boot-2010.12-psp03.21.00.04.lcdk/arch/arm/cpu/arm926ejs'
    make[1]: Nothing to be done for `_depend'.
    make[1]: Leaving directory `/home/usr/SDKs/ti-sdk-omapl138-lcdk-01.00.00/u-boot-2010.12-psp03.21.00.04.lcdk/arch/arm/cpu/arm926ejs'
    make -C tools all
    make[1]: Entering directory `/home/usr/SDKs/ti-sdk-omapl138-lcdk-01.00.00/u-boot-2010.12-psp03.21.00.04.lcdk/tools'
    make[2]: Entering directory `/home/usr/SDKs/ti-sdk-omapl138-lcdk-01.00.00/u-boot-2010.12-psp03.21.00.04.lcdk/tools/uflash'
    gcc -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -I /home/usr/SDKs/ti-sdk-omapl138-lcdk-01.00.00/u-boot-2010.12-psp03.21.00.04.lcdk/include -DUSE_HOSTCC -o uflash /home/usr/SDKs/ti-sdk-omapl138-lcdk-01.00.00/u-boot-2010.12-psp03.21.00.04.lcdk/tools/uflash/uflash.c /home/usr/SDKs/ti-sdk-omapl138-lcdk-01.00.00/u-boot-2010.12-psp03.21.00.04.lcdk/lib/crc32.c /home/usr/SDKs/ti-sdk-omapl138-lcdk-01.00.00/u-boot-2010.12-psp03.21.00.04.lcdk/lib/errno.c
    In file included from /home/usr/SDKs/ti-sdk-omapl138-lcdk-01.00.00/u-boot-2010.12-psp03.21.00.04.lcdk/lib/crc32.c:14:
    /home/usr/SDKs/ti-sdk-omapl138-lcdk-01.00.00/u-boot-2010.12-psp03.21.00.04.lcdk/include/compiler.h:55: error: redefinition of typedef 鈥榰int鈥?
    /home/usr/SDKs/ti-sdk-omapl138-lcdk-01.00.00/linux-devkit/arm-arago-linux-gnueabi/usr/include/sys/types.h:153: note: previous declaration of 鈥榰int鈥?was here
    make[2]: *** [uflash] Error 1
    make[2]: Leaving directory `/home/usr/SDKs/ti-sdk-omapl138-lcdk-01.00.00/u-boot-2010.12-psp03.21.00.04.lcdk/tools/uflash'
    make[1]: *** [subdirs] Error 1
    make[1]: Leaving directory `/home/usr/SDKs/ti-sdk-omapl138-lcdk-01.00.00/u-boot-2010.12-psp03.21.00.04.lcdk/tools'
    make: *** [tools] Error 2
    [linux-devkit]:/home/usr/SDKs/ti-sdk-omapl138-lcdk-01.00.00/u-boot-2010.12-psp03.21.00.04.lcdk>

     

  • Hi Rose Duan,

    As i told my previous reply,

    Please create new post for your query, so that many people can able to view your thread for answering it.

    Create new thread & paste it here and i will also work on it.

  • Hi Rose,

    I have not worked on this in awhile, but never found a solution other than just not building the flash burner program.

    Robert Lee