From owner-freebsd-arm@FreeBSD.ORG Thu Feb 27 12:16:54 2014 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 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id E5FA58A5 for ; Thu, 27 Feb 2014 12:16:53 +0000 (UTC) Received: from wp376.webpack.hosteurope.de (wp376.webpack.hosteurope.de [IPv6:2a01:488:42::50ed:8591]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id A00F710EC for ; Thu, 27 Feb 2014 12:16:53 +0000 (UTC) Received: from xdsl-78-35-64-118.netcologne.de ([78.35.64.118] helo=dijkstra-old.hb22.cruwe.de); authenticated by wp376.webpack.hosteurope.de running ExIM with esmtpsa (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) id 1WIztT-0002bY-Et; Thu, 27 Feb 2014 13:16:51 +0100 Date: Wed, 26 Feb 2014 16:31:26 +0100 From: "Christopher J. Ruwe" (by way of Christopher J. Ruwe ) To: Ian Lepore Message-ID: <20140226163126.20bfa6a1@dijkstra-old.hb22.cruwe.de> In-Reply-To: <1393426472.1149.92.camel@revolution.hippie.lan> References: <20140226130357.206cf9ae@dijkstra-old.hb22.cruwe.de> <1393426472.1149.92.camel@revolution.hippie.lan> X-Mailer: Claws Mail 3.9.3 (GTK+ 2.24.22; amd64-portbld-freebsd10.0) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Resent-Date: Thu, 27 Feb 2014 13:16:50 +0100 Resent-From: Christopher J. Ruwe Subject: Re: apparently, disabled POSIX scheduler in snapshot images makes ports fail Resent-Message-ID: <20140227131650.25e295bd@dijkstra-old.hb22.cruwe.de> Resent-To: freebsd-arm@freebsd.org X-bounce-key: webpack.hosteurope.de;cjr@cruwe.de;1393503413;a0879dc7; X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 27 Feb 2014 12:16:54 -0000 On Wed, 26 Feb 2014 07:54:32 -0700 Ian Lepore wrote: > On Wed, 2014-02-26 at 13:03 +0100, Christopher J. Ruwe wrote: > > -----BEGIN PGP SIGNED MESSAGE----- > > Hash: SHA512 > > > > I am trying to build postgresql-client for ARMv6 Raspberry Pi with > > machines installed from the images provided on the official servers > > and a custom image from the crochet. > > > > That fails because in the configure stage, the test for thread > > safety fails and dumps core. > > > > checking thread safety of required library functions... Abort > > \ trap (core dumped) > > no > > configure: error: thread test program failed > > This platform is not thread-safe. Check the file > > 'config.log' \ or compile > > and run src/test/thread/thread_test for the exact reason. > > Use --disable-thread-safety to disable thread safety. > > ===> Script "configure" failed unexpectedly. > > Please report the problem to pgsql@FreeBSD.org [maintainer] > > and attach the > > "/usr/ports/databases/postgresql90-client/work/postgresql-9.0.15/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 > > > > Investigating, I found a similar problem where somebody failed to > > compile postgresql ports due to disabled KPOSIX_PRIORITY_SCHEDULING > > in the kernel. > > > > As in that situation, in the KPOSIX scheduler is disabled: > > > > # strings /boot/kernel/kernel | grep POSIX > > nfscl_filllockowner: not F_POSIX or F_FLOCK > > POSIX P1003.1B realtime extensions > > The version of POSIX 1003.2 with which the system attempts to \ > > comply > > Version of POSIX attempting to comply to > > POSIX real time signal > > POSIX shared memory > > > > The expected "options _KPOSIX_PRIORITY_SCHEDULING" is obviously > > missing, which explains the build failure. > > > > Yet, in stable/10, KPOSIX seems to be enabled: > > > > [cjr@dijkstra:/usr/src]$ grep POSIX sys/arm/conf/RPI-B > > options _KPOSIX_PRIORITY_SCHEDULING #Posix P1003_1B real-time \ > > extensions > > > > Why is _KPOSIX_PRIORITY_SCHEDULING then disabled in the snapshots? > > Is my thinking wrong? > > > > > > Thanks and cheers, > > - -- > > Christopher > > Your method of grepping for the string isn't reliable. To see if > posix priority scheduling is available, use: > > sysctl kern.features.kposix_priority_scheduling > > It's almost certainly going to be set to one. Then the question > becomes "what is the actual abort that's happening during configure?" > > -- Ian > The answer is yes, [...].kposix_priority_scheduling=1. Hmm ... I hoped for an easy solution ... Thanks, -- Christopher TZ: GMT + 1h GnuPG/GPG: 0xE8DE2C14 FreeBSD 10.0-STABLE #0 r262291+cf0fa48(stable/10): Sat Feb 22 02:01:26 CET 2014 cjr@dijkstra.hb22.cruwe.de:/usr/obj/usr/src/sys/GENERIC Punctuation matters: "Lets eat Grandma or Lets eat, Grandma" - Punctuation saves lives. "A panda eats shoots and leaves" or "A panda eats, shoots, and leaves" - Punctuation teaches proper biology. "With sufficient thrust, pigs fly just fine. However, this is not necessarily a good idea. It is hard to be sure where they are going to land, and it could be dangerous sitting under them as they fly overhead." (RFC 1925)