Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 27 May 2015 09:00:57 -0400
From:      Arjan van der Velde <vandervelde.ag@gmail.com>
To:        Renato Botelho <garga@FreeBSD.org>
Cc:        freebsd-arm@freebsd.org
Subject:   Re: Segfault when linking with -pthread on recent stable/10 ARM
Message-ID:  <F54C3DC4-0366-4927-9231-6520814A5FD6@gmail.com>
In-Reply-To: <F6688795-4F2A-4061-9941-B644A360FCA7@FreeBSD.org>
References:  <F6688795-4F2A-4061-9941-B644A360FCA7@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help
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"




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?F54C3DC4-0366-4927-9231-6520814A5FD6>