Tool/software: TI C/C++ Compiler
hi team:
I want to build the lua into my project with the default prj config but failed.
the build process as below:
sysbios : bios_6_76_03_01
ccs:9.3.0.00012
compiler : GNU v7.3.1
build output :
"D:\\ti\\ccs930\\ccs\\utils\\bin\\gmake" -k -j 6 all -O
Building file: "../app.cfg"
Invoking: XDCtools
"D:/ti/ccs930/xdctools_3_60_02_34_core/xs" --xdcpath="D:/ti/ccs930/bios_6_76_03_01/packages;D:/ti/ccs930/ndk_3_61_01_01/packages;D:/ti/ccs930/edma3_lld_2_12_05_30E/packages;D:/ti/ccs930/pdk_am335x_1_0_17/packages;D:/ti/ccs930/uia_2_30_01_02/packages;" xdc.tools.configuro -o configPkg -t gnu.targets.arm.A8F -p ti.platforms.evmAM3359 -r release -c "D:/ti/ccs930/gcc-arm-none-eabi-7-2018-q2-update" "../app.cfg"
making package.mak (because of package.bld) ...
generating interfaces for package configPkg (because package/package.xdc.inc is older than package.xdc) ...
configuring app.xa8fg from package/cfg/app_pa8fg.cfg ...
generating custom ti.sysbios library makefile ...
Starting build of library sources ...
making D:/workspace_v9/aaaaaaaaaaa/src/sysbios/sysbios.aa8fg ...
asma8fg D:/ti/ccs930/bios_6_76_03_01/packages/ti/sysbios/family/arm/IntrinsicsSupport_asm_gnu.asm ...
asma8fg D:/ti/ccs930/bios_6_76_03_01/packages/ti/sysbios/family/arm/TaskSupport_asm_gnu.asm ...
asma8fg D:/ti/ccs930/bios_6_76_03_01/packages/ti/sysbios/family/arm/a8/intcps/Hwi_asm_gnu.sv7A ...
asma8fg D:/ti/ccs930/bios_6_76_03_01/packages/ti/sysbios/family/arm/exc/Exception_asm_gnu.asm ...
asma8fg D:/ti/ccs930/bios_6_76_03_01/packages/ti/sysbios/family/arm/a8/Cache_asm_gnu.sv7A ...
asma8fg D:/ti/ccs930/bios_6_76_03_01/packages/ti/sysbios/family/arm/a8/Mmu_asm_gnu.sv7A ...
asma8fg D:/ti/ccs930/bios_6_76_03_01/packages/ti/sysbios/family/arm/a8/TimestampProvider_asm_gnu.sv7A ...
asma8fg D:/ti/ccs930/bios_6_76_03_01/packages/ti/sysbios/timers/dmtimer/Timer_asm_gnu.sv7A ...
cla8fg D:/ti/ccs930/bios_6_76_03_01/packages/ti/sysbios/BIOS.c ...
cla8fg D:/ti/ccs930/bios_6_76_03_01/packages/ti/sysbios/family/arm/IntrinsicsSupport.c ...
cla8fg D:/ti/ccs930/bios_6_76_03_01/packages/ti/sysbios/family/arm/TaskSupport.c ...
cla8fg D:/ti/ccs930/bios_6_76_03_01/packages/ti/sysbios/knl/Clock.c ...
cla8fg D:/ti/ccs930/bios_6_76_03_01/packages/ti/sysbios/knl/Idle.c ...
cla8fg D:/ti/ccs930/bios_6_76_03_01/packages/ti/sysbios/knl/Intrinsics.c ...
cla8fg D:/ti/ccs930/bios_6_76_03_01/packages/ti/sysbios/knl/Queue.c ...
cla8fg D:/ti/ccs930/bios_6_76_03_01/packages/ti/sysbios/knl/Semaphore.c ...
cla8fg D:/ti/ccs930/bios_6_76_03_01/packages/ti/sysbios/knl/Swi.c ...
cla8fg D:/ti/ccs930/bios_6_76_03_01/packages/ti/sysbios/knl/Task.c ...
cla8fg D:/ti/ccs930/bios_6_76_03_01/packages/ti/sysbios/hal/Cache.c ...
cla8fg D:/ti/ccs930/bios_6_76_03_01/packages/ti/sysbios/hal/Core.c ...
cla8fg D:/ti/ccs930/bios_6_76_03_01/packages/ti/sysbios/hal/CoreNull.c ...
cla8fg D:/ti/ccs930/bios_6_76_03_01/packages/ti/sysbios/hal/Hwi.c ...
cla8fg D:/ti/ccs930/bios_6_76_03_01/packages/ti/sysbios/hal/Hwi_stack.c ...
cla8fg D:/ti/ccs930/bios_6_76_03_01/packages/ti/sysbios/hal/Hwi_startup.c ...
cla8fg D:/ti/ccs930/bios_6_76_03_01/packages/ti/sysbios/family/arm/a8/intcps/Hwi.c ...
cla8fg D:/ti/ccs930/bios_6_76_03_01/packages/ti/sysbios/family/arm/exc/Exception.c ...
cla8fg D:/ti/ccs930/bios_6_76_03_01/packages/ti/sysbios/family/arm/a8/Cache.c ...
cla8fg D:/ti/ccs930/bios_6_76_03_01/packages/ti/sysbios/family/arm/a8/Mmu.c ...
cla8fg D:/ti/ccs930/bios_6_76_03_01/packages/ti/sysbios/family/arm/a8/TimestampProvider.c ...
cla8fg D:/ti/ccs930/bios_6_76_03_01/packages/ti/sysbios/rts/gnu/ReentSupport.c ...
cla8fg D:/ti/ccs930/bios_6_76_03_01/packages/ti/sysbios/gates/GateHwi.c ...
cla8fg D:/ti/ccs930/bios_6_76_03_01/packages/ti/sysbios/gates/GateMutex.c ...
cla8fg D:/ti/ccs930/bios_6_76_03_01/packages/ti/sysbios/heaps/HeapMem.c ...
cla8fg D:/ti/ccs930/bios_6_76_03_01/packages/ti/sysbios/timers/dmtimer/Timer.c ...
cla8fg D:/ti/ccs930/bios_6_76_03_01/packages/ti/sysbios/family/arm/a8/ti81xx/TimerSupport.c ...
ara8fg arm_IntrinsicsSupport_asm_gnu.o arm_TaskSupport_asm_gnu.o intcps_Hwi_asm_gnu.o exc_Exception_asm_gnu.o a8_Cache_asm_gnu.o a8_Mmu_asm_gnu.o a8_TimestampProvider_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_Task.o hal_Cache.o hal_Core.o hal_CoreNull.o hal_Hwi.o hal_Hwi_stack.o hal_Hwi_startup.o intcps_Hwi.o exc_Exception.o a8_Cache.o a8_Mmu.o a8_TimestampProvider.o gnu_ReentSupport.o gates_GateHwi.o gates_GateMutex.o heaps_HeapMem.o dmtimer_Timer.o ti81xx_TimerSupport.o ...
Build of libraries done.
cla8fg package/cfg/app_pa8fg.c ...
Picked up JAVA_TOOL_OPTIONS: -Djava.vendor="Sun Microsystems Inc."
Picked up JAVA_TOOL_OPTIONS: -Djava.vendor="Sun Microsystems Inc."
D:/ti/ccs930/bios_6_76_03_01/packages/ti/sysbios/timers/dmtimer/Timer.c: In function 'ti_sysbios_timers_dmtimer_Timer_getFreq__E':
D:/ti/ccs930/bios_6_76_03_01/packages/ti/sysbios/timers/dmtimer/Timer.c:652:25: warning: comparison between pointer and integer
if (obj->extFreq.lo != NULL) {
^~
Picked up JAVA_TOOL_OPTIONS: -Djava.vendor="Sun Microsystems Inc."
Picked up JAVA_TOOL_OPTIONS: -Djava.vendor="Sun Microsystems Inc."
Finished building: "../app.cfg"
已复制 1 个文件。
making ../src/sysbios/sysbios.aa8fg ...
gmake[1]: Nothing to be done for 'all'.
Building file: "../third/lauxlib.c"
Invoking: GNU Compiler
"D:/ti/ccs930/gcc-arm-none-eabi-7-2018-q2-update/bin/arm-none-eabi-gcc-7.3.1.exe" -c -std=c99 -mcpu=cortex-a8 -march=armv7-a -mtune=cortex-a8 -marm -mfloat-abi=hard -Dam3358 -I"D:/workspace_v9/aaaaaaaaaaa" -I"D:/ti/ccs930/bios_6_76_03_01/packages/gnu/targets/arm/libs/install-native/arm-none-eabi/include/newlib-nano" -I"D:/ti/ccs930/bios_6_76_03_01/packages/ti/posix/gcc" -I"D:/ti/ccs930/gcc-arm-none-eabi-7-2018-q2-update/arm-none-eabi/include" -Og -g -gdwarf-3 -gstrict-dwarf -Wall -MMD -MP -MF"third/lauxlib.d" -MT"third/lauxlib.o" -std=c99 @"configPkg/compiler.opt" -o"third/lauxlib.o" "../third/lauxlib.c"
third/subdir_rules.mk:9: recipe for target 'third/lauxlib.o' failed
In file included from d:\ti\ccs930\bios_6_76_03_01\packages\gnu\targets\arm\libs\install-native\arm-none-eabi\include\stdio.h:61:0,
from ../third/lauxlib.c:15:
D:/ti/ccs930/bios_6_76_03_01/packages/ti/posix/gcc/sys/types.h:73:2: error: #error "When compiling with TI-POSIX, you must define -std=c99 (or later). You must not define _POSIX_SOURCE or _POSIX_C_SOURCE."
#error "When compiling with TI-POSIX, you must define -std=c99 (or later). You must not define _POSIX_SOURCE or _POSIX_C_SOURCE."
^~~~~
D:/ti/ccs930/bios_6_76_03_01/packages/ti/posix/gcc/sys/types.h:92:3: error: conflicting types for 'pthread_attr_t'
} pthread_attr_t;
^~~~~~~~~~~~~~
In file included from d:\ti\ccs930\bios_6_76_03_01\packages\gnu\targets\arm\libs\install-native\arm-none-eabi\include\sys\types.h:239:0,
from D:/ti/ccs930/bios_6_76_03_01/packages/ti/posix/gcc/sys/types.h:50,
from d:\ti\ccs930\bios_6_76_03_01\packages\gnu\targets\arm\libs\install-native\arm-none-eabi\include\stdio.h:61,
from ../third/lauxlib.c:15:
d:\ti\ccs930\bios_6_76_03_01\packages\gnu\targets\arm\libs\install-native\arm-none-eabi\include\sys\_pthreadtypes.h:75:3: note: previous declaration of 'pthread_attr_t' was here
} pthread_attr_t;
^~~~~~~~~~~~~~
In file included from d:\ti\ccs930\bios_6_76_03_01\packages\gnu\targets\arm\libs\install-native\arm-none-eabi\include\stdio.h:61:0,
from ../third/lauxlib.c:15:
D:/ti/ccs930/bios_6_76_03_01/packages/ti/posix/gcc/sys/types.h:95:18: error: conflicting types for 'pthread_condattr_t'
typedef uint32_t pthread_condattr_t;
^~~~~~~~~~~~~~~~~~
In file included from d:\ti\ccs930\bios_6_76_03_01\packages\gnu\targets\arm\libs\install-native\arm-none-eabi\include\sys\types.h:239:0,
from D:/ti/ccs930/bios_6_76_03_01/packages/ti/posix/gcc/sys/types.h:50,
from d:\ti\ccs930\bios_6_76_03_01\packages\gnu\targets\arm\libs\install-native\arm-none-eabi\include\stdio.h:61,
from ../third/lauxlib.c:15:
d:\ti\ccs930\bios_6_76_03_01\packages\gnu\targets\arm\libs\install-native\arm-none-eabi\include\sys\_pthreadtypes.h:186:3: note: previous declaration of 'pthread_condattr_t' was here
} pthread_condattr_t; /* a condition attribute object */
^~~~~~~~~~~~~~~~~~
i have take this action but have no effect!
i do not know what reason cause this error!
and what can i do to slove this problem?
thank you!