MantisBT - CMake
View Issue Details
0013331CMakeCMakepublic2012-06-20 15:142016-06-10 14:31
Daniel Richard G. 
Kitware Robot 
normalmajoralways
closedmoved 
PowerPCAIX5.3
CMake 2.8.8 
 
0013331: AIX linker chokes on spaces in rpath
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.)
No tags attached.
Issue History
2012-06-20 15:14Daniel Richard G.New Issue
2012-06-20 16:12Brad KingNote Added: 0029784
2012-06-20 16:12Brad KingStatusnew => backlog
2016-06-10 14:28Kitware RobotNote Added: 0042070
2016-06-10 14:28Kitware RobotStatusbacklog => resolved
2016-06-10 14:28Kitware RobotResolutionopen => moved
2016-06-10 14:28Kitware RobotAssigned To => Kitware Robot
2016-06-10 14:31Kitware RobotStatusresolved => closed

Notes
(0029784)
Brad King   
2012-06-20 16:12   
Moving to backlog awaiting a specific proposal and/or patch to add fail-fast behavior. Compilers have many features of which rpath is only one. We can't check everything up front. Some project might not even use such features and would needlessly be prevented from working.
(0042070)
Kitware Robot   
2016-06-10 14:28   
Resolving issue as `moved`.

This issue tracker is no longer used. Further discussion of this issue may take place in the current CMake Issues page linked in the banner at the top of this page.