Click x86 chroot fails to build cmake projects
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
click (Ubuntu) |
Fix Released
|
High
|
Colin Watson |
Bug Description
I was trying to get Reminders built and running on the x86 emulator, and stumbled upon this issue:
Steps to reproduce:
1. Create a 14.10 x86 chroot: sudo click chroot -a i386 -f ubuntu-sdk-14.10 create (see bug 1328436)
2. Create an emulator instance from Qt Creator: Devices > Add emulator (arrow), then select i386 as arch, a name and press Create
3. Once created, on the Devices tab follow the Qt Creator prompt to automatically create a Kit for the emulator
4. Add the build dependencies to build Reminders -> Tools > Options > Maintain, then select the newly created utopic chroot
5. On the terminal that opens, run: apt-get install libssl-dev:armhf python3
6. Check out Reminders: bzr branch lp:reminders-app
7. Open the Reminders CMakeLists.txt file with Qt Creator
8. Make sure you select the emulator kit upon configuration
9. Ensure again that on the left panel you've got the emulator kit selected
10. Press build
Actual:
- Reminders fails to build with automoc errors: http://
Expected:
- Reminders builds without errors as with any other target
Note: for a simpler CMake project to reproduce the issue on, see the attached example.
#EDIT (zeller-benjamin)
This problem affects all projects not just reminders building for the emulator.
It seems the x86 chroot is not able to execute the AUTOMOC step.
This can be easily checked with logging into the chroot,
go to a project directory and do :
mkdir build && cd build && cmake .. && make
Related branches
- Michael Vogt: Approve
-
Diff: 92 lines (+46/-0)3 files modifiedclick/chroot.py (+8/-0)
click/tests/test_chroot.py (+34/-0)
debian/changelog (+4/-0)
- click hackers: Pending requested
-
Diff: 280 lines (+212/-0)7 files modifiedclick/chroot.py (+8/-0)
click/tests/test_chroot.py (+24/-0)
debian/changelog (+11/-0)
debian/control (+1/-0)
debian/tests/control (+3/-0)
debian/tests/run-tests.sh (+4/-0)
tests/integration/test_integration.py (+161/-0)
- Colin Watson: Approve
-
Diff: 100 lines (+35/-10)2 files modifiedclick/tests/integration/test_signatures.py (+27/-10)
debian/changelog (+8/-0)
- Colin Watson: Approve
- Ubuntu CI managed package branches: Pending requested
-
Diff: 485 lines (+269/-70)11 files modifiedREADME (+1/-0)
click/build.py (+10/-22)
click/framework.py (+138/-0)
click/install.py (+8/-28)
click/paths.py.in (+1/-0)
click/tests/helpers.py (+29/-0)
click/tests/test_build.py (+39/-5)
click/tests/test_install.py (+2/-4)
debian/changelog (+8/-0)
doc/file-format.rst (+1/-2)
doc/index.rst (+32/-9)
description: | updated |
description: | updated |
description: | updated |
summary: |
- Cannot build Reminders for the emulator + Click x86 chroot fails to build cmake projects |
description: | updated |
Changed in click (Ubuntu): | |
status: | Confirmed → In Progress |
importance: | Undecided → High |
assignee: | nobody → Colin Watson (cjwatson) |
Changed in click (Ubuntu): | |
status: | In Progress → Fix Committed |
no longer affects: | reminders-app |
no longer affects: | qtcreator-plugin-ubuntu |
Status changed to 'Confirmed' because the bug affects multiple users.