Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
can't emerge clementine; libechonest fails to compile
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Multimedia
View previous topic :: View next topic  
Author Message
sitquietly
n00b
n00b


Joined: 23 Oct 2010
Posts: 30

PostPosted: Sun Dec 09, 2012 6:06 pm    Post subject: can't emerge clementine; libechonest fails to compile Reply with quote

libechonest is a required dependency for my favorite music player clementine.

It appears that since the last qt update media-libs/libechonest fails to compile. It looks to me like an upstream problem rather than a packaging problem but maybe someone can confirm the problem with me:

I have a gentoo install, up to date with ~amd64, and a similar funtoo install. One system already had clementine on it, and already had libechonest. I tried to (re-)emerge -1 media-libs/libechonest but the compile failed. The compile had succeeded a short while ago, but before the latest qt update. I've tried both stable libechonest-1.2.1 and unstable libechonest-2.0.1 and both fail to compile in the same way.
/usr/include/qt4/QtCore/qlocale.h:786:12: error: packed attribute is unnecessary for ‘Data’ [-Werror=packed]


Here's the build.log:
Code:

 * Package:    media-libs/libechonest-2.0.1
 * Repository: gentoo
 * Maintainer: nikoli@lavabit.com ssuominen@gentoo.org,sound@gentoo.org
 * USE:        amd64 elibc_glibc kernel_linux multilib userland_GNU
 * FEATURES:   preserve-libs sandbox
>>> Unpacking source...
>>> Unpacking libechonest-2.0.1.tar.bz2 to /tmp/portage/media-libs/libechonest-2.0.1/work
>>> Source unpacked in /tmp/portage/media-libs/libechonest-2.0.1/work
>>> Preparing source in /tmp/portage/media-libs/libechonest-2.0.1/work/libechonest-2.0.1 ...
>>> Source prepared.
>>> Configuring source in /tmp/portage/media-libs/libechonest-2.0.1/work/libechonest-2.0.1 ...
>>> Working in BUILD_DIR: "/tmp/portage/media-libs/libechonest-2.0.1/work/libechonest-2.0.1_build"
cmake --no-warn-unused-cli -C /tmp/portage/media-libs/libechonest-2.0.1/work/libechonest-2.0.1_build/gentoo_common_config.cmake -G Unix Makefiles -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Gentoo -DCMAKE_INSTALL_DO_STRIP=OFF -DCMAKE_USER_MAKE_RULES_OVERRIDE=/tmp/portage/media-libs/libechonest-2.0.1/work/libechonest-2.0.1_build/gentoo_rules.cmake  /tmp/portage/media-libs/libechonest-2.0.1/work/libechonest-2.0.1
Not searching for unused variables given on the command line.
loading initial cache file /tmp/portage/media-libs/libechonest-2.0.1/work/libechonest-2.0.1_build/gentoo_common_config.cmake
-- The C compiler identification is GNU 4.6.3
-- The CXX compiler identification is GNU 4.6.3
-- Check for working C compiler: /usr/bin/x86_64-pc-linux-gnu-gcc
-- Check for working C compiler: /usr/bin/x86_64-pc-linux-gnu-gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/x86_64-pc-linux-gnu-g++
-- Check for working CXX compiler: /usr/bin/x86_64-pc-linux-gnu-g++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Looking for Q_WS_X11
-- Looking for Q_WS_X11 - found
-- Looking for Q_WS_WIN
-- Looking for Q_WS_WIN - not found
-- Looking for Q_WS_QWS
-- Looking for Q_WS_QWS - not found
-- Looking for Q_WS_MAC
-- Looking for Q_WS_MAC - not found
-- Found Qt4: /usr/bin/qmake (found version "4.8.4")
-- Found PkgConfig: /usr/bin/pkg-config (found version "0.27.1")
-- checking for module 'QJson>=0.5'
--   found QJson, version 0.8.1
-- Found QJSON: qjson;QtCore 
-- Could NOT find Doxygen (missing:  DOXYGEN_EXECUTABLE)
-- <<< Gentoo configuration >>>
Build type      Gentoo
Install path    /usr
Compiler flags:
C               -march=native -O2
C++             -march=native -O2  -DQT_NO_CAST_FROM_ASCII -DQT_NO_CAST_TO_ASCII
Linker flags:
Executable       -Wl,-O1 -Wl,--sort-common -Wl,--as-needed
Module           -Wl,-O1 -Wl,--sort-common -Wl,--as-needed
Shared           -Wl,-O1 -Wl,--sort-common -Wl,--as-needed

-- Configuring done
-- Generating done
-- Build files have been written to: /tmp/portage/media-libs/libechonest-2.0.1/work/libechonest-2.0.1_build
>>> Source configured.
>>> Compiling source in /tmp/portage/media-libs/libechonest-2.0.1/work/libechonest-2.0.1 ...
>>> Working in BUILD_DIR: "/tmp/portage/media-libs/libechonest-2.0.1/work/libechonest-2.0.1_build"
make -j5 VERBOSE=1
/usr/bin/cmake -H/tmp/portage/media-libs/libechonest-2.0.1/work/libechonest-2.0.1 -B/tmp/portage/media-libs/libechonest-2.0.1/work/libechonest-2.0.1_build --check-build-system CMakeFiles/Makefile.cmake 0
/usr/bin/cmake -E cmake_progress_start /tmp/portage/media-libs/libechonest-2.0.1/work/libechonest-2.0.1_build/CMakeFiles /tmp/portage/media-libs/libechonest-2.0.1/work/libechonest-2.0.1_build/CMakeFiles/progress.marks
make -f CMakeFiles/Makefile2 all
make[1]: Entering directory `/tmp/portage/media-libs/libechonest-2.0.1/work/libechonest-2.0.1_build'
make -f src/CMakeFiles/echonest.dir/build.make src/CMakeFiles/echonest.dir/depend
make[2]: Entering directory `/tmp/portage/media-libs/libechonest-2.0.1/work/libechonest-2.0.1_build'
cd /tmp/portage/media-libs/libechonest-2.0.1/work/libechonest-2.0.1_build && /usr/bin/cmake -E cmake_depends "Unix Makefiles" /tmp/portage/media-libs/libechonest-2.0.1/work/libechonest-2.0.1 /tmp/portage/media-libs/libechonest-2.0.1/work/libechonest-2.0.1/src /tmp/portage/media-libs/libechonest-2.0.1/work/libechonest-2.0.1_build /tmp/portage/media-libs/libechonest-2.0.1/work/libechonest-2.0.1_build/src /tmp/portage/media-libs/libechonest-2.0.1/work/libechonest-2.0.1_build/src/CMakeFiles/echonest.dir/DependInfo.cmake --color=
Dependee "/tmp/portage/media-libs/libechonest-2.0.1/work/libechonest-2.0.1_build/src/CMakeFiles/echonest.dir/DependInfo.cmake" is newer than depender "/tmp/portage/media-libs/libechonest-2.0.1/work/libechonest-2.0.1_build/src/CMakeFiles/echonest.dir/depend.internal".
Dependee "/tmp/portage/media-libs/libechonest-2.0.1/work/libechonest-2.0.1_build/src/CMakeFiles/CMakeDirectoryInformation.cmake" is newer than depender "/tmp/portage/media-libs/libechonest-2.0.1/work/libechonest-2.0.1_build/src/CMakeFiles/echonest.dir/depend.internal".
Scanning dependencies of target echonest
make[2]: Leaving directory `/tmp/portage/media-libs/libechonest-2.0.1/work/libechonest-2.0.1_build'
make -f src/CMakeFiles/echonest.dir/build.make src/CMakeFiles/echonest.dir/build
make[2]: Entering directory `/tmp/portage/media-libs/libechonest-2.0.1/work/libechonest-2.0.1_build'
/usr/bin/cmake -E cmake_progress_report /tmp/portage/media-libs/libechonest-2.0.1/work/libechonest-2.0.1_build/CMakeFiles 11
/usr/bin/cmake -E cmake_progress_report /tmp/portage/media-libs/libechonest-2.0.1/work/libechonest-2.0.1_build/CMakeFiles 12
/usr/bin/cmake -E cmake_progress_report /tmp/portage/media-libs/libechonest-2.0.1/work/libechonest-2.0.1_build/CMakeFiles 13
/usr/bin/cmake -E cmake_progress_report /tmp/portage/media-libs/libechonest-2.0.1/work/libechonest-2.0.1_build/CMakeFiles 14
/usr/bin/cmake -E cmake_progress_report /tmp/portage/media-libs/libechonest-2.0.1/work/libechonest-2.0.1_build/CMakeFiles 15
[  3%] [  7%] [ 11%] [ 15%] [ 19%] Building CXX object src/CMakeFiles/echonest.dir/Track.cpp.o
Building CXX object src/CMakeFiles/echonest.dir/Song.cpp.o
cd /tmp/portage/media-libs/libechonest-2.0.1/work/libechonest-2.0.1_build/src && /usr/bin/x86_64-pc-linux-gnu-g++  -DQT_CORE_LIB -DQT_NETWORK_LIB -DQT_TEST_LIB -Dechonest_EXPORTS  -DNDEBUG -march=native -O2  -DQT_NO_CAST_FROM_ASCII -DQT_NO_CAST_TO_ASCII -fPIC -I/usr/include/qt4 -I/usr/include/qt4/QtTest -I/usr/include/qt4/QtNetwork -I/usr/include/qt4/QtCore -I/tmp/portage/media-libs/libechonest-2.0.1/work/libechonest-2.0.1/src    -Wall -Wundef -Wcast-align -Wchar-subscripts -Wpointer-arith -Wwrite-strings -Wpacked -Wformat-security -Wmissing-format-attribute -Wold-style-cast -Woverloaded-virtual -Wnon-virtual-dtor -fvisibility=hidden -Werror -o CMakeFiles/echonest.dir/Track.cpp.o -c /tmp/portage/media-libs/libechonest-2.0.1/work/libechonest-2.0.1/src/Track.cpp
cd /tmp/portage/media-libs/libechonest-2.0.1/work/libechonest-2.0.1_build/src && /usr/bin/x86_64-pc-linux-gnu-g++  -DQT_CORE_LIB -DQT_NETWORK_LIB -DQT_TEST_LIB -Dechonest_EXPORTS  -DNDEBUG -march=native -O2  -DQT_NO_CAST_FROM_ASCII -DQT_NO_CAST_TO_ASCII -fPIC -I/usr/include/qt4 -I/usr/include/qt4/QtTest -I/usr/include/qt4/QtNetwork -I/usr/include/qt4/QtCore -I/tmp/portage/media-libs/libechonest-2.0.1/work/libechonest-2.0.1/src    -Wall -Wundef -Wcast-align -Wchar-subscripts -Wpointer-arith -Wwrite-strings -Wpacked -Wformat-security -Wmissing-format-attribute -Wold-style-cast -Woverloaded-virtual -Wnon-virtual-dtor -fvisibility=hidden -Werror -o CMakeFiles/echonest.dir/Song.cpp.o -c /tmp/portage/media-libs/libechonest-2.0.1/work/libechonest-2.0.1/src/Song.cpp
Building CXX object src/CMakeFiles/echonest.dir/Playlist.cpp.o
Building CXX object src/CMakeFiles/echonest.dir/Config.cpp.o
cd /tmp/portage/media-libs/libechonest-2.0.1/work/libechonest-2.0.1_build/src && /usr/bin/x86_64-pc-linux-gnu-g++  -DQT_CORE_LIB -DQT_NETWORK_LIB -DQT_TEST_LIB -Dechonest_EXPORTS  -DNDEBUG -march=native -O2  -DQT_NO_CAST_FROM_ASCII -DQT_NO_CAST_TO_ASCII -fPIC -I/usr/include/qt4 -I/usr/include/qt4/QtTest -I/usr/include/qt4/QtNetwork -I/usr/include/qt4/QtCore -I/tmp/portage/media-libs/libechonest-2.0.1/work/libechonest-2.0.1/src    -Wall -Wundef -Wcast-align -Wchar-subscripts -Wpointer-arith -Wwrite-strings -Wpacked -Wformat-security -Wmissing-format-attribute -Wold-style-cast -Woverloaded-virtual -Wnon-virtual-dtor -fvisibility=hidden -Werror -o CMakeFiles/echonest.dir/Playlist.cpp.o -c /tmp/portage/media-libs/libechonest-2.0.1/work/libechonest-2.0.1/src/Playlist.cpp
cd /tmp/portage/media-libs/libechonest-2.0.1/work/libechonest-2.0.1_build/src && /usr/bin/x86_64-pc-linux-gnu-g++  -DQT_CORE_LIB -DQT_NETWORK_LIB -DQT_TEST_LIB -Dechonest_EXPORTS  -DNDEBUG -march=native -O2  -DQT_NO_CAST_FROM_ASCII -DQT_NO_CAST_TO_ASCII -fPIC -I/usr/include/qt4 -I/usr/include/qt4/QtTest -I/usr/include/qt4/QtNetwork -I/usr/include/qt4/QtCore -I/tmp/portage/media-libs/libechonest-2.0.1/work/libechonest-2.0.1/src    -Wall -Wundef -Wcast-align -Wchar-subscripts -Wpointer-arith -Wwrite-strings -Wpacked -Wformat-security -Wmissing-format-attribute -Wold-style-cast -Woverloaded-virtual -Wnon-virtual-dtor -fvisibility=hidden -Werror -o CMakeFiles/echonest.dir/Config.cpp.o -c /tmp/portage/media-libs/libechonest-2.0.1/work/libechonest-2.0.1/src/Config.cpp
Building CXX object src/CMakeFiles/echonest.dir/Artist.cpp.o
cd /tmp/portage/media-libs/libechonest-2.0.1/work/libechonest-2.0.1_build/src && /usr/bin/x86_64-pc-linux-gnu-g++  -DQT_CORE_LIB -DQT_NETWORK_LIB -DQT_TEST_LIB -Dechonest_EXPORTS  -DNDEBUG -march=native -O2  -DQT_NO_CAST_FROM_ASCII -DQT_NO_CAST_TO_ASCII -fPIC -I/usr/include/qt4 -I/usr/include/qt4/QtTest -I/usr/include/qt4/QtNetwork -I/usr/include/qt4/QtCore -I/tmp/portage/media-libs/libechonest-2.0.1/work/libechonest-2.0.1/src    -Wall -Wundef -Wcast-align -Wchar-subscripts -Wpointer-arith -Wwrite-strings -Wpacked -Wformat-security -Wmissing-format-attribute -Wold-style-cast -Woverloaded-virtual -Wnon-virtual-dtor -fvisibility=hidden -Werror -o CMakeFiles/echonest.dir/Artist.cpp.o -c /tmp/portage/media-libs/libechonest-2.0.1/work/libechonest-2.0.1/src/Artist.cpp
In file included from /usr/include/qt4/QtCore/qtextstream.h:48:0,
                 from /usr/include/qt4/QtCore/qdebug.h:50,
                 from /usr/include/qt4/QtCore/QDebug:1,
                 from /tmp/portage/media-libs/libechonest-2.0.1/work/libechonest-2.0.1/src/AudioSummary.h:24,
                 from /tmp/portage/media-libs/libechonest-2.0.1/work/libechonest-2.0.1/src/Track.h:21,
                 from /tmp/portage/media-libs/libechonest-2.0.1/work/libechonest-2.0.1/src/Track.cpp:17:
/usr/include/qt4/QtCore/qlocale.h:786:12: error: packed attribute is unnecessary for ‘Data’ [-Werror=packed]
In file included from /usr/include/qt4/QtCore/qtextstream.h:48:0,
                 from /usr/include/qt4/QtCore/qdebug.h:50,
                 from /usr/include/qt4/QtCore/QDebug:1,
                 from /tmp/portage/media-libs/libechonest-2.0.1/work/libechonest-2.0.1/src/AudioSummary.h:24,
                 from /tmp/portage/media-libs/libechonest-2.0.1/work/libechonest-2.0.1/src/Track.h:21,
                 from /tmp/portage/media-libs/libechonest-2.0.1/work/libechonest-2.0.1/src/Song.h:22,
                 from /tmp/portage/media-libs/libechonest-2.0.1/work/libechonest-2.0.1/src/Song.cpp:17:
/usr/include/qt4/QtCore/qlocale.h:786:12: error: packed attribute is unnecessary for ‘Data’ [-Werror=packed]
In file included from /usr/include/qt4/QtCore/qtextstream.h:48:0,
                 from /usr/include/qt4/QtCore/qdebug.h:50,
                 from /usr/include/qt4/QtCore/QDebug:1,
                 from /tmp/portage/media-libs/libechonest-2.0.1/work/libechonest-2.0.1/src/Util.h:22,
                 from /tmp/portage/media-libs/libechonest-2.0.1/work/libechonest-2.0.1/src/ArtistTypes.h:21,
                 from /tmp/portage/media-libs/libechonest-2.0.1/work/libechonest-2.0.1/src/Artist.h:22,
                 from /tmp/portage/media-libs/libechonest-2.0.1/work/libechonest-2.0.1/src/Artist.cpp:17:
/usr/include/qt4/QtCore/qlocale.h:786:12: error: packed attribute is unnecessary for ‘Data’ [-Werror=packed]
cc1plus: all warnings being treated as errors
make[2]: *** [src/CMakeFiles/echonest.dir/Song.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
In file included from /usr/include/qt4/QtCore/qtextstream.h:48:0,
                 from /usr/include/qt4/QtCore/qdebug.h:50,
                 from /usr/include/qt4/QtCore/QDebug:1,
                 from /tmp/portage/media-libs/libechonest-2.0.1/work/libechonest-2.0.1/src/Config.cpp:22:
/usr/include/qt4/QtCore/qlocale.h:786:12: error: packed attribute is unnecessary for ‘Data’ [-Werror=packed]
cc1plus: all warnings being treated as errors
make[2]: *** [src/CMakeFiles/echonest.dir/Track.cpp.o] Error 1
In file included from /usr/include/qt4/QtCore/qtextstream.h:48:0,
                 from /usr/include/qt4/QtCore/qdebug.h:50,
                 from /usr/include/qt4/QtCore/QDebug:1,
                 from /tmp/portage/media-libs/libechonest-2.0.1/work/libechonest-2.0.1/src/AudioSummary.h:24,
                 from /tmp/portage/media-libs/libechonest-2.0.1/work/libechonest-2.0.1/src/Track.h:21,
                 from /tmp/portage/media-libs/libechonest-2.0.1/work/libechonest-2.0.1/src/Song.h:22,
                 from /tmp/portage/media-libs/libechonest-2.0.1/work/libechonest-2.0.1/src/Playlist.h:22,
                 from /tmp/portage/media-libs/libechonest-2.0.1/work/libechonest-2.0.1/src/Playlist.cpp:17:
/usr/include/qt4/QtCore/qlocale.h:786:12: error: packed attribute is unnecessary for ‘Data’ [-Werror=packed]
cc1plus: all warnings being treated as errors
make[2]: *** [src/CMakeFiles/echonest.dir/Artist.cpp.o] Error 1
cc1plus: all warnings being treated as errors
make[2]: *** [src/CMakeFiles/echonest.dir/Config.cpp.o] Error 1
cc1plus: all warnings being treated as errors
make[2]: *** [src/CMakeFiles/echonest.dir/Playlist.cpp.o] Error 1
make[2]: Leaving directory `/tmp/portage/media-libs/libechonest-2.0.1/work/libechonest-2.0.1_build'
make[1]: *** [src/CMakeFiles/echonest.dir/all] Error 2
make[1]: Leaving directory `/tmp/portage/media-libs/libechonest-2.0.1/work/libechonest-2.0.1_build'
make: *** [all] Error 2
 * ERROR: media-libs/libechonest-2.0.1 failed (compile phase):
 *   emake failed
 *
 * If you need support, post the output of `emerge --info '=media-libs/libechonest-2.0.1'`,
 * the complete build log and the output of `emerge -pqv '=media-libs/libechonest-2.0.1'`.
 * The complete build log is located at '/tmp/portage/media-libs/libechonest-2.0.1/temp/build.log'.
 * The ebuild environment file is located at '/tmp/portage/media-libs/libechonest-2.0.1/temp/environment'.
 * Working directory: '/tmp/portage/media-libs/libechonest-2.0.1/work/libechonest-2.0.1_build'
 * S: '/tmp/portage/media-libs/libechonest-2.0.1/work/libechonest-2.0.1'


The qt version is 4.8.4. I re-compiled qt-core and qt-test (indeed all of x11-libs/qt-*) but that didn't help.

I'd like to remove the -Werror flag from this build but the cmake mechanism mystifies me and I don't know how to force that change in the build.....?
Back to top
View user's profile Send private message
brothermechanic
n00b
n00b


Joined: 10 Dec 2012
Posts: 31

PostPosted: Mon Dec 10, 2012 8:34 am    Post subject: Reply with quote

same problem (qt-4.8.4)
for 1.2.1
http://paste.org.ru/?bgng8d
for 2.0.1
http://paste.org.ru/?exc5e2
Back to top
View user's profile Send private message
Pandaman
n00b
n00b


Joined: 30 Jan 2012
Posts: 15

PostPosted: Sat Dec 15, 2012 3:13 am    Post subject: Reply with quote

Came here with the same issue. Seems to work fine without that dependency actually, I just did 'emerge clementine --keep-going;emerge --nodeps clementine'. Hopefully the issue will be resolved soon.
Back to top
View user's profile Send private message
linedot
n00b
n00b


Joined: 15 Mar 2012
Posts: 8
Location: Germany

PostPosted: Fri Dec 21, 2012 7:13 pm    Post subject: Reply with quote

the warning says that the packed attribute is unnecessary so I figured it's nothing serious and commented out the offending part in /usr/include/qt4/QtCore/qlocale.h, emerged clementine and changed the header back. Don't what the proper solution should be.
Back to top
View user's profile Send private message
franzf
Advocate
Advocate


Joined: 29 Mar 2005
Posts: 3931
Location: Irgendwo im Nirgendwo

PostPosted: Sat Dec 22, 2012 10:04 am    Post subject: Reply with quote

Someone seems to add -Werror to the C[XX]FLAGS.

// edit
[code] # disable -Werror on ARM since Qt containers cause a lot of alignment warnings
if ( NOT CMAKE_SYSTEM_PROCESSOR MATCHES "arm" )
add_definitions( -Werror )
endif()
in libechonest's CMakeLists.txt.
Seems to get an easy patch ;)
_________________
"der mac dennoch wesen geil"
Wolfram von Eschenbach, Parzival (Buch 1, Z. 7).
Ein frühes Statement gegen Windows.

My overlay
Back to top
View user's profile Send private message
franzf
Advocate
Advocate


Joined: 29 Mar 2005
Posts: 3931
Location: Irgendwo im Nirgendwo

PostPosted: Wed Jan 02, 2013 1:04 pm    Post subject: Reply with quote

Since some days there is a patched vesion of libechonest in portage. emerge --sync and retry emergeing.
_________________
"der mac dennoch wesen geil"
Wolfram von Eschenbach, Parzival (Buch 1, Z. 7).
Ein frühes Statement gegen Windows.

My overlay
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Multimedia All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum