View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0013808CMakeCCMakepublic2012-12-21 07:572013-05-06 09:32
ReporterRiku Voipio 
Assigned ToBrad King 
PrioritynormalSeverityminorReproducibilityalways
StatusclosedResolutionfixed 
Platform64-Bit ARM (Aarch64)OSLinuxOS Version3.7
Product VersionCMake 2.8.10.2 
Target VersionCMake 2.8.11Fixed in VersionCMake 2.8.11 
Summary0013808: Please add 64-Bit ARM endianness defines to cmake
DescriptionWhen 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 Reproducemkdir 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 [^]
TagsNo tags attached.
Attached Filespatch file icon 0001-Add-Aarch64-support.patch [^] (1,783 bytes) 2012-12-21 07:57 [Show Content]

 Relationships

  Notes
(0031937)
Brad King (manager)
2012-12-21 08:37

Thanks! Both KWIML and KWSys are shared with other projects so the entry point for changes is not through CMake. I've split your patch into one for each of the two projects. The KWIML one is here:

 http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=34916522 [^]

I'll report back again once the KWSys commit is ready.
(0031940)
Brad King (manager)
2012-12-22 09:55

Here is the commit in KWSys:

 http://public.kitware.com/gitweb?p=KWSys.git;a=commitdiff;h=8ce09af5 [^]

and the commit bringing it into CMake:

 http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=567e7d94 [^]
(0032992)
Robert Maynard (manager)
2013-05-06 09:32

Closing resolved issues that have not been updated in more than 4 months.

 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
2012-12-21 08:35 Brad King Assigned To => Brad King
2012-12-21 08:35 Brad King Status new => assigned
2012-12-21 08:37 Brad King Note Added: 0031937
2012-12-21 08:37 Brad King Target Version => CMake 2.8.11
2012-12-22 09:55 Brad King Note Added: 0031940
2012-12-22 09:55 Brad King Status assigned => resolved
2012-12-22 09:55 Brad King Resolution open => fixed
2012-12-22 09:55 Brad King Fixed in Version => CMake 2.8.11
2013-05-06 09:32 Robert Maynard Note Added: 0032992
2013-05-06 09:32 Robert Maynard Status resolved => closed


Copyright © 2000 - 2018 MantisBT Team