The following issue has been SUBMITTED. ====================================================================== http://public.kitware.com/Bug/view.php?id=13331 ====================================================================== Reported By: Daniel R. Gomez Assigned To: ====================================================================== Project: CMake Issue ID: 13331 Category: CMake Reproducibility: always Severity: major Priority: normal Status: new ====================================================================== Date Submitted: 2012-06-20 15:14 EDT Last Modified: 2012-06-20 15:14 EDT ====================================================================== Summary: AIX linker chokes on spaces in rpath Description: I was looking into why so many tests were failing on my AIX 5.3 dashboard:
http://open.cdash.org/viewTest.php?onlyfailed&buildid=2378283 It seems to come down to the linker's -blibpath option. Compare the below two invocations---the only difference is "My Tests" in the first one, and "My_Tests" in the second: host:~/Dashboards/My Tests/CMake-build/Tests/COnly> env OBJECT_MODE=32 /usr/bin/gcc -mminimal-toc -O0 CMakeFiles/COnly.dir/conly.c.o CMakeFiles/COnly.dir/foo.c.o -o COnly libtestc1.a libtestc2.so -Wl,-blibpath:"/home/cport/Dashboards/My Tests/CMake-build/Tests/COnly:/usr/lib:/lib" ld: 0706-014 The -b Tests/CMake-build/Tests/COnly option is not recognized. collect2: ld returned 255 exit status host:~/Dashboards/My Tests/CMake-build/Tests/COnly> env OBJECT_MODE=32 /usr/bin/gcc -mminimal-toc -O0 CMakeFiles/COnly.dir/conly.c.o CMakeFiles/COnly.dir/foo.c.o -o COnly libtestc1.a libtestc2.so -Wl,-blibpath:"/home/cport/Dashboards/My_Tests/CMake-build/Tests/COnly:/usr/lib:/lib" (no error) This should probably be checked when CMake first looks at the compiler/linker, as a fail-fast behavior would be helpful here. (I checked that this isn't a problem with gcc or even collect2 mishandling the option; I get the same error even if I pass -blibpath:"..." directly to ld.) ====================================================================== Issue History Date Modified Username Field Change ====================================================================== 2012-06-20 15:14 Daniel R. GomezNew Issue ====================================================================== -- 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://public.kitware.com/cgi-bin/mailman/listinfo/cmake-developers