Tool/software: TI C/C++ Compiler
Hello
I'm trying to compile the Nanopb library (github.com/.../nanopb) with the ARM compiler/assembler v18.1.4.
I get the following error message when trying to compile the file pb_decode.c:
"C:/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.4.LTS/bin/armcl" -mv7R5 --code_state=32 --float_support=VFPv3D16 -Ooff --opt_for_speed=3 --fp_mode=relaxed --include_path="C:/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.4.LTS/include" -g --gcc --diag_warning=225 --diag_wrap=off --display_error_number --enum_type=packed --abi=eabi --preproc_with_compile --preproc_dependency="pb_decode.d_raw" --obj_directory="." "pb_decode.c" "C:\Users\xxx\AppData\Local\Temp\{D3BBF9AF-725B-4116-872C-CD4DDF936945}", INTERNAL ERROR!: ||$C$L167|| defined differently in each pass This may be a serious problem. Please contact customer support with a description of the problem and a sample of the sourcefile that caused this message to appear. >> Compilation failure
However, as a workaround, the compilation will succeed if I define PB_MAX_REQUIRED_FIELDS as 256 (default is 64) in the header file pb.h or if I use optimization (flag -O0).
Attached is the source file with related header files and a batch-file for running the compilation.
Kind regards,
Jarle S.