I'm trying to build uWSGI 0.9.8.3 on latest ArchLinux:

======================================
...
python2.7 uwsgiconfig.py --build
using profile: buildconf/default.ini
Traceback (most recent call last):
  File "uwsgiconfig.py", line 720, in <module>
    build_uwsgi(uConf(bconf))
  File "uwsgiconfig.py", line 96, in build_uwsgi
    gcc_list, cflags, ldflags, libs = uc.get_gcll()
  File "uwsgiconfig.py", line 345, in get_gcll
    k_minor = k_all[2]
IndexError: list index out of range
make: *** [all] Error 1
======================================

I suppose something veeery incorrect is written in uwsgiconfig.py near
line 345, and/or earlier.
As I understood, it is code trying to answer question: Is current
Linux kernel "new"?

It must do some lexicographical compare, I suppose.
Instead it simply checks minor version.

At my machine:

>>>os.uname()
('Linux', 'ap', '3.0-ARCH', '#1 SMP PREEMPT Tue Aug 16 07:25:56 UTC
2011', 'i686')

I don't know if there is some guidelines for kernel release names,
but anyway it seems that uWSGI code is wrong regarding that Linux
kernel version 3 exists.
_______________________________________________
uWSGI mailing list
[email protected]
http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi

Reply via email to