This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Phonon-4.10.1 compile failure - Parse error at std

Tags: None
(comma "," separated)
AlexBW
Registered Member
Posts
8
Karma
0
OS
I have been trying to get a BLFS system up and running, I cannot go further with KDE as phonon fails to compile. The configure script runs fine and creates Makefile, but make fails immediately, below is the output from make:
make[1]: Entering directory '/var/tmp/phonon/phonon-4.10.1/build'
make[2]: Entering directory '/var/tmp/phonon/phonon-4.10.1/build'
make[3]: Entering directory '/var/tmp/phonon/phonon-4.10.1/build'
Scanning dependencies of target phonon4qt5_autogen
make[3]: Leaving directory '/var/tmp/phonon/phonon-4.10.1/build'
make[3]: Entering directory '/var/tmp/phonon/phonon-4.10.1/build'
[ 1%] Automatic MOC for target phonon4qt5

AutoMoc subprocess error
------------------------
The moc process failed to compile
"/var/tmp/phonon/phonon-4.10.1/phonon/abstractmediastream.h"
into
"/tmp/phonon/phonon-4.10.1/build/phonon/phonon4qt5_autogen/include/moc_abstractmediastream.cpp".

Command
-------
/opt/qt5/bin/moc -I/tmp/phonon/phonon-4.10.1/build/phonon -I/tmp/phonon/phonon-4.10.1/build/phonon/phonon4qt5_autogen/include -I/tmp/phonon/phonon-4.10.1/build/includes/phonon -I/tmp/phonon/phonon-4.10.1/phonon -I/tmp/phonon/phonon-4.10.1 -I/tmp/phonon/phonon-4.10.1/includes -I/opt/qt5/include -I/opt/qt5/include/QtCore -I/opt/qt5/./mkspecs/linux-g++ -I/opt/qt5/include/QtWidgets -I/opt/qt5/include/QtGui -I/opt/qt5/include/QtDBus -I/usr/include -DPHONON_ASSERT_STATES "-DPHONON_BACKEND_DIR_SUFFIX=\"/phonon4qt5_backend/\"" -DPHONON_BUILD_WITH_CMAKE "-DPHONON_LIBRARY_PATH=\"/usr/lib/qt5/plugins\"" -DPHONON_NO_GRAPHICSVIEW -DQT_CORE_LIB -DQT_DBUS_LIB -DQT_GUI_LIB -DQT_NO_DEBUG -DQT_WIDGETS_LIB -D_GNU_SOURCE -D_LARGEFILE64_SOURCE --include /tmp/phonon/phonon-4.10.1/build/phonon/phonon4qt5_autogen/moc_predefs.h -o /tmp/phonon/phonon-4.10.1/build/phonon/phonon4qt5_autogen/include/moc_abstractmediastream.cpp /var/tmp/phonon/phonon-4.10.1/phonon/abstractmediastream.h

Output
------
usr/include/c++/8.2.0/bits/stl_relops.:67: Parse error at "std"


AutoMoc subprocess error
------------------------
The moc process failed to compile
"/var/tmp/phonon/phonon-4.10.1/phonon/abstractaudiooutput.h"
into
"/tmp/phonon/phonon-4.10.1/build/phonon/phonon4qt5_autogen/include/moc_abstractaudiooutput.cpp".

Command
-------
/opt/qt5/bin/moc -I/tmp/phonon/phonon-4.10.1/build/phonon -I/tmp/phonon/phonon-4.10.1/build/phonon/phonon4qt5_autogen/include -I/tmp/phonon/phonon-4.10.1/build/includes/phonon -I/tmp/phonon/phonon-4.10.1/phonon -I/tmp/phonon/phonon-4.10.1 -I/tmp/phonon/phonon-4.10.1/includes -I/opt/qt5/include -I/opt/qt5/include/QtCore -I/opt/qt5/./mkspecs/linux-g++ -I/opt/qt5/include/QtWidgets -I/opt/qt5/include/QtGui -I/opt/qt5/include/QtDBus -I/usr/include -DPHONON_ASSERT_STATES "-DPHONON_BACKEND_DIR_SUFFIX=\"/phonon4qt5_backend/\"" -DPHONON_BUILD_WITH_CMAKE "-DPHONON_LIBRARY_PATH=\"/usr/lib/qt5/plugins\"" -DPHONON_NO_GRAPHICSVIEW -DQT_CORE_LIB -DQT_DBUS_LIB -DQT_GUI_LIB -DQT_NO_DEBUG -DQT_WIDGETS_LIB -D_GNU_SOURCE -D_LARGEFILE64_SOURCE --include /tmp/phonon/phonon-4.10.1/build/phonon/phonon4qt5_autogen/moc_predefs.h -o /tmp/phonon/phonon-4.10.1/build/phonon/phonon4qt5_autogen/include/moc_abstractaudiooutput.cpp /var/tmp/phonon/phonon-4.10.1/phonon/abstractaudiooutput.h

Output
------
usr/include/c++/8.2.0/bits/stl_relops.:67: Parse error at "std"

make[3]: *** [phonon/CMakeFiles/phonon4qt5_autogen.dir/build.make:58: phonon/CMakeFiles/phonon4qt5_autogen] Error 1
make[3]: Leaving directory '/var/tmp/phonon/phonon-4.10.1/build'
make[2]: *** [CMakeFiles/Makefile2:302: phonon/CMakeFiles/phonon4qt5_autogen.dir/all] Error 2
make[2]: Leaving directory '/var/tmp/phonon/phonon-4.10.1/build'
make[1]: *** [Makefile:141: all] Error 2
make[1]: Leaving directory '/var/tmp/phonon/phonon-4.10.1/build'


Google doesn't return anything relevant except a bug report dating back to 2013 and is not helpful with my problem.

Running strace on the above moc command produces the following output (last few lines only) ->
----------------------------------------------------------------------------SNIPPED-----------------------------------------------
statx(AT_FDCWD, "/usr/src/phonon-4.10.1/build/phonon/QtCore/QObject", AT_STATX_SYNC_AS_STAT, STATX_ALL, 0x7ffdbbd77460) = -1 ENOENT (No such file or directory)
statx(AT_FDCWD, "/usr/src/phonon-4.10.1/build/phonon/phonon4qt5_autogen/include/QtCore/QObject", AT_STATX_SYNC_AS_STAT, STATX_ALL, 0x7ffdbbd77460) = -1 ENOENT (No such file or directory)
statx(AT_FDCWD, "/usr/src/phonon-4.10.1/build/includes/phonon/QtCore/QObject", AT_STATX_SYNC_AS_STAT, STATX_ALL, 0x7ffdbbd77460) = -1 ENOENT (No such file or directory)
statx(AT_FDCWD, "/usr/src/phonon-4.10.1/phonon/QtCore/QObject", AT_STATX_SYNC_AS_STAT, STATX_ALL, 0x7ffdbbd77460) = -1 ENOENT (No such file or directory)
statx(AT_FDCWD, "/usr/src/phonon-4.10.1/QtCore/QObject", AT_STATX_SYNC_AS_STAT, STATX_ALL, 0x7ffdbbd77460) = -1 ENOENT (No such file or directory)
statx(AT_FDCWD, "/usr/src/phonon-4.10.1/includes/QtCore/QObject", AT_STATX_SYNC_AS_STAT, STATX_ALL, 0x7ffdbbd77460) = -1 ENOENT (No such file or directory)
statx(AT_FDCWD, "/opt/qt5/include/QtCore/QObject", AT_STATX_SYNC_AS_STAT, STATX_ALL, {stx_mask=STATX_ALL, stx_attributes=0, stx_mode=S_IFREG|0664, stx_size=21, ...}) = 0
lstat("/opt", {st_mode=S_IFDIR|0755, st_size=1024, ...}) = 0
lstat("/opt/qt5", {st_mode=S_IFLNK|0777, st_size=9, ...}) = 0
readlink("/opt/qt5", "qt-5.11.1", 4095) = 9
lstat("/opt/qt-5.11.1", {st_mode=S_IFDIR|0755, st_size=1024, ...}) = 0
lstat("/opt/qt-5.11.1/include", {st_mode=S_IFDIR|0755, st_size=3072, ...}) = 0
lstat("/opt/qt-5.11.1/include/QtCore", {st_mode=S_IFDIR|0755, st_size=19456, ...}) = 0
lstat("/opt/qt-5.11.1/include/QtCore/QObject", {st_mode=S_IFREG|0664, st_size=21, ...}) = 0
openat(AT_FDCWD, "/opt/qt-5.11.1/include/QtCore/QObject", O_RDONLY|O_CLOEXEC) = 4
statx(4, "", AT_STATX_SYNC_AS_STAT|AT_EMPTY_PATH, STATX_ALL, {stx_mask=STATX_ALL, stx_attributes=0, stx_mode=S_IFREG|0664, stx_size=21, ...}) = 0
statx(4, "", AT_STATX_SYNC_AS_STAT|AT_EMPTY_PATH, STATX_ALL, {stx_mask=STATX_ALL, stx_attributes=0, stx_mode=S_IFREG|0664, stx_size=21, ...}) = 0
mmap(NULL, 21, PROT_READ, MAP_SHARED, 4, 0) = 0x7f22c3ebe000
close(4) = 0
access("/opt/qt-5.11.1/include/QtCore/qobject.h", F_OK) = 0
statx(AT_FDCWD, "/opt/qt-5.11.1/include/QtCore/qobject.h", AT_STATX_SYNC_AS_STAT, STATX_ALL, {stx_mask=STATX_ALL, stx_attributes=0, stx_mode=S_IFREG|0664, stx_size=26386, ...}) = 0
lstat("/opt", {st_mode=S_IFDIR|0755, st_size=1024, ...}) = 0
lstat("/opt/qt-5.11.1", {st_mode=S_IFDIR|0755, st_size=1024, ...}) = 0
lstat("/opt/qt-5.11.1/include", {st_mode=S_IFDIR|0755, st_size=3072, ...}) = 0
lstat("/opt/qt-5.11.1/include/QtCore", {st_mode=S_IFDIR|0755, st_size=19456, ...}) = 0
lstat("/opt/qt-5.11.1/include/QtCore/qobject.h", {st_mode=S_IFREG|0664, st_size=26386, ...}) = 0
munmap(0x7f22c3ebe000, 21) = 0
mmap(NULL, 16781312, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f22c0a4e000
munmap(0x7f22c1a4f000, 16781312) = 0
write(2, "usr/include/c++/8.2.0/bits/stl_r"..., 64usr/include/c++/8.2.0/bits/stl_relops.:67: Parse error at "std"
) = 64
exit_group(1) = ?
+++ exited with 1 +++


Any help is greatly appreciated.
AlexBW
Registered Member
Posts
8
Karma
0
OS
I had a feeling that environment variables might have been the cause.

I did encounter a few other packages complaining about missing header files, I had to set CPLUS_INCLUDE_PATH for them to compile and that same variable seem to have been the show stopper for Phonon. All I had to do was to unset that variable and Phonon successfully compiles now.


Bookmarks



Who is online

Registered users: abc72656, Bing [Bot], daret, Google [Bot], Sogou [Bot], Yahoo [Bot]