<div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, May 1, 2014 at 6:35 PM, Graham Russell <span dir="ltr"><<a href="mailto:grussell@cheetah.com" target="_blank">grussell@cheetah.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Seems like there are 2 choices for a solution:<br>
1. Change CMake so it uses the IBM linker instead of the GNU linker. What settings would I need to change in the cmake files to try this?<br></blockquote><div><br></div><div>This is not really an option. CMake can not choose the linker for the compiler. You would have to rebuild gcc with the option to use the native linker. </div>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
2. Change the linker options so they will work for the GNU linker.<br>
<br>
I tried option #2 by removing "-bnoipath" from the Modules/AIX-GNU.cmake file. This enabled cmake to run successfully on test files and on the MySQL package.<br>
<br></blockquote><div>Yes, that would be the way to do it. However, we have to somehow tell the difference between a gcc configured to use the native linker and one configured to use the GNU linker and pick the flags accordingly. </div>
<div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
However, my ultimate aim being to build MySQL, the make did run into errors subsequently, so I would like to try option #1 also. I am interested if you have an opinion as to whether option #1 or option #2 would give me a better shot at building MySQL.<br>
</blockquote><div><br></div><div>I think you have to deal with those errors or rebuild gcc with the native linker, or use the native compilers. </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
Further to your question "Would you be willing to run a nightly<br>
<div class="">dashboard with this configuration so we can test it over time?"<br>
</div>I would be willing, but need to know how to do this and what it involves.<br></blockquote><div><br></div><div>It involves setting up a cronjob on your machine that runs once a day and pulls from the cmake repository, builds cmake, and runs the tests, then sends the results to CDash. If we get to that point I can send pretty simple instructions.</div>
<div><br></div><div>Thanks.</div><div><br></div><div>-Bill</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="im HOEnZb"><br>
Thanks<br>
Graham Russell<br>
<br>
-----Original Message-----<br>
From: CMake [mailto:<a href="mailto:cmake-bounces@cmake.org">cmake-bounces@cmake.org</a>] On Behalf Of Bill Hoffman<br>
</div><div class="im HOEnZb">Sent: Thursday, May 01, 2014 1:33 PM<br>
To: <a href="mailto:cmake@cmake.org">cmake@cmake.org</a><br>
Subject: Re: [CMake] cmake 2.8.12.2 fails on AIX 6.1 with "ld: target noipath not found"<br>
<br>
</div><div class="HOEnZb"><div class="h5">On 5/1/2014 4:04 PM, Graham Russell wrote:<br>
> Thanks for the response, Bill.<br>
><br>
> I confirmed that the compiler install works fine:<br>
> pvm-vangogh-94:grussell [625] /usr/local/bin/gcc hello.c -o hello pvm-vangogh-94:grussell [626] ./hello Hello World!<br>
><br>
> I also tested it with your simple program and it also compiles OK and runs.<br>
><br>
> I think the problem lies in the options that CMake uses to test the AIX compile environment.<br>
><br>
> Thanks<br>
> Graham Russell<br>
<br>
<br>
OK, from the log you sent, we can see that CMake is passing some stuff to the linker:<br>
<br>
/usr/local/bin/gcc<br>
CMakeFiles/cmTryCompileExec680887608.dir/testCCompiler.c.o -o<br>
cmTryCompileExec680887608 -Wl,-brtl,-bnoipath,-bexpall -Wl,-blibpath:/usr/lib:/lib<br>
<br>
<br>
<br>
I think the problem is that you are using the GNU linker, and CMake seems to be expecting the AIX linker to be used even with gcc.<br>
<br>
You can see this is the linker used:<br>
/usr/local/lib/gcc/powerpc-ibm-aix6.1.0.0/4.4.4/../../../../powerpc-ibm-aix6.1.0.0/bin/ld:<br>
<br>
Which is the GNU linker and not the AIX linker which supports and needs that flag.<br>
<br>
<br>
You should be able to change this in Modules/AIX-GNU.cmake<br>
<br>
which has this:<br>
set(CMAKE_SHARED_LIBRARY_LINK_${lang}_FLAGS<br>
"-Wl,-brtl,-bnoipath,-bexpall") # +s, flag for exe link to use shared lib<br>
<br>
<br>
<br>
That should get you going. I will think about a solution that can be<br>
incorporated into CMake. Would you be willing to run a nightly<br>
dashboard with this configuration so we can test it over time?<br>
<br>
Thanks.<br>
<br>
-Bill<br>
<br>
</div></div><div class="HOEnZb"><div class="h5">--<br>
<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Please keep messages on-topic and check the CMake FAQ at: <a href="http://www.cmake.org/Wiki/CMake_FAQ" target="_blank">http://www.cmake.org/Wiki/CMake_FAQ</a><br>
<br>
Kitware offers various services to support the CMake community. For more information on each offering, please visit:<br>
<br>
CMake Support: <a href="http://cmake.org/cmake/help/support.html" target="_blank">http://cmake.org/cmake/help/support.html</a><br>
CMake Consulting: <a href="http://cmake.org/cmake/help/consulting.html" target="_blank">http://cmake.org/cmake/help/consulting.html</a><br>
CMake Training Courses: <a href="http://cmake.org/cmake/help/training.html" target="_blank">http://cmake.org/cmake/help/training.html</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.cmake.org/mailman/listinfo/cmake" target="_blank">http://www.cmake.org/mailman/listinfo/cmake</a><br>
--<br>
<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Please keep messages on-topic and check the CMake FAQ at: <a href="http://www.cmake.org/Wiki/CMake_FAQ" target="_blank">http://www.cmake.org/Wiki/CMake_FAQ</a><br>
<br>
Kitware offers various services to support the CMake community. For more information on each offering, please visit:<br>
<br>
CMake Support: <a href="http://cmake.org/cmake/help/support.html" target="_blank">http://cmake.org/cmake/help/support.html</a><br>
CMake Consulting: <a href="http://cmake.org/cmake/help/consulting.html" target="_blank">http://cmake.org/cmake/help/consulting.html</a><br>
CMake Training Courses: <a href="http://cmake.org/cmake/help/training.html" target="_blank">http://cmake.org/cmake/help/training.html</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.cmake.org/mailman/listinfo/cmake" target="_blank">http://www.cmake.org/mailman/listinfo/cmake</a><br>
</div></div></blockquote></div><br></div></div>