[cmake-developers] [CMake 0015994]: CMake support for the Linux x86-64 32-bit ABI (x32-abi)

Mantis Bug Tracker mantis at public.kitware.com
Mon Feb 29 11:21:10 EST 2016


The following issue has been SUBMITTED. 
====================================================================== 
https://cmake.org/Bug/view.php?id=15994 
====================================================================== 
Reported By:                Steven Newbury
Assigned To:                
====================================================================== 
Project:                    CMake
Issue ID:                   15994
Category:                   CMake
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     new
====================================================================== 
Date Submitted:             2016-02-29 11:21 EST
Last Modified:              2016-02-29 11:21 EST
====================================================================== 
Summary:                    CMake support for the Linux x86-64 32-bit ABI
(x32-abi)
Description: 
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.

Steps to Reproduce: 
Build CMake from source on x32.  Attempt to build projects with CMake.

Additional Information: 
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?

====================================================================== 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2016-02-29 11:21 Steven Newbury New Issue                                    
2016-02-29 11:21 Steven Newbury File Added: cmake-libx32.patch                  
 
======================================================================



More information about the cmake-developers mailing list