MantisBT - CMake
View Issue Details
0015994CMakeCMakepublic2016-02-29 11:212016-06-10 14:31
Steven Newbury 
Kitware Robot 
normalminoralways
closedmoved 
CMake 3.4.3 
 
0015994: CMake support for the Linux x86-64 32-bit ABI (x32-abi)
Currently CMake assumes library files can be located in ${CMAKE_INSTALL_PREFIX}/lib{64}, or otherwise on the system in /lib{64}, /usr/lib{64} etc. This isn't the case with x32-abi, where library directories are postfixed with x32, for example: ${CMAKE_INSTALL_PREFIX}/libx32

This results in CMake modules being unable to locate their resources, including failure during the configuration of CMake itself after initial bootstrap if CMAKE_INSTALL_PREFIX and individual *_DIR=/usr/libx32/cmake/* variables aren't manually provided.
Build CMake from source on x32. Attempt to build projects with CMake.
The attached patch is from pld-linux, a similar patch also exists for Gentoo Linux. This gives CMake the extra knowledge necessary to successfully locate the library paths on x32-abi.

Perhaps, in the future a centralised CMake facility could provide system library paths?
No tags attached.
related to 0011260closed Bill Hoffman Add GLOBAL FIND_LIBRARY_USE_LIB32_PATHS property, whose behavior is like FIND_LIBRARY_USE_LIB64_PATHS 
patch cmake-libx32.patch (11,944) 2016-02-29 11:21
https://public.kitware.com/Bug/file/5636/cmake-libx32.patch
Issue History
2016-02-29 11:21Steven NewburyNew Issue
2016-02-29 11:21Steven NewburyFile Added: cmake-libx32.patch
2016-02-29 11:54Steven NewburyNote Added: 0040583
2016-02-29 11:56Brad KingNote Added: 0040584
2016-04-05 10:04Mike FrysingerNote Added: 0040814
2016-04-05 10:08Brad KingNote Added: 0040815
2016-04-05 10:08Brad KingRelationship addedduplicate of 0011260
2016-04-05 10:08Brad KingStatusnew => resolved
2016-04-05 10:08Brad KingResolutionopen => duplicate
2016-04-05 12:14GreatEmeraldNote Added: 0040817
2016-04-05 12:55Brad KingRelationship replacedrelated to 0011260
2016-04-05 12:55Brad KingStatusresolved => acknowledged
2016-04-05 12:55Brad KingResolutionduplicate => open
2016-06-10 14:29Kitware RobotNote Added: 0042948
2016-06-10 14:29Kitware RobotStatusacknowledged => resolved
2016-06-10 14:29Kitware RobotResolutionopen => moved
2016-06-10 14:29Kitware RobotAssigned To => Kitware Robot
2016-06-10 14:31Kitware RobotStatusresolved => closed

Notes
(0040583)
Steven Newbury   
2016-02-29 11:54   
See also: https://bugs.gentoo.org/426936 [^]
(0040584)
Brad King   
2016-02-29 11:56   
The patch appears to be hard-coded for use on packaging CMake for the x32 architecture. Several places replace "lib/" with "libx32/" unconditionally. Therefore additional work will be needed to make such a change upstreamable. It may be easier to do this in pieces.

Such discussion would be better held on the developer list:

 https://cmake.org/mailman/listinfo/cmake-developers [^]
(0040814)
Mike Frysinger   
2016-04-05 10:04   
this is a dupe of bug 11260
(0040815)
Brad King   
2016-04-05 10:08   
Re 0015994:0040814: Yes, thanks. If anyone wants to move the issue forward please pick up the patch attached to 0011260, rebase/revise as needed on 'master', and bring it to the dev mailing list linked in 0015994:0040584.
(0040817)
GreatEmerald   
2016-04-05 12:14   
Is it really a duplicate? The linked bug is talking about lib32, whereas the issue here is libx32. Those are distinct paths.
(0042948)
Kitware Robot   
2016-06-10 14:29   
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.