I cant upload the log file so am pasting it in here. Looks like for some reason xlC is failing to compiler the compiler identification code, its a bit odd as the version of XLC does support single line comment. I have pasted the lines the error mentions into a standalone c module and they do compile.
CMakeError.log
Compiling the C compiler identification source file "CMakeCCompilerId.c" failed.
Compiler: /opt/IBM/xlC/16.1.0/bin/cc
Build flags:
Id flags:
The output was:
1
"CMakeCCompilerId.c", line 758.2: 1506-275 (S) Unexpected text '/' encountered.
"CMakeCCompilerId.c", line 758.13: 1506-045 (S) Undeclared identifier _MSC_VER.
"CMakeCCompilerId.c", line 757.46: 1506-221 (S) Initializer must be a valid constant expression.
"CMakeCCompilerId.c", line 758.66: 1506-209 (S) Character constants must end before the end of a line.
"CMakeCCompilerId.c", line 758.39: 1506-076 (W) Character constant 's MSVC compatibility mode.' has more than 4 characters. No more than rightmost 4 characters are used.
"CMakeCCompilerId.c", line 758.23: 1506-277 (S) Syntax error: possible missing ';' or ','?
Compiling the C compiler identification source file "CMakeCCompilerId.c" failed.
Compiler: /opt/IBM/xlC/16.1.0/bin/cc
Build flags:
Id flags: -c
The output was:
1
"CMakeCCompilerId.c", line 758.2: 1506-275 (S) Unexpected text '/' encountered.
"CMakeCCompilerId.c", line 758.13: 1506-045 (S) Undeclared identifier _MSC_VER.
"CMakeCCompilerId.c", line 757.46: 1506-221 (S) Initializer must be a valid constant expression.
"CMakeCCompilerId.c", line 758.66: 1506-209 (S) Character constants must end before the end of a line.
"CMakeCCompilerId.c", line 758.39: 1506-076 (W) Character constant 's MSVC compatibility mode.' has more than 4 characters. No more than rightmost 4 characters are used.
"CMakeCCompilerId.c", line 758.23: 1506-277 (S) Syntax error: possible missing ';' or ','?
Compiling the C compiler identification source file "CMakeCCompilerId.c" failed.
Compiler: /opt/IBM/xlC/16.1.0/bin/cc
Build flags:
Id flags: -Aa
The output was:
1
"CMakeCCompilerId.c", line 758.2: 1506-275 (S) Unexpected text '/' encountered.
"CMakeCCompilerId.c", line 758.13: 1506-045 (S) Undeclared identifier _MSC_VER.
"CMakeCCompilerId.c", line 757.46: 1506-221 (S) Initializer must be a valid constant expression.
"CMakeCCompilerId.c", line 758.66: 1506-209 (S) Character constants must end before the end of a line.
"CMakeCCompilerId.c", line 758.39: 1506-076 (W) Character constant 's MSVC compatibility mode.' has more than 4 characters. No more than rightmost 4 characters are used.
"CMakeCCompilerId.c", line 758.23: 1506-277 (S) Syntax error: possible missing ';' or ','?
Compiling the C compiler identification source file "CMakeCCompilerId.c" failed.
Compiler: /opt/IBM/xlC/16.1.0/bin/cc
Build flags:
Id flags: -D__CLASSIC_C__
The output was:
1
"CMakeCCompilerId.c", line 758.2: 1506-275 (S) Unexpected text '/' encountered.
"CMakeCCompilerId.c", line 758.13: 1506-045 (S) Undeclared identifier _MSC_VER.
"CMakeCCompilerId.c", line 757.46: 1506-221 (S) Initializer must be a valid constant expression.
"CMakeCCompilerId.c", line 758.66: 1506-209 (S) Character constants must end before the end of a line.
"CMakeCCompilerId.c", line 758.39: 1506-076 (W) Character constant 's MSVC compatibility mode.' has more than 4 characters. No more than rightmost 4 characters are used.
"CMakeCCompilerId.c", line 758.23: 1506-277 (S) Syntax error: possible missing ';' or ','?
Compiling the C compiler identification source file "CMakeCCompilerId.c" failed.
Compiler: /opt/IBM/xlC/16.1.0/bin/cc
Build flags:
Id flags: --target=arm-arm-none-eabi;-mcpu=cortex-m3
The output was:
1
/opt/IBM/xlC/16.1.0/bin/.orig/cc: 1501-216 (W) command option --target=arm-arm-none-eabi is not recognized - passed to ld
"CMakeCCompilerId.c", line 758.2: 1506-275 (S) Unexpected text '/' encountered.
"CMakeCCompilerId.c", line 758.13: 1506-045 (S) Undeclared identifier _MSC_VER.
"CMakeCCompilerId.c", line 757.46: 1506-221 (S) Initializer must be a valid constant expression.
"CMakeCCompilerId.c", line 758.66: 1506-209 (S) Character constants must end before the end of a line.
"CMakeCCompilerId.c", line 758.39: 1506-076 (W) Character constant 's MSVC compatibility mode.' has more than 4 characters. No more than rightmost 4 characters are used.
"CMakeCCompilerId.c", line 758.23: 1506-277 (S) Syntax error: possible missing ';' or ','?
Compiling the C compiler identification source file "CMakeCCompilerId.c" failed.
Compiler: /opt/IBM/xlC/16.1.0/bin/cc
Build flags:
Id flags: -c;-I__does_not_exist__
The output was:
1
"CMakeCCompilerId.c", line 758.2: 1506-275 (S) Unexpected text '/' encountered.
"CMakeCCompilerId.c", line 758.13: 1506-045 (S) Undeclared identifier _MSC_VER.
"CMakeCCompilerId.c", line 757.46: 1506-221 (S) Initializer must be a valid constant expression.
"CMakeCCompilerId.c", line 758.66: 1506-209 (S) Character constants must end before the end of a line.
"CMakeCCompilerId.c", line 758.39: 1506-076 (W) Character constant 's MSVC compatibility mode.' has more than 4 characters. No more than rightmost 4 characters are used.
"CMakeCCompilerId.c", line 758.23: 1506-277 (S) Syntax error: possible missing ';' or ','?
Compiling the C compiler identification source file "CMakeCCompilerId.c" failed.
Compiler: /opt/IBM/xlC/16.1.0/bin/cc
Build flags:
Id flags:
The output was:
1
"CMakeCCompilerId.c", line 758.2: 1506-275 (S) Unexpected text '/' encountered.
"CMakeCCompilerId.c", line 758.13: 1506-045 (S) Undeclared identifier _MSC_VER.
"CMakeCCompilerId.c", line 757.46: 1506-221 (S) Initializer must be a valid constant expression.
"CMakeCCompilerId.c", line 758.66: 1506-209 (S) Character constants must end before the end of a line.
"CMakeCCompilerId.c", line 758.39: 1506-076 (W) Character constant 's MSVC compatibility mode.' has more than 4 characters. No more than rightmost 4 characters are used.
"CMakeCCompilerId.c", line 758.23: 1506-277 (S) Syntax error: possible missing ';' or ','?
Compiling the C compiler identification source file "CMakeCCompilerId.c" failed.
Compiler: /opt/IBM/xlC/16.1.0/bin/cc
Build flags:
Id flags: -c
The output was:
1
"CMakeCCompilerId.c", line 758.2: 1506-275 (S) Unexpected text '/' encountered.
"CMakeCCompilerId.c", line 758.13: 1506-045 (S) Undeclared identifier _MSC_VER.
"CMakeCCompilerId.c", line 757.46: 1506-221 (S) Initializer must be a valid constant expression.
"CMakeCCompilerId.c", line 758.66: 1506-209 (S) Character constants must end before the end of a line.
"CMakeCCompilerId.c", line 758.39: 1506-076 (W) Character constant 's MSVC compatibility mode.' has more than 4 characters. No more than rightmost 4 characters are used.
"CMakeCCompilerId.c", line 758.23: 1506-277 (S) Syntax error: possible missing ';' or ','?
Compiling the C compiler identification source file "CMakeCCompilerId.c" failed.
Compiler: /opt/IBM/xlC/16.1.0/bin/cc
Build flags:
Id flags: -Aa
The output was:
1
"CMakeCCompilerId.c", line 758.2: 1506-275 (S) Unexpected text '/' encountered.
"CMakeCCompilerId.c", line 758.13: 1506-045 (S) Undeclared identifier _MSC_VER.
"CMakeCCompilerId.c", line 757.46: 1506-221 (S) Initializer must be a valid constant expression.
"CMakeCCompilerId.c", line 758.66: 1506-209 (S) Character constants must end before the end of a line.
"CMakeCCompilerId.c", line 758.39: 1506-076 (W) Character constant 's MSVC compatibility mode.' has more than 4 characters. No more than rightmost 4 characters are used.
"CMakeCCompilerId.c", line 758.23: 1506-277 (S) Syntax error: possible missing ';' or ','?
Compiling the C compiler identification source file "CMakeCCompilerId.c" failed.
Compiler: /opt/IBM/xlC/16.1.0/bin/cc
Build flags:
Id flags: -D__CLASSIC_C__
The output was:
1
"CMakeCCompilerId.c", line 758.2: 1506-275 (S) Unexpected text '/' encountered.
"CMakeCCompilerId.c", line 758.13: 1506-045 (S) Undeclared identifier _MSC_VER.
"CMakeCCompilerId.c", line 757.46: 1506-221 (S) Initializer must be a valid constant expression.
"CMakeCCompilerId.c", line 758.66: 1506-209 (S) Character constants must end before the end of a line.
"CMakeCCompilerId.c", line 758.39: 1506-076 (W) Character constant 's MSVC compatibility mode.' has more than 4 characters. No more than rightmost 4 characters are used.
"CMakeCCompilerId.c", line 758.23: 1506-277 (S) Syntax error: possible missing ';' or ','?
Compiling the C compiler identification source file "CMakeCCompilerId.c" failed.
Compiler: /opt/IBM/xlC/16.1.0/bin/cc
Build flags:
Id flags: --target=arm-arm-none-eabi;-mcpu=cortex-m3
The output was:
1
/opt/IBM/xlC/16.1.0/bin/.orig/cc: 1501-216 (W) command option --target=arm-arm-none-eabi is not recognized - passed to ld
"CMakeCCompilerId.c", line 758.2: 1506-275 (S) Unexpected text '/' encountered.
"CMakeCCompilerId.c", line 758.13: 1506-045 (S) Undeclared identifier _MSC_VER.
"CMakeCCompilerId.c", line 757.46: 1506-221 (S) Initializer must be a valid constant expression.
"CMakeCCompilerId.c", line 758.66: 1506-209 (S) Character constants must end before the end of a line.
"CMakeCCompilerId.c", line 758.39: 1506-076 (W) Character constant 's MSVC compatibility mode.' has more than 4 characters. No more than rightmost 4 characters are used.
"CMakeCCompilerId.c", line 758.23: 1506-277 (S) Syntax error: possible missing ';' or ','?
Compiling the C compiler identification source file "CMakeCCompilerId.c" failed.
Compiler: /opt/IBM/xlC/16.1.0/bin/cc
Build flags:
Id flags: -c;-I__does_not_exist__
The output was:
1
"CMakeCCompilerId.c", line 758.2: 1506-275 (S) Unexpected text '/' encountered.
"CMakeCCompilerId.c", line 758.13: 1506-045 (S) Undeclared identifier _MSC_VER.
"CMakeCCompilerId.c", line 757.46: 1506-221 (S) Initializer must be a valid constant expression.
"CMakeCCompilerId.c", line 758.66: 1506-209 (S) Character constants must end before the end of a line.
"CMakeCCompilerId.c", line 758.39: 1506-076 (W) Character constant 's MSVC compatibility mode.' has more than 4 characters. No more than rightmost 4 characters are used.
"CMakeCCompilerId.c", line 758.23: 1506-277 (S) Syntax error: possible missing ';' or ','?
Checking whether the C compiler is IAR using "" did not match "IAR .+ Compiler":
/opt/IBM/xlC/16.1.0/bin/.orig/cc: 1501-294 (S) No input file specified. Please use -qhelp for more information.
Checking whether the C compiler is IAR using "" did not match "IAR .+ Compiler":
/opt/IBM/xlC/16.1.0/bin/.orig/cc: 1501-294 (S) No input file specified. Please use -qhelp for more information.
Detecting C compiler ABI info failed to compile with the following output:
Change Dir: /data/js/cmaketest/CMakeFiles/CMakeTmp
Run Build Command(s):/usr/local/bin/gmake -f Makefile cmTC_04415/fast && /usr/local/bin/gmake -f CMakeFiles/cmTC_04415.dir/build.make CMakeFiles/cmTC_04415.dir/build
gmake[1]: Entering directory '/data/js/cmaketest/CMakeFiles/CMakeTmp'
Building C object CMakeFiles/cmTC_04415.dir/CMakeCCompilerABI.c.o
/opt/IBM/xlC/16.1.0/bin/cc -o CMakeFiles/cmTC_04415.dir/CMakeCCompilerABI.c.o -c /opt/freeware/share/cmake-3.22/Modules/CMakeCCompilerABI.c
Linking C executable cmTC_04415
/opt/freeware/bin/cmake -E cmake_link_script CMakeFiles/cmTC_04415.dir/link.txt --verbose=1
/opt/IBM/xlC/16.1.0/bin/cc CMakeFiles/cmTC_04415.dir/CMakeCCompilerABI.c.o -o cmTC_04415 /usr/lib /lib
ld: 0711-168 SEVERE ERROR: Input file: /usr/lib
Input files must be regular files.
CMakeFiles/cmTC_04415.dir/build.make:98: recipe for target 'cmTC_04415' failed
gmake[1]: *** [cmTC_04415] Error 12
gmake[1]: Leaving directory '/data/js/cmaketest/CMakeFiles/CMakeTmp'
Makefile:127: recipe for target 'cmTC_04415/fast' failed
gmake: *** [cmTC_04415/fast] Error 2
Determining if the C compiler works failed with the following output:
Change Dir: /data/js/cmaketest/CMakeFiles/CMakeTmp
Run Build Command(s):/usr/local/bin/gmake -f Makefile cmTC_8298e/fast && /usr/local/bin/gmake -f CMakeFiles/cmTC_8298e.dir/build.make CMakeFiles/cmTC_8298e.dir/build
gmake[1]: Entering directory '/data/js/cmaketest/CMakeFiles/CMakeTmp'
Building C object CMakeFiles/cmTC_8298e.dir/testCCompiler.c.o
/opt/IBM/xlC/16.1.0/bin/cc -o CMakeFiles/cmTC_8298e.dir/testCCompiler.c.o -c /data/js/cmaketest/CMakeFiles/CMakeTmp/testCCompiler.c
Linking C executable cmTC_8298e
/opt/freeware/bin/cmake -E cmake_link_script CMakeFiles/cmTC_8298e.dir/link.txt --verbose=1
/opt/IBM/xlC/16.1.0/bin/cc CMakeFiles/cmTC_8298e.dir/testCCompiler.c.o -o cmTC_8298e /usr/lib /lib
ld: 0711-168 SEVERE ERROR: Input file: /usr/lib
Input files must be regular files.
CMakeFiles/cmTC_8298e.dir/build.make:98: recipe for target 'cmTC_8298e' failed
gmake[1]: *** [cmTC_8298e] Error 12
gmake[1]: Leaving directory '/data/js/cmaketest/CMakeFiles/CMakeTmp'
Makefile:127: recipe for target 'cmTC_8298e/fast' failed
gmake: *** [cmTC_8298e/fast] Error 2
Compiling the C compiler identification source file "CMakeCCompilerId.c" failed.
Compiler: /opt/IBM/xlC/16.1.0/bin/cc
Build flags:
Id flags:
The output was:
1
"CMakeCCompilerId.c", line 758.2: 1506-275 (S) Unexpected text '/' encountered.
"CMakeCCompilerId.c", line 758.13: 1506-045 (S) Undeclared identifier _MSC_VER.
"CMakeCCompilerId.c", line 757.46: 1506-221 (S) Initializer must be a valid constant expression.
"CMakeCCompilerId.c", line 758.66: 1506-209 (S) Character constants must end before the end of a line.
"CMakeCCompilerId.c", line 758.39: 1506-076 (W) Character constant 's MSVC compatibility mode.' has more than 4 characters. No more than rightmost 4 characters are used.
"CMakeCCompilerId.c", line 758.23: 1506-277 (S) Syntax error: possible missing ';' or ','?
Compiling the C compiler identification source file "CMakeCCompilerId.c" failed.
Compiler: /opt/IBM/xlC/16.1.0/bin/cc
Build flags:
Id flags: -c
The output was:
1
"CMakeCCompilerId.c", line 758.2: 1506-275 (S) Unexpected text '/' encountered.
"CMakeCCompilerId.c", line 758.13: 1506-045 (S) Undeclared identifier _MSC_VER.
"CMakeCCompilerId.c", line 757.46: 1506-221 (S) Initializer must be a valid constant expression.
"CMakeCCompilerId.c", line 758.66: 1506-209 (S) Character constants must end before the end of a line.
"CMakeCCompilerId.c", line 758.39: 1506-076 (W) Character constant 's MSVC compatibility mode.' has more than 4 characters. No more than rightmost 4 characters are used.
"CMakeCCompilerId.c", line 758.23: 1506-277 (S) Syntax error: possible missing ';' or ','?
Compiling the C compiler identification source file "CMakeCCompilerId.c" failed.
Compiler: /opt/IBM/xlC/16.1.0/bin/cc
Build flags:
Id flags: -Aa
The output was:
1
"CMakeCCompilerId.c", line 758.2: 1506-275 (S) Unexpected text '/' encountered.
"CMakeCCompilerId.c", line 758.13: 1506-045 (S) Undeclared identifier _MSC_VER.
"CMakeCCompilerId.c", line 757.46: 1506-221 (S) Initializer must be a valid constant expression.
"CMakeCCompilerId.c", line 758.66: 1506-209 (S) Character constants must end before the end of a line.
"CMakeCCompilerId.c", line 758.39: 1506-076 (W) Character constant 's MSVC compatibility mode.' has more than 4 characters. No more than rightmost 4 characters are used.
"CMakeCCompilerId.c", line 758.23: 1506-277 (S) Syntax error: possible missing ';' or ','?
Compiling the C compiler identification source file "CMakeCCompilerId.c" failed.
Compiler: /opt/IBM/xlC/16.1.0/bin/cc
Build flags:
Id flags: -D__CLASSIC_C__
The output was:
1
"CMakeCCompilerId.c", line 758.2: 1506-275 (S) Unexpected text '/' encountered.
"CMakeCCompilerId.c", line 758.13: 1506-045 (S) Undeclared identifier _MSC_VER.
"CMakeCCompilerId.c", line 757.46: 1506-221 (S) Initializer must be a valid constant expression.
"CMakeCCompilerId.c", line 758.66: 1506-209 (S) Character constants must end before the end of a line.
"CMakeCCompilerId.c", line 758.39: 1506-076 (W) Character constant 's MSVC compatibility mode.' has more than 4 characters. No more than rightmost 4 characters are used.
"CMakeCCompilerId.c", line 758.23: 1506-277 (S) Syntax error: possible missing ';' or ','?
Compiling the C compiler identification source file "CMakeCCompilerId.c" failed.
Compiler: /opt/IBM/xlC/16.1.0/bin/cc
Build flags:
Id flags: --target=arm-arm-none-eabi;-mcpu=cortex-m3
The output was:
1
/opt/IBM/xlC/16.1.0/bin/.orig/cc: 1501-216 (W) command option --target=arm-arm-none-eabi is not recognized - passed to ld
"CMakeCCompilerId.c", line 758.2: 1506-275 (S) Unexpected text '/' encountered.
"CMakeCCompilerId.c", line 758.13: 1506-045 (S) Undeclared identifier _MSC_VER.
"CMakeCCompilerId.c", line 757.46: 1506-221 (S) Initializer must be a valid constant expression.
"CMakeCCompilerId.c", line 758.66: 1506-209 (S) Character constants must end before the end of a line.
"CMakeCCompilerId.c", line 758.39: 1506-076 (W) Character constant 's MSVC compatibility mode.' has more than 4 characters. No more than rightmost 4 characters are used.
"CMakeCCompilerId.c", line 758.23: 1506-277 (S) Syntax error: possible missing ';' or ','?
Compiling the C compiler identification source file "CMakeCCompilerId.c" failed.
Compiler: /opt/IBM/xlC/16.1.0/bin/cc
Build flags:
Id flags: -c;-I__does_not_exist__
The output was:
1
"CMakeCCompilerId.c", line 758.2: 1506-275 (S) Unexpected text '/' encountered.
"CMakeCCompilerId.c", line 758.13: 1506-045 (S) Undeclared identifier _MSC_VER.
"CMakeCCompilerId.c", line 757.46: 1506-221 (S) Initializer must be a valid constant expression.
"CMakeCCompilerId.c", line 758.66: 1506-209 (S) Character constants must end before the end of a line.
"CMakeCCompilerId.c", line 758.39: 1506-076 (W) Character constant 's MSVC compatibility mode.' has more than 4 characters. No more than rightmost 4 characters are used.
"CMakeCCompilerId.c", line 758.23: 1506-277 (S) Syntax error: possible missing ';' or ','?
Compiling the C compiler identification source file "CMakeCCompilerId.c" failed.
Compiler: /opt/IBM/xlC/16.1.0/bin/cc
Build flags:
Id flags:
The output was:
1
"CMakeCCompilerId.c", line 758.2: 1506-275 (S) Unexpected text '/' encountered.
"CMakeCCompilerId.c", line 758.13: 1506-045 (S) Undeclared identifier _MSC_VER.
"CMakeCCompilerId.c", line 757.46: 1506-221 (S) Initializer must be a valid constant expression.
"CMakeCCompilerId.c", line 758.66: 1506-209 (S) Character constants must end before the end of a line.
"CMakeCCompilerId.c", line 758.39: 1506-076 (W) Character constant 's MSVC compatibility mode.' has more than 4 characters. No more than rightmost 4 characters are used.
"CMakeCCompilerId.c", line 758.23: 1506-277 (S) Syntax error: possible missing ';' or ','?
Compiling the C compiler identification source file "CMakeCCompilerId.c" failed.
Compiler: /opt/IBM/xlC/16.1.0/bin/cc
Build flags:
Id flags: -c
The output was:
1
"CMakeCCompilerId.c", line 758.2: 1506-275 (S) Unexpected text '/' encountered.
"CMakeCCompilerId.c", line 758.13: 1506-045 (S) Undeclared identifier _MSC_VER.
"CMakeCCompilerId.c", line 757.46: 1506-221 (S) Initializer must be a valid constant expression.
"CMakeCCompilerId.c", line 758.66: 1506-209 (S) Character constants must end before the end of a line.
"CMakeCCompilerId.c", line 758.39: 1506-076 (W) Character constant 's MSVC compatibility mode.' has more than 4 characters. No more than rightmost 4 characters are used.
"CMakeCCompilerId.c", line 758.23: 1506-277 (S) Syntax error: possible missing ';' or ','?
Compiling the C compiler identification source file "CMakeCCompilerId.c" failed.
Compiler: /opt/IBM/xlC/16.1.0/bin/cc
Build flags:
Id flags: -Aa
The output was:
1
"CMakeCCompilerId.c", line 758.2: 1506-275 (S) Unexpected text '/' encountered.
"CMakeCCompilerId.c", line 758.13: 1506-045 (S) Undeclared identifier _MSC_VER.
"CMakeCCompilerId.c", line 757.46: 1506-221 (S) Initializer must be a valid constant expression.
"CMakeCCompilerId.c", line 758.66: 1506-209 (S) Character constants must end before the end of a line.
"CMakeCCompilerId.c", line 758.39: 1506-076 (W) Character constant 's MSVC compatibility mode.' has more than 4 characters. No more than rightmost 4 characters are used.
"CMakeCCompilerId.c", line 758.23: 1506-277 (S) Syntax error: possible missing ';' or ','?
Compiling the C compiler identification source file "CMakeCCompilerId.c" failed.
Compiler: /opt/IBM/xlC/16.1.0/bin/cc
Build flags:
Id flags: -D__CLASSIC_C__
The output was:
1
"CMakeCCompilerId.c", line 758.2: 1506-275 (S) Unexpected text '/' encountered.
"CMakeCCompilerId.c", line 758.13: 1506-045 (S) Undeclared identifier _MSC_VER.
"CMakeCCompilerId.c", line 757.46: 1506-221 (S) Initializer must be a valid constant expression.
"CMakeCCompilerId.c", line 758.66: 1506-209 (S) Character constants must end before the end of a line.
"CMakeCCompilerId.c", line 758.39: 1506-076 (W) Character constant 's MSVC compatibility mode.' has more than 4 characters. No more than rightmost 4 characters are used.
"CMakeCCompilerId.c", line 758.23: 1506-277 (S) Syntax error: possible missing ';' or ','?
Compiling the C compiler identification source file "CMakeCCompilerId.c" failed.
Compiler: /opt/IBM/xlC/16.1.0/bin/cc
Build flags:
Id flags: --target=arm-arm-none-eabi;-mcpu=cortex-m3
The output was:
1
/opt/IBM/xlC/16.1.0/bin/.orig/cc: 1501-216 (W) command option --target=arm-arm-none-eabi is not recognized - passed to ld
"CMakeCCompilerId.c", line 758.2: 1506-275 (S) Unexpected text '/' encountered.
"CMakeCCompilerId.c", line 758.13: 1506-045 (S) Undeclared identifier _MSC_VER.
"CMakeCCompilerId.c", line 757.46: 1506-221 (S) Initializer must be a valid constant expression.
"CMakeCCompilerId.c", line 758.66: 1506-209 (S) Character constants must end before the end of a line.
"CMakeCCompilerId.c", line 758.39: 1506-076 (W) Character constant 's MSVC compatibility mode.' has more than 4 characters. No more than rightmost 4 characters are used.
"CMakeCCompilerId.c", line 758.23: 1506-277 (S) Syntax error: possible missing ';' or ','?
Compiling the C compiler identification source file "CMakeCCompilerId.c" failed.
Compiler: /opt/IBM/xlC/16.1.0/bin/cc
Build flags:
Id flags: -c;-I__does_not_exist__
The output was:
1
"CMakeCCompilerId.c", line 758.2: 1506-275 (S) Unexpected text '/' encountered.
"CMakeCCompilerId.c", line 758.13: 1506-045 (S) Undeclared identifier _MSC_VER.
"CMakeCCompilerId.c", line 757.46: 1506-221 (S) Initializer must be a valid constant expression.
"CMakeCCompilerId.c", line 758.66: 1506-209 (S) Character constants must end before the end of a line.
"CMakeCCompilerId.c", line 758.39: 1506-076 (W) Character constant 's MSVC compatibility mode.' has more than 4 characters. No more than rightmost 4 characters are used.
"CMakeCCompilerId.c", line 758.23: 1506-277 (S) Syntax error: possible missing ';' or ','?
Checking whether the C compiler is IAR using "" did not match "IAR .+ Compiler":
/opt/IBM/xlC/16.1.0/bin/.orig/cc: 1501-294 (S) No input file specified. Please use -qhelp for more information.
Checking whether the C compiler is IAR using "" did not match "IAR .+ Compiler":
/opt/IBM/xlC/16.1.0/bin/.orig/cc: 1501-294 (S) No input file specified. Please use -qhelp for more information.
Detecting C compiler ABI info failed to compile with the following output:
Change Dir: /data/js/cmaketest/CMakeFiles/CMakeTmp
Run Build Command(s):/usr/local/bin/gmake -f Makefile cmTC_f124f/fast && /usr/local/bin/gmake -f CMakeFiles/cmTC_f124f.dir/build.make CMakeFiles/cmTC_f124f.dir/build
gmake[1]: Entering directory '/data/js/cmaketest/CMakeFiles/CMakeTmp'
Building C object CMakeFiles/cmTC_f124f.dir/CMakeCCompilerABI.c.o
/opt/IBM/xlC/16.1.0/bin/cc -o CMakeFiles/cmTC_f124f.dir/CMakeCCompilerABI.c.o -c /opt/freeware/share/cmake-3.22/Modules/CMakeCCompilerABI.c
Linking C executable cmTC_f124f
/opt/freeware/bin/cmake -E cmake_link_script CMakeFiles/cmTC_f124f.dir/link.txt --verbose=1
/opt/IBM/xlC/16.1.0/bin/cc CMakeFiles/cmTC_f124f.dir/CMakeCCompilerABI.c.o -o cmTC_f124f /usr/lib /lib
ld: 0711-168 SEVERE ERROR: Input file: /usr/lib
Input files must be regular files.
CMakeFiles/cmTC_f124f.dir/build.make:98: recipe for target 'cmTC_f124f' failed
gmake[1]: *** [cmTC_f124f] Error 12
gmake[1]: Leaving directory '/data/js/cmaketest/CMakeFiles/CMakeTmp'
Makefile:127: recipe for target 'cmTC_f124f/fast' failed
gmake: *** [cmTC_f124f/fast] Error 2
Determining if the C compiler works failed with the following output:
Change Dir: /data/js/cmaketest/CMakeFiles/CMakeTmp
Run Build Command(s):/usr/local/bin/gmake -f Makefile cmTC_8d25a/fast && /usr/local/bin/gmake -f CMakeFiles/cmTC_8d25a.dir/build.make CMakeFiles/cmTC_8d25a.dir/build
gmake[1]: Entering directory '/data/js/cmaketest/CMakeFiles/CMakeTmp'
Building C object CMakeFiles/cmTC_8d25a.dir/testCCompiler.c.o
/opt/IBM/xlC/16.1.0/bin/cc -o CMakeFiles/cmTC_8d25a.dir/testCCompiler.c.o -c /data/js/cmaketest/CMakeFiles/CMakeTmp/testCCompiler.c
Linking C executable cmTC_8d25a
/opt/freeware/bin/cmake -E cmake_link_script CMakeFiles/cmTC_8d25a.dir/link.txt --verbose=1
/opt/IBM/xlC/16.1.0/bin/cc CMakeFiles/cmTC_8d25a.dir/testCCompiler.c.o -o cmTC_8d25a /usr/lib /lib
ld: 0711-168 SEVERE ERROR: Input file: /usr/lib
Input files must be regular files.
CMakeFiles/cmTC_8d25a.dir/build.make:98: recipe for target 'cmTC_8d25a' failed
gmake[1]: *** [cmTC_8d25a] Error 12
gmake[1]: Leaving directory '/data/js/cmaketest/CMakeFiles/CMakeTmp'
Makefile:127: recipe for target 'cmTC_8d25a/fast' failed
gmake: *** [cmTC_8d25a/fast] Error 2