[Qbs] How to pass a GCC parameter '--param inline-unit-growth=120'
Карелин Павел
hkarel at yandex.ru
Mon Jul 31 11:54:43 CEST 2017
Hi,
For a GCC compiler, I need to pass a parameter: --param
inline-unit-growth=120
I do this as follows
cpp.driverFlags: [
"--param inline-unit-growth=120",
]
When I build, I get the following error message:
/usr/bin/g++ -O2 -Wall -Wextra*'--param inline-unit-growth=120'* -m64
-pipe -fexceptions -fvisibility=default -std=c++11 -ggdb3 -Winline -Wall
-Wextra -Wno-unused-parameter -DNDEBUG -DVERSION_PROJECT=0.9.13
-DVERSION_PROJECT_MAJOR=0 -DVERSION_PROJECT_MINOR=9
-DVERSION_PROJECT_PATCH=13 '-DGIT_REVISION="e3f7fd9"'
-DQ_DATA_STREAM_VERSION=QDataStream::Qt_4_8 -DBPROTOCOL_VERSION_LOW=0
-DBPROTOCOL_VERSION_HIGH=1 '-DUDP_SIGNATURE="27FR"'
'-DCONFIG_DIR="27FacesRetail"' -DCPU_ONLY -DUSE_MKL -D_7ZIP_ST
-D_7ZIP_ASM -DLZMA_COMPRESSION -DPPMD_COMPRESSION -DQT_CORE_LIB
-DQT_NO_DEBUG -DQT_NETWORK_LIB
-I/home/hkarel/CProjects/27FacesRetail/src/27fretaild
-I/home/hkarel/CProjects/27FacesRetail/src
-I/home/hkarel/CProjects/27FacesRetail/src/3rdparty
-I/home/hkarel/CProjects/27FacesRetail/src/common
-I/home/hkarel/CProjects/27FacesRetail/src/compression/src
-I/usr/include/qt4 -I/usr/include/qt4/QtCore
-I/usr/share/qt4/mkspecs/linux-g++-64
-I/home/hkarel/CProjects/27FacesRetail/build/qtc_Qt_486_d423b044-release/27Faces-Retail.qtc-Qt-486-d423b044.05dbb98f/qt.headers
-I/usr/include/qt4/QtNetwork
-I/home/hkarel/CProjects/27FacesRetail/src/shared
-I/home/hkarel/CProjects/27FacesRetail/src/shared/shared
-I/home/hkarel/CProjects/27FacesRetail/build/qtc_Qt_486_d423b044-release/SharedLib.qtc-Qt-486-d423b044.72e7795c/qt.headers
-isystem/home/hkarel/CProjects/27FacesRetail/src/27fretaild
-isystem/home/hkarel/CProjects/27FacesRetail/src
-isystem/home/hkarel/CProjects/27FacesRetail/src/3rdparty
-isystem/home/hkarel/CProjects/27FacesRetail/src/common
-isystem/home/hkarel/CProjects/27FacesRetail/src/compression/src
-isystem/usr/include/qt4 -isystem/usr/include/qt4/QtCore
-isystem/usr/share/qt4/mkspecs/linux-g++-64
-isystem/home/hkarel/CProjects/27FacesRetail/build/qtc_Qt_486_d423b044-release/27Faces-Retail.qtc-Qt-486-d423b044.05dbb98f/qt.headers
-isystem/usr/include/qt4/QtNetwork
-isystem/home/hkarel/CProjects/27FacesRetail/src/shared
-isystem/home/hkarel/CProjects/27FacesRetail/src/shared/shared
-isystem/home/hkarel/CProjects/27FacesRetail/build/qtc_Qt_486_d423b044-release/SharedLib.qtc-Qt-486-d423b044.72e7795c/qt.headers
-isystem/opt/opencv/3.3.0/include -isystem/opt/intel/caffe/1.0.2/include
-isystem/home/hkarel/CProjects/27FacesRetail/src/3rdparty/cereal/1.1.1/include
-isystem/home/hkarel/CProjects/27FacesRetail/src/3rdparty/jda/1.0.0/include
-isystem/home/hkarel/CProjects/27FacesRetail/src/yaml/include
-isystem/home/hkarel/CProjects/27FacesRetail/src/3rdparty/liblinear/1.0.0
-isystem/home/hkarel/CProjects/27FacesRetail/src/3rdparty/pico/1.0.0
-isystem/home/hkarel/CProjects/27FacesRetail/src/3rdparty/superviseddescent/0.4.1/include
-isystem/home/hkarel/CProjects/27FacesRetail/src/3rdparty/eigen/3.2.8
-isystem/home/hkarel/CProjects/27FacesRetail/src/3rdparty/vlfeat/0.9.20
-isystem/home/hkarel/CProjects/27FacesRetail/src/3rdparty/vlfeat/0.9.20/vl
-o
/home/hkarel/CProjects/27FacesRetail/build/qtc_Qt_486_d423b044-release/27Faces-Retail.qtc-Qt-486-d423b044.05dbb98f/.obj/73489b871e127538/moc_27fretail_appl.cpp.o
-c
/home/hkarel/CProjects/27FacesRetail/build/qtc_Qt_486_d423b044-release/27Faces-Retail.qtc-Qt-486-d423b044.05dbb98f/qt.headers/moc_27fretail_appl.cpp
g++: error: unrecognized command line option ‘--param
inline-unit-growth=120’
If I pass '-param inline-unit-growth = 120' without quotes in commsnd
line - this errordoes not occur:
/usr/bin/g++ -O2 -Wall -Wextra *--param inline-unit-growth=120* -m64
-pipe -fexceptions -fvisibility=default -std=c++11 -ggdb3 -Winline -Wall
-Wextra -Wno-unused-parameter -DNDEBUG -DVERSION_PROJECT=0.9.13
-DVERSION_PROJECT_MAJOR=0 -DVERSION_PROJECT_MINOR=9
-DVERSION_PROJECT_PATCH=13 '-DGIT_REVISION="e3f7fd9"'
-DQ_DATA_STREAM_VERSION=QDataStream::Qt_4_8 -DBPROTOCOL_VERSION_LOW=0
-DBPROTOCOL_VERSION_HIGH=1 '-DUDP_SIGNATURE="27FR"'
'-DCONFIG_DIR="27FacesRetail"' -DCPU_ONLY -DUSE_MKL -D_7ZIP_ST
-D_7ZIP_ASM -DLZMA_COMPRESSION -DPPMD_COMPRESSION -DQT_CORE_LIB
-DQT_NO_DEBUG -DQT_NETWORK_LIB
-I/home/hkarel/CProjects/27FacesRetail/src/27fretaild
-I/home/hkarel/CProjects/27FacesRetail/src
-I/home/hkarel/CProjects/27FacesRetail/src/3rdparty
-I/home/hkarel/CProjects/27FacesRetail/src/common
-I/home/hkarel/CProjects/27FacesRetail/src/compression/src
-I/usr/include/qt4 -I/usr/include/qt4/QtCore
-I/usr/share/qt4/mkspecs/linux-g++-64
-I/home/hkarel/CProjects/27FacesRetail/build/qtc_Qt_486_d423b044-release/27Faces-Retail.qtc-Qt-486-d423b044.05dbb98f/qt.headers
-I/usr/include/qt4/QtNetwork
-I/home/hkarel/CProjects/27FacesRetail/src/shared
-I/home/hkarel/CProjects/27FacesRetail/src/shared/shared
-I/home/hkarel/CProjects/27FacesRetail/build/qtc_Qt_486_d423b044-release/SharedLib.qtc-Qt-486-d423b044.72e7795c/qt.headers
-isystem/home/hkarel/CProjects/27FacesRetail/src/27fretaild
-isystem/home/hkarel/CProjects/27FacesRetail/src
-isystem/home/hkarel/CProjects/27FacesRetail/src/3rdparty
-isystem/home/hkarel/CProjects/27FacesRetail/src/common
-isystem/home/hkarel/CProjects/27FacesRetail/src/compression/src
-isystem/usr/include/qt4 -isystem/usr/include/qt4/QtCore
-isystem/usr/share/qt4/mkspecs/linux-g++-64
-isystem/home/hkarel/CProjects/27FacesRetail/build/qtc_Qt_486_d423b044-release/27Faces-Retail.qtc-Qt-486-d423b044.05dbb98f/qt.headers
-isystem/usr/include/qt4/QtNetwork
-isystem/home/hkarel/CProjects/27FacesRetail/src/shared
-isystem/home/hkarel/CProjects/27FacesRetail/src/shared/shared
-isystem/home/hkarel/CProjects/27FacesRetail/build/qtc_Qt_486_d423b044-release/SharedLib.qtc-Qt-486-d423b044.72e7795c/qt.headers
-isystem/opt/opencv/3.3.0/include -isystem/opt/intel/caffe/1.0.2/include
-isystem/home/hkarel/CProjects/27FacesRetail/src/3rdparty/cereal/1.1.1/include
-isystem/home/hkarel/CProjects/27FacesRetail/src/3rdparty/jda/1.0.0/include
-isystem/home/hkarel/CProjects/27FacesRetail/src/yaml/include
-isystem/home/hkarel/CProjects/27FacesRetail/src/3rdparty/liblinear/1.0.0
-isystem/home/hkarel/CProjects/27FacesRetail/src/3rdparty/pico/1.0.0
-isystem/home/hkarel/CProjects/27FacesRetail/src/3rdparty/superviseddescent/0.4.1/include
-isystem/home/hkarel/CProjects/27FacesRetail/src/3rdparty/eigen/3.2.8
-isystem/home/hkarel/CProjects/27FacesRetail/src/3rdparty/vlfeat/0.9.20
-isystem/home/hkarel/CProjects/27FacesRetail/src/3rdparty/vlfeat/0.9.20/vl
-o
/home/hkarel/CProjects/27FacesRetail/build/qtc_Qt_486_d423b044-release/27Faces-Retail.qtc-Qt-486-d423b044.05dbb98f/.obj/73489b871e127538/moc_27fretail_appl.cpp.o
-c
/home/hkarel/CProjects/27FacesRetail/build/qtc_Qt_486_d423b044-release/27Faces-Retail.qtc-Qt-486-d423b044.05dbb98f/qt.headers/moc_27fretail_appl.cpp
Assembler messages:
Fatal error: can't create
/home/hkarel/CProjects/27FacesRetail/build/qtc_Qt_486_d423b044-release/27Faces-Retail.qtc-Qt-486-d423b044.05dbb98f/.obj/73489b871e127538/moc_27fretail_appl.cpp.o:
Нет такого файла или каталога
Tell me how I can solve this problem?
--
BR, Pavel Karelin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/qbs/attachments/20170731/75d91ab2/attachment.html>
More information about the Qbs
mailing list