Opened 14 years ago

Closed 14 years ago

#25887 closed defect (fixed)

liblastfm fails to build with make -j2

Reported by: macports@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 1.9.1
Keywords: Cc:
Port: liblastfm

Description (last modified by ryandesign (Ryan Carsten Schmidt))

--->  Building liblastfm
Error: Target org.macports.build returned: shell command failed
Log for liblastfm is at: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_audio_liblastfm/main.log
Error: Status 1 encountered during processing.

inside the log,

...
:debug:build Assembled command: 'cd "/opt/local/var/macports/build/_opt_local_va
r_macports_sources_rsync.macports.org_release_ports_audio_liblastfm/work/liblastfm-0.3.0" && /usr/bin/make -j2 all':info:build mkdir -p _include/lastfm
:info:build cd src && /usr/bin/make
...
:info:build /usr/bin/g++-4.2 -c -pipe -fno-operator-names -O2 -arch x86_64 -I/opt/local/include -fvisibility-inlines-hidden -fvisibility=hidden -arch x86_64 -Xarch_x86_64 -mmacosx-version-min=10.5 -Wall -W -fPIC -DQT_NO_DEBUG -DQT_XML_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_SHARED -I/opt/local/libexec/qt4-mac/mkspecs/macx-g++ -I. -I/opt/local/libexec/qt4-mac/lib/QtCore.framework/Versions/4/Headers -I/opt/local/libexec/qt4-mac/lib/QtCore.framework/Versions/4/Headers -I/opt/local/libexec/qt4-mac/lib/QtNetwork.framework/Versions/4/Headers -I/opt/local/libexec/qt4-mac/lib/QtNetwork.framework/Versions/4/Headers -I/opt/local/libexec/qt4-mac/lib/QtXml.framework/Versions/4/Headers -I/opt/local/libexec/qt4-mac/lib/QtXml.framework/Versions/4/Headers -I/opt/local/libexec/qt4-mac/include -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_audio_liblastfm/work/liblastfm-0.3.0/_include -I_build -F/opt/local/libexec/qt4-mac/lib -o _build/InternetConnectionMonitor.o ws/InternetConnectionMonitor.cpp
:info:build make[1]: *** [_build/NetworkAccessManager.o] Error 1
:info:build make[1]: *** Waiting for unfinished jobs....
...
:info:build cp src/ws/ws.h _include/lastfm/ws.h
...
:info:build make: *** [__src] Error 2
:info:build shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_audio_liblastfm/work/liblastfm-0.3.0" && /usr/bin/make -j2 all " returned error 2
:error:build Target org.macports.build returned: shell command failed
:debug:build Backtrace: shell command failed
    while executing
"command_exec build"
    (procedure "portbuild::build_main" line 8)
    invoked from within
"$procedure $targetname"

Potentially, a patch should be made to the makefiles and submitted back to the project maintainer. Hopefully, we can get the port working anyway.

Attachments (1)

main.log (14.6 KB) - added by ryandesign (Ryan Carsten Schmidt) 14 years ago.
log from snow leopard with -j2

Download all attachments as: .zip

Change History (4)

comment:1 Changed 14 years ago by ryandesign (Ryan Carsten Schmidt)

Description: modified (diff)
Port: liblastfm added

Remember to use WikiFormatting and to preview before you submit, and to fill in the Port field.

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

The actual error, which you cut from your output, is

ws/NetworkAccessManager.cpp:22:23: error: lastfm/ws.h: No such file or directory

I'll attach a full log.

Changed 14 years ago by ryandesign (Ryan Carsten Schmidt)

Attachment: main.log added

log from snow leopard with -j2

comment:3 Changed 14 years ago by ryandesign (Ryan Carsten Schmidt)

Resolution: fixed
Status: newclosed

Confirmed that turning off parallel build fixes it, so that's what I did in r70181. If you'd like to pursue creating a patch to fix this in the sources to allow parallel builds, and submitting this upstream for inclusion in the next version, feel free to do so, but disabling the parallel build is enough for the purposes of MacPorts right now.

Note: See TracTickets for help on using tickets.