On Fri, 27 Feb 2015 16:39:44 +0000 Dejan Latinovic
<dejan.latino...@imgtec.com> wrote:
>
>
> Hi,
>
> I had tested these changes.
>
> +# elif defined(__ATOMIC_SEQ_CST) /* GCC atomic builtins */
> +#  define GRN_ATOMIC_ADD_EX(p,i,r) \
> +  (r = __atomic_fetch_add(p, i, __ATOMIC_SEQ_CST))
>
> It solves issue:
> > ../../lib/.libs/libgroonga.so: undefined reference to `GRN_ATOMIC_ADD_EX'
>

It works on mips64el also.

>
>
> Functions  __atomic_load_8 and __atomic_store_8 are implemented in
> library libatomic, and GCC added support for libatomic starting from version 
> 4.8.
> To get rid error:
> > ../../lib/.libs/libgroonga.so: undefined reference to `__atomic_store_8'
>
> it is needed to use -latomic  during linking.

I didn't meet this problem on mips64el.

>
>
> The patch is attached.

With this patch, 'make check' also works on mips64el.

>
> With both stated changes
> I was able to build groonga for mips and mipsel.
>
>
>
> Regards,
> Dejan.


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to