**** Build of configuration Debug for project test ****
"D:\\ti\\ccsv6\\utils\\bin\\gmake" -k all'Building file: ../omp_hello.c'
'Invoking: C6000 Compiler'
"D:/ti/ccsv6/tools/compiler/c6000_7.4.8/bin/cl6x" -mv6600 –abi=eabi -g –include_path="D:/ti/ccsv6/tools/compiler/c6000_7.4.8/include" –display_error_number –diag_warning=225 –diag_wrap=off –openmp –preproc_with_compile –preproc_dependency="omp_hello.pp" –cmd_file="./configPkg/compiler.opt" "../omp_hello.c"
'Finished building: ../omp_hello.c'
' '
'Building file: ../omp_config.cfg'
'Invoking: XDCtools'
"D:/ti/xdctools_3_30_06_67_core/xs" –xdcpath="D:/ti/omp_1_02_00_05/packages;D:/ti/bios_6_41_02_41/packages;D:/ti/ipc_1_24_03_32/packages;D:/ti/pdk_C6678_1_1_2_6/packages;D:/ti/ccsv6/ccs_base;" xdc.tools.configuro -o configPkg -t ti.targets.elf.C66 -p ti.omp.examples.platforms.evm6678 -r debug -c "D:/ti/ccsv6/tools/compiler/c6000_7.4.8" "../omp_config.cfg"
making package.mak (because of .xdcenv.mak) …
configuring omp_config.xe66 from package/cfg/omp_config_pe66.cfg …
generating custom ti.sysbios library makefile …Starting build of library sources …
making C:/Users/wang/workspace_v6_0/test/src/sysbios/sysbios.ae66 …
gmake[1]: Entering directory `C:/Users/wang/workspace_v6_0/test/src/sysbios'
gmake[1]: Nothing to be done for `all'.
gmake[1]: Leaving directory `C:/Users/wang/workspace_v6_0/test/src/sysbios'
Build of libraries done.
cle66 package/cfg/omp_config_pe66.c …
'Finished building: ../omp_config.cfg'
' '
'Building target: test.out'
'Invoking: C6000 Linker'
"D:/ti/ccsv6/tools/compiler/c6000_7.4.8/bin/cl6x" -mv6600 –abi=eabi -g –display_error_number –diag_warning=225 –diag_wrap=off –openmp -z -m"test.map" -i"D:/ti/ccsv6/tools/compiler/c6000_7.4.8/lib" -i"D:/ti/ccsv6/tools/compiler/c6000_7.4.8/include" –reread_libs –warn_sections –display_error_number –diag_wrap=off –xml_link_info="test_linkInfo.xml" –rom_model -o "test.out" -l"./configPkg/linker.cmd" "./omp_hello.obj" -l"libc.a"<Linking>
undefined first referenced symbol in file ——— —————- ti_omp_utils_HeapOMP_isBlocking__E C:\Users\wang\workspace_v6_0\test\Debug\configPkg\package\cfg\omp_config_pe66.oe66
ti_sdo_ipc_gates_GateHWSem_query__E C:\Users\wang\workspace_v6_0\test\Debug\configPkg\package\cfg\omp_config_pe66.oe66
ti_sdo_ipc_gates_GateMPSupportNull_query__E C:\Users\wang\workspace_v6_0\test\Debug\configPkg\package\cfg\omp_config_pe66.oe66
ti_sdo_ipc_gates_GatePeterson_query__E C:\Users\wang\workspace_v6_0\test\Debug\configPkg\package\cfg\omp_config_pe66.oe66
ti_sdo_ipc_heaps_HeapMemMP_isBlocking__E C:\Users\wang\workspace_v6_0\test\Debug\configPkg\package\cfg\omp_config_pe66.oe66
>> Compilation failure
error #10234-D: unresolved symbols remain
error #10010: errors encountered during linking; "test.out" not built
gmake: *** [test.out] Error 1
gmake: Target `all' not remade because of errors.
**** Build Finished ****
我用CCS5.5和6.0都不行,compiler也用了8.1.0和7.4.16和7.4.0也不行,请问咋弄的呢?
Andy Yin1:
参考下面帖子的经验,跟ndk的版本有关,从新下载覆盖NDK安装包试试。
http://e2e.ti.com/support/embedded/tirtos/f/355/p/356349/1252438#1252438
chong wang2:
回复 Andy Yin1:
我已经删掉了老的NDK,用新的NDK覆盖了,这个hello的例程没有用到NDK啊,而且按照您的说的操作之后,还是一样的报错,报错代码如下:
**** Build of configuration Debug for project test322 ****
"C:\\ti\\ccsv5\\utils\\bin\\gmake" -k all 'Building file: ../omp_hello.c''Invoking: C6000 Compiler'"C:/ti/c6000_7.4.16/bin/cl6x" -mv6600 –abi=eabi -g –include_path="C:/ti/c6000_7.4.16/include" –display_error_number –diag_warning=225 –diag_wrap=off –openmp –preproc_with_compile –preproc_dependency="omp_hello.pp" –cmd_file="./configPkg/compiler.opt" "../omp_hello.c"'Finished building: ../omp_hello.c'' ''Building file: ../omp_config.cfg''Invoking: XDCtools'"C:/ti/xdctools_3_30_06_67_core/xs" –xdcpath="C:/ti/omp_1_02_00_05/packages;C:/ti/bios_6_41_02_41/packages;C:/ti/ipc_1_24_03_32/packages;C:/ti/pdk_C6678_1_1_2_6/packages;C:/ti/ccsv5/ccs_base;" xdc.tools.configuro -o configPkg -t ti.targets.elf.C66 -p ti.omp.examples.platforms.evm6678 -r debug -c "C:/ti/c6000_7.4.16" "../omp_config.cfg"making package.mak (because of config.bld) …configuring omp_config.xe66 from package/cfg/omp_config_pe66.cfg …generating custom ti.sysbios library makefile … Starting build of library sources …making C:/Users/wang/workspace_v5_5/test322/src/sysbios/sysbios.ae66 …gmake[1]: Entering directory `C:/Users/wang/workspace_v5_5/test322/src/sysbios'cle66 C:/ti/bios_6_41_02_41/packages/ti/sysbios/BIOS.c …asme66 C:/ti/bios_6_41_02_41/packages/ti/sysbios/family/c64p/Exception_asm.s64P …asme66 C:/ti/bios_6_41_02_41/packages/ti/sysbios/family/c64p/Hwi_asm.s62 …asme66 C:/ti/bios_6_41_02_41/packages/ti/sysbios/family/c64p/Hwi_asm_switch.s62 …asme66 C:/ti/bios_6_41_02_41/packages/ti/sysbios/family/c64p/Hwi_disp_always.s64P …asme66 C:/ti/bios_6_41_02_41/packages/ti/sysbios/timers/timer64/Timer_asm.s64P …asme66 C:/ti/bios_6_41_02_41/packages/ti/sysbios/family/c62/TaskSupport_asm.s62 …are66 BIOS.obj c64p_Exception_asm.obj c64p_Hwi_asm.obj c64p_Hwi_asm_switch.obj c64p_Hwi_disp_always.obj timer64_Timer_asm.obj c62_TaskSupport_asm.obj …gmake[1]: Leaving directory `C:/Users/wang/workspace_v5_5/test322/src/sysbios'Build of libraries done.cle66 package/cfg/omp_config_pe66.c …'Finished building: ../omp_config.cfg'' ''Building target: test322.out''Invoking: C6000 Linker'"C:/ti/c6000_7.4.16/bin/cl6x" -mv6600 –abi=eabi -g –display_error_number –diag_warning=225 –diag_wrap=off –openmp -z -m"test322.map" -i"C:/ti/c6000_7.4.16/lib" -i"C:/ti/c6000_7.4.16/include" –reread_libs –warn_sections –display_error_number –diag_wrap=off –xml_link_info="test322_linkInfo.xml" –rom_model -o "test322.out" -l"./configPkg/linker.cmd" "./omp_hello.obj" -l"libc.a" <Linking>
undefined first referenced symbol in file ——— —————- ti_omp_utils_HeapOMP_isBlocking__E C:\Users\wang\workspace_v5_5\test322\Debug\configPkg\package\cfg\omp_config_pe66.oe66 ti_sdo_ipc_gates_GateHWSem_query__E C:\Users\wang\workspace_v5_5\test322\Debug\configPkg\package\cfg\omp_config_pe66.oe66
>> Compilation failure ti_sdo_ipc_gates_GateMPSupportNull_query__E C:\Users\wang\workspace_v5_5\test322\Debug\configPkg\package\cfg\omp_config_pe66.oe66 ti_sdo_ipc_gates_GatePeterson_query__E C:\Users\wang\workspace_v5_5\test322\Debug\configPkg\package\cfg\omp_config_pe66.oe66 ti_sdo_ipc_heaps_HeapMemMP_isBlocking__E C:\Users\wang\workspace_v5_5\test322\Debug\configPkg\package\cfg\omp_config_pe66.oe66
error #10234-D: unresolved symbols remainerror #10010: errors encountered during linking; "test322.out" not builtgmake: *** [test322.out] Error 1gmake: Target `all' not remade because of errors.
**** Build Finished ****
Andy Yin1:
回复 chong wang2:
我这里使用的版本是omp_1_01_03_02,存在如下的link 错误提示:,
undefined first referenced symbol in file ——— —————- ti_omp_utils_HeapOMP_isBlocking__E C:\Work_AndyYin\CCS_Workspace\workspace_v6.1\OMP\Debug\configPkg\package\cfg\omp_config_pe66.oe66
error #10234-D: unresolved symbols remainerror #10010: errors encountered during linking; "OMP.out" not built
根据如下帖子建议使用openMP2.X,你试试看。
https://e2e.ti.com/support/dsp/c6000_multi-core_dsps/f/639/t/468080