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.

编译starterware 例子的时候遇到的问题



Hello! 编译starterware 例子的时候遇到下面的问题:

make TARGET_MODE=debug lib
make[1]: Entering directory '/cygdrive/d/ti/AM335X_StarterWare_02_00_01_01/build /armv7a/gcc/am335x/evmskAM335x/game'
make[2]: Entering directory '/cygdrive/d/ti/AM335X_StarterWare_02_00_01_01/build /armv7a/gcc/am335x/drivers'
mkdir -p Debug
arm-none-eabi-gcc -mcpu=cortex-a8 -mtune=cortex-a8 -march=armv7-a -c -mlong-cal ls -fdata-sections -funsigned-char -ffunction-sections -Wall -I../../../../..//i nclude -I../../../../..//include/hw -I../../../../..//include/armv7a -I../../../ ../..//include/armv7a/am335x -I../../../../..//grlib/include -I../../../../..//u sblib/include -I../../../../..//ipclite/include -I../../../../..//nandlib/includ e -I../../../../..//mmcsdlib/include -I../../../../..//bootloader/include -I../. ./../../../third_party/fatfs/src -I../../../../..//norlib/include -I"/opt/gcc-ar m-none-eabi/include" -Dgcc -Dam335x -D SUPPORT_UNALIGNED -D MMCSD -DUARTCONSOLE -g ../../../../..//drivers/dmtimer.c ../../../../..//drivers/uart_irda_cir.c .. /../../../..//drivers/ecap.c ../../../../..//drivers/ehrpwm.c ../../../../..//dr ivers/mcspi.c ../../../../..//drivers/mcasp.c ../../../../..//drivers/mdio.c ../ ../../../..//drivers/phy.c ../../../../..//drivers/cpsw.c ../../../../..//driver s/hsi2c.c ../../../../..//drivers/gpio_v2.c ../../../../..//drivers/watchdog.c . ./../../../..//drivers/edma.c ../../../../..//drivers/rtc.c ../../../../..//driv ers/raster.c ../../../../..//drivers/gpmc.c ../../../../..//drivers/elm.c ../../ ../../..//drivers/tsc_adc.c ../../../../..//drivers/hs_mmcsd.c ../../../../..//d rivers/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[2]: Leaving directory '/cygdrive/d/ti/AM335X_StarterWare_02_00_01_01/build/ armv7a/gcc/am335x/drivers'
make[2]: Entering directory '/cygdrive/d/ti/AM335X_StarterWare_02_00_01_01/build /armv7a/gcc/am335x/evmskAM335x/platform'
mkdir -p Debug
arm-none-eabi-gcc -mcpu=cortex-a8 -mtune=cortex-a8 -march=armv7-a -c -mlong-cal ls -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"/opt/gcc-arm-none-eabi/include" -Dgcc -Dam335x -DevmskA M335x -D SUPPORT_UNALIGNED -D MMCSD -DUARTCONSOLE -g ../../../../../..//platform /evmskAM335x/hsi2c.c ../../../../../..//platform/evmskAM335x/dmtimer.c ../../../ ../../..//platform/evmskAM335x/uart.c ../../../../../..//platform/evmskAM335x/ua rtConsole.c ../../../../../..//platform/evmskAM335x/tscAdc.c ../../../../../..// platform/evmskAM335x/sysdelay.c ../../../../../..//platform/evmskAM335x/sysperf. c ../../../../../..//platform/evmskAM335x/lcd.c ../../../../../..//platform/evms kAM335x/gpio.c ../../../../../..//platform/evmskAM335x/watchdog.c ../../../../.. /..//platform/evmskAM335x/mcasp.c ../../../../../..//platform/evmskAM335x/cpsw.c ../../../../../..//platform/evmskAM335x/edma.c ../../../../../..//platform/evms kAM335x/rtc.c ../../../../../..//platform/evmskAM335x/board.c ../../../../../../ /platform/evmskAM335x/usb.c ../../../../../..//platform/evmskAM335x/hs_mmcsd.c . ./../../../../..//platform/evmskAM335x/ctlregcontext.c ../../../../../..//platfo rm/evmskAM335x/pwmss.c ../../../../../..//platform/evmskAM335x/eeprom.c
arm-none-eabi-ar -c -r Debug/libplatform.a *.o*
make[2]: Leaving directory '/cygdrive/d/ti/AM335X_StarterWare_02_00_01_01/build/ armv7a/gcc/am335x/evmskAM335x/platform'
make[2]: Entering directory '/cygdrive/d/ti/AM335X_StarterWare_02_00_01_01/build /armv7a/gcc/am335x/system_config'
mkdir -p Debug
arm-none-eabi-gcc -mcpu=cortex-a8 -mtune=cortex-a8 -march=armv7-a -c -mlong-cal ls -fdata-sections -funsigned-char -ffunction-sections -Wall -I../../../../..//i nclude -I../../../../..//include/hw -I../../../../..//include/armv7a -I../../../ ../..//include/armv7a/am335x -I../../../../..//grlib/include -I../../../../..//u sblib/include -I../../../../..//ipclite/include -I../../../../..//nandlib/includ e -I../../../../..//mmcsdlib/include -I../../../../..//bootloader/include -I../. ./../../../third_party/fatfs/src -I../../../../..//norlib/include -I"/opt/gcc-ar m-none-eabi/include" -Dgcc -Dam335x -D SUPPORT_UNALIGNED -D MMCSD -DUARTCONSOLE -mfpu=neon -mfloat-abi=softfp -g ../../../../..//system_config/armv7a/mmu.c ../ ../../../..//system_config/armv7a/cache.c ../../../../..//system_config/armv7a/g cc/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_co nfig/armv7a/am335x/clock.c ../../../../..//system_config/armv7a/am335x/device.c ../../../../..//system_config/armv7a/am335x/gcc/exceptionhandler.S
arm-none-eabi-ar -c -r Debug/libsystem_config.a *.o*
make[2]: Leaving directory '/cygdrive/d/ti/AM335X_StarterWare_02_00_01_01/build/armv7a/gcc/am335x/system_config'
make[2]: Entering directory '/cygdrive/d/ti/AM335X_StarterWare_02_00_01_01/build/armv7a/gcc/utils'
mkdir -p Debug
arm-none-eabi-gcc -mcpu=cortex-a8 -mtune=cortex-a8 -march=armv7-a -c -mlong-calls -fdata-sections -funsigned-char -ffunc tion-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"/opt/gcc-arm-none-eabi/include" -Dgcc -D SUPPORT_UNALIGNED -D MMCSD -DUARTCONSOLE -g ../../../.. //utils/ascii.c ../../../..//utils/cmdline.c ../../../..//utils/delay.c ../../../..//utils/perf.c ../../../..//utils/syst ick.c ../../../..//utils/misc.c ../../../..//utils/uartStdio.c ../../../..//utils/board.c ../../../..//utils/consoleUtils .c
arm-none-eabi-ar -c -r Debug/libutils.a *.o*
make[2]: Leaving directory '/cygdrive/d/ti/AM335X_StarterWare_02_00_01_01/build/armv7a/gcc/utils'
make[2]: Entering directory '/cygdrive/d/ti/AM335X_StarterWare_02_00_01_01/build/armv7a/gcc/grlib'
mkdir -p Debug
arm-none-eabi-gcc -mcpu=cortex-a8 -mtune=cortex-a8 -march=armv7-a -c -mlong-calls -fdata-sections -funsigned-char -ffunc tion-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"/opt/gcc-arm-none-eabi/include" -Dgcc -D SUPPORT_UNALIGNED -D MMCSD -DUARTCONSOLE -Darmv7a -g .. /../../..//grlib/*.c ../../../..//grlib/fonts/*.c
arm-none-eabi-ar -c -r Debug/libgrlib.a *.o*
make[2]: Leaving directory '/cygdrive/d/ti/AM335X_StarterWare_02_00_01_01/build/armv7a/gcc/grlib'
make[1]: Leaving directory '/cygdrive/d/ti/AM335X_StarterWare_02_00_01_01/build/armv7a/gcc/am335x/evmskAM335x/game'
make TARGET_MODE=Debug bin
make[1]: Entering directory '/cygdrive/d/ti/AM335X_StarterWare_02_00_01_01/build/armv7a/gcc/am335x/evmskAM335x/game'
arm-none-eabi-gcc -mcpu=cortex-a8 -mtune=cortex-a8 -march=armv7-a -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"/opt/gcc-arm-none-eabi/include" -Dgcc -Dam335x -DevmskAM335x -D SUPPORT_UNALIGNED -D MMCSD -DUARTCONSOLE ../../../../../../examples/evmskAM335x/game//*.c
arm-none-eabi-ld -e Entry -u Entry -u __aeabi_uidiv -u __aeabi_idiv --gc-sections -L"/opt/gcc-arm-none-eabi/arm-none-eabi/lib/" -L"/opt/gcc-arm-none-eabi/lib/gcc/arm-none-eabi/4.7.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/game.out \
-Map Debug/game.map Debug/*.o* \
-ldrivers -lutils -lplatform -lsystem_config -lgrlib -lc -lgcc -ldrivers -lutils -lplatform -lsystem_config -lgrlib -lc -lgcc -T game.lds
D:\cygwin64\opt\gcc-arm-none-eabi\bin\arm-none-eabi-ld.exe: cannot find -lc
D:\cygwin64\opt\gcc-arm-none-eabi\bin\arm-none-eabi-ld.exe: cannot find -lgcc
D:\cygwin64\opt\gcc-arm-none-eabi\bin\arm-none-eabi-ld.exe: cannot find -lc
D:\cygwin64\opt\gcc-arm-none-eabi\bin\arm-none-eabi-ld.exe: cannot find -lgcc
makefile:114: recipe for target 'bin' failed
make[1]: *** [bin] Error 1
make[1]: Leaving directory '/cygdrive/d/ti/AM335X_StarterWare_02_00_01_01/build/armv7a/gcc/am335x/evmskAM335x/game'
makefile:96: recipe for target 'debug' failed
make: *** [debug] Error 2

我是按照下面的教程做的: processors.wiki.ti.com/.../AM335X_StarterWare_Environment_Setup

我也设置了 LIB_PATH.

(Linaro tool chain 安装目录:D:\cygwin64\opt\gcc-arm-none-eabi

 LIB_PATH:/opt/gcc-arm-none-eabi

求教!

  • 请问为什么不用CCS直接编译呢?TMS470是已经内嵌到CCS里面了

  • 你好,其实我也有试过直接用ccs,但是过程中老是报附件中的错误,所以转用gcc了。在ccs中,我的步骤是这样的:先导入所需的example和它用到的包的项目,然后编译用到的包,最后编译example,这里有什么遗漏的吗?非常感谢你的帮助!

  • 这个错误应该是没有编译库工程导致的,请把system和util这两个库工程导入,clean之后重新编译下。然后再clean你现在的example工程然后重新编译

  • 还是有原来的错误,下面是build过程中的信息:

    **** Build of configuration Release for project gpioCardDetect ****

    "D:\\ti\\ccsv6\\utils\\bin\\gmake" -k -j 4 -s all
    'Building file: D:/ti/AM335X_StarterWare_02_00_01_01/examples/evmskAM335x/gpio_card_detect/gpioCardDetect.c'
    'Invoking: ARM Compiler'
    'Finished building: D:/ti/AM335X_StarterWare_02_00_01_01/examples/evmskAM335x/gpio_card_detect/gpioCardDetect.c'
    ' '
    'Building target: ../../../../../../../binary/armv7a/cgt_ccs/am335x/evmskAM335x/gpio_card_detect/Release/gpioCardDetect.out'
    'Invoking: ARM Linker'
    <Linking>
    warning: automatic library build: using library
    "D:\ti\ccsv6\tools\compiler\arm_5.0.11\lib\rtsv7A8_A_le_n_eabi.lib" for the
    first time, so it must be built. This may take a few minutes.
    cygwin warning:
    MS-DOS style path detected: d:/ti/ccsv6/tools/compiler/arm_50~1.11/lib/rtssrc.zip
    Preferred POSIX equivalent is: /cygdrive/d/ti/ccsv6/tools/compiler/arm_50~1.11/lib/rtssrc.zip
    CYGWIN environment variable option "nodosfilewarning" turns off this warning.
    Consult the user's guide for more details about POSIX paths:
    http://cygwin.com/cygwin-ug-net/using.html#using-pathnames
    cygwin warning:
    MS-DOS style path detected: D:\ti\AM335X_StarterWare_02_00_01_01\build\armv7a\cgt_ccs\am335x\evmskAM335x\gpio_card_detect\Release
    Preferred POSIX equivalent is: /cygdrive/d/ti/AM335X_StarterWare_02_00_01_01/build/armv7a/cgt_ccs/am335x/evmskAM335x/gpio_card_detect/Release
    CYGWIN environment variable option "nodosfilewarning" turns off this warning.
    Consult the user's guide for more details about POSIX paths:
    http://cygwin.com/cygwin-ug-net/using.html#using-pathnames
    cygwin warning:
    MS-DOS style path detected: D:\ti\AM335X_StarterWare_02_00_01_01\build\armv7a\cgt_ccs\am335x\evmskAM335x\gpio_card_detect\Release
    Preferred POSIX equivalent is: /cygdrive/d/ti/AM335X_StarterWare_02_00_01_01/build/armv7a/cgt_ccs/am335x/evmskAM335x/gpio_card_detect/Release
    CYGWIN environment variable option "nodosfilewarning" turns off this warning.
    Consult the user's guide for more details about POSIX paths:
    http://cygwin.com/cygwin-ug-net/using.html#using-pathnames
    "tdeh_uwentry_arm.asm", REMARK at line 57: [R0003] Including SP in the list is
    deprecated in ARM mode
    STMFD sp!, {r13-r15}

    "tdeh_uwentry_arm.asm", REMARK at line 80: [R0003] Including SP in the list is
    deprecated in ARM mode
    STMFD sp!, {r13-r15}

    "tdeh_uwentry_arm.asm", REMARK at line 97: [R0002] Including both LR and PC in
    the list is deprecated in
    ARM mode
    LDMIA r13, {r0-r15}

    "tdeh_uwentry_arm.asm", REMARK at line 97: [R0003] Including SP in the list is
    deprecated in ARM mode
    LDMIA r13, {r0-r15}

    "setjmp32.asm", REMARK at line 107: [R0003] Including SP in the list is
    deprecated in ARM mode
    STMIA A1!, {V1 - V8, SP, LR}

    "setjmp32.asm", REMARK at line 151: [R0003] Including SP in the list is
    deprecated in ARM mode
    LDMIA A1!, {V1 - V8, SP, LR}

    cygwin warning:
    MS-DOS style path detected: D:\ti\AM335X_StarterWare_02_00_01_01\build\armv7a\cgt_ccs\am335x\evmskAM335x\gpio_card_detect\Release
    Preferred POSIX equivalent is: /cygdrive/d/ti/AM335X_StarterWare_02_00_01_01/build/armv7a/cgt_ccs/am335x/evmskAM335x/gpio_card_detect/Release
    CYGWIN environment variable option "nodosfilewarning" turns off this warning.
    Consult the user's guide for more details about POSIX paths:
    http://cygwin.com/cygwin-ug-net/using.html#using-pathnames
    --> error: '*.obj
    ' not found
    gmake.exe[1]: *** [library] Error 1
    >> ERROR: mklib: gmake error during rtsv7A8_A_le_n_eabi.lib build
    warning: automatic RTS selection: resolving index library "libc.a" to
    "D:\ti\ccsv6\tools\compiler\arm_5.0.11\lib\rtsv7A8_A_le_n_eabi.lib", but
    "D:\ti\ccsv6\tools\compiler\arm_5.0.11\lib\rtsv7A8_A_le_n_eabi.lib" was not
    found

    undefined first referenced
    symbol in file
    --------- ----------------
    __STACK_END ../../../../../../../binary/armv7a/cgt_ccs/am335x/system_config/Release/system.lib<init.obj>
    __TI_auto_init ../../../../../../../binary/armv7a/cgt_ccs/am335x/system_config/Release/system.lib<init.obj>
    __aeabi_uidivmod D:/ti/AM335X_StarterWare_02_00_01_01/binary/armv7a/cgt_ccs/utils/Release/utils.lib<uartStdio.obj>
    memset D:/ti/AM335X_StarterWare_02_00_01_01/binary/armv7a/cgt_ccs/utils/Release/utils.lib<uartStdio.obj>

    error: unresolved symbols remain
    error: errors encountered during linking;
    "../../../../../../../binary/armv7a/cgt_ccs/am335x/evmskAM335x/gpio_card_det
    ect/Release/gpioCardDetect.out" not built

    >> Compilation failure
    gmake: *** [../../../../../../../binary/armv7a/cgt_ccs/am335x/evmskAM335x/gpio_card_detect/Release/gpioCardDetect.out] Error 1
    gmake: Target `all' not remade because of errors.

    **** Build Finished ****

  • 你有改过代码么?我这边编译原版的代码没出问题呀

  • 你好!

          我没有改过代码。会不会是版本或者安装路径的问题,我的ccs的版本是6.0.1,我安装在D盘里面,不是默认的C盘,这些会不会有影响?你具体都安装了什么,版本是什么,安装在了什么目录?我想照模照样做一遍,看看有没有问题。谢谢!

  • 奇怪,我在我的台式机上把所有软件都重新安装了,就是不行,然后我换到了我的笔记本上,重新安装后居然可以编译通过了!我的台式机是win7的,笔记本是win8的,有影响吗,还是会和其他的软件有冲突,表示很无奈。

  • 这个可能确实和电脑环境有关,我这边是用的CCS老一点的版本,CCS5.4.0,在Win7下编译没有问题