sbuild cross compile broken
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»
-- The CXX compiler identification is unknown
/«PKGBUILDDIR»
/«PKGBUILDDIR»
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»
See also "/«PKGBUILDDIR»
make[3]: *** [gmock/
CMakeFiles/
make[3]: Leaving directory '/«PKGBUILDDIR»
make[2]: *** [CMakeFiles/
make[2]: *** Waiting for unfinished jobs....
CMakeFiles/
Related branches
- Cemil Azizoglu (community): Approve
- Alan Griffiths: Approve
- PS Jenkins bot (community): Approve (continuous-integration)
-
Diff: 37 lines (+13/-3)2 files modifiedcmake/FindGtestGmock.cmake (+6/-1)
cmake/LinuxCrossCompile.cmake (+7/-2)
Changed in mir: | |
milestone: | none → 0.16.0 |
Changed in mir: | |
status: | Fix Committed → Fix Released |
The FindGtestGmock. cmake detects cross compilation (which was sbuild-initiated), and sets -DCMAKE_ TOOLCHAIN_ FILE to cmake/LinuxCros sCompile. cmake, which depends on not-set- under-sbuild environment variables. Finding a fix...