[cmake-developers] [CMake 0013808]: Please add 64-Bit ARM endianness defines to cmake

Mantis Bug Tracker mantis at public.kitware.com
Fri Dec 21 07:57:55 EST 2012


The following issue has been SUBMITTED. 
====================================================================== 
http://www.cmake.org/Bug/view.php?id=13808 
====================================================================== 
Reported By:                Riku Voipio
Assigned To:                
====================================================================== 
Project:                    CMake
Issue ID:                   13808
Category:                   CCMake
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     new
====================================================================== 
Date Submitted:             2012-12-21 07:57 EST
Last Modified:              2012-12-21 07:57 EST
====================================================================== 
Summary:                    Please add 64-Bit ARM endianness defines to cmake
Description: 
When building for 64-Buit ARM (officially known as Aarch64), cmake will fail to
build due unknown byte order.

In file included from
/data/oe/build/tmp-eglibc/work/aarch64-oe-linux/cmake/2.8.10.1-r0.0/cmake-2.8.10.1/Utilities/KWIML/test/test_ABI_C.c:13:0:
/data/oe/build/tmp-eglibc/work/aarch64-oe-linux/cmake/2.8.10.1-r0.0/cmake-2.8.10.1/Utilities/cmIML/ABI.h:419:3:


error: #error "Byte order of target CPU unknown."

With the attached patch, cmake tests pass on the ARMv8 Foundation model
simulator.

Steps to Reproduce: 
mkdir oe
cd oe
git clone git://git.linaro.org/openembedded/meta-aarch64.git
# the last commit has already the attached patch, so rewind from head
git checkout 54d06ed77b0cc11ac1e260ee0ab9751f9ed2c4ed
# this will clone and install a lot of stuff - debian/ubuntu expected.
bash meta-aarch64/scripts/init.sh
cd openembedded-core
. oe-init-build-env ../build
bitbake cmake

The bitbake command will take a long while, as it will compile the crosscompiler
and all tools first.

This instruction is based upon the following page:

https://wiki.linaro.org/HowTo/ARMv8/OpenEmbedded
====================================================================== 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2012-12-21 07:57 Riku Voipio    New Issue                                    
2012-12-21 07:57 Riku Voipio    File Added: 0001-Add-Aarch64-support.patch      
             
======================================================================




More information about the cmake-developers mailing list