[cmake-developers] [CMake 0015248]: When cross compiling, "make install" invokes target "cmake" instead of host version
Mantis Bug Tracker
mantis at public.kitware.com
Wed Nov 12 17:23:27 EST 2014
The following issue has been SUBMITTED.
======================================================================
http://public.kitware.com/Bug/view.php?id=15248
======================================================================
Reported By: Davide Viti
Assigned To:
======================================================================
Project: CMake
Issue ID: 15248
Category: CMakeSetup
Reproducibility: always
Severity: minor
Priority: low
Status: new
======================================================================
Date Submitted: 2014-11-12 17:23 EST
Last Modified: 2014-11-12 17:23 EST
======================================================================
Summary: When cross compiling, "make install" invokes target
"cmake" instead of host version
Description:
Crosscompilation goes smooth up to "make install" step where it fails:
bin/cmake: 1: bin/cmake: Syntax error: word unexpected (expecting ")")
it is trying to invoke cross compiled cmake instead of the version available for
the host machine.
The problem can be workarounded replacing "make install" with "cmake -P
cmake_install.cmake"
Steps to Reproduce:
I've run into the problem while crosscompiling cmake in buildroot
(http://buildroot.uclibc.org/) for arm.
The build process invokes bootstrap:
LDFLAGS="$(TARGET_LDFLAGS)" \
CFLAGS="$(TARGET_CFLAGS)" \
./bootstrap --prefix=$(TARGET_DIR)/usr \
--parallel=$(PARALLEL_JOBS) -- \
-DCMAKE_C_FLAGS="$(TARGET_CFLAGS)" \
-DCMAKE_CXX_FLAGS="$(TARGET_CXXFLAGS)" \
-DCMAKE_EXE_LINKER_FLAGS="$(TARGET_LDFLAGS)" \
-DCMAKE_C_COMPILER="$(TARGET_CC)" \
-DCMAKE_CXX_COMPILER="$(TARGET_CXX)" \
-DCMAKE_FIND_ROOT_PATH_MODE_PROGRAM="NEVER" \
-DCMAKE_FIND_ROOT_PATH_MODE_LIBRARY="ONLY" \
-DCMAKE_FIND_ROOT_PATH_MODE_INCLUDE="ONLY" \
-DBUILD_CursesDialog=OFF
then "make" and finally "make install"
======================================================================
Issue History
Date Modified Username Field Change
======================================================================
2014-11-12 17:23 Davide Viti New Issue
======================================================================
More information about the cmake-developers
mailing list