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
For some reason it seems that the TI compiler isn't picking up the stdint.h header when building. This same process does work on another machine but not on this one. As you can see from the output, the linker is getting passed the correct directory as a parameter but is not finding the file.
Output of cmake/make/ti compiler:
cmake ..
Compiler: /home/server/ti/ccsv8/tools/compiler/ti-cgt-msp430_18.1.3.LTS/bin/cl430
CCS_COMPILER_PATH: /home/server/ti/ccsv8/tools/compiler
CCS_PATH: /home/server/ti/ccsv8
Compiler: /home/server/ti/ccsv8/tools/compiler/ti-cgt-msp430_18.1.3.LTS/bin/cl430
CCS_COMPILER_PATH: /home/server/ti/ccsv8/tools/compiler
CCS_PATH: /home/server/ti/ccsv8
-- The C compiler identification is TI 18.1.3
-- The CXX compiler identification is TI 18.1.3
-- Detecting C compiler ABI info
Compiler: /home/server/ti/ccsv8/tools/compiler/ti-cgt-msp430_18.1.3.LTS/bin/cl430
CCS_COMPILER_PATH: /home/server/ti/ccsv8/tools/compiler
CCS_PATH: /home/server/ti/ccsv8
-- Detecting C compiler ABI info - failed
-- Detecting CXX compiler ABI info
Compiler: /home/server/ti/ccsv8/tools/compiler/ti-cgt-msp430_18.1.3.LTS/bin/cl430
CCS_COMPILER_PATH: /home/server/ti/ccsv8/tools/compiler
CCS_PATH: /home/server/ti/ccsv8
-- Detecting CXX compiler ABI info - failed
-- Configuring done
-- Generating done
-- Build files have been written to: /var/lib/jenkins/workspace/B_125_cpp/build
[Pipeline] sh
+ make -j --trace
Makefile:236: target 'cmake_check_build_system' does not exist
/usr/bin/cmake -H/var/lib/jenkins/workspace/B_125_cpp -B/var/lib/jenkins/workspace/B_125_cpp/build --check-build-system CMakeFiles/Makefile.cmake 0
Makefile:83: update target 'all' due to: cmake_check_build_system
/usr/bin/cmake -E cmake_progress_start /var/lib/jenkins/workspace/B_125_cpp/build/CMakeFiles /var/lib/jenkins/workspace/B_125_cpp/build/CMakeFiles/progress.marks
make -f CMakeFiles/Makefile2 all
CMakeFiles/Makefile2:67: target 'CMakeFiles/B125_SW.dir/all' does not exist
make -f CMakeFiles/B125_SW.dir/build.make CMakeFiles/B125_SW.dir/depend
CMakeFiles/B125_SW.dir/build.make:167: target 'CMakeFiles/B125_SW.dir/depend' does not exist
cd /var/lib/jenkins/workspace/B_125_cpp/build && /usr/bin/cmake -E cmake_depends "Unix Makefiles" /var/lib/jenkins/workspace/B_125_cpp /var/lib/jenkins/workspace/B_125_cpp /var/lib/jenkins/workspace/B_125_cpp/build /var/lib/jenkins/workspace/B_125_cpp/build /var/lib/jenkins/workspace/B_125_cpp/build/CMakeFiles/B125_SW.dir/DependInfo.cmake --color=
Scanning dependencies of target B125_SW
make -f CMakeFiles/B125_SW.dir/build.make CMakeFiles/B125_SW.dir/build
CMakeFiles/B125_SW.dir/build.make:62: update target 'CMakeFiles/B125_SW.dir/src/main.cpp.obj' due to: ../src/main.cpp ../src/Event.hpp ../src/State.hpp ../src/StateMachine.hpp CMakeFiles/B125_SW.dir/flags.make
/usr/bin/cmake -E cmake_echo_color --switch= --green --progress-dir=/var/lib/jenkins/workspace/B_125_cpp/build/CMakeFiles --progress-num=1 "Building CXX object CMakeFiles/B125_SW.dir/src/main.cpp.obj"
CMakeFiles/B125_SW.dir/build.make:86: update target 'CMakeFiles/B125_SW.dir/src/State.cpp.obj' due to: ../src/State.cpp ../src/Event.hpp ../src/State.hpp CMakeFiles/B125_SW.dir/flags.make
/usr/bin/cmake -E cmake_echo_color --switch= --green --progress-dir=/var/lib/jenkins/workspace/B_125_cpp/build/CMakeFiles --progress-num=2 "Building CXX object CMakeFiles/B125_SW.dir/src/State.cpp.obj"
CMakeFiles/B125_SW.dir/build.make:110: update target 'CMakeFiles/B125_SW.dir/src/StateMachine.cpp.obj' due to: ../src/StateMachine.cpp ../src/Event.hpp ../src/State.hpp ../src/StateMachine.hpp CMakeFiles/B125_SW.dir/flags.make
/usr/bin/cmake -E cmake_echo_color --switch= --green --progress-dir=/var/lib/jenkins/workspace/B_125_cpp/build/CMakeFiles --progress-num=3 "Building CXX object CMakeFiles/B125_SW.dir/src/StateMachine.cpp.obj"
[ 25%] Building CXX object CMakeFiles/B125_SW.dir/src/main.cpp.obj
[ 75%] Building CXX object CMakeFiles/B125_SW.dir/src/StateMachine.cpp.obj
[ 75%] Building CXX object CMakeFiles/B125_SW.dir/src/State.cpp.obj
/home/server/ti/ccsv8/tools/compiler/ti-cgt-msp430_18.1.3.LTS/bin/cl430 --compile_only --cpp_file=/var/lib/jenkins/workspace/B_125_cpp/src/State.cpp --silicon_version=mspx --include_path=/home/server/ti/ccsv8/ccs_base/msp430/include --include_path=/home/server/ti/ccsv8/tools/compiler/include --define=__MSP430FR5969__ --c++14 --verbose --verbose_diagnostics --output_file=CMakeFiles/B125_SW.dir/src/State.cpp.obj
/home/server/ti/ccsv8/tools/compiler/ti-cgt-msp430_18.1.3.LTS/bin/cl430 --compile_only --cpp_file=/var/lib/jenkins/workspace/B_125_cpp/src/main.cpp --silicon_version=mspx --include_path=/home/server/ti/ccsv8/ccs_base/msp430/include --include_path=/home/server/ti/ccsv8/tools/compiler/include --define=__MSP430FR5969__ --c++14 --verbose --verbose_diagnostics --output_file=CMakeFiles/B125_SW.dir/src/main.cpp.obj
/home/server/ti/ccsv8/tools/compiler/ti-cgt-msp430_18.1.3.LTS/bin/cl430 --compile_only --cpp_file=/var/lib/jenkins/workspace/B_125_cpp/src/StateMachine.cpp --silicon_version=mspx --include_path=/home/server/ti/ccsv8/ccs_base/msp430/include --include_path=/home/server/ti/ccsv8/tools/compiler/include --define=__MSP430FR5969__ --c++14 --verbose --verbose_diagnostics --output_file=CMakeFiles/B125_SW.dir/src/StateMachine.cpp.obj
MSP430 C/C++ Compiler v18.1.3.LTS
Tools Copyright (c) 2003-2017 Texas Instruments Incorporated
MSP430 C/C++ Compiler v18.1.3.LTS
Tools Copyright (c) 2003-2017 Texas Instruments Incorporated
MSP430 C/C++ Compiler v18.1.3.LTS
Tools Copyright (c) 2003-2017 Texas Instruments Incorporated
"/var/lib/jenkins/workspace/B_125_cpp/src/State.hpp", line 4: fatal error:
cannot open source file "stdint.h"
#include <stdint.h>
^
1 catastrophic error detected in the compilation of "/var/lib/jenkins/workspace/B_125_cpp/src/State.cpp".
Compilation terminated.
"/var/lib/jenkins/workspace/B_125_cpp/src/State.hpp", line 4: fatal error:
"/var/lib/jenkins/workspace/B_125_cpp/src/State.hpp", line 4: fatal error:
cannot open source file "stdint.h"
cannot open source file "stdint.h"
#include <stdint.h>
#include <stdint.h>
^
^
1 catastrophic error detected in the compilation of "/var/lib/jenkins/workspace/B_125_cpp/src/StateMachine.cpp".
1 catastrophic error detected in the compilation of "/var/lib/jenkins/workspace/B_125_cpp/src/main.cpp".
Compilation terminated.
Compilation terminated.
>> Compilation failure
>> Compilation failure
CMakeFiles/B125_SW.dir/build.make:86: recipe for target 'CMakeFiles/B125_SW.dir/src/State.cpp.obj' failed
make[2]: *** [CMakeFiles/B125_SW.dir/src/State.cpp.obj] Error 1
>> Compilation failure
make[2]: *** Waiting for unfinished jobs....
CMakeFiles/B125_SW.dir/build.make:62: recipe for target 'CMakeFiles/B125_SW.dir/src/main.cpp.obj' failed
make[2]: *** [CMakeFiles/B125_SW.dir/src/main.cpp.obj] Error 1
CMakeFiles/B125_SW.dir/build.make:110: recipe for target 'CMakeFiles/B125_SW.dir/src/StateMachine.cpp.obj' failed
make[2]: *** [CMakeFiles/B125_SW.dir/src/StateMachine.cpp.obj] Error 1
CMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/B125_SW.dir/all' failed
make[1]: *** [CMakeFiles/B125_SW.dir/all] Error 2
Makefile:83: recipe for target 'all' failed
make: *** [all] Error 2
Output of ls from /home/server/ti/ccsv8/tools/compiler/ti-cgt-msp430_18.1.3.LTS/include/
abi_prefix.h ctype.h fenv.h inttypes.h locale.h pprof.h stdbool.h sys wchar.h
assert.h cxxabi.h fenv-softfloat.h _isfuncdcl.h _lock.h _pthread.h stddef.h tgmath.h wctype.h
complex.h _data_synch.h file.h _isfuncdef.h lowlev.h _reg_mutex_api.h stdint.h _ti_config.h xlocale
cpp_inline_math.h _defs.h float.h iso646.h machine _reg_synch_api.h stdio.h time.h xlocale.h
cpy_tbl.h elfnames.h _fmt_specifier.h libcxx math.h setjmp.h stdlib.h _tls.h
crc_defines.h errno.h intrinsics.h limits.h _mutex.h signal.h string.h trgdrv.h
crc_tbl.h exception.stdh intrinsics_legacy_undefs.h linkage.h new.stdh stdarg.h strings.h typeinfo.stdh
When the compiler invoked, these are the directories that are searched for include files ...
--include_path=/home/server/ti/ccsv8/ccs_base/msp430/include --include_path=/home/server/ti/ccsv8/tools/compiler/include
The second directory should be changed to the one you show has the standard include files ...
Riley Wilbur said:/home/server/ti/ccsv8/tools/compiler/ti-cgt-msp430_18.1.3.LTS/include
Thanks and regards,
-George