Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 9 Sep 2013 23:17:20 +0100
From:      Andrew Turner <andrew@fubar.geek.nz>
To:        George Mitchell <george@m5p.com>
Cc:        "freebsd-arm@freebsd.org" <freebsd-arm@freebsd.org>, ed@freebsd.org
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>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, 08 Sep 2013 07:02:04 -0400
George Mitchell <george@m5p.com> 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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20130909231720.5b2c4823>