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.
Tool/software: TI C/C++ Compiler
I am experiencing a compiler issue ... I have prepared the .pp test case (attached)
Please show the build options, exactly as the compiler sees them. Please copy-and-paste the text into your next post, and do not use a screen shot.
Thanks and regards,
-George
Bellow please find all the compile options as it appears on CCS console
Regards
**** Clean-only build of configuration Debug for project ark_cpplab ****
"C:\\ti\\ccs920\\ccs\\utils\\bin\\gmake" -k -j 8 clean -O
DEL /F "ark_cpplab.hex" "configPkg\linker.cmd" "configPkg\compiler.opt" "ark_cpplab.out"
DEL /F "test_regex.obj"
RMDIR /S/Q "configPkg\"
Could Not Find C:\Users\Mehdi-laptop\workspace_v9_2\ark_cpplab\Debug\ark_cpplab.hex
Could Not Find C:\Users\Mehdi-laptop\workspace_v9_2\ark_cpplab\Debug\ark_cpplab.out
Could Not Find C:\Users\Mehdi-laptop\workspace_v9_2\ark_cpplab\Debug\test_regex.obj
Finished clean
**** Build Finished ****
**** Build of configuration Debug for project ark_cpplab ****
"C:\\ti\\ccs920\\ccs\\utils\\bin\\gmake" -k -j 8 all -O
Building file: "../omp_config.cfg"
Invoking: XDCtools
"C:/ti/ccs920/xdctools_3_60_01_27_core/xs" --xdcpath="C:/ti/openmp_dsp_c667x_2_06_03_00/packages;C:/ti/pdk_c667x_2_0_15/packages;C:/ti/ctoolslib_2_2_0_0/packages;C:/ti/linalg_1_2_0_0/packages;C:/ti/edma3_lld_2_12_05_30C/packages;C:/ti/ipc_3_50_04_07/packages;C:/ti/libarch_1_0_0_0/packages;C:/ti/ndk_3_61_01_01/packages;C:/ti/bios_6_76_02_02/packages;C:/ti/uia_2_30_01_02/packages;C:/ti/xdais_7_24_00_04/packages;C:/ti/xdais_7_24_00_04/examples;C:/ti/openmp_dsp_c667x_2_06_03_00/packages/ti/runtime/openmp/platforms/evm6678;" xdc.tools.configuro -o configPkg -t ti.targets.elf.C66 -p ti.runtime.openmp.platforms.evm6678 -r release -c "C:/ti/ccs920/ccs/tools/compiler/ti-cgt-c6000_8.3.5" "../omp_config.cfg"
making package.mak (because of package.bld) ...
generating interfaces for package configPkg (because package/package.xdc.inc is older than package.xdc) ...
configuring omp_config.xe66 from package/cfg/omp_config_pe66.cfg ...
Configuring OpenMP runtime for device: TMS320C6678
generating custom ti.sysbios library makefile ...
Linking with library ti.drv.qmss:./lib/c66/ti.drv.qmss.ae66
Linking with library ti.csl:./lib/c6678/c66/release/ti.csl.ae66
Starting build of library sources ...
making C:/Users/Mehdi-laptop/workspace_v9_2/ark_cpplab/src/sysbios/sysbios.ae66 ...
Build of libraries done.
cle66 package/cfg/omp_config_pe66.c ...
Finished building: "../omp_config.cfg"
Building file: "../test_regex.cpp"
Invoking: C6000 Compiler
"C:/ti/ccs920/ccs/tools/compiler/ti-cgt-c6000_8.3.5/bin/cl6x" -mv6600 --include_path="C:/Users/Mehdi-laptop/workspace_v9_2/ark_cpplab" --include_path="C:/Users/Mehdi-laptop/workspace_v9_2/ark_cpplab/ark_matrix" --include_path="C:/Users/Mehdi-laptop/workspace_v9_2/ark_cpplab/linalg" --include_path="C:/Users/Mehdi-laptop/workspace_v9_2/ark_cpplab/utils" --include_path="C:/Users/Mehdi-laptop/workspace_v9_2/ark_cpplab/ark_io" --include_path="C:/ti/ccs920/ccs/tools/compiler/ti-cgt-c6000_8.3.5/include" --define=USE_REGEX -g --c99 --c++14 --preproc_only --preproc_with_compile --diag_warning=225 --diag_wrap=off --display_error_number --cmd_file="configPkg/compiler.opt" "../test_regex.cpp"
>> Compilation failure
subdir_rules.mk:23: recipe for target 'test_regex.obj' failed
"C:/Users/Mehdi-laptop/workspace_v9_2/ark_cpplab/ark_matrix/ark_matrix.h", line 1281: warning #48-D: incompatible redefinition of macro "printvar" (declared at line 352)
"C:\Users\Mehdi-laptop\workspace_v9_2\ark_cpplab\ark_io\ark_struct_types.h", line 211: error #20: identifier "parse_header" is undefined
"C:\Users\Mehdi-laptop\workspace_v9_2\ark_cpplab\ark_io\ark_struct_types.h", line 212: error #20: identifier "loadm" is undefined
"C:\Users\Mehdi-laptop\workspace_v9_2\ark_cpplab\ark_io\ark_struct_types.h", line 213: error #20: identifier "loads" is undefined
"C:\Users\Mehdi-laptop\workspace_v9_2\ark_cpplab\ark_io\ark_struct_types.h", line 231: error #20: identifier "save_headerm" is undefined
"C:\Users\Mehdi-laptop\workspace_v9_2\ark_cpplab\ark_io\ark_struct_types.h", line 232: error #20: identifier "save_headers" is undefined
"C:\Users\Mehdi-laptop\workspace_v9_2\ark_cpplab\ark_io\ark_struct_types.h", line 239: error #20: identifier "save_contentm" is undefined
"C:\Users\Mehdi-laptop\workspace_v9_2\ark_cpplab\ark_io\ark_struct_types.h", line 240: error #20: identifier "save_contents" is undefined
"C:/ti/ccs920/ccs/tools/compiler/ti-cgt-c6000_8.3.5/include/libcxx/set", line 396: error #102: "std" has already been declared in the current scope
"C:/ti/ccs920/ccs/tools/compiler/ti-cgt-c6000_8.3.5/include/libcxx/set", line 398: error #918: less is not a template
"C:/ti/ccs920/ccs/tools/compiler/ti-cgt-c6000_8.3.5/include/libcxx/set", line 399: error #918: allocator is not a template
"C:/ti/ccs920/ccs/tools/compiler/ti-cgt-c6000_8.3.5/include/libcxx/set", line 412: error #20: identifier "is_same" is undefined
"C:/ti/ccs920/ccs/tools/compiler/ti-cgt-c6000_8.3.5/include/libcxx/set", line 412: error #256: type name is not allowed
"C:/ti/ccs920/ccs/tools/compiler/ti-cgt-c6000_8.3.5/include/libcxx/set", line 412: error #256: type name is not allowed
"C:/ti/ccs920/ccs/tools/compiler/ti-cgt-c6000_8.3.5/include/libcxx/set", line 412: error #284: the global scope has no "value"
"C:/ti/ccs920/ccs/tools/compiler/ti-cgt-c6000_8.3.5/include/libcxx/set", line 416: error #918: __tree is not a template
"C:/ti/ccs920/ccs/tools/compiler/ti-cgt-c6000_8.3.5/include/libcxx/set", line 417: error #918: allocator_traits is not a template
"C:/ti/ccs920/ccs/tools/compiler/ti-cgt-c6000_8.3.5/include/libcxx/set", line 418: error #991: a class or namespace qualified name is required
"C:/ti/ccs920/ccs/tools/compiler/ti-cgt-c6000_8.3.5/include/libcxx/set", line 418: error #283: global-scope qualifier (leading "::") is not allowed
"C:/ti/ccs920/ccs/tools/compiler/ti-cgt-c6000_8.3.5/include/libcxx/set", line 418: error #66: expected a ";"
"C:/ti/ccs920/ccs/tools/compiler/ti-cgt-c6000_8.3.5/include/libcxx/set", line 423: error #991: a class or namespace qualified name is required
"C:/ti/ccs920/ccs/tools/compiler/ti-cgt-c6000_8.3.5/include/libcxx/set", line 423: error #283: global-scope qualifier (leading "::") is not allowed
"C:/ti/ccs920/ccs/tools/compiler/ti-cgt-c6000_8.3.5/include/libcxx/set", line 423: error #66: expected a ";"
"C:/ti/ccs920/ccs/tools/compiler/ti-cgt-c6000_8.3.5/include/libcxx/set", line 424: error #991: a class or namespace qualified name is required
"C:/ti/ccs920/ccs/tools/compiler/ti-cgt-c6000_8.3.5/include/libcxx/set", line 424: error #283: global-scope qualifier (leading "::") is not allowed
"C:/ti/ccs920/ccs/tools/compiler/ti-cgt-c6000_8.3.5/include/libcxx/set", line 424: error #66: expected a ";"
"C:/ti/ccs920/ccs/tools/compiler/ti-cgt-c6000_8.3.5/include/libcxx/set", line 425: error #991: a class or namespace qualified name is required
"C:/ti/ccs920/ccs/tools/compiler/ti-cgt-c6000_8.3.5/include/libcxx/set", line 425: error #283: global-scope qualifier (leading "::") is not allowed
"C:/ti/ccs920/ccs/tools/compiler/ti-cgt-c6000_8.3.5/include/libcxx/set", line 425: error #66: expected a ";"
"C:/ti/ccs920/ccs/tools/compiler/ti-cgt-c6000_8.3.5/include/libcxx/set", line 426: error #991: a class or namespace qualified name is required
"C:/ti/ccs920/ccs/tools/compiler/ti-cgt-c6000_8.3.5/include/libcxx/set", line 426: error #283: global-scope qualifier (leading "::") is not allowed
"C:/ti/ccs920/ccs/tools/compiler/ti-cgt-c6000_8.3.5/include/libcxx/set", line 426: error #66: expected a ";"
"C:/ti/ccs920/ccs/tools/compiler/ti-cgt-c6000_8.3.5/include/libcxx/set", line 427: error #991: a class or namespace qualified name is required
"C:/ti/ccs920/ccs/tools/compiler/ti-cgt-c6000_8.3.5/include/libcxx/set", line 427: error #283: global-scope qualifier (leading "::") is not allowed
"C:/ti/ccs920/ccs/tools/compiler/ti-cgt-c6000_8.3.5/include/libcxx/set", line 427: error #66: expected a ";"
"C:/ti/ccs920/ccs/tools/compiler/ti-cgt-c6000_8.3.5/include/libcxx/set", line 428: error #991: a class or namespace qualified name is required
"C:/ti/ccs920/ccs/tools/compiler/ti-cgt-c6000_8.3.5/include/libcxx/set", line 428: error #283: global-scope qualifier (leading "::") is not allowed
"C:/ti/ccs920/ccs/tools/compiler/ti-cgt-c6000_8.3.5/include/libcxx/set", line 428: error #66: expected a ";"
"C:/ti/ccs920/ccs/tools/compiler/ti-cgt-c6000_8.3.5/include/libcxx/set", line 429: error #285: qualified name is not allowed
"C:/ti/ccs920/ccs/tools/compiler/ti-cgt-c6000_8.3.5/include/libcxx/set", line 429: error #66: expected a ";"
"C:/ti/ccs920/ccs/tools/compiler/ti-cgt-c6000_8.3.5/include/libcxx/set", line 430: error #285: qualified name is not allowed
"C:/ti/ccs920/ccs/tools/compiler/ti-cgt-c6000_8.3.5/include/libcxx/set", line 430: error #66: expected a ";"
"C:/ti/ccs920/ccs/tools/compiler/ti-cgt-c6000_8.3.5/include/libcxx/set", line 511: error #918: initializer_list is not a template
"C:/ti/ccs920/ccs/tools/compiler/ti-cgt-c6000_8.3.5/include/libcxx/set", line 518: error #918: initializer_list is not a template
"C:/ti/ccs920/ccs/tools/compiler/ti-cgt-c6000_8.3.5/include/libcxx/set", line 527: error #918: initializer_list is not a template
"C:/ti/ccs920/ccs/tools/compiler/ti-cgt-c6000_8.3.5/include/libcxx/set", line 532: error #918: initializer_list is not a template
"C:/ti/ccs920/ccs/tools/compiler/ti-cgt-c6000_8.3.5/include/libcxx/set", line 548: error #20: identifier "iterator" is undefined
"C:/ti/ccs920/ccs/tools/compiler/ti-cgt-c6000_8.3.5/include/libcxx/set", line 550: error #20: identifier "const_iterator" is undefined
"C:/ti/ccs920/ccs/tools/compiler/ti-cgt-c6000_8.3.5/include/libcxx/set", line 552: error #20: identifier "iterator" is undefined
"C:/ti/ccs920/ccs/tools/compiler/ti-cgt-c6000_8.3.5/include/libcxx/set", line 554: error #20: identifier "const_iterator" is undefined
"C:/ti/ccs920/ccs/tools/compiler/ti-cgt-c6000_8.3.5/include/libcxx/set", line 557: error #20: identifier "reverse_iterator" is undefined
"C:/ti/ccs920/ccs/tools/compiler/ti-cgt-c6000_8.3.5/include/libcxx/set", line 560: error #20: identifier "const_reverse_iterator" is undefined
"C:/ti/ccs920/ccs/tools/compiler/ti-cgt-c6000_8.3.5/include/libcxx/set", line 563: error #20: identifier "reverse_iterator" is undefined
"C:/ti/ccs920/ccs/tools/compiler/ti-cgt-c6000_8.3.5/include/libcxx/set", line 566: error #20: identifier "const_reverse_iterator" is undefined
"C:/ti/ccs920/ccs/tools/compiler/ti-cgt-c6000_8.3.5/include/libcxx/set", line 570: error #20: identifier "const_iterator" is undefined
"C:/ti/ccs920/ccs/tools/compiler/ti-cgt-c6000_8.3.5/include/libcxx/set", line 572: error #20: identifier "const_iterator" is undefined
"C:/ti/ccs920/ccs/tools/compiler/ti-cgt-c6000_8.3.5/include/libcxx/set", line 574: error #20: identifier "const_reverse_iterator" is undefined
"C:/ti/ccs920/ccs/tools/compiler/ti-cgt-c6000_8.3.5/include/libcxx/set", line 576: error #20: identifier "const_reverse_iterator" is undefined
"C:/ti/ccs920/ccs/tools/compiler/ti-cgt-c6000_8.3.5/include/libcxx/set", line 581: error #20: identifier "size_type" is undefined
"C:/ti/ccs920/ccs/tools/compiler/ti-cgt-c6000_8.3.5/include/libcxx/set", line 583: error #20: identifier "size_type" is undefined
"C:/ti/ccs920/ccs/tools/compiler/ti-cgt-c6000_8.3.5/include/libcxx/set", line 589: error #918: pair is not a template
"C:/ti/ccs920/ccs/tools/compiler/ti-cgt-c6000_8.3.5/include/libcxx/set", line 589: error #20: identifier "iterator" is undefined
"C:/ti/ccs920/ccs/tools/compiler/ti-cgt-c6000_8.3.5/include/libcxx/set", line 593: error #20: identifier "iterator" is undefined
"C:/ti/ccs920/ccs/tools/compiler/ti-cgt-c6000_8.3.5/include/libcxx/set", line 593: error #20: identifier "const_iterator" is undefined
"C:/ti/ccs920/ccs/tools/compiler/ti-cgt-c6000_8.3.5/include/libcxx/set", line 598: error #918: pair is not a template
"C:/ti/ccs920/ccs/tools/compiler/ti-cgt-c6000_8.3.5/include/libcxx/set", line 598: error #20: identifier "iterator" is undefined
"C:/ti/ccs920/ccs/tools/compiler/ti-cgt-c6000_8.3.5/include/libcxx/set", line 601: error #760: "iterator" is not a type name
"C:/ti/ccs920/ccs/tools/compiler/ti-cgt-c6000_8.3.5/include/libcxx/set", line 601: error #20: identifier "const_iterator" is undefined
"C:/ti/ccs920/ccs/tools/compiler/ti-cgt-c6000_8.3.5/include/libcxx/set", line 614: error #918: pair is not a template
"C:/ti/ccs920/ccs/tools/compiler/ti-cgt-c6000_8.3.5/include/libcxx/set", line 618: error #760: "iterator" is not a type name
"C:/ti/ccs920/ccs/tools/compiler/ti-cgt-c6000_8.3.5/include/libcxx/set", line 618: error #20: identifier "const_iterator" is undefined
"C:/ti/ccs920/ccs/tools/compiler/ti-cgt-c6000_8.3.5/include/libcxx/set", line 622: error #918: initializer_list is not a template
"C:/ti/ccs920/ccs/tools/compiler/ti-cgt-c6000_8.3.5/include/libcxx/set", line 627: error #760: "iterator" is not a type name
"C:/ti/ccs920/ccs/tools/compiler/ti-cgt-c6000_8.3.5/include/libcxx/set", line 627: error #20: identifier "const_iterator" is undefined
"C:/ti/ccs920/ccs/tools/compiler/ti-cgt-c6000_8.3.5/include/libcxx/set", line 629: error #20: identifier "size_type" is undefined
"C:/ti/ccs920/ccs/tools/compiler/ti-cgt-c6000_8.3.5/include/libcxx/set", line 632: error #760: "iterator" is not a type name
"C:/ti/ccs920/ccs/tools/compiler/ti-cgt-c6000_8.3.5/include/libcxx/set", line 632: error #20: identifier "const_iterator" is undefined
"C:/ti/ccs920/ccs/tools/compiler/ti-cgt-c6000_8.3.5/include/libcxx/set", line 632: error #20: identifier "const_iterator" is undefined
"C:/ti/ccs920/ccs/tools/compiler/ti-cgt-c6000_8.3.5/include/libcxx/set", line 650: error #760: "iterator" is not a type name
"C:/ti/ccs920/ccs/tools/compiler/ti-cgt-c6000_8.3.5/include/libcxx/set", line 652: error #20: identifier "const_iterator" is undefined
"C:/ti/ccs920/ccs/tools/compiler/ti-cgt-c6000_8.3.5/include/libcxx/set", line 656: error #918: enable_if is not a template
"C:/ti/ccs920/ccs/tools/compiler/ti-cgt-c6000_8.3.5/include/libcxx/set", line 656: error #20: identifier "__is_transparent" is undefined
"C:/ti/ccs920/ccs/tools/compiler/ti-cgt-c6000_8.3.5/include/libcxx/set", line 656: error #256: type name is not allowed
"C:/ti/ccs920/ccs/tools/compiler/ti-cgt-c6000_8.3.5/include/libcxx/set", line 656: error #41: expected an identifier
"C:/ti/ccs920/ccs/tools/compiler/ti-cgt-c6000_8.3.5/include/libcxx/set", line 655: error #790: not a valid member class or function template declaration
"C:/ti/ccs920/ccs/tools/compiler/ti-cgt-c6000_8.3.5/include/libcxx/set", line 656: error #66: expected a ";"
"C:/ti/ccs920/ccs/tools/compiler/ti-cgt-c6000_8.3.5/include/libcxx/set", line 434: error #20: identifier "is_nothrow_default_constructible" is undefined
"C:/ti/ccs920/ccs/tools/compiler/ti-cgt-c6000_8.3.5/include/libcxx/set", line 434: error #256: type name is not allowed
"C:/ti/ccs920/ccs/tools/compiler/ti-cgt-c6000_8.3.5/include/libcxx/set", line 434: error #284: the global scope has no "value"
"C:/ti/ccs920/ccs/tools/compiler/ti-cgt-c6000_8.3.5/include/libcxx/set", line 442: error #20: identifier "is_nothrow_default_constructible" is undefined
"C:/ti/ccs920/ccs/tools/compiler/ti-cgt-c6000_8.3.5/include/libcxx/set", line 442: error #256: type name is not allowed
"C:/ti/ccs920/ccs/tools/compiler/ti-cgt-c6000_8.3.5/include/libcxx/set", line 442: error #284: the global scope has no "value"
"C:/ti/ccs920/ccs/tools/compiler/ti-cgt-c6000_8.3.5/include/libcxx/set", line 492: error #20: identifier "is_nothrow_move_constructible" is undefined
"C:/ti/ccs920/ccs/tools/compiler/ti-cgt-c6000_8.3.5/include/libcxx/set", line 492: error #256: type name is not allowed
"C:/ti/ccs920/ccs/tools/compiler/ti-cgt-c6000_8.3.5/include/libcxx/set", line 492: error #284: the global scope has no "value"
"C:/ti/ccs920/ccs/tools/compiler/ti-cgt-c6000_8.3.5/include/libcxx/set", line 540: error #20: identifier "is_nothrow_move_assignable" is undefined
"C:/ti/ccs920/ccs/tools/compiler/ti-cgt-c6000_8.3.5/include/libcxx/set", line 540: error #256: type name is not allowed
"C:/ti/ccs920/ccs/tools/compiler/ti-cgt-c6000_8.3.5/include/libcxx/set", line 540: error #284: the global scope has no "value"
"C:/ti/ccs920/ccs/tools/compiler/ti-cgt-c6000_8.3.5/include/libcxx/set", line 638: error #20: identifier "__is_nothrow_swappable" is undefined
"C:/ti/ccs920/ccs/tools/compiler/ti-cgt-c6000_8.3.5/include/libcxx/set", line 638: error #256: type name is not allowed
"C:/ti/ccs920/ccs/tools/compiler/ti-cgt-c6000_8.3.5/include/libcxx/set", line 638: error #284: the global scope has no "value"
Error limit reached.
100 errors detected in the compilation of "../test_regex.cpp".
Compilation terminated.
gmake: *** [test_regex.obj] Error 1
gmake: Target 'all' not remade because of errors.
**** Build Finished ****
When I try to build the preprocessed file you sent, I see very different error diagnostics. This means that whatever went wrong was detected during preprocessing.
Problems like this can often be fixed by building with the option --gen_preprocessor_listing. This creates a file with same name as the source file, but the extension changed to .rl. Among other things, you can see the problem source lines before and after preprocessing. Please search for this option in the C6000 compiler manual.
Please let me know whether this tip helps you find and fix the problem.
Thanks and regards,
-George