[CMake] Need cmake to work on AIX 5.3

Arindam Mukherjee arindam.mukerjee at gmail.com
Wed Oct 10 06:11:15 EDT 2012


On Wed, Oct 10, 2012 at 1:04 AM, Bill Hoffman <bill.hoffman at kitware.com> wrote:
> On 10/9/2012 3:06 PM, Arindam Mukherjee wrote:
>>
>> On Tue, Oct 9, 2012 at 9:21 PM, Bill Hoffman <bill.hoffman at kitware.com>
>> wrote:
>>>
>>> On 10/9/2012 5:58 AM, Arindam Mukherjee wrote:
>>>>
>>>>
>>>> Hi,
>>>>
>>>> I have to get a build of my product on AIX 5.3 (powerpc) because of
>>>> backward compatibility concerns. The product builds fine on such a
>>>> system using conventional gmake. However, cmake fails to identify the
>>>> xlc/xlC compilers correctly and reports them as broken. What is the
>>>> way to fix this?
>>>>
>>>> Could I force cmake to recognize the compilers correctly in some
>>>> manual way. I tried using CMAKE_FORCE_C_COMPILER and
>>>> CMAKE_FORCE_CXX_COMPILER but it didn't work. I am not sure of the
>>>> arguments to pass either. Any help is greatly appreciated.
>>>
>>>
>>> Can you post the errors that you are getting?  There is no way to help
>>> with
>>> the information you have posted.  You need the compiler to work, forcing
>>> it
>>> will just cause trouble later.
>>>
>>> We test on two different AIX machines nightly, so the compilers should
>>> work.
>>>
>>
>> Hi Bill,
>>
>> Here is the output of running cmake version 2.8.9 on AIX 5.2.
>>
>> http://pastebin.com/yM46Ncse
>>
>> What I can see is that cmake fails to identify the compiler. Perhaps
>> for that reason it seems to be trying an erroneous command-line later:
>>
>> /usr/bin/xlc_r CMakeFiles/cmTryCompileExec3576455604.dir/testCCompiler.c.o
>> -o cmTryCompileExec3576455604 /usr/lib /lib
>>
>> I have got the same results by exporting CC=xlc and CXX=xlC and also
>> CC=xlc_r and CXX=xlC_r. The version of IBM Visual Age on these
>> machines is v7.0. I do not encounter any problems with normal Makefile
>> based builds using this toolchain.
>>
>> I built cmake from source on this machine without any problems. I have
>> a functional cmake-based build of my product on AIX 6.1 and Visual Age
>> v8.0 which runs without any issues.
>>
>> Thanks.
>> Arindam
>>
>
> OK, so somehow it is adding  /usr/lib /lib to the link line....  Can you
> send your CMakeCache.txt file and the files in here: CMakeFiles/
>
>
> -Bill
>

Hi Bill,

Here are the files.

Arindam
-------------- next part --------------
A non-text attachment was scrubbed...
Name: cmake_aix52.zip
Type: application/zip
Size: 10695 bytes
Desc: not available
URL: <http://www.cmake.org/pipermail/cmake/attachments/20121010/c9734f50/attachment-0001.zip>


More information about the CMake mailing list