Hi,
I'm trying to compile highlight on Arch Linux for i686, but I get the error shown below. I do not get that error when compiling on x86_64. Any idea what might be causing this?
Here's the build file I'm using: https://git.archlinux.org/svntogit/community.git/tree/trunk/PKGBUILD?h=packages/highlight
Florian
make -C ./src -f ./makefile HL_DATA_DIR=\"/usr/share/highlight/\" HL_CONFIG_DIR=\"/etc/highlight/\" HL_DOC_DIR=\"/usr/share/doc/highlight/\" gui-qt
make[1]: Entering directory '/build/highlight/src/highlight-3.31/src'
cd gui-qt && \
qmake-qt5 'DEFINES+=DATA_DIR=\\""/usr/share/highlight/"\\" CONFIG_DIR=\\""/etc/highlight/"\\" DOC_DIR=\\""/usr/share/doc/highlight/"\\" ' && \
make
make[2]: Entering directory '/build/highlight/src/highlight-3.31/src/gui-qt'
/usr/lib/qt/bin/uic mainwindow.ui -o ui_mainwindow.h
/usr/lib/qt/bin/uic io_report.ui -o ui_io_report.h
/usr/lib/qt/bin/uic showtextfile.ui -o ui_showtextfile.h
g++ -c -pipe -std=c++11 -O2 -march=i686 -mtune=generic -O2 -pipe -fstack-protector-strong -Wall -W -D_REENTRANT -fPIC -DDATA_DIR=\"/usr/share/highlight/\" -DCONFIG_DIR=\"/etc/highlight/\" -DDOC_DIR=\"/usr/share/doc/highlight/\" -DO2 -DQT -DDATA_DIR=\"/usr/share/highlight/\" -DCONFIG_DIR=\"/etc/highlight/\" -DDOC_DIR=\"/usr/share/doc/highlight/\" -DQT_NO_DEBUG -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I. -I. -I../include -isystem /usr/include/qt -isystem /usr/include/qt/QtWidgets -isystem /usr/include/qt/QtGui -isystem /usr/include/qt/QtCore -I. -I. -I/usr/lib/qt/mkspecs/linux-g++ -o main.o main.cpp
/usr/lib/qt/bin/rcc -name highlight-gui highlight-gui.qrc -o qrc_highlight-gui.cpp
/usr/lib/qt/bin/moc -DDATA_DIR=\"/usr/share/highlight/\" -DCONFIG_DIR=\"/etc/highlight/\" -DDOC_DIR=\"/usr/share/doc/highlight/\" -DO2 -DQT -DDATA_DIR=\"/usr/share/highlight/\" -DCONFIG_DIR=\"/etc/highlight/\" -DDOC_DIR=\"/usr/share/doc/highlight/\" -DQT_NO_DEBUG -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/lib/qt/mkspecs/linux-g++ -I/build/highlight/src/highlight-3.31/src/gui-qt -I/build/highlight/src/highlight-3.31/src/gui-qt -I/build/highlight/src/highlight-3.31/src/include -I/usr/include/qt -I/usr/include/qt/QtWidgets -I/usr/include/qt/QtGui -I/usr/include/qt/QtCore -I/usr/include/c++/6.1.1 -I/usr/include/c++/6.1.1/x86_64-pc-linux-gnu -I/usr/include/c++/6.1.1/backward -I/usr/lib/gcc/x86_64-pc-linux-gnu/6.1.1/include -I/usr/local/include -I/usr/lib/gcc/x86_64-pc-linux-gnu/6.1.1/include-fixed -I/usr/include mainwindow.h -o moc_mainwindow.cpp
/usr/lib/qt/bin/moc -DDATA_DIR=\"/usr/share/highlight/\" -DCONFIG_DIR=\"/etc/highlight/\" -DDOC_DIR=\"/usr/share/doc/highlight/\" -DO2 -DQT -DDATA_DIR=\"/usr/share/highlight/\" -DCONFIG_DIR=\"/etc/highlight/\" -DDOC_DIR=\"/usr/share/doc/highlight/\" -DQT_NO_DEBUG -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/lib/qt/mkspecs/linux-g++ -I/build/highlight/src/highlight-3.31/src/gui-qt -I/build/highlight/src/highlight-3.31/src/gui-qt -I/build/highlight/src/highlight-3.31/src/include -I/usr/include/qt -I/usr/include/qt/QtWidgets -I/usr/include/qt/QtGui -I/usr/include/qt/QtCore -I/usr/include/c++/6.1.1 -I/usr/include/c++/6.1.1/x86_64-pc-linux-gnu -I/usr/include/c++/6.1.1/backward -I/usr/lib/gcc/x86_64-pc-linux-gnu/6.1.1/include -I/usr/local/include -I/usr/lib/gcc/x86_64-pc-linux-gnu/6.1.1/include-fixed -I/usr/include io_report.h -o moc_io_report.cpp
/usr/lib/qt/bin/moc -DDATA_DIR=\"/usr/share/highlight/\" -DCONFIG_DIR=\"/etc/highlight/\" -DDOC_DIR=\"/usr/share/doc/highlight/\" -DO2 -DQT -DDATA_DIR=\"/usr/share/highlight/\" -DCONFIG_DIR=\"/etc/highlight/\" -DDOC_DIR=\"/usr/share/doc/highlight/\" -DQT_NO_DEBUG -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/lib/qt/mkspecs/linux-g++ -I/build/highlight/src/highlight-3.31/src/gui-qt -I/build/highlight/src/highlight-3.31/src/gui-qt -I/build/highlight/src/highlight-3.31/src/include -I/usr/include/qt -I/usr/include/qt/QtWidgets -I/usr/include/qt/QtGui -I/usr/include/qt/QtCore -I/usr/include/c++/6.1.1 -I/usr/include/c++/6.1.1/x86_64-pc-linux-gnu -I/usr/include/c++/6.1.1/backward -I/usr/lib/gcc/x86_64-pc-linux-gnu/6.1.1/include -I/usr/local/include -I/usr/lib/gcc/x86_64-pc-linux-gnu/6.1.1/include-fixed -I/usr/include showtextfile.h -o moc_showtextfile.cpp
g++ -c -pipe -std=c++11 -O2 -march=i686 -mtune=generic -O2 -pipe -fstack-protector-strong -Wall -W -D_REENTRANT -fPIC -DDATA_DIR=\"/usr/share/highlight/\" -DCONFIG_DIR=\"/etc/highlight/\" -DDOC_DIR=\"/usr/share/doc/highlight/\" -DO2 -DQT -DDATA_DIR=\"/usr/share/highlight/\" -DCONFIG_DIR=\"/etc/highlight/\" -DDOC_DIR=\"/usr/share/doc/highlight/\" -DQT_NO_DEBUG -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I. -I. -I../include -isystem /usr/include/qt -isystem /usr/include/qt/QtWidgets -isystem /usr/include/qt/QtGui -isystem /usr/include/qt/QtCore -I. -I. -I/usr/lib/qt/mkspecs/linux-g++ -o mainwindow.o mainwindow.cpp
g++ -c -pipe -std=c++11 -O2 -march=i686 -mtune=generic -O2 -pipe -fstack-protector-strong -Wall -W -D_REENTRANT -fPIC -DDATA_DIR=\"/usr/share/highlight/\" -DCONFIG_DIR=\"/etc/highlight/\" -DDOC_DIR=\"/usr/share/doc/highlight/\" -DO2 -DQT -DDATA_DIR=\"/usr/share/highlight/\" -DCONFIG_DIR=\"/etc/highlight/\" -DDOC_DIR=\"/usr/share/doc/highlight/\" -DQT_NO_DEBUG -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I. -I. -I../include -isystem /usr/include/qt -isystem /usr/include/qt/QtWidgets -isystem /usr/include/qt/QtGui -isystem /usr/include/qt/QtCore -I. -I. -I/usr/lib/qt/mkspecs/linux-g++ -o io_report.o io_report.cpp
g++ -c -pipe -std=c++11 -O2 -march=i686 -mtune=generic -O2 -pipe -fstack-protector-strong -Wall -W -D_REENTRANT -fPIC -DDATA_DIR=\"/usr/share/highlight/\" -DCONFIG_DIR=\"/etc/highlight/\" -DDOC_DIR=\"/usr/share/doc/highlight/\" -DO2 -DQT -DDATA_DIR=\"/usr/share/highlight/\" -DCONFIG_DIR=\"/etc/highlight/\" -DDOC_DIR=\"/usr/share/doc/highlight/\" -DQT_NO_DEBUG -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I. -I. -I../include -isystem /usr/include/qt -isystem /usr/include/qt/QtWidgets -isystem /usr/include/qt/QtGui -isystem /usr/include/qt/QtCore -I. -I. -I/usr/lib/qt/mkspecs/linux-g++ -o showtextfile.o showtextfile.cpp
g++ -c -pipe -std=c++11 -O2 -march=i686 -mtune=generic -O2 -pipe -fstack-protector-strong -Wall -W -D_REENTRANT -fPIC -DDATA_DIR=\"/usr/share/highlight/\" -DCONFIG_DIR=\"/etc/highlight/\" -DDOC_DIR=\"/usr/share/doc/highlight/\" -DO2 -DQT -DDATA_DIR=\"/usr/share/highlight/\" -DCONFIG_DIR=\"/etc/highlight/\" -DDOC_DIR=\"/usr/share/doc/highlight/\" -DQT_NO_DEBUG -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I. -I. -I../include -isystem /usr/include/qt -isystem /usr/include/qt/QtWidgets -isystem /usr/include/qt/QtGui -isystem /usr/include/qt/QtCore -I. -I. -I/usr/lib/qt/mkspecs/linux-g++ -o qrc_highlight-gui.o qrc_highlight-gui.cpp
usr/include/c++/6.1.1/bits/stl_relops.:67: Parse error at "std"
make[2]: [Makefile:358: moc_io_report.cpp] Error 1
make[2]: Waiting for unfinished jobs....
usr/include/c++/6.1.1/bits/stl_relops.:67: Parse error at "std"
make[2]: [Makefile:362: moc_showtextfile.cpp] Error 1
usr/include/c++/6.1.1/bits/stl_relops.:67: Parse error at "std"
make[2]: [Makefile:354: moc_mainwindow.cpp] Error 1
make[2]: Leaving directory '/build/highlight/src/highlight-3.31/src/gui-qt'
make[1]: [makefile:115: highlight-gui] Error 2
make[1]: Leaving directory '/build/highlight/src/highlight-3.31/src'
make: [makefile:51: gui] Error 2
Hi,
in src/makefile, QMAKE is defined as qmake (overriding your setting). It was qmake-qt5 in previous releases. I will change the makefile to accept a given parameter or simply change it back to qmake-qt5.
So to complete the build you can edit the makefile or make qt5 the default on the system.
Best regards
André
Hi,
Thanks for that information, but it doesn't seem to help with my build failure. I'm still seeing this error (and still only on i686, not x86_64):
usr/include/c++/6.1.1/bits/stl_relops.:67: Parse error at "std"
Do you have any idea what this is about?
PS: I don't seem to get changes to this ticket sent to me via email, but I'll check manually every now and then. I am subscribed so I'm not sure what is going on here.
Florian
Hello,
apparently qmake now saves include paths in a hidden file:
http://fossies.org/linux/www/highlight-3.31.tar.gz/highlight-3.31/src/gui-qt/.qmake.stash
Remove this file and recompile. I will upload the tarball again without it.
Thx for the hint
André
PS: I don't know about the mailing issue. Works with my account??