Hi All,<br> I am trying to cross compile MySql Connector/C for Linux/PowerPC architecture and I am getting the below error.<br><br>PS: CMAKE Version used is 2.8.7<br><br>Command:<br>Step 1: Setup my tool chain for PowerPC<br>
Step 2: Cmake command<br><br>cmake -G "Unix Makefiles" -DCMAKE_INSTALL_PREFIX=~/NewDataBaseStuff/mysqlclient_c/lib -DCMAKE_C_COMPILER="ppc_4xx-gcc" -DCMAKE_CXX_COMPILER="ppc_4xx-g++" -DCMAKE_C_FLAGS="-c -g -static -I. -I/opt/ELDK/4.2/ppc_4xx/usr/include/" --debug-trycompile<br>
<br>debug trycompile on<br>-- The C compiler identification is GNU<br>-- The CXX compiler identification is GNU<br>-- Check for working C compiler: /opt/ELDK/4.2/usr/bin/ppc_4xx-gcc<br>-- Check for working C compiler: /opt/ELDK/4.2/usr/bin/ppc_4xx-gcc -- works<br>
-- Detecting C compiler ABI info<br>CMake Error at /usr/share/cmake-2.8/Modules/CMakeDetermineCompilerABI.cmake:31 (TRY_COMPILE):<br> Cannot copy output executable<br><br> ''<br><br> to destination specified by COPY_FILE:<br>
<br> 'DIR/mysql-connector-c-6.0.2/CMakeFiles/CMakeDetermineCompilerABI_C.bin'<br><br> Unable to find the executable at any of:<br><br> DIR/mysql-connector-c-6.0.2/CMakeFiles/CMakeTmp/cmTryCompileExec<br> DIR/mysql-connector-c-6.0.2/CMakeFiles/CMakeTmp/Debug/cmTryCompileExec<br>
DIR/mysql-connector-c-6.0.2/CMakeFiles/CMakeTmp/Development/cmTryCompileExec<br><br>Call Stack (most recent call first):<br> /usr/share/cmake-2.8/Modules/CMakeTestCCompiler.cmake:71 (CMAKE_DETERMINE_COMPILER_ABI)<br>
CMakeLists.txt:21 (PROJECT)<br><br><br>-- Detecting C compiler ABI info - done<br>-- Check for working CXX compiler: /opt/ELDK/4.2/usr/bin/ppc_4xx-g++<br>-- Check for working CXX compiler: /opt/ELDK/4.2/usr/bin/ppc_4xx-g++ -- works<br>
-- Detecting CXX compiler ABI info<br>-- Detecting CXX compiler ABI info - done<br>.<br>.<br>.<br>CMake Error at /usr/share/cmake-2.8/Modules/TestBigEndian.cmake:44 (MESSAGE):<br> no suitable type found<br>Call Stack (most recent call first):<br>
CMakePlatformTests.txt:200 (TEST_BIG_ENDIAN)<br> CMakeLists.txt:267 (INCLUDE)<br><br><br>-- Configuring incomplete, errors occurred!<br><br>So I have 2 problems:<br><br>1. Failure in detecting Compiler ABI information<br>
2. Failing in Big Endianess test: I checked couple of posts online and tried to suppress the endianess check by modifying CMakePlatformTests.txt, but the build process still failed. Below is the log:<br><br>debug trycompile on<br>
-- The C compiler identification is GNU<br>-- The CXX compiler identification is GNU<br>-- Check for working C compiler: /opt/ELDK/4.2/usr/bin/ppc_4xx-gcc<br>-- Check for working C compiler: /opt/ELDK/4.2/usr/bin/ppc_4xx-gcc -- works<br>
-- Detecting C compiler ABI info<br>CMake Error at /usr/share/cmake-2.8/Modules/CMakeDetermineCompilerABI.cmake:31 (TRY_COMPILE):<br> Cannot copy output executable<br><br> ''<br><br> to destination specified by COPY_FILE:<br>
<br> 'DIR/mysql-connector-c-6.0.2/CMakeFiles/CMakeDetermineCompilerABI_C.bin'<br><br> Unable to find the executable at any of:<br><br> DIR/mysql-connector-c-6.0.2/CMakeFiles/CMakeTmp/cmTryCompileExec<br> DIR/mysql-connector-c-6.0.2/CMakeFiles/CMakeTmp/Debug/cmTryCompileExec<br>
DIR/mysql-connector-c-6.0.2/CMakeFiles/CMakeTmp/Development/cmTryCompileExec<br><br>Call Stack (most recent call first):<br> /usr/share/cmake-2.8/Modules/CMakeTestCCompiler.cmake:71 (CMAKE_DETERMINE_COMPILER_ABI)<br>
CMakeLists.txt:21 (PROJECT)<br><br><br>-- Detecting C compiler ABI info - done<br>-- Check for working CXX compiler: /opt/ELDK/4.2/usr/bin/ppc_4xx-g++<br>-- Check for working CXX compiler: /opt/ELDK/4.2/usr/bin/ppc_4xx-g++ -- works<br>
-- Detecting CXX compiler ABI info<br>-- Detecting CXX compiler ABI info - done<br>.<br>.<br>.<br>-- Check size of int8<br>-- Check size of int8 - failed<br>-- Check size of uint8<br>-- Check size of uint8 - failed<br>-- Check size of int16<br>
-- Check size of int16 - failed<br>-- Check size of uint16<br>-- Check size of uint16 - failed<br>-- Check size of int32<br>-- Check size of int32 - failed<br>-- Check size of uint32<br>-- Check size of uint32 - failed<br>
-- Check size of u_int32_t<br>-- Check size of u_int32_t - done<br>-- Check size of int64<br>-- Check size of int64 - failed<br>-- Check size of uint64<br>-- Check size of uint64 - failed<br>-- Check size of socklen_t<br>
-- Check size of socklen_t - done<br>-- Performing Test HAVE_TIMESPEC_TS_SEC<br>-- Performing Test HAVE_TIMESPEC_TS_SEC - Failed<br>-- Performing Test QSORT_TYPE_IS_VOID<br>-- Performing Test QSORT_TYPE_IS_VOID - Success<br>
-- Performing Test SIGNAL_RETURN_TYPE_IS_VOID<br>-- Performing Test SIGNAL_RETURN_TYPE_IS_VOID - Success<br>-- Performing Test HAVE_ISNAN<br>-- Performing Test HAVE_ISNAN - Success<br>-- Performing Test HAVE_RINT<br>-- Performing Test HAVE_RINT - Success<br>
-- Performing Test C_HAS_inline<br>-- Performing Test C_HAS_inline - Success<br>-- Configuring incomplete, errors occurred!<br><br>I am attaching the build logs along the mail.<br><br>With Regards,<br>Neo<br>