[MacPorts] #31046: py27-matplotlib fails to build with clang (Xcode 4.2)

MacPorts noreply at macports.org
Tue Nov 1 11:55:49 PDT 2011


#31046: py27-matplotlib fails to build with clang (Xcode 4.2)
---------------------------------+------------------------------------------
  Reporter:  rex_4539@…          |       Owner:  ram@…           
      Type:  defect              |      Status:  reopened        
  Priority:  Normal              |   Milestone:                  
 Component:  ports               |     Version:                  
Resolution:                      |    Keywords:  clang           
      Port:  py27-matplotlib     |  
---------------------------------+------------------------------------------

Comment(by garnier@…):

 Replying to [comment:16 ryandesign@…]:
 > Did you already run:
  {{{
  sudo port clean py27-matplotlib
  sudo port selfupdate
  sudo port install py27-matplotlib
  }}}

 yes... and on a second machine.   It makes sense that your fix doesn't
 work because the other workaround of setting configure.compiler=llvm-
 gcc-4.2 also doesn't work.  However, the rename of clang to llvm-gcc-4.2
 does work.

 Anyway, I don't that much about the way the port file is supposed to work,
 but it looks like that configuration never makes it to the python setup.py
 build line... What I tried was to change "build.env " line and just set
 the CC environment variable...

 {{{
 build.env          CC=cc MPLIB_BASE="${prefix}"
 PKG_CONFIG_PATH="${python.prefix}/lib/pkgconfig/"
 }}}

 This works, but I think it really should be set somehow to the
 configure.compiler variable.   I leave it to a better person to do it
 correctly.  (And I think this implies that all external python modules
 have this same problem of not using the macports configured compiler.)

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


More information about the macports-tickets mailing list