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                                    
======================================================================

-- 

Powered by www.kitware.com

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Kitware offers various services to support the CMake community. For more 
information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/cmake-developers

Reply via email to