I am trying to build the latest version of matplotlib from the git repository 
(1cd07a6c) on MacOS 10.7, and regardless of whether I build using the make.osx 
file or just 'python setup.py build', the C files get compiled with clang, and 
clang raises an error on one of the files:

/Developer/usr/bin/clang -fno-strict-aliasing -fno-common -dynamic -pipe -O2 
 -Isrc -Iagg24/include -I. 
 -I/opt/local/include/freetype2 -I/opt/local/include -I. 
-c src/backend_agg.cpp -o build/temp.macosx-10.7-x86_64-2.7/src/backend_agg.o
In file included from src/backend_agg.cpp:11:
In file included from src/_backend_agg.h:34:
agg24/include/agg_renderer_outline_aa.h:1368:45: error: binding of reference to 
type 'agg::line_profile_aa' to a value of type 'const agg::line_profile_aa' 
drops qualifiers
line_profile_aa& profile() { return *m_profile; }
1 error generated.

error: command '/Developer/usr/bin/clang' failed with exit status 1

If I do:

CC=gcc python setup.py build

then things work fine, but I just wanted to raise the point that the C files do 
not compile successfully with clang at this time (but this seems to be the 
default compiler on 10.7).


Virtualization & Cloud Management Using Capacity Planning
Cloud computing makes use of virtualization - but cloud computing 
also focuses on allowing computing to be delivered as a service.
Matplotlib-users mailing list

Reply via email to