Opened 13 years ago

Closed 13 years ago

#31701 closed defect (fixed)

Mac Lion py26-game build error

Reported by: melb-roscoe@… Owned by: jmroot (Joshua Root)
Priority: Normal Milestone:
Component: ports Version: 2.0.3
Keywords: Cc: carbncl@…, m.thon@…
Port: py26-game

Description (last modified by mf2k (Frank Schima))

Any help greatly appreciated with, from what i can tell from hours of forums and installation attempts, not an uncommon problem..

sudo port install deluge
--->  Computing dependencies for deluge
--->  Dependencies to be installed: py26-game py26-twisted py26-twisted-web2 py26-xdg
--->  Building py26-game
Error: Target org.macports.build returned: shell command failed (see log for details)
Error: Failed to install py26-game
Log for py26-game is at: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_python_py-game/py26-game/main.log
Error: The following dependencies were not installed: py26-game py26-twisted py26-twisted-web2 py26-xdg
Error: Status 1 encountered during processing.
To report a bug, see <http://guide.macports.org/#project.tickets>

Attachments (2)

Portfile.diff (466 bytes) - added by jmroot (Joshua Root) 13 years ago.
patch-src_scale_mmx64.c.diff (1.3 KB) - added by jmroot (Joshua Root) 13 years ago.

Download all attachments as: .zip

Change History (14)

comment:1 Changed 13 years ago by mf2k (Frank Schima)

Description: modified (diff)
Keywords: Mac Lion Deluge removed
Milestone: MacPorts 2.0.4
Owner: changed from macports-tickets@… to jmr@…
Port: py26-game added
Summary: Mac Lion Deluge build errors: py26-game py26-twisted py26-twisted-web2 py26-xdgMac Lion py26-game build error

Please attach the log mentioned so we can see the problem.

comment:3 Changed 13 years ago by carbncl@…

The build error is :

:info:build src/scale_mmx64.c:424:27: error: invalid instruction mnemonic 'movsxl'

It is caused by clang (llvm):

:info:build /Developer/usr/bin/clang -DND...

Some google-ing :

17:08  astrange> movsxl with a memory operand is unclear and so forbidden in clang
17:08  astrange> change it to movslq
17:08  fangism> O_o
17:09  astrange> or add -no-integrated-as to cflags

I'm a bit surprised that this is built with clang, my guess is that should be with gcc... Dirty environment maybe?

comment:4 in reply to:  3 Changed 13 years ago by melb-roscoe@…

Replying to carbncl@…:

The build error is : :info:build src/scale_mmx64.c:424:27: error: invalid instruction mnemonic 'movsxl' It is caused by clang (llvm): :info:build /Developer/usr/bin/clang -DND... Some google-ing : {{{game 17:08 astrange> movsxl with a memory operand is unclear and so forbidden in clang 17:08 astrange> change it to movslq 17:08 fangism> O_o 17:09 astrange> or add -no-integrated-as to cflags }}}

I'm a bit surprised that this is built with clang, my guess is that should be with gcc... Dirty environment maybe?

i'm too much of a MacPorts noob to understand what you've just suggested- sorry, am learning fast. can you help me with code for terminal that will deal with the problem and finish my Deluge build? I'd appreciate it..

comment:5 Changed 13 years ago by jmroot (Joshua Root)

Add logs as attachments, don't just paste them into comments (especially without correct formatting).

Python modules will generally build with whatever compiler is specified in the python config, and clang is the default compiler as of Xcode 4.2.

Changed 13 years ago by jmroot (Joshua Root)

Attachment: Portfile.diff added

Changed 13 years ago by jmroot (Joshua Root)

comment:6 Changed 13 years ago by jmroot (Joshua Root)

Try the attached patches. Something along these lines:

cd `port dir py26-game`
sudo cp ~/Downloads/patch-src_scale_mmx64.c.diff files/
sudo patch -p0 < ~/Downloads/Portfile.diff
sudo port clean py26-game
sudo port install py26-game

comment:7 in reply to:  5 Changed 13 years ago by carbncl@…

Replying to jmr@…:

Python modules will generally build with whatever compiler is specified in the python config, and clang is the default compiler as of Xcode 4.2.

I see, I remember now that I solved this one (and other issues) by reinstalling Xcode 4.1 Thanks for your reactivity and quick fix jmr. (and editing my badly formatted answer ;)

comment:8 Changed 13 years ago by carbncl@…

Cc: carbncl@… added

Cc Me!

comment:8 Changed 13 years ago by melb-roscoe@…

I can't get past my original errors. how/ where do i attach the patches?

comment:9 Changed 13 years ago by jmroot (Joshua Root)

"Attach the patches"? Are you using patches of your own? You use the "Attach file" button to add an attachment.

comment:10 Changed 13 years ago by m.thon@…

Thanks, your patch resolves this issue for me (OSX 10.7.2, Xcode 4.2).

BTW, just out of curiosity, is it safe to manipulate the Portfiles in the MacPorts port directories? I.e., will they simply get clobbered by the next Portfile update?

comment:11 in reply to:  10 Changed 13 years ago by jmroot (Joshua Root)

Cc: m.thon@… added

Replying to m.thon@…:

BTW, just out of curiosity, is it safe to manipulate the Portfiles in the MacPorts port directories? I.e., will they simply get clobbered by the next Portfile update?

Yes, if you're using rsync (the default method) then the next sync or selfupdate will return the ports tree to matching the state of the master repo.

comment:12 Changed 13 years ago by jmroot (Joshua Root)

Resolution: fixed
Status: newclosed

Committed in r86226.

Note: See TracTickets for help on using tickets.