[CMake] Core dump after "- Check for working C compiler" on OS400 ( i5/OS PowerPC 32bit) with 2.6.2

Ulf Wendel Ulf.Wendel at Sun.COM
Thu Apr 2 08:43:13 EDT 2009


Hi,

CMake 2.6.2 gives me a crash on OS/400 (i5/OS PowerPC 32bit):

-- The C compiler identification is VisualAge
-- The CXX compiler identification is VisualAge
-- Check for working C compiler: /QOpenSys/vac600/usr/vacpp/bin/xlc_r
terminate called after throwing an instance of 'std::logic_error'
   what():  basic_string::_S_construct NULL not valid
/bin/bash: line 44: 2871447 IOT/Abort trap          (core dumped) 
/home/mysqldev/bs/connector-common-32bit/inst/cmake/bin/cmake -G "Unix 
Makefiles" -DCONNECTOR_PLATFORM=i5pase-powerpc-32bit 
-DMYSQL_CONFIG_EXECUTABLE="/home/mysqldev/bs/connector-common-32bit/inst/mysql-server-gpl-static/bin/mysql_config" 
-DMYSQLCPPCONN_TRACE_ENABLE:BOOL=1
#=#=#=#=#=#=#=#=#=#=#=#=#=#=#=#=#=#=#=#=#=#=#=#=#=#=#=#=#=#=#=#=#=#=#=#=#=#=#=
ERROR[con-cpp][i5os-ppc32]: Got error code 134 from:

I think CMake is done with the C compiler check and getting the crash 
when checking for the C++ compiler. Please find CMakeOutput.log nad 
CMakeSystem.cmake below. The C++ compiler is VisualAge C++ Professional 
/ C for AIX Compiler, Version 6.

Any hints?

Thanks,
Ulf


$ cat CMakeOutput.log

The system is: OS400 - 4 - powerpc
Compiling the C compiler identification source file "CMakeCCompilerId.c" 
succeeded.
Compiler: /QOpenSys/vac600/usr/vacpp/bin/xlc_r
Build flags: 
-O2;-g;-ma;-qstrict;-qoptimize=2;-qmaxmem=8192;-qlanglvl=extended
Id flags:

The output was:
0


Compilation of the C compiler identification source "CMakeCCompilerId.c" 
produced "a.out"

The C compiler identification is VisualAge, found in 
"/home/mysqldev/bs/connector-c++-32bit/src/mysql-connector-c++-563/CMakeFiles/CompilerIdC/a.out"

Compiling the CXX compiler identification source file 
"CMakeCXXCompilerId.cpp" succeeded.
Compiler: /QOpenSys/vac600/usr/vacpp/bin/xlC_r
Build flags: -O2;-g;-ma;-qstrict;-qoptimize=2;-qmaxmem=8192
Id flags:

The output was:
0


Compilation of the CXX compiler identification source 
"CMakeCXXCompilerId.cpp" produced "a.out"

The CXX compiler identification is VisualAge, found in 
"/home/mysqldev/bs/connector-c++-32bit/src/mysql-connector-c++-563/CMakeFiles/CompilerIdCXX/a.out"


$ cat CMakeSystem.cmake


SET(CMAKE_SYSTEM "OS400-4")
SET(CMAKE_SYSTEM_NAME "OS400")
SET(CMAKE_SYSTEM_VERSION "4")
SET(CMAKE_SYSTEM_PROCESSOR "powerpc")

SET(CMAKE_HOST_SYSTEM "OS400-4")
SET(CMAKE_HOST_SYSTEM_NAME "OS400")
SET(CMAKE_HOST_SYSTEM_VERSION "4")
SET(CMAKE_HOST_SYSTEM_PROCESSOR "powerpc")

SET(CMAKE_CROSSCOMPILING "FALSE")

SET(CMAKE_SYSTEM_LOADED 1)



More information about the CMake mailing list