From owner-freebsd-ports@FreeBSD.ORG Sat Feb 23 15:45:51 2013 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 36D404AA for ; Sat, 23 Feb 2013 15:45:51 +0000 (UTC) (envelope-from danny@cs.huji.ac.il) Received: from kabab.cs.huji.ac.il (kabab.cs.huji.ac.il [132.65.16.84]) by mx1.freebsd.org (Postfix) with ESMTP id DBD9623B for ; Sat, 23 Feb 2013 15:45:50 +0000 (UTC) Received: from pampa.cs.huji.ac.il ([132.65.80.32] ident=danny) by kabab.cs.huji.ac.il with esmtp id 1U9HIK-000DPl-OF; Sat, 23 Feb 2013 17:45:49 +0200 X-Mailer: exmh version 2.7.2 01/07/2005 with nmh-1.3 To: freebsd-ports@freebsd.org Subject: Re: devel/uwsgi In-reply-to: Your message of Sat, 23 Feb 2013 14:52:14 +0100. Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Sat, 23 Feb 2013 17:45:48 +0200 From: Daniel Braniss Message-ID: Cc: Michael Gmelin X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 23 Feb 2013 15:45:51 -0000 > On Sat, 23 Feb 2013 15:38:36 +0200 > Daniel Braniss wrote: > > > Hi Michael, > > > > > uname -a > > FreeBSD rnd 9.1-STABLE FreeBSD 9.1-STABLE #46: Tue Feb 5 10:46:56 > > IST 2013 danny@rnd:/home/obj/rnd/r+d/stable/9/sys/HUJI amd64 > > > > > Compilation options you used when building python > > the deaults from ports/lang/python27: > > EXAMPLES > > NLS > > PYMALLOC > > UCS4 > > Hm, THREADS should be on by default too. wups, forgot, yes THREADS is there too, and IPV6. make showconfig ===> The following configuration options are available for python27-2.7.3_6: EXAMPLES=on: Build and/or install examples FPECTL=off: Floating point exception handling IPV6=on: IPv6 protocol NLS=on: Enable Gettext support for the locale module PTH=off: Threading/multiprocessing via GNU Pth PYMALLOC=on: Use Python's internal malloc SEM=off: POSIX semaphores THREADS=on: Threading support ====> Options available for the single UCS: you have to select exactly one of them UCS2=off: Unicode UCS-2 encoding UCS4=on: Unicode UCS-4 encoding ===> Use 'make config' to modify these settings > cd /usr/ports/devl/python27 > make showconfig > > ===> The following configuration options are available for > python27-2.7.3_6: EXAMPLES=on: Build and/or install examples > FPECTL=off: Floating point exception handling > IPV6=on: IPv6 protocol > NLS=on: Enable Gettext support for the locale module > PTH=off: Threading/multiprocessing via GNU Pth > PYMALLOC=on: Use Python's internal malloc > SEM=off: POSIX semaphores > THREADS=on: Threading support > ====> Options available for the single UCS: you have to select exactly > one of them UCS2=off: Unicode UCS-2 encoding > UCS4=on: Unicode UCS-4 encoding > ===> Use 'make config' to modify these settings > > That's: > > EXAMPLES > IPV6 > NLS > PYMALLOC > THREADS > UCS4 > > Unless you have a good reason to use different settings I'd suggest to > use the defaults (make rmconfig), especially for threads. as mentioend above, that's how python was compiled. > > > > Compiled using gcc or clang > > gcc > > Ah ok, we're using clang here, that might make a difference too. > well, I just compiled using clang, and it makes no difference. does this error mean anything? rnd> make ===> Building for uwsgi-1.4.5 /usr/local/bin/python2.7 uwsgiconfig.py --build Exception in thread Thread-1: Traceback (most recent call last): File "/usr/local/lib/python2.7/threading.py", line 551, in __bootstrap_inner self.run() File "/usr/local/lib/python2.7/threading.py", line 504, in run self.__target(*self.__args, **self.__kwargs) File "uwsgiconfig.py", line 92, in thread_compiler (objfile, cmdline) = compile_queue.get() File "/usr/local/lib/python2.7/site-packages/gevent/queue.py", line 190, in get return waiter.get() File "/usr/local/lib/python2.7/site-packages/gevent/hub.py", line 321, in get return get_hub().switch() File "/usr/local/lib/python2.7/site-packages/gevent/hub.py", line 135, in get_hub raise NotImplementedError('gevent is only usable from a single thread') NotImplementedError: gevent is only usable from a single thread ... danke, danny