From owner-freebsd-ports@FreeBSD.ORG Sat Feb 23 12:08:20 2013 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 7CD3A965 for ; Sat, 23 Feb 2013 12:08:20 +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 E4CFBADC for ; Sat, 23 Feb 2013 12:08:18 +0000 (UTC) Received: (qmail 70330 invoked by uid 89); 23 Feb 2013 12:01:30 -0000 Received: from unknown (HELO bsd64.grem.de) (mg@grem.de@79.251.16.201) by mail.grem.de with ESMTPA; 23 Feb 2013 12:01:30 -0000 Date: Sat, 23 Feb 2013 13:01:29 +0100 From: Michael Gmelin To: freebsd-ports@freebsd.org Subject: Re: devel/uwsgi Message-ID: <20130223130129.41e386a8@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 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 12:08:20 -0000 On Fri, 22 Feb 2013 16:34:50 +0200 Daniel Braniss wrote: > hi, > I'm having problems compiling devel/uwsgi > it only works with: > make -eCPUCOUNT=1 > which is not the default > whne CPUTYPE is > 1, it hangs, so my guess is there is somethingwrong > in the the threading support. > > without the CPUCOUNT: > rnd> make > /usr/local/bin/python2.7 uwsgiconfig.py --build > using profile: buildconf/default.ini > detected include path: ['/usr/include/gcc/4.2', '/usr/include'] > Exception in thread Thread-5: > 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 > > ... > detected CPU cores: 16 > and now it's stuck: > ^T > load: 0.02 cmd: python2.7 41862 [kqread] 472.56r 0.10u 0.14s 0% 6136k > > any ideas? Could you provide more details about your setup? - Output of uname -a - Compilation options you used when building python - Compiled using gcc or clang We're compiling and using uwsgi without issues here (FreeBSD 9.1 RELEASE-p1, clang 3.1, python 2.7, 8 CPU cores, uwsgi 1.4.3) Michael > thanks, > danny > > > _______________________________________________ > freebsd-ports@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-ports > To unsubscribe, send any mail to > "freebsd-ports-unsubscribe@freebsd.org" -- Michael Gmelin