View Issue Details

IDProjectCategoryView StatusLast Update
0016762ScribusGeneralpublic2023-05-29 18:56
Reportercgiboudeaux Assigned Tocbradney  
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionfixed 
Product Version1.7 milestone 
Fixed in Version1.7.0.svn 
Summary0016762: Build failure on 32bit arch
DescriptionOur unstable package tracking svn [1] fails to build on i586 with this error:

[ 106s] [ 27%] Building CXX object scribus/CMakeFiles/scribus.dir/pdfwriter.cpp.o
[ 106s] cd /home/abuild/rpmbuild/BUILD/scribus-1.7.40svn/build/scribus && /usr/bin/c++ -DAPPDATADIR=\"/usr/share/metainfo/\" -DDESKTOPDIR=\"/usr/share/applications/\" -DDOCDIR=\"/usr/share/doc/scribus/\" -DHAVE_CONFIG_H -DHAVE_DLFCN_H -DHAVE_UNISTD_H -DICONDIR=\"/usr/share/scribus/icons/\" -DLIBDIR=\"/usr/lib/scribus/\" -DPLUGINDIR=\"/usr/lib/scribus/plugins/\" -DQMLDIR=\"/usr/share/scribus/qml/\" -DQT_CORE5COMPAT_LIB -DQT_CORE_LIB -DQT_DBUS_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_NO_DEBUG -DQT_OPENGL_LIB -DQT_PRINTSUPPORT_LIB -DQT_WIDGETS_LIB -DQT_XML_LIB -DSAMPLESDIR=\"/usr/share/scribus/samples/\" -DSCRIPTSDIR=\"/usr/share/scribus/scripts/\" -DSHAREDIR=\"/usr/share/scribus/\" -DTEMPLATEDIR=\"/usr/share/scribus/templates/\" -Dscribus_EXPORTS -I/home/abuild/rpmbuild/BUILD/scribus-1.7.40svn/build/scribus -I/home/abuild/rpmbuild/BUILD/scribus-1.7.40svn/scribus -I/home/abuild/rpmbuild/BUILD/scribus-1.7.40svn/build/scribus/scribus_autogen/include -I/usr/include/GraphicsMagick -I/usr/include/qt6/QtDBus -I/home/abuild/rpmbuild/BUILD/scribus-1.7.40svn/build -I/usr/include/libxml2 -I/usr/include/libpng16 -I/home/abuild/rpmbuild/BUILD/scribus-1.7.40svn -I/usr/include/freetype2 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/home/abuild/rpmbuild/BUILD/scribus-1.7.40svn/scribus/third_party/hyphen -I/usr/include/cairo -isystem /usr/include/qt6/QtCore -isystem /usr/include/qt6 -isystem /usr/include/qt6/QtCore5Compat -isystem /usr/include/qt6/QtGui -isystem /usr/include/qt6/QtWidgets -isystem /usr/include/qt6/QtNetwork -isystem /usr/include/qt6/QtOpenGL -isystem /usr/include/qt6/QtPrintSupport -isystem /usr/include/qt6/QtXml -isystem /usr/lib/qt6/mkspecs/linux-g++ -O3 -DNDEBUG -O2 -Wall -fPIE -fvisibility=hidden -fvisibility-inlines-hidden -std=c++17 -MD -MT scribus/CMakeFiles/scribus.dir/pdfwriter.cpp.o -MF CMakeFiles/scribus.dir/pdfwriter.cpp.o.d -o CMakeFiles/scribus.dir/pdfwriter.cpp.o -c /home/abuild/rpmbuild/BUILD/scribus-1.7.40svn/scribus/pdfwriter.cpp
[ 106s] /home/abuild/rpmbuild/BUILD/scribus-1.7.40svn/scribus/pdfwriter.cpp:333:20: error: redefinition of 'QByteArray Pdf::toPdf(size_t)'
[ 106s] 333 | QByteArray toPdf(size_t v)
[ 106s] | ^~~~~
[ 106s] /home/abuild/rpmbuild/BUILD/scribus-1.7.40svn/scribus/pdfwriter.cpp:317:20: note: 'QByteArray Pdf::toPdf(uint)' previously defined here
[ 106s] 317 | QByteArray toPdf(uint v)
[ 106s] | ^~~~~

Additional Information[1] https://build.opensuse.org/package/live_build_log/KDE:Unstable:Extra/scribus/openSUSE_Tumbleweed/i586
TagsNo tags attached.
PatchNo

Activities

cbradney

2022-03-01 21:18

administrator   ~0049571

Last edited: 2022-03-01 21:59

I changed line 86 of pdfwriter.h and the cpp file's line from:
#ifndef Q_OS_WIN
to
#if !defined(Q_OS_WIN) && !defined(Q_PROCESSOR_X86_32)

It won't help on non-x86 32 bit platforms, but does it work on what you are trying?

cgiboudeaux

2022-03-02 16:32

reporter   ~0049572

It fails later with this change:

[ 376s] In file included from /home/abuild/rpmbuild/BUILD/scribus-1.7.40svn/scribus/scribusXml.cpp:56:
[ 376s] /home/abuild/rpmbuild/BUILD/scribus-1.7.40svn/scribus/scxmlstreamwriter.h:30:14: error: 'void ScXmlStreamWriter::writeAttribute(const QString&, size_t)' cannot be overloaded with 'void ScXmlStreamWriter::writeAttribute(const QString&, uint)'
[ 376s] 30 | void writeAttribute(const QString & name, size_t value) { QXmlStreamWriter::writeAttribute(name, QString::number(value)); }
[ 376s] | ^~~~~~~~~~~~~~
[ 376s] /home/abuild/rpmbuild/BUILD/scribus-1.7.40svn/scribus/scxmlstreamwriter.h:27:14: note: previous declaration 'void ScXmlStreamWriter::writeAttribute(const QString&, uint)'
[ 376s] 27 | void writeAttribute(const QString & name, uint value) { QXmlStreamWriter::writeAttribute(name, QString::number(value)); }
[ 376s] | ^~~~~~~~~~~~~~
[ 376s] make[2]: *** [scribus/CMakeFiles/scribus.dir/build.make:2298: scribus/CMakeFiles/scribus.dir/scribusXml.cpp.o] Error 1

cbradney

2022-03-02 19:35

administrator   ~0049573

Try svn revision 24975 now

cgiboudeaux

2022-03-03 16:48

reporter   ~0049577

The build succeeds with the last change.

Issue History

Date Modified Username Field Change
2022-03-01 08:54 cgiboudeaux New Issue
2022-03-01 19:55 jghali Product Version 1.6.0.svn => 1.7 milestone
2022-03-01 21:18 cbradney Note Added: 0049571
2022-03-01 21:59 cbradney Note Edited: 0049571
2022-03-02 16:32 cgiboudeaux Note Added: 0049572
2022-03-02 19:35 cbradney Note Added: 0049573
2022-03-03 16:48 cgiboudeaux Note Added: 0049577
2022-03-03 20:51 cbradney Assigned To => cbradney
2022-03-03 20:51 cbradney Status new => resolved
2022-03-03 20:51 cbradney Resolution open => fixed
2022-03-03 20:51 cbradney Fixed in Version => 1.7.0.svn
2023-05-29 18:56 cbradney Status resolved => closed