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.

Make Error when Building Starterware SDK Example Projects

Hi,

I am trying to build the CCS example projects in the starterware SDK. I followed the steps in the link "http://processors.wiki.ti.com/index.php/AM335X_StarterWare_Environment_Setup#GCC.C2.A0from_Command_Line_in.C2.A0Linux.2FCygwin" .

I also set up my tool chain. I installed the Linaro tool chain under my home directory: /home/yi/gcc-arm-none-eabi-4_7-2012q4. So after I export the environment variables, the environment variables showed as the below, 

$ echo $PATH  /home/yi/gcc-arm-none-eabi-4_7-2012q4/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games

$ echo $LIB_PATH /home/yi/gcc-arm-none-eabi-4_7-2012q4

Then I did make operation, I got the following error. It cannot find the -lgcc:

yi@yi-virtual-machine:~/AM335X_StarterWare_02_00_00_07/build/armv7a/gcc/am335x/evmskAM335x$ make
make[1]: Entering directory `/home/yi/AM335X_StarterWare_02_00_00_07/build/armv7a/gcc/am335x/evmskAM335x/accelerometer'
make TARGET_MODE=debug lib
make[2]: Entering directory `/home/yi/AM335X_StarterWare_02_00_00_07/build/armv7a/gcc/am335x/evmskAM335x/accelerometer'
make[3]: Entering directory `/home/yi/AM335X_StarterWare_02_00_00_07/build/armv7a/gcc/am335x/drivers'
mkdir -p Debug
arm-none-eabi-gcc -mcpu=cortex-a8 -c  -mlong-calls -fdata-sections -funsigned-char -ffunction-sections -Wall -I../../../../..//include -I../../../../..//include/hw -I../../../../..//include/armv7a -I../../../../..//include/armv7a/am335x -I../../../../..//grlib/include -I../../../../..//usblib/include -I../../../../..//ipclite/include -I../../../../..//nandlib/include -I../../../../..//mmcsdlib/include -I../../../../..//bootloader/include -I../../../../../third_party/fatfs/src -I../../../../..//norlib/include -I"/home/yi/gcc-arm-none-eabi-4_7-2012q4/include" -Dgcc -Dam335x  -D SUPPORT_UNALIGNED -D MMCSD -g ../../../../..//drivers/dmtimer.c ../../../../..//drivers/uart_irda_cir.c ../../../../..//drivers/ecap.c ../../../../..//drivers/ehrpwm.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/edma.c ../../../../..//drivers/rtc.c ../../../../..//drivers/raster.c ../../../../..//drivers/gpmc.c ../../../../..//drivers/elm.c ../../../../..//drivers/tsc_adc.c ../../../../..//drivers/hs_mmcsd.c ../../../../..//drivers/mailbox.c ../../../../..//drivers/usb.c ../../../../..//drivers/cppi41dma.c ../../../../..//drivers/dcan.c ../../../../..//drivers/usbphyGS70.c	
arm-none-eabi-ar -c -r Debug/libdrivers.a *.o*
make[3]: Leaving directory `/home/yi/AM335X_StarterWare_02_00_00_07/build/armv7a/gcc/am335x/drivers'
make[3]: Entering directory `/home/yi/AM335X_StarterWare_02_00_00_07/build/armv7a/gcc/am335x/evmskAM335x/platform'
mkdir -p Debug
arm-none-eabi-gcc -mcpu=cortex-a8 -c  -mlong-calls -fdata-sections -funsigned-char -ffunction-sections -Wall -I../../../../../..//include -I../../../../../..//include/hw -I../../../../../..//include/armv7a -I../../../../../..//include/armv7a/am335x -I../../../../../..//grlib/include -I../../../../../..//usblib/include -I../../../../../..//ipclite/include -I../../../../../..//nandlib/include -I../../../../../..//mmcsdlib/include -I../../../../../..//bootloader/include -I../../../../../../third_party/fatfs/src -I../../../../../..//norlib/include -I"/home/yi/gcc-arm-none-eabi-4_7-2012q4/include" -Dgcc -Dam335x -DevmskAM335x -D SUPPORT_UNALIGNED -D MMCSD -g ../../../../../..//platform/evmskAM335x/hsi2c.c ../../../../../..//platform/evmskAM335x/dmtimer.c ../../../../../..//platform/evmskAM335x/uart.c ../../../../../..//platform/evmskAM335x/uartConsole.c ../../../../../..//platform/evmskAM335x/tscAdc.c ../../../../../..//platform/evmskAM335x/sysdelay.c ../../../../../..//platform/evmskAM335x/sysperf.c ../../../../../..//platform/evmskAM335x/lcd.c ../../../../../..//platform/evmskAM335x/gpio.c ../../../../../..//platform/evmskAM335x/watchdog.c ../../../../../..//platform/evmskAM335x/mcasp.c ../../../../../..//platform/evmskAM335x/cpsw.c ../../../../../..//platform/evmskAM335x/edma.c ../../../../../..//platform/evmskAM335x/rtc.c ../../../../../..//platform/evmskAM335x/usb.c ../../../../../..//platform/evmskAM335x/hs_mmcsd.c ../../../../../..//platform/evmskAM335x/ctlregcontext.c ../../../../../..//platform/evmskAM335x/pwmss.c
arm-none-eabi-ar -c -r Debug/libplatform.a *.o*
make[3]: Leaving directory `/home/yi/AM335X_StarterWare_02_00_00_07/build/armv7a/gcc/am335x/evmskAM335x/platform'
make[3]: Entering directory `/home/yi/AM335X_StarterWare_02_00_00_07/build/armv7a/gcc/am335x/system_config'
mkdir -p Debug
arm-none-eabi-gcc -mcpu=cortex-a8 -c  -mlong-calls -fdata-sections -funsigned-char -ffunction-sections -Wall -I../../../../..//include -I../../../../..//include/hw -I../../../../..//include/armv7a -I../../../../..//include/armv7a/am335x -I../../../../..//grlib/include -I../../../../..//usblib/include -I../../../../..//ipclite/include -I../../../../..//nandlib/include -I../../../../..//mmcsdlib/include -I../../../../..//bootloader/include -I../../../../../third_party/fatfs/src -I../../../../..//norlib/include -I"/home/yi/gcc-arm-none-eabi-4_7-2012q4/include" -Dgcc -Dam335x  -D SUPPORT_UNALIGNED -D MMCSD -g ../../../../..//system_config/armv7a/mmu.c ../../../../..//system_config/armv7a/cache.c ../../../../..//system_config/armv7a/gcc/cpu.c ../../../../..//system_config/armv7a/gcc/cp15.S ../../../../..//system_config/armv7a/gcc/init.S ../../../../..//system_config/armv7a/am335x/interrupt.c ../../../../..//system_config/armv7a/am335x/startup.c ../../../../..//system_config/armv7a/am335x/clock.c ../../../../..//system_config/armv7a/am335x/gcc/exceptionhandler.S
arm-none-eabi-ar -c -r Debug/libsystem_config.a *.o*
make[3]: Leaving directory `/home/yi/AM335X_StarterWare_02_00_00_07/build/armv7a/gcc/am335x/system_config'
make[3]: Entering directory `/home/yi/AM335X_StarterWare_02_00_00_07/build/armv7a/gcc/utils'
mkdir -p Debug
arm-none-eabi-gcc -mcpu=cortex-a8 -c  -mlong-calls -fdata-sections -funsigned-char -ffunction-sections -Wall -I../../../..//include -I../../../..//include/hw -I../../../..//include/armv7a -I../../../..//include/armv7a/ -I../../../..//grlib/include -I../../../..//usblib/include -I../../../..//ipclite/include -I../../../..//nandlib/include -I../../../..//mmcsdlib/include -I../../../..//bootloader/include -I../../../../third_party/fatfs/src -I../../../..//norlib/include -I"/home/yi/gcc-arm-none-eabi-4_7-2012q4/include" -Dgcc   -D SUPPORT_UNALIGNED -D MMCSD -g ../../../..//utils/cmdline.c ../../../..//utils/delay.c ../../../..//utils/perf.c ../../../..//utils/systick.c ../../../..//utils/uartStdio.c
arm-none-eabi-ar -c -r Debug/libutils.a *.o*
make[3]: Leaving directory `/home/yi/AM335X_StarterWare_02_00_00_07/build/armv7a/gcc/utils'
make[2]: Leaving directory `/home/yi/AM335X_StarterWare_02_00_00_07/build/armv7a/gcc/am335x/evmskAM335x/accelerometer'
make TARGET_MODE=Debug bin
make[2]: Entering directory `/home/yi/AM335X_StarterWare_02_00_00_07/build/armv7a/gcc/am335x/evmskAM335x/accelerometer'
arm-none-eabi-gcc  -mcpu=cortex-a8 -c -g -mlong-calls -fdata-sections -funsigned-char -ffunction-sections -Wall -I../../../../../..//include -I../../../../../..//include/hw -I../../../../../..//include/armv7a -I../../../../../..//include/armv7a/am335x -I../../../../../..//grlib/include -I../../../../../..//usblib/include -I../../../../../..//ipclite/include -I../../../../../..//nandlib/include -I../../../../../..//mmcsdlib/include -I../../../../../..//bootloader/include -I../../../../../../third_party/fatfs/src -I../../../../../..//norlib/include -I"/home/yi/gcc-arm-none-eabi-4_7-2012q4/include" -Dgcc -Dam335x -DevmskAM335x -D SUPPORT_UNALIGNED -D MMCSD ../../../../../../examples/evmskAM335x/accelerometer//*.c
arm-none-eabi-ld -e Entry -u Entry -u __aeabi_uidiv -u __aeabi_idiv --gc-sections -L"/home/yi/gcc-arm-none-eabi-4_7-2012q4/arm-none-eabi/lib/" -L"/home/yi/gcc-arm-none-eabi-4_7-2012q4/lib/gcc/arm-none-eabi/4.3.3/" -L../../../../../..//binary/armv7a/gcc/am335x/drivers/Debug -L../../../../../..//binary/armv7a/gcc/am335x/evmskAM335x/platform/Debug -L../../../../../..//binary/armv7a/gcc/am335x/system_config/Debug -L../../../../../..//binary/armv7a/gcc/am335x/ipclite/Debug -L../../../../../..//binary/armv7a/gcc/utils/Debug -L../../../../../..//binary/armv7a/gcc/am335x/usblib/Debug -L../../../../../..//binary/armv7a/gcc/grlib/Debug -L../../../../../..//binary/armv7a/gcc/nandlib/Debug -L../../../../../..//binary/armv7a/gcc/mmcsdlib/Debug -L/Debug -o Debug/i2cAccelerometer.out -Map Debug/i2cAccelerometer.map \
	      Debug/*.o* -T i2cAccelerometer.lds -ldrivers -lutils -lplatform -lsystem_config -lc -lgcc -ldrivers -lutils -lplatform -lsystem_config -lc -lgcc 
arm-none-eabi-ld: cannot find -lgcc
arm-none-eabi-ld: cannot find -lgcc
make[2]: *** [bin] Error 1
make[2]: Leaving directory `/home/yi/AM335X_StarterWare_02_00_00_07/build/armv7a/gcc/am335x/evmskAM335x/accelerometer'
make[1]: *** [debug] Error 2
make[1]: Leaving directory `/home/yi/AM335X_StarterWare_02_00_00_07/build/armv7a/gcc/am335x/evmskAM335x/accelerometer'
make: *** [all] Error 2

I think my tool chain is set up correctly. I don't know how to fix this problem.

About my development:
Host: VMware Ubuntu 14.04 LTS
Linaro tool package: gcc-arm-none-eabi-4_7-2012q4-20121208-linux.tar.bz2
CCS: Code Composer Studio 6.1.0
Target: AM335x Starter Kit Rev 1.2D
--

Thanks,
Yi