From owner-freebsd-arm@FreeBSD.ORG Mon Sep 9 22:17:35 2013 Return-Path: Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 136EE144; Mon, 9 Sep 2013 22:17:35 +0000 (UTC) (envelope-from andrew@fubar.geek.nz) Received: from nibbler.fubar.geek.nz (nibbler.fubar.geek.nz [199.48.134.198]) by mx1.freebsd.org (Postfix) with ESMTP id EC10B2802; Mon, 9 Sep 2013 22:17:34 +0000 (UTC) Received: from bender.Home (97e5e46b.skybroadband.com [151.229.228.107]) by nibbler.fubar.geek.nz (Postfix) with ESMTPSA id D6EE35DFFE; Mon, 9 Sep 2013 22:17:27 +0000 (UTC) Date: Mon, 9 Sep 2013 23:17:20 +0100 From: Andrew Turner To: George Mitchell Subject: Re: Failure compiling glib20 on ARM Message-ID: <20130909231720.5b2c4823@bender.Home> In-Reply-To: <522C592C.5010800@m5p.com> References: <522C592C.5010800@m5p.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: "freebsd-arm@freebsd.org" , ed@freebsd.org X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Porting FreeBSD to the StrongARM Processor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 09 Sep 2013 22:17:35 -0000 On Sun, 08 Sep 2013 07:02:04 -0400 George Mitchell wrote: > ./.libs/libglib-2.0.so: undefined reference to > `__sync_bool_compare_and_swap_4' > While making gtester in glib20 (required by accessibility/atk, > required by print/cups-base, required by print/cups). What should I > do next? -- George > I don't see support for it in our stdatomic functions. It shouldn't be too hard to support, a simple would be something like: int __sync_bool_compare_and_swap_4(uint32_t *mem, uint32_t expected, uint32_t new) { return (__sync_val_compare_and_swap_4(mem, expected, new) == expected); } Andrew