[MacPorts] #32693: py27-numpy @1.6.1_1 build fails with +atlas +gcc46

MacPorts noreply at macports.org
Wed Jan 18 22:14:34 PST 2012


#32693: py27-numpy @1.6.1_1 build fails with +atlas +gcc46
------------------------------------------+---------------------------------
 Reporter:  md14-macports@…               |       Owner:  ram@…           
     Type:  defect                        |      Status:  new             
 Priority:  Normal                        |   Milestone:                  
Component:  ports                         |     Version:  2.0.3           
 Keywords:                                |        Port:  py-numpy        
------------------------------------------+---------------------------------

Comment(by stromnov@…):

 Problem detected:

 py-numpy includes special wrappers for handling -arch options (c-wrapper,
 cxx-wrapper and f-wrapper). So, build.env and destroot.env have special
 definitions for this case:
 {{{
    build.env-append    CC="${worksrcpath}/c-wrapper" \
                             CXX="${worksrcpath}/cxx-wrapper" \
                             F77="${worksrcpath}/f-wrapper" \
                             F90="${worksrcpath}/f-wrapper"

         destroot.env-append CC="${worksrcpath}/c-wrapper" \
                             CXX="${worksrcpath}/cxx-wrapper" \
                             F77="${worksrcpath}/f-wrapper" \
                             F90="${worksrcpath}/f-wrapper"
 }}}

 But {{{configure.compiler macports-gcc-4.x}}} options overshadows that
 definitions and actual CC, CXX, F77 and F90 flags passed in environment
 are macports-gcc-4.x ones
 (for example CC: ${prefix}/bin/gcc-mp-4.5 instead of
 ${worksrcpath}/c-wrapper).

 So, we must properly define compilers:
 {{{
 configure.cc    ${worksrcpath}/c-wrapper
 configure.cxx   ${worksrcpath}/cxx-wrapper
 configure.f77   ${worksrcpath}/f-wrapper
 configure.f90   ${worksrcpath}/f-wrapper
 }}}

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


More information about the macports-tickets mailing list