• Join
  • Sign In with my.TI Login
Texas Instruments
  • Products
  • Applications
  • Tools & Software
  • Support & Community
  • Sample & Buy
  • About TI
Sample & Purchase Cart Sample & Purchase Cart
  • Search
  • Advanced
TI E2E™ Community
  • Support Forums
  • Blogs
  • Groups
  • Videos
  • 简体中文
  • More ...
TI Home » TI E2E Community » Support Forums » Embedded Software » StarterWare » StarterWare forum » gmake: *** [uartEcho.obj] Error 1
Share
StarterWare
  • Forum
Options
  • Subscribe via RSS

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

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

This question is answered
Lars L.
Posted by Lars L.
on Mar 20 2012 07:57 AM
Intellectual305 points

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?

Report Abuse
  • Reply
You have posted to a forum that requires a moderator to approve posts before they are publicly available.
All Replies
  • Lars L.
    Posted by Lars L.
    on Mar 20 2012 11:18 AM
    Intellectual305 points

    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!

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Baskaran Chidambaram
    Posted by Baskaran Chidambaram
    on Mar 21 2012 00:59 AM
    Expert4435 points

    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

    StarterWare
    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Lars L.
    Posted by Lars L.
    on Mar 21 2012 03:47 AM
    Intellectual305 points

    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

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Gurudutt Bharadwaj
    Posted by Gurudutt Bharadwaj
    on Mar 21 2012 05:10 AM
    Verified Answer
    Verified by Baskaran Chidambaram
    Prodigy625 points

    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.

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Lars L.
    Posted by Lars L.
    on Mar 21 2012 05:51 AM
    Intellectual305 points

    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

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Lars L.
    Posted by Lars L.
    on Mar 21 2012 06:09 AM
    Verified Answer
    Verified by Baskaran Chidambaram
    Intellectual305 points

    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

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Males Codrin
    Posted by Males Codrin
    on Jun 04 2013 08:47 AM
    Prodigy90 points

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

    10x

    ccsv4 comodo error gmake
    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
TI E2E™ Community
  • Support Forums
  • Blogs
  • Videos
  • Groups
  • Site Support & Feedback
  • Settings
TI E2E™ Community Groups
  • TI University Program
  • Make the Switch
  • Microcontroller Projects
  • Motor Drive & Control
Other Communities
  • Deyisupport
  • Designsomething.org
  • beagleboard.org
  • TI on Element 14
  • TI on TechXchangeSM
Other Technical & Support Resources
  • WEBENCH® Design Center
  • Product Information Centers
  • Technical Documents
  • TI Design Network
  • TI Technical Articles
  • TI Training

All content and materials on this site are provided "as is". TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with regard to these materials, including but not limited to all implied warranties and conditions of merchantability, fitness for a particular purpose, title and non-infringement of any third party intellectual property right. TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with respect to these materials. No license, either express or implied, by estoppel or otherwise, is granted by TI. Use of the information on this site may require a license from a third party, or a license from TI.

Content on this site may contain or be subject to specific guidelines or limitations on use. All postings and use of the content on this site are subject to the Terms of Use of the site; third parties using this content agree to abide by any limitations or guidelines and to comply with the Terms of Use of this site. TI, its suppliers and providers of content reserve the right to make corrections, deletions, modifications, enhancements, improvements and other changes to the content and materials, its products, programs and services at any time or to move or discontinue any content, products, programs, or services without notice.

Follow Us Texas Instruments on Facebook Texas Instruments on Twitter Texas Instruments on LinkedIn Texas Instruments on Google+
TI Worldwide | Contact Us | my.TI Login | Site Map | Corporate Citizenship | mobile m.ti.com (Mobile Version)

TI is a global semiconductor design and manufacturing company. Innovate with 100,000+ analog ICs and
embedded processors, along with software, tools and the industry’s largest sales/support staff.

© Copyright 1995-2013 Texas Instruments Incorporated. All rights reserved.
Trademarks | Privacy Policy | Terms of Use