| Summary: | Build with clang++ fails | ||
|---|---|---|---|
| Product: | [Applications] gcompris | Reporter: | Avinash Sonawane <rootkea> |
| Component: | general | Assignee: | Jazeix Johnny <jazeix> |
| Status: | RESOLVED NOT A BUG | ||
| Severity: | normal | CC: | jazeix |
| Priority: | NOR | ||
| Version First Reported In: | git master | ||
| Target Milestone: | --- | ||
| Platform: | Compiled Sources | ||
| OS: | Linux | ||
| Latest Commit: | Version Fixed/Implemented In: | ||
| Sentry Crash Report: | |||
|
Description
Avinash Sonawane
2020-07-29 20:11:05 UTC
Can you compile with only "make", no "-j4"? It seems to be an issue with box2d compilation, but as a lot of logs are mixed, it's harder to check: Project ERROR: failed to parse default search paths from compiler output make[2]: *** [CMakeFiles/qml_box2d.dir/build.make:107: qml_box2d-prefix/src/qml_box2d-stamp/qml_box2d-configure] Error 3 Clang is already used by jenkins on FreeBSD (https://build.kde.org/job/Extragear/job/gcompris/job/kf5-qt5%20FreeBSDQt5.15/83/console) and build is fine. Yes, indeed it looks like an issue with box2d compile. $ make Scanning dependencies of target createShareFolders [ 0%] Generating shareFolders [ 0%] Built target createShareFolders Scanning dependencies of target BuildTranslations [ 0%] Built target BuildTranslations Scanning dependencies of target qml_box2d [ 0%] Creating directories for 'qml_box2d' [ 0%] No download step for 'qml_box2d' [ 1%] No patch step for 'qml_box2d' [ 1%] No update step for 'qml_box2d' [ 1%] Performing configure step for 'qml_box2d' Info: creating stash file /home/rootmonk/Downloads/todo/hacking/gcompris/build/qml_box2d-prefix/src/qml_box2d-build/.qmake.stash Project ERROR: failed to parse default search paths from compiler output make[2]: *** [CMakeFiles/qml_box2d.dir/build.make:107: qml_box2d-prefix/src/qml_box2d-stamp/qml_box2d-configure] Error 3 make[1]: *** [CMakeFiles/Makefile2:3766: CMakeFiles/qml_box2d.dir/all] Error 2 make: *** [Makefile:152: all] Error 2 $ BTW, $ uname -a Linux optimus 5.4.0-42-generic #46-Ubuntu SMP Fri Jul 10 00:24:02 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux $ lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 20.04.1 LTS Release: 20.04 Codename: focal $ Maybe https://bugreports.qt.io/browse/QTBUG-68139. It is not an issue specific to GCompris, I'll still try to check this week-end if I can reproduce. qml-box2d is a dependency of gcompris and so if qml-box2d doesn't compile with one of the industry-standard compilers then that concerns us. :)
> I'll still try to check this week-end if I can reproduce.
Thank you!
(In reply to Avinash Sonawane from comment #5) > qml-box2d is a dependency of gcompris and so if qml-box2d doesn't compile > with one of the industry-standard compilers then that concerns us. :) It works (see FreeBSD jenkins build). It does not work on your computer specifically ;). Maybe the Qt installation is missing something or there is some configuration error... It's just theory, I didn't find much on internet, I'll know better after testing > It does not work on your computer specifically ;). And also not on KDE Gitlab CI which fetches the ubuntu:rolling docker image failing with the same qml_box2d clang compile error.[0] Here[1] is the corresponding .gitlab-ci.yml which shows the exact steps taken on fresh ubuntu:rolling. > see FreeBSD jenkins build Yes, it looks like gcompris builds successfully on FreeBSD-clang++ but not on Linux-clang++. OR may be I'm missing something... Thanks! [0] https://invent.kde.org/rootkea/gcompris/-/jobs/59751 [1] https://invent.kde.org/rootkea/gcompris/-/blob/clang-build/.gitlab-ci.yml > failing with the same qml_box2d clang compile error.
Oops! My bad! Not the exact same error but the same package qml_box2d. The error reported by CI is "Cannot find file: /builds/rootkea/gcompris/external/qml-box2d/box2d.pro".
Let me look more on that.
Thanks!
> "Cannot find file: /builds/rootkea/gcompris/external/qml-box2d/box2d.pro". Turns out I had forgotten to install `git` on ubuntu:rolling docker image which was needed to clone qml_box2d module. Anyways, now that git has been added in .gitlab-ci.yml[0] the KDE Gitlab CI throws the exact same error as my system: "Project ERROR: failed to parse default search paths from compiler output"[1] So no, apparently gcompris doesn't build on linux-clang++ unless I'm missing something... Thanks! [0] https://invent.kde.org/rootkea/gcompris/-/blob/clang-build/.gitlab-ci.yml [1] https://invent.kde.org/rootkea/gcompris/-/jobs/59754 `export QMAKESPEC="linux-clang"` fixed the issue since `qml_box2d` uses `qmake` and that's how one changes the compiler used by `qmake`. (In reply to Avinash Sonawane from comment #10) > `export QMAKESPEC="linux-clang"` fixed the issue since `qml_box2d` uses > `qmake` and that's how one changes the compiler used by `qmake`. Great! Good to hear it works fine now :) |