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.

gmake: *** [uartEcho.obj] Error 1

Hey guys!

Im trying to build som example projects for my beaglebone, but no matter what I do I can't seem to get CCS to compile. As soon as I try to build a project I just get gmake Error 1. I've tried to look up what this means, but haven't really gotten anywhere. Here is my buildlog for the UART echo example:


**** Build of configuration Debug for project uartEcho ****

C:\ti\ccsv5\utils\bin\gmake -k all
gmake: *** [uartEcho.obj] Error 1
gmake: Target `all' not remade because of errors.

**** Build Finished ****

Even when I just try to clean a project I get:

gmake: [clean] Error 1 (ignored)

My CCS installation is located in C:\ti

My Code sourcery is installed in C:\Sourcery_Gpp_Lite

Cygwin is installed in c:\cygwin (at first I tried with just the basic packages + those that were recommended in the wiki, but since that didn't work I installed all of them, still no luck)

I'm running on Win7 64 bit, and I've tried reinstalling everything. There seems to be something I'm missing, anybody have any clues?

  • I now tried to compile a project with cygwin to see if it worked there. I got this:

    LarsWin7@LarsWin7-PC /AM335X_StarterWare_02_00_00_05/build/armv7a/gcc/am335x/bea                                                  glebone/uart
    $ make
    make[1]: Entering directory `/AM335X_StarterWare_02_00_00_05/build/armv7a/gcc/am                                                  335x/drivers'
    arm-none-eabi-gcc -mcpu=cortex-a8 -c -g -O2 -mlong-calls -fdata-sections -ffunct                                                  ion-sections -Wall -I ../../../../../include -I ../../../../../include/hw -I ../                                                  ../../../../include/armv7a -I ../../../../../include/armv7a/am335x -I ../../../.                                                  ./../mmcsdlib/include -I ../../../../../nandlib/include -I ../../../../../usblib                                                  /include -I ../../../../../grlib/include -I ../../../../../bootloader/include -I                                                   ../../../../../third_party/fatfs/src/  -D am335x_15x15 -D MMCSD ../../../../../                                                  /drivers/dmtimer.c          ../../../../..//drivers/uart_irda_cir.c    ../../../                                                  ../..//drivers/ecap.c             ../../../../..//drivers/mcspi.c            ../                                                  ../../../..//drivers/mcasp.c            ../../../../..//drivers/mdio.c                                                              ../../../../..//drivers/phy.c            ../../../../..//drivers/cpsw.c                                                              ../../../../..//drivers/hsi2c.c            ../../../../..//drivers/gpio_v2.                                                  c          ../../../../..//drivers/watchdog.c         ../../../../..//drivers/ed                                                  ma.c             ../../../../..//drivers/rtc.c              ../../../../..//driv                                                  ers/raster.c           ../../../../..//drivers/gpmc.c            ../../../../../                                                  /drivers/elm.c            ../../../../..//drivers/tsc_adc.c         ../../../../                                                  ..//drivers/hs_mmcsd.c          ../../../../..//drivers/mailbox.c          ../..                                                  /../../..//drivers/usbphyGS70.c      ../../../../..//drivers/usb.c                                                                ../../../../..//drivers/cppi41dma.c    ../../../../..//drivers/dcan.c
    arm-none-eabi-ar -c -r ../../../../..//binary/armv7a/gcc/am335x/drivers/libdrive                                                  r.a *.o
    make[1]: Leaving directory `/AM335X_StarterWare_02_00_00_05/build/armv7a/gcc/am3                                                  35x/drivers'
    make[1]: Entering directory `/AM335X_StarterWare_02_00_00_05/build/armv7a/gcc/am                                                  335x/system_config'
    arm-none-eabi-gcc -mcpu=cortex-a8 -c -g -O2 -mlong-calls -fdata-sections -ffunct                                                  ion-sections -Wall -I ../../../../../include -I ../../../../../include/hw -I ../                                                  ../../../../include/armv7a -I ../../../../../include/armv7a/am335x -I ../../../.                                                  ./../mmcsdlib/include -I ../../../../../nandlib/include -I ../../../../../usblib                                                  /include -I ../../../../../grlib/include -I ../../../../../bootloader/include -I                                                   ../../../../../third_party/fatfs/src/  -D am335x_15x15 -D MMCSD ../../../../../                                                  /system_config/armv7a/gcc/cpu.c                   ../../../../..//system_config/                                                  armv7a/gcc/cp15.c                  ../../../../..//system_config/armv7a/gcc/init                                                  .S                  ../../../../..//system_config/armv7a/am335x/interrupt.c                                                                   ../../../../..//system_config/armv7a/am335x/gcc/exceptionhandler.S                                                        ../../../../..//system_config/armv7a/am335x/startup.c                   ../.                                                  ./../../..//system_config/armv7a/am335x/clock.c
    arm-none-eabi-ar -c -r ../../../../..//binary/armv7a/gcc/am335x/system_config/li                                                  bsystem.a *.o
    make[1]: Leaving directory `/AM335X_StarterWare_02_00_00_05/build/armv7a/gcc/am3                                                  35x/system_config'
    make[1]: Entering directory `/AM335X_StarterWare_02_00_00_05/build/armv7a/gcc/am                                                  335x/beaglebone/platform'
    arm-none-eabi-gcc -D DMA_MODE -mcpu=cortex-a8 -c -g -O2 -mlong-calls -fdata-sect                                                  ions -ffunction-sections -Wall -I ../../../../../../include -I ../../../../../..                                                  /include/hw -I ../../../../../../include/armv7a -I ../../../../../../include/arm                                                  v7a/am335x -I ../../../../../../mmcsdlib/include -I ../../../../../../nandlib/in                                                  clude -I ../../../../../../usblib/include -I ../../../../../../grlib/include -I                                                   ../../../../../../bootloader/include -I ../../../../../../third_party/fatfs/src/                                                    -D am335x_15x15 -D MMCSD ../../../../../..//platform/beaglebone/*.c
    arm-none-eabi-ar -c -r ../../../../../..//binary/armv7a/gcc/am335x/beaglebone/pl                                                  atform/libplatform.a *.o
    make[1]: Leaving directory `/AM335X_StarterWare_02_00_00_05/build/armv7a/gcc/am3                                                  35x/beaglebone/platform'
    arm-none-eabi-gcc  -mcpu=cortex-a8 -c -g -O2 -mlong-calls -fdata-sections -ffunc                                                  tion-sections -Wall -I ../../../../../../include -I ../../../../../../include/hw                                                   -I ../../../../../../include/armv7a -I ../../../../../../include/armv7a/am335x                                                   -I ../../../../../../mmcsdlib/include -I ../../../../../../nandlib/include -I ..                                                  /../../../../../usblib/include -I ../../../../../../grlib/include -I ../../../..                                                  /../../bootloader/include -I ../../../../../../third_party/fatfs/src/  -D am335x                                                  _15x15 -D MMCSD ../../../../../../examples/beaglebone/uart/*.c
    arm-none-eabi-ld -e Entry --gc-sections -L/arm-none-eabi/lib/ -L/lib/gcc/arm-non                                                  e-eabi/4.3.3/  -T uartEcho.lds -o \
                  ../../../../../..//binary/armv7a/gcc/am335x/beaglebone/uart/uartEc                                                  ho.out \
                  ../../../../../../build/armv7a/gcc/am335x/drivers/*.o ../../../../                                                  ../../build/armv7a/gcc/am335x/system_config/*.o ../../../../../../build/armv7a/g                                                  cc/am335x/beaglebone/platform/*.o  *.o -lc -lgcc
    C:\SourceryGppLite\bin\arm-none-eabi-ld.exe: warning: library search path "/lib/                                                  gcc/arm-none-eabi/4.3.3/" is unsafe for cross-compilation
    C:\SourceryGppLite\bin\arm-none-eabi-ld.exe: cannot find -lc
    makefile:55: recipe for target `bin' failed
    make: *** [bin] Error 1

    So basically to me the last five lines seem to be causing the problems. "cannot find -lc", is this referring to cygwin missing libc? As written in the instructions, I installed all the packages from cygwin to avoid problems like missing libraries... So is this the reason why CCS isn't working either? How should I continue from here =/ ?

    Thanks in advance!

  • Lars,

           Lets focus on fixing the issue on CCS first. Can you give more information on the CCS version you are using  and the packages you installed. Is the TMS470 tool chain installed along with CCS?

    Regards

    Baskaran

  • Hi Baskaran,

    I have installed 5.1.1.00031 of CCS, here you have what CCS shows me under the "Installed software" tab of the installation details:
    6747.installed.txt

    In the installation directory of CCS I have a TMS470 folder (which I suppose is the tool chain that was installed with CCS), C:\ti\ccsv5\tools\compiler\tms470.

    I basically  just tried to follow the guide in the starterware wiki: http://processors.wiki.ti.com/index.php/StarterWare_Getting_Started_02.00.XX.XX#CodeSourcery_with_CCSv5

    It said to install CCS 5.1.0.09000, but I figured it would be better to install the newer version instead (5.1.1.00031).

    I also installed arm-2009q1-161-arm-none-eabi.exe, and Cygwin with all the packages.

    All installations was done with typical configuration from the beginning, but when I saw that code sourcery needed a path without spaces I reinstalled it.

    Thats all I installed. Thanks for your help!

    Kind regards

    Lars

  • Hello Lars,

    I would like to address the issues you faced with Cygwin build. I do not think the issue you are facing with CCS build and the one with Cygwin build are inter-related.

    Build through Cygwin

    There is a step missing which you have to perform. Cygwin should be told about the path to CodeSourcery installation which is the Cross-Compiler for ARM. This path should be assigned to a variable named ‘LIB_PATH’. Please refer to ‘build/armv7a/gcc/makedefs’ to understand the significance of ‘LIB_PATH’ variable. This variable has to be exported using the ‘export’ command.

    Example,

    • export LIB_PATH = “D:/CodeSourcery/Sourcery_G++_Lite”

    Remember that assigning the same path with backward slash (used by Windows) would not work. As in,

    • export LIB_PATH=” D:\CodeSourcery\Sourcery_G++_Lite”

    In the makedefs file, LIB_PATH is used to resolve other two variables namely LIB_GCC and LIB_C.

    Please revert back for any queries.

    Thanks and Regards.

    Gurudutt.

  • Hi Gurudutt!

    I was absolutely sure that I had run this command, but obviously not. It made cygwin work to compile with, and the .out files can be successfully run on the Beaglebone. As you thought however, the issue (gmake error 1) with CCS still remains, so if anyone knows how to fix that as well that would be awesome :)

    Thank you!

    Kind regards

    Lars

  • Ok guys, I managed to fix it! My firewall (Comodo Internet Security) seems to be the cause of the problem. CCS runs a temporary make bat file from a temp-directory, and a new one at each compile instance. My firewall automatically put new bat-files in a sandbox mode, resulting in a gmake error 1. I suspected at an early state that the firewall was the problem, so I just turned it off, but the error still remained, and I hence thought the issue was somewhere else. I now tried having the firewall going but disabling the system protection part of it, and voila!

    Thanks for your help guys, I greatly appreciate it!

    /Lars

  • Yes, this is the problem. But in my case i had to uninstall Comodo Security in order to solve the gmake error.

    10x