MantisBT - CMake | ||||||||||
View Issue Details | ||||||||||
ID | Project | Category | View Status | Date Submitted | Last Update | |||||
0015248 | CMake | CMakeSetup | public | 2014-11-12 17:23 | 2015-04-06 09:07 | |||||
Reporter | Davide Viti | |||||||||
Assigned To | Brad King | |||||||||
Priority | low | Severity | minor | Reproducibility | always | |||||
Status | closed | Resolution | fixed | |||||||
Platform | Buildroot | OS | Linux | OS Version | Debian 7.7 | |||||
Product Version | CMake 3.0.2 | |||||||||
Target Version | CMake 3.1 | Fixed in Version | CMake 3.1 | |||||||
Summary | 0015248: 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" | |||||||||
Additional Information | ||||||||||
Tags | No tags attached. | |||||||||
Relationships |
| |||||||||
Attached Files | ||||||||||
Issue History | ||||||||||
Date Modified | Username | Field | Change | |||||||
2014-11-12 17:23 | Davide Viti | New Issue | ||||||||
2014-11-13 08:50 | Brad King | Relationship added | related to 0000891 | |||||||
2014-11-13 08:51 | Brad King | Note Added: 0037205 | ||||||||
2014-11-13 09:01 | Brad King | Note Added: 0037207 | ||||||||
2014-11-14 15:03 | Brad King | Note Added: 0037225 | ||||||||
2014-11-14 15:03 | Brad King | Assigned To | => Brad King | |||||||
2014-11-14 15:03 | Brad King | Status | new => resolved | |||||||
2014-11-14 15:03 | Brad King | Resolution | open => fixed | |||||||
2014-11-14 15:03 | Brad King | Fixed in Version | => CMake 3.1 | |||||||
2014-11-14 15:03 | Brad King | Target Version | => CMake 3.1 | |||||||
2015-04-06 09:07 | Robert Maynard | Note Added: 0038445 | ||||||||
2015-04-06 09:07 | Robert Maynard | Status | resolved => closed |
Notes | |||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|