From owner-freebsd-ports@FreeBSD.ORG Sat Feb 23 18:36:47 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 12C367C0 for ; Sat, 23 Feb 2013 18:36:47 +0000 (UTC) (envelope-from freebsd@grem.de) Received: from mail.grem.de (outcast.grem.de [213.239.217.27]) by mx1.freebsd.org (Postfix) with SMTP id 7059FCF6 for ; Sat, 23 Feb 2013 18:36:45 +0000 (UTC) Received: (qmail 97738 invoked by uid 89); 23 Feb 2013 18:36:44 -0000 Received: from unknown (HELO bsd64.grem.de) (mg@grem.de@79.251.16.201) by mail.grem.de with ESMTPA; 23 Feb 2013 18:36:44 -0000 Date: Sat, 23 Feb 2013 19:36:44 +0100 From: Michael Gmelin To: Daniel Braniss Subject: Re: devel/uwsgi Message-ID: <20130223193644.5ef30e90@bsd64.grem.de> In-Reply-To: References: X-Mailer: Claws Mail 3.9.0 (GTK+ 2.24.6; amd64-portbld-freebsd9.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: freebsd-ports@freebsd.org 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 18:36:47 -0000 On Sat, 23 Feb 2013 17:45:48 +0200 Daniel Braniss wrote: > > On Sat, 23 Feb 2013 15:38:36 +0200 > ===> 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 > I just noticed that you're building 1.4.5, I just updated an older server 9.0/gcc and tried building it there. I also updated to 1.4.5 on a 9.1 machine with clang and tried compiling there without any issues. The compile runs multithreaded just fine, using eight threads in parallel (the machine has eight cores)., e.g. *** uWSGI compiling server core *** [thread 1][clang] core/utils.o [thread 2][clang] core/protocol.o [thread 3][clang] core/socket.o [thread 4][clang] core/logging.o [thread 5][clang] core/master.o [thread 6][clang] core/master_utils.o [thread 7][clang] core/emperor.o [thread 0][clang] core/notify.o [thread 0][clang] core/mule.o [thread 4][clang] core/subscription.o [thread 6][clang] core/stats.o So I assume there are two possible reasons: a) The build doesn't scale up to 16 cores (I don't have a non-production machine I could test this on right now) b) There is something wrong with your setup Could you try setting the limiting the number of cpu cores to 8 and see if that works. If that still breaks there's definitely a problem with your setup. In that case I would suggest cleaning your installation (all python related ports), remove all stored configuration options and start from scratch, since this might hit you again at a later point outside of the build process. (I'm using python27-2.7.3_3 by the way, just in case that makes a difference for gevent). Michael -- Michael Gmelin