[gcompris] [Bug 424807] Build with clang++ fails

2020-07-30 Thread Jazeix Johnny
https://bugs.kde.org/show_bug.cgi?id=424807

--- Comment #11 from Jazeix Johnny  ---
(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 :)

-- 
You are receiving this mail because:
You are watching all bug changes.

[gcompris] [Bug 424807] Build with clang++ fails

2020-07-30 Thread Avinash Sonawane
https://bugs.kde.org/show_bug.cgi?id=424807

Avinash Sonawane  changed:

   What|Removed |Added

 Resolution|--- |NOT A BUG
 Status|REPORTED|RESOLVED

--- Comment #10 from Avinash Sonawane  ---
`export QMAKESPEC="linux-clang"` fixed the issue since `qml_box2d` uses `qmake`
and that's how one changes the compiler used by `qmake`.

-- 
You are receiving this mail because:
You are watching all bug changes.

[gcompris] [Bug 424807] Build with clang++ fails

2020-07-30 Thread Avinash Sonawane
https://bugs.kde.org/show_bug.cgi?id=424807

--- Comment #9 from Avinash Sonawane  ---
> "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

-- 
You are receiving this mail because:
You are watching all bug changes.

[gcompris] [Bug 424807] Build with clang++ fails

2020-07-30 Thread Avinash Sonawane
https://bugs.kde.org/show_bug.cgi?id=424807

--- Comment #8 from Avinash Sonawane  ---
> 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!

-- 
You are receiving this mail because:
You are watching all bug changes.

[gcompris] [Bug 424807] Build with clang++ fails

2020-07-30 Thread Avinash Sonawane
https://bugs.kde.org/show_bug.cgi?id=424807

--- Comment #7 from Avinash Sonawane  ---
> 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

-- 
You are receiving this mail because:
You are watching all bug changes.

[gcompris] [Bug 424807] Build with clang++ fails

2020-07-30 Thread Jazeix Johnny
https://bugs.kde.org/show_bug.cgi?id=424807

--- Comment #6 from Jazeix Johnny  ---
(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

-- 
You are receiving this mail because:
You are watching all bug changes.

[gcompris] [Bug 424807] Build with clang++ fails

2020-07-30 Thread Avinash Sonawane
https://bugs.kde.org/show_bug.cgi?id=424807

--- Comment #5 from Avinash Sonawane  ---
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!

-- 
You are receiving this mail because:
You are watching all bug changes.

[gcompris] [Bug 424807] Build with clang++ fails

2020-07-30 Thread Jazeix Johnny
https://bugs.kde.org/show_bug.cgi?id=424807

--- Comment #4 from Jazeix Johnny  ---
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.

-- 
You are receiving this mail because:
You are watching all bug changes.

[gcompris] [Bug 424807] Build with clang++ fails

2020-07-30 Thread Avinash Sonawane
https://bugs.kde.org/show_bug.cgi?id=424807

--- Comment #3 from Avinash Sonawane  ---
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
$

-- 
You are receiving this mail because:
You are watching all bug changes.

[gcompris] [Bug 424807] Build with clang++ fails

2020-07-30 Thread Avinash Sonawane
https://bugs.kde.org/show_bug.cgi?id=424807

--- Comment #2 from Avinash Sonawane  ---
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
$

-- 
You are receiving this mail because:
You are watching all bug changes.

[gcompris] [Bug 424807] Build with clang++ fails

2020-07-30 Thread Jazeix Johnny
https://bugs.kde.org/show_bug.cgi?id=424807

--- Comment #1 from Jazeix Johnny  ---
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.

-- 
You are receiving this mail because:
You are watching all bug changes.

[gcompris] [Bug 424807] Build with clang++ fails

2020-07-30 Thread Jazeix Johnny
https://bugs.kde.org/show_bug.cgi?id=424807

Jazeix Johnny  changed:

   What|Removed |Added

 CC||jaz...@gmail.com
   Assignee|bruno.coud...@gcompris.net  |jaz...@gmail.com

-- 
You are receiving this mail because:
You are watching all bug changes.