Mir

sbuild cross compile broken

Bug #1493895 reported by Kevin DuBois
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Mir
Fix Released
Medium
Kevin DuBois
mir (Ubuntu)
Fix Released
Medium
Unassigned

Bug Description

sbuild cross compile fails with:

[ 2%] Performing configure step for 'GMock'
cd /«PKGBUILDDIR»/obj-arm-linux-gnueabihf/gmock/libs && /usr/bin/cmake -DCMAKE_CXX_FLAGS=-fPIC -DCMAKE_CXX_COMPILER=/usr/bin/arm-linux-gnueabihf-g++ -DCMAKE_C_COMPILER=/usr/bin/arm-linux-gnueabihf-gcc -DCMAKE_TOOLCHAIN_FILE=/«PKGBUILDDIR»/cmake/LinuxCrossCompile.cmake "-GUnix Makefiles" /usr/src/gmock
-- The CXX compiler identification is unknown
/«PKGBUILDDIR»/3rd_party/xcursor/xcursor.c: In function '_XcursorBuildFullname':
/«PKGBUILDDIR»/3rd_party/xcursor/xcursor.c:720:5: warning: ISO C90 forbids mixed declarations and code [-Wpedantic]
     size_t padding = 4;
     ^
-- The C compiler identification is unknown
CMake Error at CMakeLists.txt:40 (project):
  The CMAKE_CXX_COMPILER:

    /usr/bin/-g++

  is not a full path to an existing compiler tool.

  Tell CMake where to find the compiler by setting either the environment
  variable "CXX" or the CMake cache entry CMAKE_CXX_COMPILER to the full path
  to the compiler, or to the compiler name if it is in the PATH.

CMake Error at CMakeLists.txt:40 (project):
  The CMAKE_C_COMPILER:

    /usr/bin/-gcc

  is not a full path to an existing compiler tool.

  Tell CMake where to find the compiler by setting either the environment
  variable "CC" or the CMake cache entry CMAKE_C_COMPILER to the full path to
  the compiler, or to the compiler name if it is in the PATH.

-- Configuring incomplete, errors occurred!
See also "/«PKGBUILDDIR»/obj-arm-linux-gnueabihf/gmock/libs/CMakeFiles/CMakeOutput.log".
See also "/«PKGBUILDDIR»/obj-arm-linux-gnueabihf/gmock/libs/CMakeFiles/CMakeError.log".
make[3]: *** [gmock/src/GMock-stamp/GMock-configure] Error 1
CMakeFiles/GMock.dir/build.make:101: recipe for target 'gmock/src/GMock-stamp/GMock-configure' failed
make[3]: Leaving directory '/«PKGBUILDDIR»/obj-arm-linux-gnueabihf'
make[2]: *** [CMakeFiles/GMock.dir/all] Error 2
make[2]: *** Waiting for unfinished jobs....
CMakeFiles/Makefile2:63: recipe for target 'CMakeFiles/GMock.dir/all' failed

Related branches

Revision history for this message
Kevin DuBois (kdub) wrote :

The FindGtestGmock.cmake detects cross compilation (which was sbuild-initiated), and sets -DCMAKE_TOOLCHAIN_FILE to cmake/LinuxCrossCompile.cmake, which depends on not-set-under-sbuild environment variables. Finding a fix...

Changed in mir:
assignee: nobody → Kevin DuBois (kdub)
status: New → In Progress
Changed in mir:
milestone: none → 0.16.0
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :

Fix committed into lp:mir at revision None, scheduled for release in mir, milestone 0.16.0

Changed in mir:
status: In Progress → Fix Committed
Changed in mir:
status: Fix Committed → Fix Released
Revision history for this message
Daniel van Vugt (vanvugt) wrote :

mir (0.16.0+15.10.20150921.1-0ubuntu1) wily; urgency=medium

Changed in mir (Ubuntu):
importance: Undecided → Medium
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.