Following my commit cbc9a901afd17, I get the following error:
g++ -DHAVE_CONFIG_H -I. -I../../../../master/src/frontends/qt -I../../..
-DQT_NO_STL -DQT_NO_KEYWORDS -DQT_NO_CAST_TO_ASCII -DQT_NO_STL
-I../../../../master/src -I../../../../master/src/frontends
-I../../../../master/images -DQT_CONCURRENT_LIB -DQT_SVG_LIB
-DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB
-I/usr/include/x86_64-linux-gnu/qt5/QtConcurrent
-I/usr/include/x86_64-linux-gnu/qt5
-I/usr/include/x86_64-linux-gnu/qt5/QtSvg
-I/usr/include/x86_64-linux-gnu/qt5
-I/usr/include/x86_64-linux-gnu/qt5/QtWidgets
-I/usr/include/x86_64-linux-gnu/qt5
-I/usr/include/x86_64-linux-gnu/qt5/QtGui
-I/usr/include/x86_64-linux-gnu/qt5
-I/usr/include/x86_64-linux-gnu/qt5/QtCore
-I/usr/include/x86_64-linux-gnu/qt5 -I../../../../master/3rdparty/boost
-Wall -Wextra -Wno-deprecated-copy -MT GuiView.o -MD -MP -MF
$depbase.Tpo -c -o GuiView.o
../../../../master/src/frontends/qt/GuiView.cpp &&\
mv -f $depbase.Tpo $depbase.Po
In file included from
/usr/include/x86_64-linux-gnu/qt5/QtGui/qtguiglobal.h:43,
from
/usr/include/x86_64-linux-gnu/qt5/QtWidgets/qtwidgetsglobal.h:43,
from
/usr/include/x86_64-linux-gnu/qt5/QtWidgets/qmainwindow.h:43,
from
/usr/include/x86_64-linux-gnu/qt5/QtWidgets/QMainWindow:1,
from ../../../../master/src/frontends/qt/GuiView.h:22,
from ../../../../master/src/frontends/qt/GuiView.cpp:16:
/usr/include/x86_64-linux-gnu/qt5/QtCore/qglobal.h:1282:4: error: #error
"You must build your code with position independent code if Qt was built
with -reduce-relocations. " "Compile your code with -fPIC (and not with
-fPIE)."
1282 | # error "You must build your code with position independent
code if Qt was built with -reduce-relocations. "\
| ^~~~~
If I remove the commit, the -Wall -Wextra moves in the command line, and
it just works!
g++ -DHAVE_CONFIG_H -I. -I../../../../master/src/frontends/qt -I../../..
-DQT_NO_STL -DQT_NO_KEYWORDS -DQT_NO_CAST_TO_ASCII -DQT_NO_STL
-I../../../../master/src -I../../../../master/src/frontends
-I../../../../master/images -DQT_CONCURRENT_LIB -DQT_SVG_LIB
-DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB
-I/usr/include/x86_64-linux-gnu/qt5/QtConcurrent
-I/usr/include/x86_64-linux-gnu/qt5
-I/usr/include/x86_64-linux-gnu/qt5/QtSvg
-I/usr/include/x86_64-linux-gnu/qt5
-I/usr/include/x86_64-linux-gnu/qt5/QtWidgets
-I/usr/include/x86_64-linux-gnu/qt5
-I/usr/include/x86_64-linux-gnu/qt5/QtGui
-I/usr/include/x86_64-linux-gnu/qt5
-I/usr/include/x86_64-linux-gnu/qt5/QtCore
-I/usr/include/x86_64-linux-gnu/qt5 -I../../../../master/3rdparty/boost
-Wall -Wextra -Wno-deprecated-copy -MT GuiView.o -MD -MP -MF
$depbase.Tpo -c -o GuiView.o
../../../../master/src/frontends/qt/GuiView.cpp &&\
mv -f $depbase.Tpo $depbase.Po
In file included from
/usr/include/x86_64-linux-gnu/qt5/QtGui/qtguiglobal.h:43,
from
/usr/include/x86_64-linux-gnu/qt5/QtWidgets/qtwidgetsglobal.h:43,
from
/usr/include/x86_64-linux-gnu/qt5/QtWidgets/qmainwindow.h:43,
from
/usr/include/x86_64-linux-gnu/qt5/QtWidgets/QMainWindow:1,
from ../../../../master/src/frontends/qt/GuiView.h:22,
from ../../../../master/src/frontends/qt/GuiView.cpp:16:
/usr/include/x86_64-linux-gnu/qt5/QtCore/qglobal.h:1282:4: error: #error
"You must build your code with position independent code if Qt was built
with -reduce-relocations. " "Compile your code with -fPIC (and not with
-fPIE)."
1282 | # error "You must build your code with position independent
code if Qt was built with -reduce-relocations. "\
| ^~~~~
Ideas?
JMarc
--
lyx-devel mailing list
lyx-devel@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-devel