Opened 11 years ago

Last modified 10 years ago

#38352 new defect

amarok @2.6.0 Build fails (testamazonalbum)

Reported by: jferiago@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 2.1.3
Keywords: Cc: ryandesign (Ryan Carsten Schmidt), davidfavor (David Favor), cooljeanius (Eric Gallager), jh@…, hlprasu@…, markurujapan@…, tj.trevelyan@…
Port: amarok

Description

Linking CXX executable ../../testamazonalbum.app/Contents/MacOS/testamazonalbum
cd /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_kde_amarok/amarok/work/build/tests/services/amazon && /opt/local/bin/cmake -E cmake_link_script CMakeFiles/testamazonalbum.dir/link.txt --verbose=1
/usr/bin/clang++   -pipe -O2 -arch x86_64  -fno-common -O3 -DNDEBUG -DQT_NO_DEBUG -arch x86_64 -Wl,-search_paths_first -Wl,-headerpad_max_install_names  -arch x86_64 CMakeFiles/testamazonalbum.dir/testamazonalbum_automoc.o CMakeFiles/testamazonalbum.dir/TestAmazonAlbum.o CMakeFiles/testamazonalbum.dir/__/__/__/src/services/amazon/AmazonMeta.o  -o ../../testamazonalbum.app/Contents/MacOS/testamazonalbum  /opt/local/lib/libkdecore.5.10.1.dylib /opt/local/lib/libkdeui.5.10.1.dylib /opt/local/lib/libQtTest.dylib /opt/local/lib/libQtCore.dylib ../../../lib/libamarokcore.1.0.0.dylib ../../../lib/libamaroklib.1.0.0.dylib ../../../lib/amarok_service_amazonstore.so ../../../lib/libamarokcore.1.0.0.dylib /opt/local/lib/libkdeui.5.10.1.dylib /opt/local/lib/libkdecore.5.10.1.dylib /opt/local/lib/libQtDBus.dylib -framework Carbon /opt/local/lib/libQtGui.dylib /opt/local/lib/libQtSvg.dylib /opt/local/lib/libQtCore.dylib 
ld: can't link with bundle (MH_BUNDLE) only dylibs (MH_DYLIB) for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [tests/testamazonalbum.app/Contents/MacOS/testamazonalbum] Error 1
make[2]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_kde_amarok/amarok/work/build'
make[1]: *** [tests/services/amazon/CMakeFiles/testamazonalbum.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
cd /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_kde_amarok/amarok/work/build/tests/core-impl/collections/db/sql && /opt/local/bin/cmake -D_filename=/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_kde_amarok/amarok/work/build/tests/testsqlscanmanager.app/Contents/MacOS/testsqlscanmanager.shell -D_library_path_variable=DYLD_LIBRARY_PATH -D_ld_library_path="/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_kde_amarok/amarok/work/build/lib/./:/opt/local/lib" -D_executable=/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_kde_amarok/amarok/work/build/tests/testsqlscanmanager.app/Contents/MacOS/testsqlscanmanager -P /opt/local/share/apps/cmake/modules/kde4_exec_via_sh.cmake
make[2]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_kde_amarok/amarok/work/build'
/opt/local/bin/cmake -E cmake_progress_report /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_kde_amarok/amarok/work/build/CMakeFiles 
[ 97%] Built target testsqlscanmanager
make[1]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_kde_amarok/amarok/work/build'
make: *** [all] Error 2
make: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_kde_amarok/amarok/work/build'
Command failed:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_kde_amarok/amarok/work/build" && /usr/bin/make -j2 -w all 
Exit code: 2
Error: org.macports.build for port amarok returned: command execution failed
Warning: targets not executed for amarok: org.macports.activate org.macports.build org.macports.destroot org.macports.install
Please see the log file for port amarok for details:
    /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_kde_amarok/amarok/main.log
To report a bug, follow the instructions in the guide:
    http://guide.macports.org/#project.tickets
Error: Processing of port amarok failed

Attachments (3)

11mar.amarok.main.log (10.9 MB) - added by jferiago@… 11 years ago.
Here is the main.log, thanks for your response, as a note, i got errors too using the other compiler mentioned in the guidelines
cmake.log (33.0 KB) - added by tj.trevelyan@… 11 years ago.
output from cmake for 2.7.1 build
make.log (191.6 KB) - added by tj.trevelyan@… 11 years ago.
output from make for 2.7.1 build

Change History (18)

comment:1 Changed 11 years ago by larryv (Lawrence Velázquez)

Port: amarok added

Thanks for the ticket. Please run the following and attach the main.log if it still fails.

sudo port clean amarok
sudo port install amarok

Changed 11 years ago by jferiago@…

Attachment: 11mar.amarok.main.log added

Here is the main.log, thanks for your response, as a note, i got errors too using the other compiler mentioned in the guidelines

comment:2 Changed 11 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: ryandesign@… added

Yes, this is not a compiler-specific problem so that would not help.

The problem here is that we're trying to dynamically link with a library that was compiled using the -bundle flag, but that's not possible; it's only possible to dynamically link with libraries that were compiled using the -dynamiclib flag. Looking at the log, it seems amarok_service_amazonstore.so is that library.

Please report this problem to the developers of amarok so that they can fix it in the appropriate way. (Only they know whether the appropriate fix is to make amarok_service_amazonstore.so a dynamic library that can be linked to, or whether it is to make testamazonalbum no longer try to link to that library.)

Possibly this has already been fixed in amarok 2.7.0. We should try updating the port to that version first before we file a bug report with them.

comment:3 Changed 11 years ago by jferiago@…

Are there a way to disable Amazon-related functionality to bypass the error?

comment:4 Changed 11 years ago by jferiago@…

Here is the response from Amarok devel team.

Myriam Schweingruber <myriam@kde.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEEDSINFO
         Resolution|---                         |WAITINGFORINFO

--- Comment #1 from Myriam Schweingruber <myriam@kde.org> ---
How about first updating to Amarok 2.7.0 before reporting this, as suggested in
the macports bug report? There have been many changes since 2.6.0, it's not
very useful to build old versions.
Last edited 11 years ago by ryandesign (Ryan Carsten Schmidt) (previous) (diff)

comment:5 Changed 11 years ago by ryandesign (Ryan Carsten Schmidt)

Yes, I was trying to update the port to 2.7.0. Ran into other problems. If I have time I'll try to look at it again or attach my work in progress here.

comment:6 Changed 11 years ago by marcus@…

Same Problem on my Side.

I'm new to MacPort. How to update to 2.7.0?

comment:7 in reply to:  6 Changed 11 years ago by jferiago@…

Replying to marcus@…:

Same Problem on my Side.

I'm new to MacPort. How to update to 2.7.0?

Hi Marcus, try installing amarok-devel port, on my case this port failed too, i downloaded the source code from amarok project page but im stuck compiling it too

tar -jxvf amarok-2.7.0.tar.bz2
cd amarok-2.7.0
mkdir amarok-2.7.0-build
cd amarok-2.7.0-build/
cmake .. -DCMAKE_INSTALL_PREFIX=`kde4-config --prefix`

--snip--

 26%] Building CXX object src/CMakeFiles/amaroklib.dir/core-impl/collections/support/MemoryCustomValue.o
[ 26%] Building CXX object src/CMakeFiles/amaroklib.dir/core-impl/collections/support/MemoryFilter.o
[ 26%] Building CXX object src/CMakeFiles/amaroklib.dir/core-impl/collections/support/MemoryMatcher.o
[ 26%] Building CXX object src/CMakeFiles/amaroklib.dir/core-impl/collections/support/MemoryMeta.o
In file included from /Users/cash/Downloads/amarok-2.7.0/src/core-impl/collections/support/MemoryMeta.cpp:18:
/Users/cash/Downloads/amarok-2.7.0/src/core-impl/collections/support/MemoryMeta.h:66:47: error: expected a class or namespace
        virtual QString name() const { return Base::name(); }
                                              ^
/Users/cash/Downloads/amarok-2.7.0/src/core-impl/collections/support/MemoryMeta.h:66:47: error: member 'Base' found in multiple base classes of different types
        virtual QString name() const { return Base::name(); }
                                              ^
/Users/cash/Downloads/amarok-2.7.0/src/core/meta/Meta.h:127:30: note: member found by ambiguous name lookup
    class AMAROK_CORE_EXPORT Base : public virtual QSharedData, public MetaCapability
                             ^
/Users/cash/Downloads/amarok-2.7.0/src/core-impl/collections/support/MemoryMeta.h:37:7: note: member found by ambiguous name lookup
class Base
      ^
/Users/cash/Downloads/amarok-2.7.0/src/core-impl/collections/support/MemoryMeta.h:67:51: error: expected a class or namespace
        virtual Meta::TrackList tracks() { return Base::tracks(); }


comment:8 Changed 11 years ago by marcus@…

hi,

thank you your support.

I've already tried to install the developer package, but there is the same problem..

Here is the log from building the 2.7.0 package:

---snip--
-- Generating done
-- Build files have been written to: /Users/marcus/Downloads/amarok-2.7.0/amarok270build

How can i now register amarok or open it?

Thank you!

comment:9 Changed 11 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: david@… added

Has duplicate #39041. Patches welcome.

comment:10 Changed 11 years ago by cooljeanius (Eric Gallager)

Cc: egall@… added

Cc Me!

comment:11 Changed 11 years ago by jh@…

Cc: jh@… added

Cc Me!

comment:12 Changed 11 years ago by hlprasu@…

Cc: hlprasu@… added

Cc Me!

comment:13 Changed 11 years ago by larryv (Lawrence Velázquez)

Cc: markurujapan@… added

Has duplicate #39380.

comment:14 Changed 11 years ago by tj.trevelyan@…

I just downloaded and tried to compile 2.7.1 and it has the same problem:

$ wget http://download.kde.org/stable/amarok/2.7.1/src/amarok-2.7.1.tar.bz2
$ tar jxvf amarok-2.7.1.tar.bz2
$ cd amarok-2.7.1
$ mkdir build
$ cd build/
$ cmake .. -DCMAKE_INSTALL_PREFIX=`kde4-config --prefix` | tee cmake.log
$ make | tee make.log

The two 'teed' log files are attached.

EDIT: Sorry the logs didn't contain STDERR, attached new corrected logs:

$ cmake .. -DCMAKE_INSTALL_PREFIX=`kde4-config --prefix` 2>&1 | tee cmake.log
$ make 2>&1 | tee make.log
Last edited 11 years ago by tj.trevelyan@… (previous) (diff)

Changed 11 years ago by tj.trevelyan@…

Attachment: cmake.log added

output from cmake for 2.7.1 build

Changed 11 years ago by tj.trevelyan@…

Attachment: make.log added

output from make for 2.7.1 build

comment:15 in reply to:  14 Changed 10 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: tj.trevelyan@… added

Replying to tj.trevelyan@…:

I just downloaded and tried to compile 2.7.1 and it has the same problem:

Great, then please report that to the developers of amarok so that they can fix it.

Note: See TracTickets for help on using tickets.