Hi there

first things first: Thanks for uwsgi!

I tried to compile uwsgi on arch linux for arm with python2.7 and get
the following Error:

python2.7 uwsgiconfig.py --build
Traceback (most recent call last):
  File "uwsgiconfig.py", line 89, in <module>
    gcc_major = int(gcc_version.split('.')[0])
ValueError: invalid literal for int() with base 10: '(GCC)'
make: *** [all] Fehler 1

I tried to debug the error to make your life easier and modified
uwsgiconfig a bit.
So I changed the lines after 87 to:

gcc_version = spcall2("%s -v" % GCC)
gcc_major = 4 #int(gcc_version.split('.')[0])
gcc_minor = 4 #int(gcc_version.split('.')[1])

here is what is in my env:

>>> import uwsgiconfig
>>> uwsgiconfig.gcc_version
'Es werden eingebaute Spezifikationen verwendet.\nZiel:
arm-none-linux-gnueabi\nKonfiguriert mit: ../configure --prefix=/usr
--build=arm-none-linux-gnueabi --target=arm-none-linux-gnueabi
--enable-shared --enable-languages=c,c++,fortran,objc,obj-c++
--enable-threads=posix --mandir=/usr/share/man
--infodir=/usr/share/info --enable-__cxa_atexit --disable-multilib
--libdir=/usr/lib --libexecdir=/usr/lib --enable-clocale=gnu
--disable-libstdcxx-pch\nThread-Modell: posix\ngcc-Version 4.4.3
(GCC)'

I guess there will be some hassle with line breaks in this email,
so I also put the output of uwsgiconfig.gcc_version to:
http://pastebin.com/TH9KjDXk

It looks to me as there are some trouble parsing my german located env.
I don't know If this is an error on arch linux or uwsgi, but maybe it
helps to make uwsgi better.
You can make it compatible to this kind of output and add an unittest
or something for it would be great.

Thank you for your answer in advance.

Kind regards

Kevin Zuber
_______________________________________________
uWSGI mailing list
[email protected]
http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi

Reply via email to