FS#45147 - [gnuplot] Build failed for Qt5

Attached to Project: Arch Linux
Opened by Roy Zhang (pudh4418) - Saturday, 30 May 2015, 17:00 GMT
Last edited by Antonio Rojas (arojas) - Wednesday, 03 February 2016, 09:12 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Ronald van Haren (pressh)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:
Gnuplot failed to build for Qt5

Additional info:
* package version(s)

gnuplot: 5.0.0-3
qt5-tools: 5.4.1-9
qt5-svg: 5.4.1-9
gcc-multilib: 5.1.0-4

* config and/or log files etc.
makepkg:

...
c++ -DHAVE_CONFIG_H -I. -I.. -I../term -I../term -DBINDIR=\"/usr/bin\" -DX11_DRIVER_DIR=\"/usr/bin\" -DQT_DRIVER_DIR=\"/usr/bin\" -DGNUPLOT_SHARE_DIR=\"/usr/share/gnuplot/5.0\" -DGNUPLOT_PS_DIR=\"/usr/share/gnuplot/5.0/PostScript\" -DGNUPLOT_JS_DIR=\"/usr/share/gnuplot/5.0/js\" -DGNUPLOT_LUA_DIR=\"/usr/share/gnuplot/5.0/lua\" -DCONTACT=\"gnuplot-bugs@lists.sourceforge.net\" -DHELPFILE=\"/usr/share/gnuplot/gnuplot.gih\" -DGNUPLOT_X11=\"`echo gnuplot_x11 | sed 's,x,x,'`\" -DXAPPLRESDIR=\"/etc/X11/app-defaults/\" -DQTGNUPLOT_DATA_DIR=\"/usr/share/gnuplot/5.0/qt\" -D_FORTIFY_SOURCE=2 -I/usr/include -pthread -I/usr/include/pango-1.0 -I/usr/include/cairo -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/freetype2 -I/usr/include/harfbuzz -I/usr/include/libdrm -I/usr/include/libpng16 -pthread -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/freetype2 -I/usr/include/harfbuzz -I/usr/include/libdrm -I/usr/include/libpng16 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/qt/QtNetwork -I/usr/include/qt -I/usr/include/qt/QtSvg -I/usr/include/qt -I/usr/include/qt/QtPrintSupport -I/usr/include/qt -I/usr/include/qt/QtWidgets -I/usr/include/qt -I/usr/include/qt/QtGui -I/usr/include/qt -I/usr/include/qt/QtCore -I/usr/include/qt -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong --param=ssp-buffer-size=4 -I/usr/lib/wx/include/gtk2-unicode-3.0 -I/usr/include/wx-3.0 -D_FILE_OFFSET_BITS=64 -DWXUSINGDLL -D__WXGTK__ -pthread -pthread -I/usr/include/pango-1.0 -I/usr/include/cairo -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/freetype2 -I/usr/include/harfbuzz -I/usr/include/libdrm -I/usr/include/libpng16 -pthread -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/pango-1.0 -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/libdrm -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libpng16 -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -fPIE -MT qtterminal/qt_term.o -MD -MP -MF $depbase.Tpo -c -o qtterminal/qt_term.o qtterminal/qt_term.cpp &&\
mv -f $depbase.Tpo $depbase.Po
In file included from /usr/include/qt/QtCore/qnamespace.h:37:0,
from /usr/include/qt/QtCore/qobjectdefs.h:41,
from /usr/include/qt/QtCore/qobject.h:40,
from /usr/include/qt/QtCore/qabstractanimation.h:37,
from /usr/include/qt/QtCore/QtCore:4,
from qtterminal/qt_term.cpp:51:
/usr/include/qt/QtCore/qglobal.h:1050:4: error: #error "You must build your code with position independent code if Qt was built with -reduce-relocations. " "Compile your code with -fPIC (-fPIE is not enough)."
# error "You must build your code with position independent code if Qt was built with -reduce-relocations. "\
^
Makefile:912: recipe for target 'qtterminal/qt_term.o' failed
make[4]: *** [qtterminal/qt_term.o] Error 1

Changing '-fPIE' to '-fPIC' solves this problem.

Steps to reproduce:

Download tarball and build.

This task depends upon

Closed by  Antonio Rojas (arojas)
Wednesday, 03 February 2016, 09:12 GMT
Reason for closing:  Fixed
Comment by Roy Zhang (pudh4418) - Saturday, 30 May 2015, 17:10 GMT
There are some path problem in my first patch.
So please use the one.

:)
Comment by Doug Newgard (Scimmia) - Sunday, 31 May 2015, 04:43 GMT
Have you sent this upstream?
Comment by Matt Corallo (BlueMatt) - Tuesday, 09 June 2015, 20:24 GMT
This is really more of a bug in qt5. It should not be build with -reduce-relocations. see-also: https://github.com/bitcoin/bitcoin/pull/6248#issuecomment-110491401
Comment by Matt Corallo (BlueMatt) - Tuesday, 09 June 2015, 20:28 GMT Comment by Evangelos Foutras (foutrelis) - Wednesday, 24 June 2015, 02:42 GMT

Loading...