| Summary: | Qt5 does not compiled with CLang in release mode | ||
|---|---|---|---|
| Product: | [ROSA-based products] ROSA Fresh | Reporter: | Yaroslav <yaroslav.belykh> |
| Component: | -Enter Bugs Here- | Assignee: | Desktop Triage Team <triage-desktop> |
| Status: | RESOLVED WORKSFORME | QA Contact: | Desktop Triage Team <triage-desktop> |
| Severity: | normal | ||
| Priority: | Normal | CC: | andrey.bondrov |
| Version: | Fresh | ||
| Target Milestone: | --- | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Platform: | --- | ROSA Vulnerability identifier: | |
| RPM Package: | Qt5 | ISO-related: | |
| Bad POT generating: | Upstream: | ||
| Attachments: |
Differences drom make files some qt-projects.
new problems Full MakeFile Diff |
||
Please check if this build resolves the issue. Advisory: "Remove -fvar-tracking-assignments and -frecord-gcc-switches from default optflags because CLang rejects them" https://abf.rosalinux.ru/build_lists/2615504 https://abf.rosalinux.ru/build_lists/2615505 Created attachment 4344 [details]
new problems
It was even worse!
This simple project where one button and one label.
Makefile will be in the next message
Created attachment 4345 [details]
Full MakeFile Diff
$QT_PATH - моя замена для пути к корневому Qt, чтобы можно было найти радикальные различия в строках.
(In reply to comment #2) > Created attachment 4344 [details] > new problems > > It was even worse! > > This simple project where one button and one label. > > Makefile will be in the next message Well, in fact it's better. :-) Now let's try to drop -Wp,-D_FORTIFY_SOURCE=2 from optflags because it cannot be used with clang and glibc: https://bugzilla.redhat.com/show_bug.cgi?id=1188075 I'll post new build lists for testing soon. Plaase try new build lists: https://abf.rosalinux.ru/build_lists/2617642 https://abf.rosalinux.ru/build_lists/2617643 It is now build projects. But it has warnings: clang: warning: optimization flag '-ffat-lto-objects' is not supported clang: warning: optimization flag '-fno-delete-null-pointer-checks' is not supported clang: warning: argument unused during compilation: '-ffat-lto-objects' clang: warning: argument unused during compilation: '-fno-delete-null-pointer-checks' clang: warning: optimization flag '-ffat-lto-objects' is not supported clang: warning: optimization flag '-fno-delete-null-pointer-checks' is not supported clang: warning: argument unused during compilation: '-ffat-lto-objects' clang: warning: argument unused during compilation: '-fno-delete-null-pointer-checks' I guess the only correct way to deal with this issue is to run qmake as qmake-qt5 QMAKE_CFLAGS_RELEASE=XXX QMAKE_CXXFLAGS_RELEASE=XXX [clags flags] XXX can be either empty or any flags you need. This way it works fine. |
Created attachment 4341 [details] Differences drom make files some qt-projects. Qt5 does not compiled with CLang in release mode Arguments '-fvar-tracking-assignments' and '-frecord-gcc-switches' are unknown Qmake from system package and Community version create different files. Their differences (without includes) in the attachment. Steps to Reproduce: 1. Make some project in Qt-Creator. 2. Chose CLang-release profile for compiling. 3. Push make button.