AIX: Build from source with XL
I am having difficulty building CMake on AIX 7.2 using IBM XL C 13.1.3.
The bootstrap script fails with the following error:
---------------------------------------------
CMake 3.12.3, Copyright 2000-2018 Kitware, Inc. and Contributors
C compiler on this system is: xlc
---------------------------------------------
Error when bootstrapping CMake:
Cannot find a C++ compiler that supports both C++11 and the specified C++ flags.
Please specify one using environment variable CXX.
The C++ flags are "-D__IBMCPP_TR1__".
They can be changed using the environment variable CXXFLAGS.
See cmake_bootstrap.log for compilers attempted.
---------------------------------------------
Log of errors: /home/elster/src/cmake-3.12.3/Bootstrap.cmk/cmake_bootstrap.log
---------------------------------------------
$ cat [cmake_bootstrap.log](/uploads/5ff9c14c42d37145b4ef82ca203ffbfe/cmake_bootstrap.log)
------------------------------------------
/opt/IBM/xlC/13.1.3/bin/.orig/xlC: 1501-210 (W) command option t contains an incorrect subargument
"cmake_bootstrap_8454428_test.cxx", line 7.2: 1540-0859 (S) #error directive: "Compiler is not in a mode aware of C++11.".
Test failed to compile
Edited by Brad King