Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 328457 - Emerging lastfmplayer-1.5.4.26862-r1 aborts with ld: cannot find -lMoose
Summary: Emerging lastfmplayer-1.5.4.26862-r1 aborts with ld: cannot find -lMoose
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal
Assignee: Markos Chandras (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-07-15 18:17 UTC by Oliver Schwabedissen
Modified: 2010-07-31 14:40 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Complete build log (media-sound:lastfmplayer-1.5.4.26862-r1:20100715-180953.log,244.43 KB, text/plain)
2010-07-15 18:20 UTC, Oliver Schwabedissen
Details
ebuild environment file (environment,94.51 KB, text/plain)
2010-07-15 18:20 UTC, Oliver Schwabedissen
Details
emerge --info =media-sound/lastfmplayer-1.5.4.26862-r1 (emerge--info.txt,5.40 KB, text/plain)
2010-07-18 07:31 UTC, Oliver Schwabedissen
Details
Makefile (Makefile,28.15 KB, text/plain)
2010-07-20 18:10 UTC, Oliver Schwabedissen
Details
LastFM.pro (LastFM.pro,1.33 KB, text/plain)
2010-07-20 18:10 UTC, Oliver Schwabedissen
Details
patch for eqmake4 (qt4-r2.eclass.patch,438 bytes, patch)
2010-07-29 22:23 UTC, Davide Pesavento (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Oliver Schwabedissen 2010-07-15 18:17:21 UTC
A new version of lastfmplayer was released. When trying to emerge the new version it always aborts with 

/usr/lib/gcc/i686-pc-linux-gnu/4.4.3/../../../../i686-pc-linux-gnu/bin/ld: cannot find -lMoose

Reproducible: Always

Steps to Reproduce:
1.emerge -quv1 =media-sound/lastfmplayer-1.5.4.26862-r1
2.
3.

Actual Results:  
emerge aborts with error message "/usr/lib/gcc/i686-pc-linux-gnu/4.4.3/../../../../i686-pc-linux-gnu/bin/ld: cannot find -lMoose"

Expected Results:  
lastfmplayer is emerged without problems.

Output of emerge -pqv =media-sound/lastfmplayer-1.5.4.26862-r1

[ebuild     U ] media-sound/lastfmplayer-1.5.4.26862-r1 [1.5.1.31879-r3] USE="-ipod"
Comment 1 Oliver Schwabedissen 2010-07-15 18:20:01 UTC
Created attachment 238915 [details]
Complete build log
Comment 2 Oliver Schwabedissen 2010-07-15 18:20:26 UTC
Created attachment 238917 [details]
ebuild environment file
Comment 3 Rafał Mużyło 2010-07-15 22:16:22 UTC
Probably too high MAKEOPTS, see if it works with '-j1'.
Comment 4 Oliver Schwabedissen 2010-07-16 04:34:44 UTC
(In reply to comment #3)
> Probably too high MAKEOPTS, see if it works with '-j1'.

This is a Quad Core CPU and I'm using -j5 for nearly 3 years now without any problems.

Nevertheless I tried -j1 and it aborts with the same message (just takes a little longer).
Comment 5 Markos Chandras (RETIRED) gentoo-dev 2010-07-17 23:35:11 UTC
I need an emerge --info output please

I can't reproduce it here
Comment 6 Oliver Schwabedissen 2010-07-18 07:31:52 UTC
Created attachment 239211 [details]
emerge --info =media-sound/lastfmplayer-1.5.4.26862-r1

Sorry, I thought I already attached it.
Comment 7 Markos Chandras (RETIRED) gentoo-dev 2010-07-18 07:51:41 UTC
Can you try to remove 
-fno-delete-null-pointer-checks -fwrapv from your C{XX}FLAGS and try again?
Comment 8 Oliver Schwabedissen 2010-07-18 19:15:49 UTC
(In reply to comment #7)
> Can you try to remove 
> -fno-delete-null-pointer-checks -fwrapv from your C{XX}FLAGS and try again?

Yes, I can:
CFLAGS="-O2 -march=native -pipe -fomit-frame-pointer"

Didn't help, though:

i686-pc-linux-gnu-g++ -Wl,-O1 -Wl,-rpath,/usr/lib/qt4 -o ../bin/last.fm_debug ../build/last.fm/debug/main.o ../build/last.fm/debug/container.o ../build/last.fm/debug/settingsdialog.o ../build/last.fm/debug/aboutdialog.o ../build/last.fm/debug/Scrobbler-1.2.o ../build/last.fm/debug/simplewizard.o ../build/last.fm/debug/configwizard.o ../build/last.fm/debug/wizardinfopage.o ../build/last.fm/debug/WizardBootstrapSelectorPage.o ../build/last.fm/debug/wizardmediadeviceconfirmpage.o ../build/last.fm/debug/wizardloginpage.o ../build/last.fm/debug/wizardprogresspage.o ../build/last.fm/debug/wizardselectpluginpage.o ../build/last.fm/debug/wizardbootstrappage.o ../build/last.fm/debug/addplayerdialog.o ../build/last.fm/debug/loginwidget.o ../build/last.fm/debug/updateinfogetter.o ../build/last.fm/debug/componentinfo.o ../build/last.fm/debug/plugininfo.o ../build/last.fm/debug/appinfo.o ../build/last.fm/debug/versionnumber.o ../build/last.fm/debug/FileVersionInfo.o ../build/last.fm/debug/autoupdater.o ../build/last.fm/debug/updatewizard.o ../build/last.fm/debug/wizardselectupdatespage.o ../build/last.fm/debug/playerlistener.o ../build/last.fm/debug/playercommandparser.o ../build/last.fm/debug/playerconnection.o ../build/last.fm/debug/iconshack.o ../build/last.fm/debug/systray.o ../build/last.fm/debug/progressframe.o ../build/last.fm/debug/checkdirtree.o ../build/last.fm/debug/deleteuserdialog.o ../build/last.fm/debug/failedlogindialog.o ../build/last.fm/debug/toolbarvolumeslider.o ../build/last.fm/debug/tagdialog.o ../build/last.fm/debug/ShareDialog.o ../build/last.fm/debug/lastfmapplication.o ../build/last.fm/debug/AudioController.o ../build/last.fm/debug/Radio.o ../build/last.fm/debug/RadioPlaylist.o ../build/last.fm/debug/XspfResolver.o ../build/last.fm/debug/MediaDeviceScrobbler.o ../build/last.fm/debug/SideBarView.o ../build/last.fm/debug/SideBarModel.o ../build/last.fm/debug/SideBarDelegate.o ../build/last.fm/debug/SideBarTreeStyle.o ../build/last.fm/debug/SideBarToolTipLabel.o ../build/last.fm/debug/SideBarRevealPopup.o ../build/last.fm/debug/MetaDataWidget.o ../build/last.fm/debug/TagListWidget.o ../build/last.fm/debug/TrackProgressFrame.o ../build/last.fm/debug/RestStateWidget.o ../build/last.fm/debug/DiagnosticsDialog.o ../build/last.fm/debug/User.o ../build/last.fm/debug/RestStateMessage.o ../build/last.fm/debug/ProxyOutput.o ../build/last.fm/debug/AbstractBootstrapper.o ../build/last.fm/debug/AbstractFileBootstrapper.o ../build/last.fm/debug/WizardTwiddlyBootstrapPage.o ../build/last.fm/debug/simplewizard_mac.o ../build/last.fm/debug/winstyleoverrides.o ../build/last.fm/debug/moc_container.o ../build/last.fm/debug/moc_settingsdialog.o ../build/last.fm/debug/moc_aboutdialog.o ../build/last.fm/debug/moc_Scrobbler-1.2.o ../build/last.fm/debug/moc_simplewizard.o ../build/last.fm/debug/moc_configwizard.o ../build/last.fm/debug/moc_wizardinfopage.o ../build/last.fm/debug/moc_WizardBootstrapSelectorPage.o ../build/last.fm/debug/moc_wizardmediadeviceconfirmpage.o ../build/last.fm/debug/moc_wizardloginpage.o ../build/last.fm/debug/moc_wizardprogresspage.o ../build/last.fm/debug/moc_wizardselectpluginpage.o ../build/last.fm/debug/moc_wizardbootstrappage.o ../build/last.fm/debug/moc_addplayerdialog.o ../build/last.fm/debug/moc_loginwidget.o ../build/last.fm/debug/moc_updateinfogetter.o ../build/last.fm/debug/moc_autoupdater.o ../build/last.fm/debug/moc_updatewizard.o ../build/last.fm/debug/moc_wizardselectupdatespage.o ../build/last.fm/debug/moc_playerlistener.o ../build/last.fm/debug/moc_playerconnection.o ../build/last.fm/debug/moc_systray.o ../build/last.fm/debug/moc_progressframe.o ../build/last.fm/debug/moc_checkdirtree.o ../build/last.fm/debug/moc_deleteuserdialog.o ../build/last.fm/debug/moc_failedlogindialog.o ../build/last.fm/debug/moc_toolbarvolumeslider.o ../build/last.fm/debug/moc_tagdialog.o ../build/last.fm/debug/moc_ShareDialog.o ../build/last.fm/debug/moc_lastfmapplication.o ../build/last.fm/debug/moc_AudioController.o ../build/last.fm/debug/moc_Radio.o ../build/last.fm/debug/moc_RadioPlaylist.o ../build/last.fm/debug/moc_MediaDeviceScrobbler.o ../build/last.fm/debug/moc_SideBarView.o ../build/last.fm/debug/moc_SideBarModel.o ../build/last.fm/debug/moc_SideBarDelegate.o ../build/last.fm/debug/moc_MetaDataWidget.o ../build/last.fm/debug/moc_TagListWidget.o ../build/last.fm/debug/moc_TrackProgressFrame.o ../build/last.fm/debug/moc_DiagnosticsDialog.o ../build/last.fm/debug/moc_User.o ../build/last.fm/debug/moc_RestStateWidget.o ../build/last.fm/debug/moc_RestStateMessage.o ../build/last.fm/debug/moc_ProxyOutput.o ../build/last.fm/debug/moc_AbstractBootstrapper.o ../build/last.fm/debug/moc_AbstractFileBootstrapper.o ../build/last.fm/debug/moc_itunesdevice.o ../build/last.fm/debug/moc_WizardTwiddlyBootstrapPage.o ../build/last.fm/debug/moc_simplewizard_mac.o ../build/last.fm/debug/qrc_last.fm.o    -L/var/tmp/portage/media-sound/lastfmplayer-1.5.4.26862-r1/work/lastfm-1.5.4.26862+dfsg/bin -L/usr/lib/qt4 -lMoose -lLastFmTools_debug -L/var/tmp/portage/media-sound/lastfmplayer-1.5.4.26862-r1/work/lastfm-1.5.4.26862+dfsg/bin -lX11 -lz -lQtXml -L/usr/lib/qt4 -lQtGui -L/usr/X11R6/lib -lQtNetwork -lQtCore -lgthread-2.0 -lrt -lglib-2.0 -lpthread 
/usr/lib/gcc/i686-pc-linux-gnu/4.4.3/../../../../i686-pc-linux-gnu/bin/ld: cannot find -lMoose
collect2: ld returned 1 exit status
make[1]: *** [../bin/last.fm_debug] Error 1
make[1]: Leaving directory `/var/tmp/portage/media-sound/lastfmplayer-1.5.4.26862-r1/work/lastfm-1.5.4.26862+dfsg/src'
make: *** [sub-src-make_default-ordered] Error 2
Comment 9 Markos Chandras (RETIRED) gentoo-dev 2010-07-18 22:20:50 UTC
Seems like your system uses debug and not release mode to build lastfmplayer. Can you please update the LastFm.pro and the Makefile please? Can you please try to use -march=core2 instead of -march=native?

Thanks
Comment 10 Oliver Schwabedissen 2010-07-19 17:02:08 UTC
(In reply to comment #9)
> Seems like your system uses debug and not release mode to build lastfmplayer.
> Can you please update the LastFm.pro and the Makefile please? 

Not sure what you mean here. I don't have debug USE flag enabled for lastfmplayer. I have debug enabled for some KDE and QT packages, though (mainly for Amarok backtraces). What do you mean with "update the LastFm.pro and the Makefile"?

> Can you please try to use -march=core2 instead of -march=native?

Tried with CFLAGS="-O2 -march=core2 -pipe -fomit-frame-pointer"

Same result.

Comment 11 Markos Chandras (RETIRED) gentoo-dev 2010-07-20 08:19:10 UTC
Sorry I meant upload these files as attachments here :) (after the build failure)
Comment 12 Oliver Schwabedissen 2010-07-20 18:10:15 UTC
Created attachment 239583 [details]
Makefile

As requested
Comment 13 Oliver Schwabedissen 2010-07-20 18:10:36 UTC
Created attachment 239585 [details]
LastFM.pro
Comment 14 Markos Chandras (RETIRED) gentoo-dev 2010-07-20 18:21:30 UTC
I am gonna need the help of the rest of the @Qt herd here since it seems like the build system uses the debug mode instead of the release one. I can't figure out what is wrong
Comment 15 Davide Pesavento (RETIRED) gentoo-dev 2010-07-20 20:23:54 UTC
(In reply to comment #10)
> Not sure what you mean here. I don't have debug USE flag enabled for
> lastfmplayer. I have debug enabled for some KDE and QT packages, though (mainly
> for Amarok backtraces).

BTW, the 'debug' USE flag has nothing to do with backtraces.
Comment 16 Davide Pesavento (RETIRED) gentoo-dev 2010-07-20 20:28:18 UTC
That build system is a *complete mess*...
Try adding the following to the ebuild:

src_configure() {
    eqmake4 LastFM.pro -config release
}
Comment 17 Oliver Schwabedissen 2010-07-29 05:46:35 UTC
(In reply to comment #16)
> That build system is a *complete mess*...
> Try adding the following to the ebuild:
> 
> src_configure() {
>     eqmake4 LastFM.pro -config release
> }

Hello Davide,

adding src_configure() to the ebuild solved the problem. 

lastfmplayer-1.5.4.26862-r1 was emerged without problems now.


Comment 18 Davide Pesavento (RETIRED) gentoo-dev 2010-07-29 09:17:08 UTC
Ok, thanks Oliver!

@Markos: we could change eqmake4 to always append -config release or -config debug, to avoid this sort of issues in the future. Should I prepare a patch?
Comment 19 Markos Chandras (RETIRED) gentoo-dev 2010-07-29 09:28:45 UTC
Well that makes sense to me. Yes please attach a patch as I am quite busy atm :/
Many thanks
Comment 20 Davide Pesavento (RETIRED) gentoo-dev 2010-07-29 22:23:26 UTC
Created attachment 240639 [details, diff]
patch for eqmake4
Comment 21 Markos Chandras (RETIRED) gentoo-dev 2010-07-31 14:40:32 UTC
Fixed

Thank you very much Davide