On 10/9/2012 3:06 PM, Arindam Mukherjee wrote:
On Tue, Oct 9, 2012 at 9:21 PM, Bill Hoffman <bill.hoff...@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
--
Bill Hoffman
Kitware, Inc.
28 Corporate Drive
Clifton Park, NY 12065
bill.hoff...@kitware.com
http://www.kitware.com
518 881-4905 (Direct)
518 371-3971 x105
Fax (518) 371-4573
--
Powered by www.kitware.com
Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html
Please keep messages on-topic and check the CMake FAQ at:
http://www.cmake.org/Wiki/CMake_FAQ
Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake