Bug 5272 - Qt 5.4 & CLang Error in compilation by CLang in Release Mode
: Qt 5.4 & CLang Error in compilation by CLang in Release Mode
Status: CONFIRMED
Product: Desktop Bugs
Classification: ROSA Desktop
Component: Main Packages
: Fresh
: All Linux
: Normal normal
: ---
Assigned To: ROSA Linux Bugs
: ROSA Linux Bugs
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2015-03-25 18:08 MSK by Yaroslav
Modified: 2015-03-25 18:08 MSK (History)
0 users

See Also:
RPM Package: Qt5
ISO-related:
Bad POT generating:
Upstream:


Attachments
Result of compilation (41.53 KB, image/png)
2015-03-25 18:08 MSK, Yaroslav
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Yaroslav 2015-03-25 18:08:21 MSK
Created attachment 3839 [details]
Result of compilation

В Qt 5.4.1 не собирается ни один проект с компиляцией CLang в режиме Release.
19:55:40: Выполняются этапы для проекта ROM_Backup_Splitter...
19:55:40: Настройки не изменились, этап qmake пропускается.
19:55:40: Запускается: «/usr/bin/make»
clang++ -c -pipe -O2 -Wa,--compress-debug-sections -gdwarf-4 -fvar-tracking-assignments -frecord-gcc-switches -Wstrict-aliasing=2 -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -ffat-lto-objects -fno-delete-null-pointer-checks -fstack-protector --param=ssp-buffer-size=4 -fPIC -Wall -W -D_REENTRANT -fPIE -DQT_NO_DEBUG -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I../ROM_Backup-Splitter -I. -isystem /usr/include/qt5 -isystem /usr/include/qt5/QtWidgets -isystem /usr/include/qt5/QtGui -isystem /usr/include/qt5/QtCore -I. -I. -I/usr/lib64/qt5/mkspecs/linux-clang -o main.o ../ROM_Backup-Splitter/main.cpp
clang: error: unknown argument: '-fvar-tracking-assignments'
clang: error: unknown argument: '-frecord-gcc-switches'
clang: error: unknown argument: '-ffat-lto-objects'
clang: error: unknown argument: '-fno-delete-null-pointer-checks'
Makefile:534: recipe for target 'main.o' failed
make: *** [main.o] Error 1
19:55:40: Процесс «/usr/bin/m

В режиме Debug собирается:
20:06:33: Выполняются этапы для проекта ROM_Backup_Splitter...
20:06:33: Запускается: «/usr/bin/qmake-qt5» /home/belykh/Develop/ROM_Backup-Splitter/ROM_Backup_Splitter.pro -r -spec linux-clang CONFIG+=debug
20:06:34: Процесс «/usr/bin/qmake-qt5» завершился успешно.
20:06:34: Запускается: «/usr/bin/make» 
/usr/lib64/qt5/bin/uic ../ROM_Backup-Splitter/mainwindow.ui -o ui_mainwindow.h
clang++ -c -pipe -g -Wall -W -D_REENTRANT -fPIE -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I../ROM_Backup-Splitter -I. -isystem /usr/include/qt5 -isystem /usr/include/qt5/QtWidgets -isystem /usr/include/qt5/QtGui -isystem /usr/include/qt5/QtCore -I. -I. -I/usr/lib64/qt5/mkspecs/linux-clang -o main.o ../ROM_Backup-Splitter/main.cpp
clang++ -c -pipe -g -Wall -W -D_REENTRANT -fPIE -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I../ROM_Backup-Splitter -I. -isystem /usr/include/qt5 -isystem /usr/include/qt5/QtWidgets -isystem /usr/include/qt5/QtGui -isystem /usr/include/qt5/QtCore -I. -I. -I/usr/lib64/qt5/mkspecs/linux-clang -o mainwindow.o ../ROM_Backup-Splitter/mainwindow.cpp
/usr/lib64/qt5/bin/rcc -name images ../ROM_Backup-Splitter/images.qrc -o qrc_images.cpp
clang++ -c -pipe -g -Wall -W -D_REENTRANT -fPIE -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I../ROM_Backup-Splitter -I. -isystem /usr/include/qt5 -isystem /usr/include/qt5/QtWidgets -isystem /usr/include/qt5/QtGui -isystem /usr/include/qt5/QtCore -I. -I. -I/usr/lib64/qt5/mkspecs/linux-clang -o qrc_images.o qrc_images.cpp
/usr/lib64/qt5/bin/moc -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/lib64/qt5/mkspecs/linux-clang -I/home/belykh/Develop/ROM_Backup-Splitter -I/usr/include/qt5 -I/usr/include/qt5/QtWidgets -I/usr/include/qt5/QtGui -I/usr/include/qt5/QtCore -I. -I/usr/include/c++/4.9.2 -I/usr/include/c++/4.9.2/x86_64-unknown-linux-gnu -I/usr/include/c++/4.9.2/backward -I/usr/lib64/gcc/x86_64-unknown-linux-gnu/4.9.2/include -I/usr/local/include -I/usr/include ../ROM_Backup-Splitter/mainwindow.h -o moc_mainwindow.cpp
clang++ -c -pipe -g -Wall -W -D_REENTRANT -fPIE -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I../ROM_Backup-Splitter -I. -isystem /usr/include/qt5 -isystem /usr/include/qt5/QtWidgets -isystem /usr/include/qt5/QtGui -isystem /usr/include/qt5/QtCore -I. -I. -I/usr/lib64/qt5/mkspecs/linux-clang -o moc_mainwindow.o moc_mainwindow.cpp
clang++ -ccc-gcc-name g++ -o ROM_Backup-Splitter main.o mainwindow.o qrc_images.o moc_mainwindow.o   -lQt5Widgets -lQt5Gui -lQt5Core -lGL -lpthread 
20:06:37: Процесс «/usr/bin/make» завершился успешно.
20:06:37: Прошло времени: 00:03.

В Qt 5.4.1 Community (с оффсайта) все нормально собирается. Как в дебаге, так и в релизе.
Вывод сборки в релизе
20:03:10: Выполняются этапы для проекта ROM_Backup_Splitter...
20:03:10: Настройки не изменились, этап qmake пропускается.
20:03:10: Запускается: «/usr/bin/make» 
/opt/Qt/5.4/gcc_64/bin/uic ../ROM_Backup-Splitter/mainwindow.ui -o ui_mainwindow.h
clang++ -c -pipe -O2 -Wall -W -D_REENTRANT -fPIE -DQT_NO_DEBUG -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I../ROM_Backup-Splitter -I. -I/opt/Qt/5.4/gcc_64/include -I/opt/Qt/5.4/gcc_64/include/QtWidgets -I/opt/Qt/5.4/gcc_64/include/QtGui -I/opt/Qt/5.4/gcc_64/include/QtCore -I. -I. -I/opt/Qt/5.4/gcc_64/mkspecs/linux-clang -o main.o ../ROM_Backup-Splitter/main.cpp
clang++ -c -pipe -O2 -Wall -W -D_REENTRANT -fPIE -DQT_NO_DEBUG -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I../ROM_Backup-Splitter -I. -I/opt/Qt/5.4/gcc_64/include -I/opt/Qt/5.4/gcc_64/include/QtWidgets -I/opt/Qt/5.4/gcc_64/include/QtGui -I/opt/Qt/5.4/gcc_64/include/QtCore -I. -I. -I/opt/Qt/5.4/gcc_64/mkspecs/linux-clang -o mainwindow.o ../ROM_Backup-Splitter/mainwindow.cpp
/opt/Qt/5.4/gcc_64/bin/rcc -name images ../ROM_Backup-Splitter/images.qrc -o qrc_images.cpp
clang++ -c -pipe -O2 -Wall -W -D_REENTRANT -fPIE -DQT_NO_DEBUG -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I../ROM_Backup-Splitter -I. -I/opt/Qt/5.4/gcc_64/include -I/opt/Qt/5.4/gcc_64/include/QtWidgets -I/opt/Qt/5.4/gcc_64/include/QtGui -I/opt/Qt/5.4/gcc_64/include/QtCore -I. -I. -I/opt/Qt/5.4/gcc_64/mkspecs/linux-clang -o qrc_images.o qrc_images.cpp
/opt/Qt/5.4/gcc_64/bin/moc -DQT_NO_DEBUG -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I/opt/Qt/5.4/gcc_64/mkspecs/linux-clang -I/home/belykh/Develop/ROM_Backup-Splitter -I/opt/Qt/5.4/gcc_64/include -I/opt/Qt/5.4/gcc_64/include/QtWidgets -I/opt/Qt/5.4/gcc_64/include/QtGui -I/opt/Qt/5.4/gcc_64/include/QtCore -I. ../ROM_Backup-Splitter/mainwindow.h -o moc_mainwindow.cpp
clang++ -c -pipe -O2 -Wall -W -D_REENTRANT -fPIE -DQT_NO_DEBUG -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I../ROM_Backup-Splitter -I. -I/opt/Qt/5.4/gcc_64/include -I/opt/Qt/5.4/gcc_64/include/QtWidgets -I/opt/Qt/5.4/gcc_64/include/QtGui -I/opt/Qt/5.4/gcc_64/include/QtCore -I. -I. -I/opt/Qt/5.4/gcc_64/mkspecs/linux-clang -o moc_mainwindow.o moc_mainwindow.cpp
clang++ -ccc-gcc-name g++ -Wl,-rpath,/opt/Qt/5.4/gcc_64 -Wl,-rpath,/opt/Qt/5.4/gcc_64/lib -o ROM_Backup-Splitter main.o mainwindow.o qrc_images.o moc_mainwindow.o   -L/opt/Qt/5.4/gcc_64/lib -lQt5Widgets -lQt5Gui -lQt5Core -lGL -lpthread 
20:03:15: Процесс «/usr/bin/make» завершился успешно.
20:03:15: Прошло времени: 00:04.