MantisBT - CMake
View Issue Details
0010197CMakeCMakepublic2010-01-28 22:042016-06-10 14:31
Miguel Marte 
Bill Hoffman 
normalminoralways
closedmoved 
CMake-2-8 
 
0010197: Linking to 64bit lib when -m32 is specified
CMake is trying to link to 64bit libs when x86 abi on a multilib system. This is on a Gentoo system with /usr/lib32, /usr/lib64 and a symlink /usr/lib to /usr/lib64.

CMake is generating this compile line.
http://pastebin.com/m56d3fdd [^]
http://pastebin.com/m56d3fdd [^]
No tags attached.
patch lib32.patch (503) 2012-01-24 17:20
https://public.kitware.com/Bug/file/4198/lib32.patch
Issue History
2010-01-28 22:04Miguel MarteNew Issue
2010-09-22 22:40Nathan Phillip Brink (binki)Note Added: 0022327
2011-01-17 13:03David ColeNote Added: 0024778
2011-01-17 15:38David ColeAssigned To => Bill Hoffman
2011-01-17 15:38David ColeStatusnew => assigned
2012-01-24 17:20Dan KegelFile Added: lib32.patch
2012-01-24 17:23Dan KegelNote Added: 0028404
2016-06-10 14:27Kitware RobotNote Added: 0041646
2016-06-10 14:27Kitware RobotStatusassigned => resolved
2016-06-10 14:27Kitware RobotResolutionopen => moved
2016-06-10 14:31Kitware RobotStatusresolved => closed

Notes
(0022327)
Nathan Phillip Brink (binki)   
2010-09-22 22:40   
What does this line look like when /usr/lib is not a symlink to /usr/lib64 but is its own directory?

Also, please don't link to pastebins in bug reports. Paste the content of the pastebin directly into the bug report or attach a build.log to the bug. Pastebins expire, possibly before the bugs they're describing get fixed.
(0024778)
David Cole   
2011-01-17 13:03   
Is this still a problem? Is there some specific change in CMake that is required to support this...?
(0028404)
Dan Kegel   
2012-01-24 17:23   
The attached kludge patch makes find_library properly find 32 bit libraries on ubuntu 11.10 64 bit when building with CFLAGS=-m32. Miguel, does it help you?
(It's a kludge because it will break normal 64 bit building.)
(0041646)
Kitware Robot   
2016-06-10 14:27   
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.