macbook-retina:fontcrunch koeberlin$ sudo python setup.py install running install running bdist_egg running egg_info writing FontCrunch.egg-info/PKG-INFO writing top-level names to FontCrunch.egg-info/top_level.txt writing dependency_links to FontCrunch.egg-info/dependency_links.txt reading manifest file 'FontCrunch.egg-info/SOURCES.txt' writing manifest file 'FontCrunch.egg-info/SOURCES.txt' installing library code to build/bdist.macosx-10.6-intel/egg running install_lib running build_py copying fontcrunch/quadopt.py -> build/lib.macosx-10.6-intel-2.7/fontcrunch running build_ext gcc-4.2 not found, using clang instead building 'fontcrunch._quadopt' extension swigging fontcrunch/quadopt.i to fontcrunch/quadopt_wrap.cpp swig -python -c++ -modern -o fontcrunch/quadopt_wrap.cpp fontcrunch/quadopt.i clang -fno-strict-aliasing -fno-common -dynamic -arch i386 -arch x86_64 -g -O2 -DNDEBUG -g -O3 -I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c fontcrunch/quadopt_wrap.cpp -o build/temp.macosx-10.6-intel-2.7/fontcrunch/quadopt_wrap.o -std=c++0x -O3 fontcrunch/quadopt_wrap.cpp:568:7: warning: 'register' storage class specifier is deprecated [-Wdeprecated-register] register size_t l = 0; ^~~~~~~~~ fontcrunch/quadopt_wrap.cpp:569:7: warning: 'register' storage class specifier is deprecated [-Wdeprecated-register] register size_t r = iter->size - 1; ^~~~~~~~~ fontcrunch/quadopt_wrap.cpp:572:2: warning: 'register' storage class specifier is deprecated [-Wdeprecated-register] register size_t i = (l + r) >> 1; ^~~~~~~~~ fontcrunch/quadopt_wrap.cpp:575:4: warning: 'register' storage class specifier is deprecated [-Wdeprecated-register] register int compare = strcmp(name, iname); ^~~~~~~~~ fontcrunch/quadopt_wrap.cpp:619:7: warning: 'register' storage class specifier is deprecated [-Wdeprecated-register] register size_t i = 0; ^~~~~~~~~ fontcrunch/quadopt_wrap.cpp:638:3: warning: 'register' storage class specifier is deprecated [-Wdeprecated-register] register const unsigned char *u = (unsigned char *) ptr; ^~~~~~~~~ fontcrunch/quadopt_wrap.cpp:639:3: warning: 'register' storage class specifier is deprecated [-Wdeprecated-register] register const unsigned char *eu = u + sz; ^~~~~~~~~ fontcrunch/quadopt_wrap.cpp:641:5: warning: 'register' storage class specifier is deprecated [-Wdeprecated-register] register unsigned char uu = *u; ^~~~~~~~~ fontcrunch/quadopt_wrap.cpp:653:3: warning: 'register' storage class specifier is deprecated [-Wdeprecated-register] register unsigned char *u = (unsigned char *) ptr; ^~~~~~~~~ fontcrunch/quadopt_wrap.cpp:654:3: warning: 'register' storage class specifier is deprecated [-Wdeprecated-register] register const unsigned char *eu = u + sz; ^~~~~~~~~ fontcrunch/quadopt_wrap.cpp:656:5: warning: 'register' storage class specifier is deprecated [-Wdeprecated-register] register char d = *(c++); ^~~~~~~~~ fontcrunch/quadopt_wrap.cpp:657:5: warning: 'register' storage class specifier is deprecated [-Wdeprecated-register] register unsigned char uu; ^~~~~~~~~ fontcrunch/quadopt_wrap.cpp:1321:7: warning: 'register' storage class specifier is deprecated [-Wdeprecated-register] register int i; ^~~~~~~~~ fontcrunch/quadopt_wrap.cpp:1331:5: warning: 'register' storage class specifier is deprecated [-Wdeprecated-register] register Py_ssize_t l = PyTuple_GET_SIZE(args); ^~~~~~~~~ fontcrunch/quadopt_wrap.cpp:1341:7: warning: 'register' storage class specifier is deprecated [-Wdeprecated-register] register int i; ^~~~~~~~~ 15 warnings generated. fontcrunch/quadopt_wrap.cpp:568:7: warning: 'register' storage class specifier is deprecated [-Wdeprecated-register] register size_t l = 0; ^~~~~~~~~ fontcrunch/quadopt_wrap.cpp:569:7: warning: 'register' storage class specifier is deprecated [-Wdeprecated-register] register size_t r = iter->size - 1; ^~~~~~~~~ fontcrunch/quadopt_wrap.cpp:572:2: warning: 'register' storage class specifier is deprecated [-Wdeprecated-register] register size_t i = (l + r) >> 1; ^~~~~~~~~ fontcrunch/quadopt_wrap.cpp:575:4: warning: 'register' storage class specifier is deprecated [-Wdeprecated-register] register int compare = strcmp(name, iname); ^~~~~~~~~ fontcrunch/quadopt_wrap.cpp:619:7: warning: 'register' storage class specifier is deprecated [-Wdeprecated-register] register size_t i = 0; ^~~~~~~~~ fontcrunch/quadopt_wrap.cpp:638:3: warning: 'register' storage class specifier is deprecated [-Wdeprecated-register] register const unsigned char *u = (unsigned char *) ptr; ^~~~~~~~~ fontcrunch/quadopt_wrap.cpp:639:3: warning: 'register' storage class specifier is deprecated [-Wdeprecated-register] register const unsigned char *eu = u + sz; ^~~~~~~~~ fontcrunch/quadopt_wrap.cpp:641:5: warning: 'register' storage class specifier is deprecated [-Wdeprecated-register] register unsigned char uu = *u; ^~~~~~~~~ fontcrunch/quadopt_wrap.cpp:653:3: warning: 'register' storage class specifier is deprecated [-Wdeprecated-register] register unsigned char *u = (unsigned char *) ptr; ^~~~~~~~~ fontcrunch/quadopt_wrap.cpp:654:3: warning: 'register' storage class specifier is deprecated [-Wdeprecated-register] register const unsigned char *eu = u + sz; ^~~~~~~~~ fontcrunch/quadopt_wrap.cpp:656:5: warning: 'register' storage class specifier is deprecated [-Wdeprecated-register] register char d = *(c++); ^~~~~~~~~ fontcrunch/quadopt_wrap.cpp:657:5: warning: 'register' storage class specifier is deprecated [-Wdeprecated-register] register unsigned char uu; ^~~~~~~~~ fontcrunch/quadopt_wrap.cpp:1321:7: warning: 'register' storage class specifier is deprecated [-Wdeprecated-register] register int i; ^~~~~~~~~ fontcrunch/quadopt_wrap.cpp:1331:5: warning: 'register' storage class specifier is deprecated [-Wdeprecated-register] register Py_ssize_t l = PyTuple_GET_SIZE(args); ^~~~~~~~~ fontcrunch/quadopt_wrap.cpp:1341:7: warning: 'register' storage class specifier is deprecated [-Wdeprecated-register] register int i; ^~~~~~~~~ 15 warnings generated. clang -fno-strict-aliasing -fno-common -dynamic -arch i386 -arch x86_64 -g -O2 -DNDEBUG -g -O3 -I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c fontcrunch/quadopt.cc -o build/temp.macosx-10.6-intel-2.7/fontcrunch/quadopt.o -std=c++0x -O3 fontcrunch/quadopt.cc:47:9: error: no member named 'hypot' in namespace 'std'; did you mean simply 'hypot'? return std::hypot(p0.x - p1.x, p0.y - p1.y); ^~~~~~~~~~ hypot /usr/include/math.h:439:15: note: 'hypot' declared here extern double hypot(double, double); ^ fontcrunch/quadopt.cc:61:19: error: no member named 'hypot' in namespace 'std'; did you mean simply 'hypot'? double scale = 1/std::hypot(p.x, p.y); ^~~~~~~~~~ hypot /usr/include/math.h:439:15: note: 'hypot' declared here extern double hypot(double, double); ^ fontcrunch/quadopt.cc:66:15: error: no member named 'round' in namespace 'std'; did you mean simply 'round'? return Point(std::round(p.x), std::round(p.y)); ^~~~~~~~~~ round fontcrunch/quadopt.cc:65:7: note: 'round' declared here Point round(Point p) { ^ fontcrunch/quadopt.cc:66:26: error: no viable conversion from 'double' to 'Point' return Point(std::round(p.x), std::round(p.y)); ^~~ fontcrunch/quadopt.cc:30:7: note: candidate constructor (the implicit copy constructor) not viable: no known conversion from 'double' to 'const Point &' for 1st argument class Point { ^ fontcrunch/quadopt.cc:30:7: note: candidate constructor (the implicit move constructor) not viable: no known conversion from 'double' to 'Point &&' for 1st argument class Point { ^ fontcrunch/quadopt.cc:65:19: note: passing argument to parameter 'p' here Point round(Point p) { ^ fontcrunch/quadopt.cc:128:13: error: no member named 'hypot' in namespace 'std'; did you mean simply 'hypot'? dydx[0] = std::hypot(p.x, p.y); ^~~~~~~~~~ hypot /usr/include/math.h:439:15: note: 'hypot' declared here extern double hypot(double, double); ^ fontcrunch/quadopt.cc:239:13: error: no member named 'hypot' in namespace 'std'; did you mean simply 'hypot'? dydx[0] = std::hypot(dxy.x, dxy.y); ^~~~~~~~~~ hypot /usr/include/math.h:439:15: note: 'hypot' declared here extern double hypot(double, double); ^ fontcrunch/quadopt.cc:366:16: error: no member named 'round' in namespace 'std'; did you mean simply 'round'? Point p(.5 * std::round(2 * origp.x), .5 * std::round(2 ... ^~~~~~~~~~ round fontcrunch/quadopt.cc:65:7: note: 'round' declared here Point round(Point p) { ^ fontcrunch/quadopt.cc:366:27: error: no viable conversion from 'double' to 'Point' Point p(.5 * std::round(2 * origp.x), .5 * std::round(2 ... ^~~~~~~~~~~ fontcrunch/quadopt.cc:30:7: note: candidate constructor (the implicit copy constructor) not viable: no known conversion from 'double' to 'const Point &' for 1st argument class Point { ^ fontcrunch/quadopt.cc:30:7: note: candidate constructor (the implicit move constructor) not viable: no known conversion from 'double' to 'Point &&' for 1st argument class Point { ^ fontcrunch/quadopt.cc:65:19: note: passing argument to parameter 'p' here Point round(Point p) { ^ 8 errors generated. error: command 'clang' failed with exit status 1