This is a years-old known bug in distutils (which it looks like you've 
already commented on...).  I've looked at it many times over those 
years, and it's really very difficult to fix from outside without 
terrible monkey-patching hacks that are certain to break on as many 
systems as they fix.  We just may be forced to deal with it at this 
point, though.  (FWIW, we run Solaris here, too, but we build matplotlib 
on gcc).  I'll comment on that bug as well and see if we can get some 
movement on it.

In the meantime, I'll investigate whether the scons work by David 
Cournapeau resolves this problem.  See here:

   http://github.com/cournape/matplotlib/tree/scons_build

Mike

Dr. David Kirkby wrote:
> I was trying to build matplotlib 0.99.0 as part of Sage
>
> http://www.sagemath.org/
>
> on a Sun Blade 2000 workstation running Solaris 10 update 7, using the Sun 
> Studio compiler version 12.1 (not gcc).
>
> CC and CXX were defined properly as C and C++ compilers, but it would appear 
> that the C compiler is being called to compile the file src/ft2font.cpp, 
> which 
> is of course a C++ file.
>
> You might get away with this with gcc, but the Sun C compiler will not 
> compile 
> C++ code.
>
> Here's the error I get:
>
>
> /opt/xxxsunstudio12.1/bin/cc -DNDEBUG -O -xcode=pic32 
> -DPY_ARRAYAUNIQUE_SYMBOL=MPL_ARRAY_API 
> -I/export/home/drkirkby/sage/gcc32/sage-4.1.2.alpha2/local/lib/python2.6/site-packages/numpy/core/include
>  
> -I/usr/sfw/include -I/usr/sfw/include/freetype2 -I/usr/local/include -I. 
> -I/export/home/drkirkby/sage/gcc32/sage-4.1.2.alpha2/local/include/ 
> -I/export/home/drkirkby/sage/gcc32/sage-4.1.2.alpha2/local/include/python2.6 
> -c 
> src/ft2font.cpp -o build/temp.solaris-2.10-sun4u-2.6/src/ft2font.o
> cc: No valid input files specified, no output generated
> error: command '/opt/xxxsunstudio12.1/bin/cc' failed with exit status 1
>
> This is recorded in the Sage trac as:
>
> http://trac.sagemath.org/sage_trac/ticket/7028
>
>
> ------------------------------------------------------------------------------
> Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
> trial. Simplify your report design, integration and deployment - and focus on 
> what you do best, core application coding. Discover what's new with
> Crystal Reports now.  http://p.sf.net/sfu/bobj-july
> _______________________________________________
> Matplotlib-users mailing list
> Matplotlib-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>   

-- 
Michael Droettboom
Science Software Branch
Operations and Engineering Division
Space Telescope Science Institute
Operated by AURA for NASA


------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to