From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from mx0.itk-engineering.de ([212.121.145.30]) by metis.ext.pengutronix.de with esmtp (Exim 4.72) (envelope-from ) id 1WdHp1-0000Yr-ML for ptxdist@pengutronix.de; Thu, 24 Apr 2014 13:28:08 +0200 Received: from swexchange01.itk.local (swexchange01.itk.local [10.61.0.10]) by mx0.itk-engineering.de (8.14.5/8.14.5) with ESMTP id s3OBS3Hd000720 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=FAIL) for ; Thu, 24 Apr 2014 13:28:03 +0200 From: Martin Hollingsworth Date: Thu, 24 Apr 2014 11:28:02 +0000 Message-ID: <1CFDA15477ACF741AAF78FA447550B7A028E072B@swexchange01.itk.local> References: <1CFDA15477ACF741AAF78FA447550B7A028DF331@swexchange01.itk.local> <20140422110009.GA87404@euler.fritz.box> <1CFDA15477ACF741AAF78FA447550B7A028DF422@swexchange01.itk.local> <20140422122021.GA87697@euler.fritz.box> <1CFDA15477ACF741AAF78FA447550B7A028DF44D@swexchange01.itk.local> <20140422130734.GA87802@euler.fritz.box> <1CFDA15477ACF741AAF78FA447550B7A028DF487@swexchange01.itk.local> <20140422205525.GA89375@euler.fritz.box> <1CFDA15477ACF741AAF78FA447550B7A028DF5CC@swexchange01.itk.local> <1CFDA15477ACF741AAF78FA447550B7A028DF618@swexchange01.itk.local> <20140424074953.GQ3804@pengutronix.de> In-Reply-To: <20140424074953.GQ3804@pengutronix.de> Content-Language: de-DE MIME-Version: 1.0 Subject: Re: [ptxdist] how to configure perl scripting to compile with thread support? Reply-To: ptxdist@pengutronix.de List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: ptxdist-bounces@pengutronix.de Errors-To: ptxdist-bounces@pengutronix.de To: "ptxdist@pengutronix.de" > Just speculating here: Did you try to set -Duseithreads instread of -Dusethreads? > At least in 5.18.2 these seem to be separate options. I have no idea what the difference is. Yes, I tried both separately which had no effect. When using both flags together perl seems to be built with threading enabled (perl -V gives: "useithreads=define"), but starting any of the previous mentioned test code snippets result in a Segmentation Fault as soon as any thread related feature is used. My current make file looks like this, the only modifications from stock ptxdist are the -Duse(i)thread lines. -------------- PERL_CONF_OPT := \ -Dusethreads -A ldflags=-pthread\ -Duseithreads -A ldflags=-pthread\ --prefix=/usr \ $(CROSS_AUTOCONF_ARCH) \ --target=$(PTXCONF_GNU_TARGET) \ --set-ld=$(CROSS_CC) -------------- Regards, Martin -- ptxdist mailing list ptxdist@pengutronix.de