Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build failed on Mac #173

Closed
tly1980 opened this issue Mar 7, 2013 · 1 comment
Closed

Build failed on Mac #173

tly1980 opened this issue Mar 7, 2013 · 1 comment

Comments

@tly1980
Copy link

tly1980 commented Mar 7, 2013

I tired to install uwsgi with pip in my virtualenv.

my system enviornment is:

(ca2)Liyings-MacBook-Pro:build minddriven$ uname -a
Darwin Liyings-MacBook-Pro.local 12.2.0 Darwin Kernel Version 12.2.0: Sat Aug 25 00:48:52 PDT 2012; root:xnu-2050.18.24~1/RELEASE_X86_64 x86_64

It looks like some marco is not compatible in Mac enviornment

(ca2)Liyings-MacBook-Pro:build minddriven$ pip install -e git+git://github.com/unbit/uwsgi.git@1.4.8#egg=uwsgi

Obtaining uwsgi from git+git://github.com/unbit/uwsgi.git@1.4.8#egg=uwsgi
  Updating /Users/minddriven/.virtualenvs/ca2/src/uwsgi clone (to 1.4.8)
  Running setup.py egg_info for package uwsgi

Installing collected packages: uwsgi
  Running setup.py develop for uwsgi

    In file included from plugins/python/python_plugin.c:1:
    In file included from plugins/python/uwsgi_python.h:2:
    In file included from /usr/local/bin/../Cellar/python/2.7.3/include/python2.7/Python.h:126:
    /usr/local/bin/../Cellar/python/2.7.3/include/python2.7/modsupport.h:27:65: error: 'format' attribute argument not supported: PyArg_ParseTuple [-Werror]
    PyAPI_FUNC(int) PyArg_ParseTuple(PyObject *, const char *, ...) Py_FORMAT_PARSETUPLE(PyArg_ParseTuple, 2, 3);
                                                                    ^
    /usr/local/bin/../Cellar/python/2.7.3/include/python2.7/pyport.h:871:57: note: expanded from macro 'Py_FORMAT_PARSETUPLE'
    #define Py_FORMAT_PARSETUPLE(func,p1,p2) __attribute__((format(func,p1,p2)))
                                                            ^
    1 error generated.
    In file included from plugins/python/pyutils.c:1:
    In file included from plugins/python/uwsgi_python.h:2:
    In file included from /usr/local/bin/../Cellar/python/2.7.3/include/python2.7/Python.h:126:
    /usr/local/bin/../Cellar/python/2.7.3/include/python2.7/modsupport.h:27:65: error: 'format' attribute argument not supported: PyArg_ParseTuple [-Werror]
    PyAPI_FUNC(int) PyArg_ParseTuple(PyObject *, const char *, ...) Py_FORMAT_PARSETUPLE(PyArg_ParseTuple, 2, 3);
                                                                    ^
    /usr/local/bin/../Cellar/python/2.7.3/include/python2.7/pyport.h:871:57: note: expanded from macro 'Py_FORMAT_PARSETUPLE'
    #define Py_FORMAT_PARSETUPLE(func,p1,p2) __attribute__((format(func,p1,p2)))
                                                            ^
    1 error generated.
    Complete output from command /Users/minddriven/.virtualenvs/ca2/bin/python -c "import setuptools; __file__='/Users/minddriven/.virtualenvs/ca2/src/uwsgi/setup.py'; exec(compile(open(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" develop --no-deps:
    running develop

running egg_info

writing uWSGI.egg-info/PKG-INFO

writing top-level names to uWSGI.egg-info/top_level.txt

writing dependency_links to uWSGI.egg-info/dependency_links.txt

warning: manifest_maker: standard file '-c' not found



reading manifest file 'uWSGI.egg-info/SOURCES.txt'

writing manifest file 'uWSGI.egg-info/SOURCES.txt'

running build_ext

In file included from plugins/python/python_plugin.c:1:

In file included from plugins/python/uwsgi_python.h:2:

In file included from /usr/local/bin/../Cellar/python/2.7.3/include/python2.7/Python.h:126:

/usr/local/bin/../Cellar/python/2.7.3/include/python2.7/modsupport.h:27:65: error: 'format' attribute argument not supported: PyArg_ParseTuple [-Werror]

PyAPI_FUNC(int) PyArg_ParseTuple(PyObject *, const char *, ...) Py_FORMAT_PARSETUPLE(PyArg_ParseTuple, 2, 3);

                                                                ^

/usr/local/bin/../Cellar/python/2.7.3/include/python2.7/pyport.h:871:57: note: expanded from macro 'Py_FORMAT_PARSETUPLE'

#define Py_FORMAT_PARSETUPLE(func,p1,p2) __attribute__((format(func,p1,p2)))

                                                        ^

1 error generated.

In file included from plugins/python/pyutils.c:1:

In file included from plugins/python/uwsgi_python.h:2:

In file included from /usr/local/bin/../Cellar/python/2.7.3/include/python2.7/Python.h:126:

/usr/local/bin/../Cellar/python/2.7.3/include/python2.7/modsupport.h:27:65: error: 'format' attribute argument not supported: PyArg_ParseTuple [-Werror]

PyAPI_FUNC(int) PyArg_ParseTuple(PyObject *, const char *, ...) Py_FORMAT_PARSETUPLE(PyArg_ParseTuple, 2, 3);

                                                                ^

/usr/local/bin/../Cellar/python/2.7.3/include/python2.7/pyport.h:871:57: note: expanded from macro 'Py_FORMAT_PARSETUPLE'

#define Py_FORMAT_PARSETUPLE(func,p1,p2) __attribute__((format(func,p1,p2)))

                                                        ^

1 error generated.
@unbit
Copy link
Owner

unbit commented Mar 7, 2013

it is a problem with python headers, there is nothing we can do :(

You may want to try forcing a specific compiler (i do not know which one will work with your setup):

CC=gcc pip install uwsgi
CC=clang pip install uwsgi
...and so on

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants