View previous topic :: View next topic |
Author |
Message |
imake n00b
Joined: 08 Jan 2009 Posts: 7
|
Posted: Thu Jan 15, 2009 10:42 am Post subject: Failed to emerge media-sound/amarok-2.0.1.1 on gentoo AMD64 |
|
|
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 |
|
|
mroconnor Guru
Joined: 24 Feb 2006 Posts: 402 Location: USA
|
Posted: Thu Jan 15, 2009 5:17 pm Post subject: |
|
|
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 |
|
|
imake n00b
Joined: 08 Jan 2009 Posts: 7
|
Posted: Sun Jan 18, 2009 4:37 pm Post subject: |
|
|
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 |
|
|
Useful Idiot Guru
Joined: 30 Aug 2002 Posts: 329 Location: Finland
|
Posted: Sun Jan 18, 2009 7:07 pm Post subject: |
|
|
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 |
|
|
kernelOfTruth Watchman
Joined: 20 Dec 2005 Posts: 6111 Location: Vienna, Austria; Germany; hello world :)
|
|
Back to top |
|
|
iamwill n00b
Joined: 31 Dec 2007 Posts: 48
|
Posted: Sun Feb 22, 2009 10:14 pm Post subject: |
|
|
** 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 |
|
|
kernelOfTruth Watchman
Joined: 20 Dec 2005 Posts: 6111 Location: Vienna, Austria; Germany; hello world :)
|
|
Back to top |
|
|
energyman76b Advocate
Joined: 26 Mar 2003 Posts: 2048 Location: Germany
|
Posted: Mon Feb 23, 2009 5:13 am Post subject: |
|
|
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 |
|
|
kernelOfTruth Watchman
Joined: 20 Dec 2005 Posts: 6111 Location: Vienna, Austria; Germany; hello world :)
|
|
Back to top |
|
|
Biert n00b
Joined: 14 Sep 2006 Posts: 45 Location: The Netherlands
|
Posted: Fri Mar 06, 2009 6:29 pm Post subject: |
|
|
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 |
|
|
|