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.

sysbios_ind_sdk_02.01.03.02的SYSBIOS编译问题

Other Parts Discussed in Thread: SYSBIOS

你好,

      我使用的硬件平台为:Beaglebone Black

      软件包为:sysbios_ind_sdk_02.01.03.02

      软件环境为:CCS6.2.0048

      将sysbios_ind_sdk_02.01.03.02中的example导入到ccs中,编译始终无法通过。以下为我的软件设置:

点击编译后,以下为输出的log:

**** Build of configuration am335x_debug for project example_utils ****

"C:\\ti\\ccsv6.2.048\\ccsv6\\utils\\bin\\gmake" -k all 
'Building file: ../am335x_app.cfg'
'Invoking: XDCtools'
"C:/ti/ccsv6.2.048/xdctools_3_32_01_22_core/xs" --xdcpath="C:/ti/bios_6_46_04_53/packages;" xdc.tools.configuro -o configPkg -t gnu.targets.arm.A8F -p ti.platforms.beaglebone -r debug -c "C:/ti/ccsv6.2.048/ccsv6/tools/compiler/gcc-arm-none-eabi-4_9-2015q3" "../am335x_app.cfg"
making package.mak (because of package.bld) ...
configuring am335x_app.xa8fg from package/cfg/am335x_app_pa8fg.cfg ...
generating custom ti.sysbios library makefile ... 
Starting build of library sources ...
making C:/ti/sysbios_ind_sdk_02.01.03.02/sdk/examples/example_utils/src/sysbios/sysbios.aa8fg ...
gmake[1]: Entering directory `C:/ti/sysbios_ind_sdk_02.01.03.02/sdk/examples/example_utils/src/sysbios'
asma8fg C:/ti/bios_6_46_04_53/packages/ti/sysbios/family/arm/IntrinsicsSupport_asm_gnu.asm ...
asma8fg C:/ti/bios_6_46_04_53/packages/ti/sysbios/family/arm/TaskSupport_asm_gnu.asm ...
asma8fg C:/ti/bios_6_46_04_53/packages/ti/sysbios/family/arm/a8/Cache_asm_gnu.sv7A ...
asma8fg C:/ti/bios_6_46_04_53/packages/ti/sysbios/family/arm/a8/Mmu_asm_gnu.sv7A ...
asma8fg C:/ti/bios_6_46_04_53/packages/ti/sysbios/family/arm/a8/TimestampProvider_asm_gnu.sv7A ...
asma8fg C:/ti/bios_6_46_04_53/packages/ti/sysbios/family/arm/a8/intcps/Hwi_asm_gnu.sv7A ...
asma8fg C:/ti/bios_6_46_04_53/packages/ti/sysbios/family/arm/exc/Exception_asm_gnu.asm ...
asma8fg C:/ti/bios_6_46_04_53/packages/ti/sysbios/timers/dmtimer/Timer_asm_gnu.sv7A ...
cla8fg C:/ti/bios_6_46_04_53/packages/ti/sysbios/BIOS.c ...
cla8fg C:/ti/bios_6_46_04_53/packages/ti/sysbios/family/arm/IntrinsicsSupport.c ...
cla8fg C:/ti/bios_6_46_04_53/packages/ti/sysbios/family/arm/TaskSupport.c ...
cla8fg C:/ti/bios_6_46_04_53/packages/ti/sysbios/knl/Clock.c ...
cla8fg C:/ti/bios_6_46_04_53/packages/ti/sysbios/knl/Idle.c ...
cla8fg C:/ti/bios_6_46_04_53/packages/ti/sysbios/knl/Intrinsics.c ...
cla8fg C:/ti/bios_6_46_04_53/packages/ti/sysbios/knl/Queue.c ...
cla8fg C:/ti/bios_6_46_04_53/packages/ti/sysbios/knl/Semaphore.c ...
cla8fg C:/ti/bios_6_46_04_53/packages/ti/sysbios/knl/Swi.c ...
cla8fg C:/ti/bios_6_46_04_53/packages/ti/sysbios/knl/Swi_andn.c ...
cla8fg C:/ti/bios_6_46_04_53/packages/ti/sysbios/knl/Task.c ...
cla8fg C:/ti/bios_6_46_04_53/packages/ti/sysbios/hal/Cache.c ...
cla8fg C:/ti/bios_6_46_04_53/packages/ti/sysbios/hal/Core.c ...
cla8fg C:/ti/bios_6_46_04_53/packages/ti/sysbios/hal/CoreNull.c ...
cla8fg C:/ti/bios_6_46_04_53/packages/ti/sysbios/hal/Hwi.c ...
cla8fg C:/ti/bios_6_46_04_53/packages/ti/sysbios/hal/Hwi_stack.c ...
cla8fg C:/ti/bios_6_46_04_53/packages/ti/sysbios/hal/Hwi_startup.c ...
cla8fg C:/ti/bios_6_46_04_53/packages/ti/sysbios/hal/Timer.c ...
cla8fg C:/ti/bios_6_46_04_53/packages/ti/sysbios/family/arm/a8/Cache.c ...
cla8fg C:/ti/bios_6_46_04_53/packages/ti/sysbios/family/arm/a8/Mmu.c ...
cla8fg C:/ti/bios_6_46_04_53/packages/ti/sysbios/family/arm/a8/TimestampProvider.c ...
cla8fg C:/ti/bios_6_46_04_53/packages/ti/sysbios/heaps/HeapMem.c ...
cla8fg C:/ti/bios_6_46_04_53/packages/ti/sysbios/rts/gnu/ReentSupport.c ...
cla8fg C:/ti/bios_6_46_04_53/packages/ti/sysbios/rts/gnu/SemiHostSupport.c ...
cla8fg C:/ti/bios_6_46_04_53/packages/ti/sysbios/family/arm/a8/intcps/Hwi.c ...
cla8fg C:/ti/bios_6_46_04_53/packages/ti/sysbios/family/arm/exc/Exception.c ...
cla8fg C:/ti/bios_6_46_04_53/packages/ti/sysbios/gates/GateHwi.c ...
cla8fg C:/ti/bios_6_46_04_53/packages/ti/sysbios/gates/GateMutex.c ...
cla8fg C:/ti/bios_6_46_04_53/packages/ti/sysbios/timers/dmtimer/Timer.c ...
cla8fg C:/ti/bios_6_46_04_53/packages/ti/sysbios/family/arm/a8/ti81xx/TimerSupport.c ...
ara8fg arm_IntrinsicsSupport_asm_gnu.o arm_TaskSupport_asm_gnu.o a8_Cache_asm_gnu.o a8_Mmu_asm_gnu.o a8_TimestampProvider_asm_gnu.o intcps_Hwi_asm_gnu.o exc_Exception_asm_gnu.o dmtimer_Timer_asm_gnu.o _BIOS.o arm_IntrinsicsSupport.o arm_TaskSupport.o knl_Clock.o knl_Idle.o knl_Intrinsics.o knl_Queue.o knl_Semaphore.o knl_Swi.o knl_Swi_andn.o knl_Task.o hal_Cache.o hal_Core.o hal_CoreNull.o hal_Hwi.o hal_Hwi_stack.o hal_Hwi_startup.o hal_Timer.o a8_Cache.o a8_Mmu.o a8_TimestampProvider.o heaps_HeapMem.o gnu_ReentSupport.o gnu_SemiHostSupport.o intcps_Hwi.o exc_Exception.o gates_GateHwi.o gates_GateMutex.o dmtimer_Timer.o ti81xx_TimerSupport.o ...
gmake[1]: Leaving directory `C:/ti/sysbios_ind_sdk_02.01.03.02/sdk/examples/example_utils/src/sysbios'
Build of libraries done.
cla8fg package/cfg/am335x_app_pa8fg.c ...
'Finished building: ../am335x_app.cfg'
' '
'Building target: example_utils.out'
'Invoking: GNU Linker'
"C:/ti/ccsv6.2.048/ccsv6/tools/compiler/gcc-arm-none-eabi-4_9-2015q3/bin/arm-none-eabi-gcc.exe" -mcpu=cortex-a8 -march=armv7-a -marm -mfloat-abi=hard -DAM335X_FAMILY_BUILD -Dam3359 -O0 -ffunction-sections -fdata-sections -g -gstrict-dwarf -Wall -Wl,-Map,"example_utils.map" -nostartfiles -static -Wl,--gc-sections -L"/starterware/binary/dal/lib/am335x-evm/a8/release/gcc" -L"/starterware/binary/device/lib/am335x-evm/a8/release/gcc" -L"/starterware/binary/board/lib/am335x-evm/a8/release/gcc" -L"/starterware/binary/soc/lib/am335x-evm/a8/release/gcc" -L"/starterware/binary/utils/lib/am335x-evm/a8/release/gcc" -L"/os_drivers/lib/am335x/" -L"/board/lib/am335x" -Wl,--defsym,STACKSIZE=0x1C000 -Wl,--defsym,HEAPSIZE=0x400 -o"example_utils.out" "./example_utils.o" -Wl,-T"../AM335x.lds" -Wl,-T"configPkg/linker.cmd" -Wl,--start-group -lc -lgcc -lrdimon -lm -lnosys -lsoc -lutils -ldal -ldevice -lsys_bios_driver -lboard -lboard_support -Wl,--end-group 
makefile:153: recipe for target 'example_utils.out' failed
c:/ti/ccsv6.2.048/ccsv6/tools/compiler/gcc-arm-none-eabi-4_9-2015q3/bin/../lib/gcc/arm-none-eabi/4.9.3/../../../../arm-none-eabi/bin/ld.exe: cannot find -lsoc
c:/ti/ccsv6.2.048/ccsv6/tools/compiler/gcc-arm-none-eabi-4_9-2015q3/bin/../lib/gcc/arm-none-eabi/4.9.3/../../../../arm-none-eabi/bin/ld.exe: cannot find -lutils
c:/ti/ccsv6.2.048/ccsv6/tools/compiler/gcc-arm-none-eabi-4_9-2015q3/bin/../lib/gcc/arm-none-eabi/4.9.3/../../../../arm-none-eabi/bin/ld.exe: cannot find -ldal
c:/ti/ccsv6.2.048/ccsv6/tools/compiler/gcc-arm-none-eabi-4_9-2015q3/bin/../lib/gcc/arm-none-eabi/4.9.3/../../../../arm-none-eabi/bin/ld.exe: cannot find -ldevice
c:/ti/ccsv6.2.048/ccsv6/tools/compiler/gcc-arm-none-eabi-4_9-2015q3/bin/../lib/gcc/arm-none-eabi/4.9.3/../../../../arm-none-eabi/bin/ld.exe: cannot find -lsys_bios_driver
c:/ti/ccsv6.2.048/ccsv6/tools/compiler/gcc-arm-none-eabi-4_9-2015q3/bin/../lib/gcc/arm-none-eabi/4.9.3/../../../../arm-none-eabi/bin/ld.exe: cannot find -lboard
c:/ti/ccsv6.2.048/ccsv6/tools/compiler/gcc-arm-none-eabi-4_9-2015q3/bin/../lib/gcc/arm-none-eabi/4.9.3/../../../../arm-none-eabi/bin/ld.exe: cannot find -lboard_support
collect2.exe: error: ld returned 1 exit status
gmake: *** [example_utils.out] Error 1
gmake: Target 'all' not remade because of errors.

**** Build Finished ****

实在是想不出来是什么问题,感谢您的回复!

  • NDK没装吧?下面是对software的要求。

    http://processors.wiki.ti.com/index.php/SYSBIOS_Industrial_SDK_Getting_Started_Guide#Software.C2.A0

    • Code Composer Studio version CCS 6.1.1.00022
    • SYS/BIOS 6.42.2.29 Real Time Operating System
    • XDC Tool 3.31.2.38_core
    • NDK 2.24.3.35
    • Compiler GNU v4.8.4 (Linaro)
    • Serial console terminal application (like Teraterm, minicom, HyperTerminal)
  • 选择了NDK之后,编译还是提示相同的log,编译不通过!

  • 路径有问题,一些lib没找到,点开project 的 include 截图看看

  • 是否此版本的sysbios必须要用GCC编译器呢,我下载的1.1.0.8版本的rtos就没有问题,能正常的进行编译!

  •      您好,我也正在做ethercat的从站,是在3359ice v2版本,您手头有一些对我有用的资料,能否交流一下?

  •       您好,非常感谢你的回信。
          直奔主题吧ヽ(●´ε`●)ノ ,我用过02.01.03.02版本以下的几个版本导入ccs编译都不成功,现在想试一下最新版本——sysbios_ind_sdk_02.01.03.02(TI官网上下载一直没有邮件回复),您能给我提供一下吗?还有一个问题,我编译的时候普遍出现三个错误:1、gmake: *** [build-872984225] Error 1;2、gmake: Target 'all' not remade because of errors.;3、recipe for target 'build-872984225' failed。不知道您有没有出现过这些情况?
        期待您的再次回信。
      (我的邮箱:847669466@qq.com)

  • 找不到lsoc ldal lutils ldevice的库,你看一下是不是路径问题
    c:/ti/ccsv6.2.048/ccsv6/tools/compiler/gcc-arm-none-eabi-4_9-2015q3/bin/../lib/gcc/arm-none-eabi/4.9.3/../../../../arm-none-eabi/bin/ld.exe: cannot find -lsoc
    c:/ti/ccsv6.2.048/ccsv6/tools/compiler/gcc-arm-none-eabi-4_9-2015q3/bin/../lib/gcc/arm-none-eabi/4.9.3/../../../../arm-none-eabi/bin/ld.exe: cannot find -lutils
    c:/ti/ccsv6.2.048/ccsv6/tools/compiler/gcc-arm-none-eabi-4_9-2015q3/bin/../lib/gcc/arm-none-eabi/4.9.3/../../../../arm-none-eabi/bin/ld.exe: cannot find -ldal
    c:/ti/ccsv6.2.048/ccsv6/tools/compiler/gcc-arm-none-eabi-4_9-2015q3/bin/../lib/gcc/arm-none-eabi/4.9.3/../../../../arm-none-eabi/bin/ld.exe: cannot find -ldevice
    c:/ti/ccsv6.2.048/ccsv6/tools/compiler/gcc-arm-none-eabi-4_9-2015q3/bin/../lib/gcc/arm-none-eabi/4.9.3/../../../../arm-none-eabi/bin/ld.exe: cannot find -lsys_bios_driver
    c:/ti/ccsv6.2.048/ccsv6/tools/compiler/gcc-arm-none-eabi-4_9-2015q3/bin/../lib/gcc/arm-none-eabi/4.9.3/../../../../arm-none-eabi/bin/ld.exe: cannot find -lboard
    c:/ti/ccsv6.2.048/ccsv6/tools/compiler/gcc-arm-none-eabi-4_9-2015q3/bin/../lib/gcc/arm-none-eabi/4.9.3/../../../../arm-none-eabi/bin/ld.exe: cannot find -lboard_support