Opened 15 years ago
Closed 14 years ago
#22924 closed defect (fixed)
liblastfm: Invalid arch name : -Xarch_x86_64
Reported by: | eatdespain@… | Owned by: | michaelld (Michael Dickens) |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 1.8.99 |
Keywords: | Cc: | bgrupe27, strassh@… | |
Port: | liblastfm |
Description
I checked the patched was applied but it still fails to compile getting:
/opt/local/libexec/qt4-mac/lib/QtCore.framework/Versions/4/Headers/qglobal.h:315:6: warning: #warning "Support for this version of Mac OS X is still preliminary" /usr/bin/g++-4.2 -c -pipe -fno-operator-names -pipe -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/include/QtCore -I/opt/local/libexec/qt4-mac/lib/QtNetwork.framework/Versions/4/Headers -I/opt/local/libexec/qt4-mac/include/QtNetwork -I/opt/local/libexec/qt4-mac/lib/QtXml.framework/Versions/4/Headers -I/opt/local/libexec/qt4-mac/include/QtXml -I/opt/local/libexec/qt4-mac/include -I../_include -I_build -F/opt/local/libexec/qt4-mac/lib -o _build/moc_RadioTuner.o _build/moc_RadioTuner.cpp In file included from /opt/local/libexec/qt4-mac/lib/QtCore.framework/Versions/4/Headers/QtGlobal:1, from ../_include/lastfm/global.h:24, from ../_include/lastfm/ws.h:23, from ../_include/lastfm/User:23, from ../_include/lastfm/RadioStation:23, from _build/../radio/RadioTuner.h:23, from _build/moc_RadioTuner.cpp:10: /opt/local/libexec/qt4-mac/lib/QtCore.framework/Versions/4/Headers/qglobal.h:315:6: warning: #warning "Support for this version of Mac OS X is still preliminary" rm -f liblastfm.0.3.0.dylib liblastfm.dylib liblastfm.0.dylib liblastfm.0.3.dylib /usr/bin/g++-4.2 -headerpad_max_install_names -L/opt/local/lib -arch x86_64 -arch -Xarch_x86_64 -mmacosx-version-min=10.5 -single_module -dynamiclib -compatibility_versio0.3 -current_version 0.3.0 -install_name liblastfm.0.dylib -o liblastfm.0.3.0.dylib _build/ws.o _build/NetworkAccessManager.o _build/InternetConnectionMonitor.o _build/Xspf.o _build/User.o _build/Track.o _build/Tag.o _build/Playlist.o _build/Mbid.o _build/FingerprintId.o _build/Artist.o _build/Album.o _build/ScrobblerSubmission.o _build/ScrobblerHttp.o _build/ScrobbleCache.o _build/Scrobble.o _build/NowPlaying.o _build/Handshake.o _build/Audioscrobbler.o _build/RadioTuner.o _build/XmlQuery.o _build/UrlBuilder.o _build/misc.o _build/moc_NetworkAccessManager.o _build/moc_InternetConnectionMonitor.o _build/moc_ScrobblerHttp.o _build/moc_Audioscrobbler.o _build/moc_RadioTuner.o -F/opt/local/libexec/qt4-mac/lib -L/opt/local/libexec/qt4-mac/lib -framework Carbon -framework CoreFoundation -framework QtXml -L/opt/local/lib -L/opt/local/libexec/qt4-mac/lib -F/opt/local/libexec/qt4-mac/lib -framework QtNetwork -framework SystemConfiguration -lssl -lcrypto -framework QtCore -lz -lm -framework ApplicationServices g++-4.2: Invalid arch name : -Xarch_x86_64 make[1]: *** [../_bin/liblastfm.0.3.0.dylib] Error 1 make: *** [__src] Error 2 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: Target org.macports.build returned: shell command failed DEBUG: Backtrace: shell command failed while executing "command_exec build" (procedure "portbuild::build_main" line 9) invoked from within "$procedure $targetname" Warning: the following items did not execute (for liblastfm): org.macports.activate org.macports.build org.macports.destroot org.macports.install Log for liblastfm is at: /opt/local/var/macports/logs/liblastfm/main.log Error: Status 1 encountered during processing.
I do not know why that : Invalid arch name : -Xarch_x86_64
The system is being built on x64 --MacbookPro Unibody and obviously compiling in 64 bits
Thanks
Attachments (1)
Change History (22)
comment:1 Changed 15 years ago by jmroot (Joshua Root)
Port: | liblastfm added |
---|
comment:2 Changed 15 years ago by ryandesign (Ryan Carsten Schmidt)
comment:3 Changed 15 years ago by eatdespain@…
I have upgraded to the latest qt4 but still does not make a difference.
The error is the same
comment:4 Changed 15 years ago by eatdespain@…
Speaking with the developer he mentions:
rainmanhood 30 minutes ago | link | edit | delete it might be : sh-3.2# ENV| grep xarch sh-3.2# --EMPTY-- Apologies, for the question but I guess I might need t specify that variable in the environment and I cannot find in anywhere the specific settings for it. Thanks Comment it might be : sh-3.2# ENV| grep xarch sh-3.2# --EMPTY-- Apologies, for the question but I guess I might need t specify that variable in the environment and I cannot find in anywhere the specific settings for it. Thanks or cancel mxcl 13 minutes ago | link Well it wasn't that. Still liblastfm itself doesn't do any arch manipulation. If there's a bug here, it's with MacPorts IMO.
http://github.com/mxcl/liblastfm/issues/#issue/8/comment/117068
He said is happy to help on this issue.
Then, the environment looks breaking the compilation for some reason, missing the xarch variable definition at some point.
Any idea what might it be?
Thanks
comment:5 Changed 15 years ago by eatdespain@…
Problem sorted when done manually:
sh-3.2# port -dv extract iblastfm sh-3.2# cd /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_audio_liblastfm/work/liblastfm-0.3.0 sh-3.2# cat .qmake.env QMAKE_CC = /usr/bin/gcc-4.2 QMAKE_CXX = /usr/bin/g++-4.2 QMAKE_LFLAGS_RELEASE = -L/opt/local/lib -arch x86_64 -Xarch_x86_64 QMAKE_CFLAGS_RELEASE = -pipe -O2 -arch x86_64 -Xarch_x86_64 -I/opt/local/include QMAKE_CXXFLAGS_RELEASE = -pipe -O2 -arch x86_64 -Xarch_x86_64 -I/opt/local/include
comment:7 follow-up: 8 Changed 14 years ago by hal@…
I'm a little confused. It seems the only thing needed to make this package work on Snow Leopard is to add "-Xarch_x86_64" to three lines in .qmake.env after the "-arch x86_64" setting. I'm not a C or C++ programmer and had trouble following this discussion. I needed to do more research, but what I found was that if I did this:
(do su first -- may work with sudo, I don't know)
port -dv extract iblastfm vi .qmake.env
then change the contents to be the same as the last reply by eatdespain@…, then save the file and run:
port install liblastfm
it seemed to work for me. (I still had problems later with another package that used lastfm, but it didn't mention any lastfm files as an issue.)
Is this all this bug needs to be fixed -- to have three lines in a config file changed?
comment:8 Changed 14 years ago by sa00044@…
Replying to hal@…:
I'm a little confused. It seems the only thing needed to make this package work on Snow Leopard is to add "-Xarch_x86_64" to three lines in .qmake.env after the "-arch x86_64" setting. I'm not a C or C++ programmer and had trouble following this discussion. I needed to do more research, but what I found was that if I did this:
(do su first -- may work with sudo, I don't know)
port -dv extract iblastfm
vi .qmake.env
then change the contents to be the same as the last reply by eatdespain@…, then save the file and run:
port install liblastfm
it seemed to work for me. (I still had problems later with another package that used lastfm, but it didn't mention any lastfm files as an issue.)
Is this all this bug needs to be fixed -- to have three lines in a config file changed?
Hi,
It seems I have the same problem and something more than that. I have managed to change the contents of vi .qmake.env through terminal, but now I don't know how to save the file!
Any help?
Changed 14 years ago by sa00044@…
Attachment: | Terminal Saved Output.txt added |
---|
comment:9 Changed 14 years ago by sa00044@…
In the attached file, you can see the terminal output, after have edited the vi .qmake.env file.
How do I save it now? It may sound silly but, I really don't have any programming knowledge.
Thanks!
comment:10 Changed 14 years ago by sa00044@…
I just ESC and the status changed to "recording". Hope it works...
comment:11 Changed 14 years ago by ryandesign (Ryan Carsten Schmidt)
sa00044, you don't need knowledge of programming; you need knowledge of how to use the vi
text editor. Or you need to not use vi
and instead use a different text editor you're familiar with.
comment:12 Changed 14 years ago by michaelld (Michael Dickens)
A fix for this issue was checked in in r69884 (and some more recent). Please do:
sudo port clean liblastfm sudo port selfupdate sudo port install liblastfm
and verify that it works for you. I can say that I have no problem installing this port on my 10.6.4 x86_64 laptop.
comment:14 Changed 14 years ago by ryandesign (Ryan Carsten Schmidt)
Cc: | michaelld@… removed |
---|---|
Owner: | changed from macports-tickets@… to michaelld@… |
Summary: | liblastfm fails on snow leopard → liblastfm: Invalid arch name : -Xarch_x86_64 |
Has duplicate #27206.
comment:15 Changed 14 years ago by strassh@…
This bug seems to have been solved 2 weeks ago but I encounter a similar error (see bug #27206).
What's the problem ? (I'm using Snow Leopard)
Thanks.
comment:17 Changed 14 years ago by michaelld (Michael Dickens)
Resolution: | → fixed |
---|---|
Status: | new → closed |
Fixed in r73290.
comment:18 Changed 14 years ago by strassh@…
Resolution: | fixed |
---|---|
Status: | closed → reopened |
Sorry but your patch doesn't seems to solve the problem. I still got the same error.
:info:build g++-4.2: Invalid arch name : -Xarch_x86_64
While doing a grep search on the log file I found this line, I don't know anything about g++ but is it normal that there is 2 arguments "-arch" ?
:info:build /usr/bin/g++-4.2 -headerpad_max_install_names -arch x86_64 -arch -Xarch_x86_64 -mmacosx-version-min=10.6 -single_module -dynamiclib -compatibility_version 0.3 -current_version 0.3.0 -install_name /opt/local/lib/liblastfm.0.dylib -o liblastfm.0.3.0.dylib _build/ws.o _build/NetworkAccessManager.o _build/InternetConnectionMonitor.o _build/Xspf.o _build/User.o _build/Track.o _build/Tag.o _build/Playlist.o _build/Mbid.o _build/FingerprintId.o _build/Artist.o _build/Album.o _build/ScrobblerSubmission.o _build/ScrobblerHttp.o _build/ScrobbleCache.o _build/Scrobble.o _build/NowPlaying.o _build/Handshake.o _build/Audioscrobbler.o _build/RadioTuner.o _build/XmlQuery.o _build/UrlBuilder.o _build/misc.o _build/moc_NetworkAccessManager.o _build/moc_InternetConnectionMonitor.o _build/moc_ScrobblerHttp.o _build/moc_Audioscrobbler.o _build/moc_RadioTuner.o -framework SystemConfiguration -framework Carbon -framework CoreFoundation -L/opt/local/lib -lQtXml -lQtNetwork -lQtCore
Thanks for taking the time to solve this.
comment:19 Changed 14 years ago by michaelld (Michael Dickens)
Can you do:
sudo port clean liblastfm sudo port selfupdate sudo port install liblastfm [options]
just to make sure you have the changes in place and are using them? If that doesn't work, then please post the results of:
uname -a port version port installed qt4-mac
and I'll create YA work-around.
comment:20 Changed 14 years ago by strassh@…
That's exactly what I've done to try your fix, but without success.
But now it just worked, I think I've tried too quickly and the rsync didn't give me the latest version.
Ok, so you can close the bug now :-) Thanks.
comment:21 Changed 14 years ago by michaelld (Michael Dickens)
Resolution: | → fixed |
---|---|
Status: | reopened → closed |
No problem; glad it's working for you now!
Replying to eatdespain@…:
I don't know either, but some other users report the same error message when building qt4-mac; see #20992.