From owner-freebsd-arm@FreeBSD.ORG Wed May 27 13:01:00 2015 Return-Path: Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id BDFAA8AC; Wed, 27 May 2015 13:01:00 +0000 (UTC) (envelope-from vandervelde.ag@gmail.com) Received: from mail-qk0-x22a.google.com (mail-qk0-x22a.google.com [IPv6:2607:f8b0:400d:c09::22a]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 78186A29; Wed, 27 May 2015 13:01:00 +0000 (UTC) (envelope-from vandervelde.ag@gmail.com) Received: by qkx62 with SMTP id 62so4673554qkx.3; Wed, 27 May 2015 06:00:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=subject:mime-version:content-type:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=4M6V7WNF+O5ExiWFHCYsm6ZtwXdihYgjUG5k0m/EkoQ=; b=Z/Yac2g7aXvMWH+ceaQ0qr8kzm4qCKZ6uCR7Z9onMJ0VPXO4CvbLkVASVZde3aezM8 WAWl/FtIk+cQcm0fnsUj3KFlokZsISEjpKCh2HvguHI2vba0lrgAMeivWF2wVTDyIMZk rXUkeiz9bmeA3O4PI9q21N0qbX9Q8rG8KxJA1EKjwvSbON+qf/hoT28ubtjDNU9wVCSO MVV8oYK/5Q6FY/vZjvNc8LbdLSY4wHcrqP0pH6UcSL5AtUavc/kUzo6BO/EDnYri6oCD 9S6RVsebX9319f3CdhuKiJ92ToEBHGaGG4JcYpAiXakLDwr3adzWsD/KLDTcgi2rKYNc y8YQ== X-Received: by 10.55.25.166 with SMTP id 38mr4800058qkz.52.1432731659559; Wed, 27 May 2015 06:00:59 -0700 (PDT) Received: from [10.0.0.3] (96-39-105-86.static.oxfr.ma.charter.com. [96.39.105.86]) by mx.google.com with ESMTPSA id 139sm9083656qhs.5.2015.05.27.06.00.58 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 27 May 2015 06:00:58 -0700 (PDT) Subject: Re: Segfault when linking with -pthread on recent stable/10 ARM Mime-Version: 1.0 (Apple Message framework v1085) Content-Type: text/plain; charset=windows-1252 From: Arjan van der Velde In-Reply-To: Date: Wed, 27 May 2015 09:00:57 -0400 Cc: freebsd-arm@freebsd.org Content-Transfer-Encoding: quoted-printable Message-Id: References: To: Renato Botelho X-Mailer: Apple Mail (2.1085) X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 27 May 2015 13:01:00 -0000 This seems to be related to qemu. To my understanding qemu does not = fully support threads. I have been running into exactly the same problem = on stable/10 and also tried both with and without native-xtools, to no = avail. Linking to pthreads does work on stable/10 running on an actual = ARM, without problems. -- Arjan On May 27, 2015, at 6:04 AM, Renato Botelho wrote: > I=92m building some packages for arm.armv6 on stable/10 for a while = using poudriere + native-tools. Last week I updated jails to recent = stable/10 and started to see the same issue on 2 ports = (net/openldap24-client and net/ntp). I noted there were a lot of ARM = MFCs recently so probably we got a regression at some point. >=20 > I also created a regular jail, without native-xtools, and result is = the same: >=20 > checking for GNU Pth pthread.h... no > checking for sched.h... (cached) yes > checking for pthread_create in default libraries... no > checking for pthread link with -kthread... no > checking for pthread link with -pthread... Segmentation fault (core = dumped) > no > checking for pthread link with -pthreads... no > checking for pthread link with -mthreads... no > checking for pthread link with -thread... no > checking for pthread link with -lpthread -lmach -lexc -lc_r... no > checking for pthread link with -lpthread -lmach -lexc... no > checking for pthread link with -lpthread -Wl,-woff,85... no > checking for pthread link with -lpthread... Segmentation fault (core = dumped) > no > checking for pthread link with -lc_r... no > checking for pthread link with -threads... no > checking for pthread link with -lpthreads -lmach -lexc -lc_r... no > checking for pthread link with -lpthreads -lmach -lexc... no > checking for pthread link with -lpthreads -lexc... no > checking for pthread link with -lpthreads... no > configure: error: could not locate usable POSIX Threads > =3D=3D=3D> Script "configure" failed unexpectedly. > Please report the problem to delphij@FreeBSD.org [maintainer] and = attach the > = "/wrkdirs/usr/ports/net/openldap24-client/work/openldap-2.4.40/config.log"= > including the output of the failure of your make command. Also, it = might be > a good idea to provide an overview of all packages installed on your = system > (e.g. a /usr/local/sbin/pkg-static info -g -Ea). > *** Error code 1 >=20 > I've collected conftest.c used by configure and also compiler = arguments used during test: >=20 > http://pastebin.com/7hwn9LSW >=20 > -- > Renato Botelho >=20 > _______________________________________________ > freebsd-arm@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-arm > To unsubscribe, send any mail to "freebsd-arm-unsubscribe@freebsd.org"