[MacPorts] #29345: PyMOL 1.4 fails to build with gcc 4.4 error

MacPorts noreply at macports.org
Mon May 2 13:11:59 PDT 2011


#29345: PyMOL 1.4 fails to build with gcc 4.4 error
------------------------------------------+---------------------------------
 Reporter:  michelle.lynn.gill@…          |       Owner:  macports-tickets@…                   
     Type:  defect                        |      Status:  new                                  
 Priority:  Normal                        |   Milestone:                                       
Component:  ports                         |     Version:  1.9.2                                
 Keywords:                                |        Port:  pymol                                
------------------------------------------+---------------------------------

Comment(by michelle.lynn.gill@…):

 Replying to [comment:1 howarth@…]:
 > Shouldn't "CC=/opt/local/bin/gcc-mp-4.4 CXX=/opt/local/bin/g++-mp-4.4"
 be placed in front of the setup.py command instead?

 Yes, I thought the build command looked out of order as well.

 > {{{
 > variant gcc44 description conflicts gcc43 gcc45 description {build using
 macports-gcc-4.4} {
 >     depends_lib-append  port:gcc44
 >     # the current pymol makefile does not honour CC and CXX environment
 variables
 >     build.cmd  CC="${prefix}/bin/gcc-mp-4.4"
 CXX="${prefix}/bin/g++-mp-4.4" ${python.bin} setup.py --no-user-cfg
 > }}}

 I tried your suggested fix on my own local repository and there is a
 different error, so I suspect the command still isn't right.
 Unfortunately, I'm in the middle of writing a manuscript, so I may not get
 back to fiddling with it for a few days. I'm posting the error I get with
 your suggested fix below in hopes that it is of help.

 {{{
 :info:build /opt/local/bin/gcc-mp-4.4 -DNDEBUG -g -fwrapv -O3 -Wall
 -Wstrict-prototypes -arch x86_64 -D_PYMOL_MODULE -D_PYMOL_INLINE
 -D_PYMOL_LIBPNG -D_PYMOL_FREETYPE -D_PYMOL_NUMPY -D_PYMOL_OPENGL_SHADERS
 -DNO_MMLIBS -Iov/src -Ilayer0 -Ilayer1 -Ilayer2 -Ilayer3 -Ilayer4 -Ilayer5
 -I/opt/local/include -I/opt/local/include/GL
 -I/opt/local/include/freetype2 -Imodules/cealign/src
 -Imodules/cealign/src/tnt
 -I/opt/local/Library/Frameworks/Python.framework/Versions/2.6/include/python2.6
 -c modules/cealign/src/ccealignmodule.cpp -o
 build/temp.macosx-10.6-x86_64-2.6/modules/cealign/src/ccealignmodule.o
 -ffast-math -funroll-loops -O3
 :info:build cc1plus: error: unrecognized command line option "-arch"
 :info:build cc1plus: warning: command line option "-Wstrict-prototypes" is
 valid for C/ObjC but not for C++
 :info:build error: command '/opt/local/bin/gcc-mp-4.4' failed with exit
 status 1
 :info:build shell command " cd
 "/opt/local/var/macports/build/_opt_local_build_science_pymol/work/pymol"
 && CC="/opt/local/bin/gcc-mp-4.4" CXX="/opt/local/bin/g++-mp-4.4"
 /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)
 }}}

-- 
Ticket URL: <https://trac.macports.org/ticket/29345#comment:4>
MacPorts <http://www.macports.org/>
Ports system for Mac OS


More information about the macports-tickets mailing list