Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Failed to emerge media-sound/amarok-2.0.1.1 on gentoo AMD64
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
imake
n00b
n00b


Joined: 08 Jan 2009
Posts: 7

PostPosted: Thu Jan 15, 2009 10:42 am    Post subject: Failed to emerge media-sound/amarok-2.0.1.1 on gentoo AMD64 Reply with quote

I have already compiled mysql with -fPIC.
But I still cannot install amarok2 in my Gentoo AMD64.
Here is the error report:
Quote:
[ 90%] Generating ui_OrganizeCollectionDialogBase.h
[ 90%] Generating SqlCollectionAdaptor.moc
Scanning dependencies of target amarok_collection-sqlcollection
[ 90%] Building CXX object src/collection/sqlcollection/CMakeFiles/amarok_collection-sqlcollection.dir/DatabaseUpdater.o
[ 90%] Building CXX object src/collection/sqlcollection/CMakeFiles/amarok_collection-sqlcollection.dir/OrganizeCollectionDialog.o
make[1]: *** [src/collection/daap/CMakeFiles/amarok_collection-daapcollection.dir/all] ERROR 2
[ 90%] Building CXX object src/collection/sqlcollection/CMakeFiles/amarok_collection-sqlcollection.dir/ScanManager.o
[ 90%] Building CXX object src/collection/sqlcollection/CMakeFiles/amarok_collection-sqlcollection.dir/ScanResultProcessor.o
[ 90%] Building CXX object src/collection/sqlcollection/CMakeFiles/amarok_collection-sqlcollection.dir/SqlCollection.o
[ 90%] Building CXX object src/collection/sqlcollection/CMakeFiles/amarok_collection-sqlcollection.dir/SqlCollectionDBusHandler.o
[ 90%] Building CXX object src/collection/sqlcollection/CMakeFiles/amarok_collection-sqlcollection.dir/SqlCollectionLocation.o
[ 90%] Building CXX object src/collection/sqlcollection/CMakeFiles/amarok_collection-sqlcollection.dir/SqlQueryMaker.o
[ 90%] Building CXX object src/collection/sqlcollection/CMakeFiles/amarok_collection-sqlcollection.dir/SqlRegistry.o
[ 90%] Building CXX object src/collection/sqlcollection/CMakeFiles/amarok_collection-sqlcollection.dir/SqlMeta.o
[ 91%] Building CXX object src/collection/sqlcollection/CMakeFiles/amarok_collection-sqlcollection.dir/MySqlEmbeddedCollection.o
[ 91%] Building CXX object src/collection/sqlcollection/CMakeFiles/amarok_collection-sqlcollection.dir/XesamDbus.o
[ 91%] Building CXX object src/collection/sqlcollection/CMakeFiles/amarok_collection-sqlcollection.dir/XesamCollectionBuilder.o
[ 91%] Building CXX object src/collection/sqlcollection/CMakeFiles/amarok_collection-sqlcollection.dir/SqlCollectionAdaptor.o
[ 91%] Building CXX object src/collection/sqlcollection/CMakeFiles/amarok_collection-sqlcollection.dir/amarok_collection-sqlcollection_automoc.o
Linking CXX shared module ../../../lib/libamarok_collection-sqlcollection.so
[ 91%] Built target amarok_collection-sqlcollection
make: *** [all] ERROR 2
*
* ERROR: media-sound/amarok-2.0.1.1 failed.
* Call stack:
* ebuild.sh, line 49: Called src_compile
* environment, line 3133: Called kde4-base_src_compile
* environment, line 2262: Called kde4-base_src_make
* environment, line 2322: Called cmake-utils_src_make
* environment, line 798: Called die
* The specific snippet of code:
* emake "$@" || die "Make failed!";
* The die message:
* Make failed!
*
* If you need support, post the topmost build error, and the call stack if relevant.
* A complete build log is located at '/var/tmp/portage/media-sound/amarok-2.0.1.1/temp/build.log'.
* The ebuild environment file is located at '/var/tmp/portage/media-sound/amarok-2.0.1.1/temp/environment'.
*

>>> Failed to emerge media-sound/amarok-2.0.1.1, Log file:

>>> '/var/tmp/portage/media-sound/amarok-2.0.1.1/temp/build.log'

* Messages for package media-sound/amarok-2.0.1.1:

*
* Compilation will fail if dev-db/mysql[-community] is built without -fPIC in your CFLAGS!
* Related bug: https://bugs.gentoo.org/show_bug.cgi?id=238487
*
* To fix this, and to avoid using -fPIC globally in your make.conf (which is not recommended),
* put the following into /etc/portage/env/dev-db/mysql (or mysql-community, depending on which you use;
* create dirs and the file if they don't exist):
*
* CFLAGS="-march=k8 -O2 -pipe -DPIC -fPIC"
* CXXFLAGS="-march=k8 -O2 -pipe -DPIC -fPIC"
*
*
* ERROR: media-sound/amarok-2.0.1.1 failed.
* Call stack:
* ebuild.sh, line 49: Called src_compile
* environment, line 3133: Called kde4-base_src_compile
* environment, line 2262: Called kde4-base_src_make
* environment, line 2322: Called cmake-utils_src_make
* environment, line 798: Called die
* The specific snippet of code:
* emake "$@" || die "Make failed!";
* The die message:
* Make failed!
*
* If you need support, post the topmost build error, and the call stack if relevant.
* A complete build log is located at '/var/tmp/portage/media-sound/amarok-2.0.1.1/temp/build.log'.
* The ebuild environment file is located at '/var/tmp/portage/media-sound/amarok-2.0.1.1/temp/environment'.
*

* Regenerating GNU info directory index...
* Processed 122 info files.

Any Ideas?

Regards
Ruifeng
Back to top
View user's profile Send private message
mroconnor
Guru
Guru


Joined: 24 Feb 2006
Posts: 402
Location: USA

PostPosted: Thu Jan 15, 2009 5:17 pm    Post subject: Reply with quote

Did you use the 'embedded' USE flag for mysql?
Code:

emerge -pv dev-db/mysql

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild   R   ] dev-db/mysql-5.0.72-r1  USE="embedded perl ssl -berkdb -big-tables -cluster -debug -extraengine -latin1 -max-idx-128 -minimal (-selinux) -static" 0 kB
Back to top
View user's profile Send private message
imake
n00b
n00b


Joined: 08 Jan 2009
Posts: 7

PostPosted: Sun Jan 18, 2009 4:37 pm    Post subject: Reply with quote

mroconnor wrote:
Did you use the 'embedded' USE flag for mysql?
Code:

emerge -pv dev-db/mysql

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild   R   ] dev-db/mysql-5.0.72-r1  USE="embedded perl ssl -berkdb -big-tables -cluster -debug -extraengine -latin1 -max-idx-128 -minimal (-selinux) -static" 0 kB


Thanks for your reply
This is the output of emerge -pv dev-db/mysql
Code:
[ebuild  N    ] dev-db/mysql-5.0.72-r1  USE="berkdb embedded ssl  -big-tables -cluster -debug -extraengine -latin1 -max-idx-128 -minimal (-selinux) -perl -static" 0 kB
Back to top
View user's profile Send private message
Useful Idiot
Guru
Guru


Joined: 30 Aug 2002
Posts: 329
Location: Finland

PostPosted: Sun Jan 18, 2009 7:07 pm    Post subject: Reply with quote

This is a known bug.

The solution is to use this command to emerge Amarok:
Code:

( source /etc/make.conf && CFLAGS="-DPIC -fPIC" CXXFLAGS="-DPIC -fPIC" emerge -1 dev-db/mysql ) && emerge media-sound/amarok && emerge -1 dev-db/mysql

However, this isn't recommended, since it might cause problems.
_________________
[size=9]We are all in the gutter, but some of us are looking at the stars.
Back to top
View user's profile Send private message
kernelOfTruth
Watchman
Watchman


Joined: 20 Dec 2005
Posts: 6111
Location: Vienna, Austria; Germany; hello world :)

PostPosted: Sun Feb 08, 2009 12:09 am    Post subject: Reply with quote

*subscribes*

I just ran into the same problem
_________________
https://github.com/kernelOfTruth/ZFS-for-SystemRescueCD/tree/ZFS-for-SysRescCD-4.9.0
https://github.com/kernelOfTruth/pulseaudio-equalizer-ladspa

Hardcore Gentoo Linux user since 2004 :D
Back to top
View user's profile Send private message
iamwill
n00b
n00b


Joined: 31 Dec 2007
Posts: 48

PostPosted: Sun Feb 22, 2009 10:14 pm    Post subject: Reply with quote

** same problem **
This did not work for me
Code:
( source /etc/make.conf && CFLAGS="-DPIC -fPIC" CXXFLAGS="-DPIC -fPIC" emerge -1 dev-db/mysql ) && emerge media-sound/amarok && emerge -1 dev-db/mysql


I am still receiving errors from amarok listed above

any progress yet?
Back to top
View user's profile Send private message
kernelOfTruth
Watchman
Watchman


Joined: 20 Dec 2005
Posts: 6111
Location: Vienna, Austria; Germany; hello world :)

PostPosted: Mon Feb 23, 2009 12:03 am    Post subject: Reply with quote

iamwill wrote:
** same problem **
This did not work for me
Code:
( source /etc/make.conf && CFLAGS="-DPIC -fPIC" CXXFLAGS="-DPIC -fPIC" emerge -1 dev-db/mysql ) && emerge media-sound/amarok && emerge -1 dev-db/mysql


I am still receiving errors from amarok listed above

any progress yet?


kernelOfTruth wrote:
d-fens wrote:
Dusdan wrote:
Has somebody compiled Amarok-2.0.1.1 with qt-4.5? I get a compilation error.


use this patch
https://bugs.kde.org/show_bug.cgi?id=177863#c46


working ebuild and patch:

https://bugs.gentoo.org/show_bug.cgi?id=258861

for me it wasn't enough:

I had to build mysql-community with -fPIC -DFPIC

and amarok with LDFLAGS="-lrt"

see https://forums.gentoo.org/viewtopic-p-5499917.html#5499917


https://forums.gentoo.org/viewtopic-p-5499989.html#5499989
_________________
https://github.com/kernelOfTruth/ZFS-for-SystemRescueCD/tree/ZFS-for-SysRescCD-4.9.0
https://github.com/kernelOfTruth/pulseaudio-equalizer-ladspa

Hardcore Gentoo Linux user since 2004 :D
Back to top
View user's profile Send private message
energyman76b
Advocate
Advocate


Joined: 26 Mar 2003
Posts: 2048
Location: Germany

PostPosted: Mon Feb 23, 2009 5:13 am    Post subject: Reply with quote

hm, I am surprised that I was able to install amarok without jumping through that loops...
_________________
Study finds stunning lack of racial, gender, and economic diversity among middle-class white males

I identify as a dirty penismensch.
Back to top
View user's profile Send private message
kernelOfTruth
Watchman
Watchman


Joined: 20 Dec 2005
Posts: 6111
Location: Vienna, Austria; Germany; hello world :)

PostPosted: Sun Mar 01, 2009 10:40 am    Post subject: Reply with quote

kernelOfTruth wrote:
iamwill wrote:
** same problem **
This did not work for me
Code:
( source /etc/make.conf && CFLAGS="-DPIC -fPIC" CXXFLAGS="-DPIC -fPIC" emerge -1 dev-db/mysql ) && emerge media-sound/amarok && emerge -1 dev-db/mysql


I am still receiving errors from amarok listed above

any progress yet?


kernelOfTruth wrote:
d-fens wrote:
Dusdan wrote:
Has somebody compiled Amarok-2.0.1.1 with qt-4.5? I get a compilation error.


use this patch
https://bugs.kde.org/show_bug.cgi?id=177863#c46


working ebuild and patch:

https://bugs.gentoo.org/show_bug.cgi?id=258861

for me it wasn't enough:

I had to build mysql-community with -fPIC -DFPIC

and amarok with LDFLAGS="-lrt"

see https://forums.gentoo.org/viewtopic-p-5499917.html#5499917


https://forums.gentoo.org/viewtopic-p-5499989.html#5499989


ewww,

that's not the only thing I had to set up

-fPIC -DFPIC needs to be in CFLAGS and/or CXXFLAGS otherwise compilation will fail 8O

(I just re-emerged it)

also using other LDFLAGS beside -lrt seems to let it fail so better use no others besides that :idea:
_________________
https://github.com/kernelOfTruth/ZFS-for-SystemRescueCD/tree/ZFS-for-SysRescCD-4.9.0
https://github.com/kernelOfTruth/pulseaudio-equalizer-ladspa

Hardcore Gentoo Linux user since 2004 :D
Back to top
View user's profile Send private message
Biert
n00b
n00b


Joined: 14 Sep 2006
Posts: 45
Location: The Netherlands

PostPosted: Fri Mar 06, 2009 6:29 pm    Post subject: Reply with quote

Recently neither amarok-2.0.1.1 or amarok-2.0.2 (from the kde-testing overlay) would compile anymore. I was using mysql-community-5.0.77, compiled with -fPIC and -DPIC in both CFLAGS and CXXFLAGS.

Unmerged and un-keyworded mysql-community, emerged dev-db/mysql-5.0.70-r1 with -fPIC and -DPIC, and compilation was successful again.


BTW, I think it's -DPIC, not -DFPIC, that might help ;)
_________________
http://www.last.fm/user/Biert/
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