[MacPorts] #31701: Mac Lion Deluge build errors: py26-game py26-twisted py26-twisted-web2 py26-xdg
#31701: Mac Lion Deluge build errors: py26-game py26-twisted py26-twisted-web2 py26-xdg -------------------------------------+-------------------------------------- Reporter: melb-roscoe@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: MacPorts 2.0.4 Component: ports | Version: 2.0.3 Keywords: Mac Lion Deluge | Port: -------------------------------------+-------------------------------------- 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> -- Ticket URL: <https://trac.macports.org/ticket/31701> MacPorts <http://www.macports.org/> Ports system for Mac OS
#31701: Mac Lion py26-game build error -------------------------------------+-------------------------------------- Reporter: melb-roscoe@… | Owner: jmr@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.0.3 Keywords: | Port: py26-game -------------------------------------+-------------------------------------- Changes (by macsforever2000@…): * keywords: Mac Lion Deluge => * milestone: MacPorts 2.0.4 => * owner: macports-tickets@… => jmr@… * port: => py26-game Old description:
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>
New description: 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> }}} -- Comment: Please attach the log mentioned so we can see the problem. -- Ticket URL: <https://trac.macports.org/ticket/31701#comment:1> MacPorts <http://www.macports.org/> Ports system for Mac OS
#31701: Mac Lion py26-game build error -------------------------------------+-------------------------------------- Reporter: melb-roscoe@… | Owner: jmr@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.0.3 Keywords: | Port: py26-game -------------------------------------+-------------------------------------- Comment(by melb-roscoe@…): Replying to [comment:1 macsforever2000@…]:
Please attach the log mentioned so we can see the problem. version:1 :debug:main changing euid/egid - current euid: 0 - current egid: 0 :debug:main egid changed to: 501 :debug:main euid changed to: 502 :debug:main Executing org.macports.main (py26-game) :debug:main Privilege de-escalation not attempted as not running as root. :debug:main Skipping completed org.macports.archivefetch (py26-game) :debug:main Privilege de-escalation not attempted as not running as root. :debug:main Skipping completed org.macports.fetch (py26-game) :debug:main Privilege de-escalation not attempted as not running as root. :debug:main Skipping completed org.macports.checksum (py26-game) :debug:main Privilege de-escalation not attempted as not running as root. :debug:main Skipping completed org.macports.extract (py26-game) :debug:main Privilege de-escalation not attempted as not running as root. :debug:main Skipping completed org.macports.patch (py26-game) :debug:main Privilege de-escalation not attempted as not running as root. :debug:main Skipping completed org.macports.configure (py26-game) :debug:main Privilege de-escalation not attempted as not running as root. :debug:build build phase started at Fri Oct 21 23:56:47 EST 2011 :notice:build ---> Building py26-game :debug:build Executing proc-pre-org.macports.build-build-0 :debug:build Executing org.macports.build (py26-game) :debug:build Environment: CFLAGS='-arch x86_64' CXXFLAGS='-arch x86_64' CPATH='/opt/local/include' MACOSX_DEPLOYMENT_TARGET='10.7' LIBRARY_PATH='/opt/local/lib' F90FLAGS='-m64' CC_PRINT_OPTIONS_FILE='/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports .org_release_tarballs_ports_python_py- game/py26-game/work/.CC_PRINT_OPTIONS' LDFLAGS='-arch x86_64' FCFLAGS='-m64' OBJCFLAGS='-arch x86_64' FFLAGS='-m64' CC_PRINT_OPTIONS='YES' :debug:build Assembled command: 'cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports .org_release_tarballs_ports_python_py- game/py26-game/work/pygame-1.9.1release" && /opt/local/Library/Frameworks/Python.framework/Versions/2.6/bin/python2.6 setup.py --no-user-cfg build' :debug:build Executing command line: cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports .org_release_tarballs_ports_python_py- game/py26-game/work/pygame-1.9.1release" && /opt/local/Library/Frameworks/Python.framework/Versions/2.6/bin/python2.6 setup.py --no-user-cfg build :info:build running build :info:build running build_py :info:build running build_ext :info:build building 'pygame.transform' extension :info:build /Developer/usr/bin/clang -DNDEBUG -g -O3 -Wall -Wstrict- prototypes -arch x86_64 -Ddarwin -D_NO_MMX_FOR_X86_64 -I/opt/local/include/SDL -I/opt/local/Library/Frameworks/Python.framework/Versions/2.6/include/python2.6 -c src/transform.c -o build/temp.macosx-10.7-x86_64-2.6/src/transform.o :info:build /Developer/usr/bin/clang -DNDEBUG -g -O3 -Wall -Wstrict- prototypes -arch x86_64 -Ddarwin -D_NO_MMX_FOR_X86_64 -I/opt/local/include/SDL -I/opt/local/Library/Frameworks/Python.framework/Versions/2.6/include/python2.6 -c src/rotozoom.c -o build/temp.macosx-10.7-x86_64-2.6/src/rotozoom.o :info:build /Developer/usr/bin/clang -DNDEBUG -g -O3 -Wall -Wstrict- prototypes -arch x86_64 -Ddarwin -D_NO_MMX_FOR_X86_64 -I/opt/local/include/SDL -I/opt/local/Library/Frameworks/Python.framework/Versions/2.6/include/python2.6 -c src/scale2x.c -o build/temp.macosx-10.7-x86_64-2.6/src/scale2x.o :info:build /Developer/usr/bin/clang -DNDEBUG -g -O3 -Wall -Wstrict- prototypes -arch x86_64 -Ddarwin -D_NO_MMX_FOR_X86_64 -I/opt/local/include/SDL -I/opt/local/Library/Frameworks/Python.framework/Versions/2.6/include/python2.6 -c src/scale_mmx.c -o build/temp.macosx-10.7-x86_64-2.6/src/scale_mmx.o :info:build In file included from src/scale_mmx.c:33: :info:build src/scale_mmx64.c:424:27: error: invalid instruction mnemonic 'movsxl' :info:build asm __volatile__( " /* MMX code for inner loop of X bilinear filter */ " :info:build ^ :info:build <inline asm>:1:191: note: instantiated into assembly here :info:build /* MMX code for inner loop of X bilinear filter */ movl -44(%rbp), %ecx; pxor %mm0, %mm0; 1: movsxl (%rdi), %rax; add $4, %rdi; movq (%r10), %mm1; add $8, %r10; movq (%r11), %mm2; add $8, %r11; movd (%r8,%rax,4), %mm4; movd 4(%r8,%rax,4), %mm5; punpcklbw %mm0, %mm4; punpcklbw %mm0, %mm5; pmullw %mm1, %mm4; pmullw %mm2, %mm5; paddw %mm4, %mm5; psrlw $8, %mm5; packuswb %mm0, %mm5; movd %mm5, (%r9); add $4, %r9; decl %ecx; jne 1b; emms; :info:build ^ :info:build In file included from src/scale_mmx.c:33: :info:build src/scale_mmx64.c:499:27: error: invalid instruction mnemonic 'movsxl' :info:build asm __volatile__( " /* MMX code for inner loop of X bilinear filter */ " :info:build ^ :info:build <inline asm>:1:191: note: instantiated into assembly here :info:build /* MMX code for inner loop of X bilinear filter */ movl -44(%rbp), %ecx; pxor %mm0, %mm0; 1: movsxl (%rdi), %rax; add $4, %rdi; movq (%r10), %mm1; add $8, %r10; movq (%r11), %mm2; add $8, %r11; movd (%r8,%rax,4), %mm4; movd 4(%r8,%rax,4), %mm5; punpcklbw %mm0, %mm4; punpcklbw %mm0, %mm5; pmullw %mm1, %mm4; pmullw %mm2, %mm5; paddw %mm4, %mm5; psrlw $8, %mm5; packuswb %mm0, %mm5; movd %mm5, (%r9); add $4, %r9; decl %ecx; jne 1b; emms; :info:build ^ :info:build 2 errors generated. :info:build error: command '/Developer/usr/bin/clang' failed with exit status 1 :info:build shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports .org_release_tarballs_ports_python_py- game/py26-game/work/pygame-1.9.1release" && /opt/local/Library/Frameworks/Python.framework/Versions/2.6/bin/python2.6 setup.py --no-user-cfg build " returned error 1 :error:build Target org.macports.build returned: shell command failed (see log for details) :debug:build Backtrace: shell command failed (see log for details) while executing "command_exec build" (procedure "portbuild::build_main" line 8) invoked from within "$procedure $targetname" :info:build Warning: the following items did not execute (for py26-game): org.macports.activate org.macports.build org.macports.destroot org.macports.install :error:build Failed to install py26-game :debug:build couldn't open "/System/Library/Frameworks/Tcl.framework/Versions/8.5/Resources/tclIndex": no such file or directory while executing "open [file join $dir tclIndex]" :notice:build 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
-- Ticket URL: <https://trac.macports.org/ticket/31701#comment:2> MacPorts <http://www.macports.org/> Ports system for Mac OS
#31701: Mac Lion py26-game build error -------------------------------------+-------------------------------------- Reporter: melb-roscoe@… | Owner: jmr@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.0.3 Keywords: | Port: py26-game -------------------------------------+-------------------------------------- Comment(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 : {{{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? -- Ticket URL: <https://trac.macports.org/ticket/31701#comment:3> MacPorts <http://www.macports.org/> Ports system for Mac OS
#31701: Mac Lion py26-game build error -------------------------------------+-------------------------------------- Reporter: melb-roscoe@… | Owner: jmr@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.0.3 Keywords: | Port: py26-game -------------------------------------+-------------------------------------- Comment(by melb-roscoe@…): Replying to [comment:3 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.. -- Ticket URL: <https://trac.macports.org/ticket/31701#comment:4> MacPorts <http://www.macports.org/> Ports system for Mac OS
#31701: Mac Lion py26-game build error -------------------------------------+-------------------------------------- Reporter: melb-roscoe@… | Owner: jmr@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.0.3 Keywords: | Port: py26-game -------------------------------------+-------------------------------------- Comment(by jmr@…): 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. -- Ticket URL: <https://trac.macports.org/ticket/31701#comment:5> MacPorts <http://www.macports.org/> Ports system for Mac OS
#31701: Mac Lion py26-game build error -------------------------------------+-------------------------------------- Reporter: melb-roscoe@… | Owner: jmr@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.0.3 Keywords: | Port: py26-game -------------------------------------+-------------------------------------- Comment(by jmr@…): 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 }}} -- Ticket URL: <https://trac.macports.org/ticket/31701#comment:6> MacPorts <http://www.macports.org/> Ports system for Mac OS
#31701: Mac Lion py26-game build error -------------------------------------+-------------------------------------- Reporter: melb-roscoe@… | Owner: jmr@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.0.3 Keywords: | Port: py26-game -------------------------------------+-------------------------------------- Comment(by carbncl@…): Replying to [comment:5 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 ;)
-- Ticket URL: <https://trac.macports.org/ticket/31701#comment:7> MacPorts <http://www.macports.org/> Ports system for Mac OS
#31701: Mac Lion py26-game build error -------------------------------------+-------------------------------------- Reporter: melb-roscoe@… | Owner: jmr@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.0.3 Keywords: | Port: py26-game -------------------------------------+-------------------------------------- Comment(by melb-roscoe@…): I can't get past my original errors. how/ where do i attach the patches? -- Ticket URL: <https://trac.macports.org/ticket/31701#comment:8> MacPorts <http://www.macports.org/> Ports system for Mac OS
#31701: Mac Lion py26-game build error -------------------------------------+-------------------------------------- Reporter: melb-roscoe@… | Owner: jmr@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.0.3 Keywords: | Port: py26-game -------------------------------------+-------------------------------------- Comment(by jmr@…): "Attach the patches"? Are you using patches of your own? You use the "Attach file" button to add an attachment. -- Ticket URL: <https://trac.macports.org/ticket/31701#comment:9> MacPorts <http://www.macports.org/> Ports system for Mac OS
#31701: Mac Lion py26-game build error -------------------------------------+-------------------------------------- Reporter: melb-roscoe@… | Owner: jmr@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.0.3 Keywords: | Port: py26-game -------------------------------------+-------------------------------------- Comment(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? -- Ticket URL: <https://trac.macports.org/ticket/31701#comment:10> MacPorts <http://www.macports.org/> Ports system for Mac OS
#31701: Mac Lion py26-game build error -------------------------------------+-------------------------------------- Reporter: melb-roscoe@… | Owner: jmr@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.0.3 Keywords: | Port: py26-game -------------------------------------+-------------------------------------- Changes (by jmr@…): * cc: m.thon@… (added) Comment: Replying to [comment:10 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.
-- Ticket URL: <https://trac.macports.org/ticket/31701#comment:11> MacPorts <http://www.macports.org/> Ports system for Mac OS
#31701: Mac Lion py26-game build error --------------------------------------+------------------------------------- Reporter: melb-roscoe@… | Owner: jmr@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 2.0.3 Resolution: fixed | Keywords: Port: py26-game | --------------------------------------+------------------------------------- Changes (by jmr@…): * status: new => closed * resolution: => fixed Comment: Committed in r86226. -- Ticket URL: <https://trac.macports.org/ticket/31701#comment:12> MacPorts <http://www.macports.org/> Ports system for Mac OS
participants (1)
-
MacPorts