[erlang-bugs] Conflicting types for ‘ethr_native_dw_atomic_t’ on armv7a-hardfloat-linux-gnueabi
Mikael Pettersson
mikpelinux@REDACTED
Sun Feb 1 12:12:40 CET 2015
Dirkjan Ochtman writes:
> Hi there,
>
> I'm the package maintainer for Erlang on Gentoo. Recently, I got this
> bug report:
>
> https://bugs.gentoo.org/show_bug.cgi?id=537570
>
> Apparently, with gcc-4.8.4, there's this problem:
>
> In file included from ../include/internal/gcc/ethread.h:48:0,
> from ../include/internal/ethread.h:368,
> from beam/erl_threads.h:264,
> from beam/erl_smp.h:27,
> from beam/sys.h:434,
> from beam/export.h:24,
> from armv7a-hardfloat-linux-gnueabi/erl_pbifs.c:9:
> ../include/internal/gcc/ethr_dw_atomic.h:81:3: error: conflicting
> types for ‘ethr_native_dw_atomic_t’
> } ethr_native_dw_atomic_t;
>
> I looked around the source tree a bit, but since the erl_pbifs.c seems
> to be generated by a Perl script and my Perl skills aren't so strong,
> I couldn't really figure out the problem.
>
> Cheers,
>
> Dirkjan
>
> P.S. I'm not subscribed to erlang-bugs, please CC me on any replies.
I believe there may be a conflict between the code paths for libatomic_ops
and gcc's sync primitives. Try configuring with --with-libatomic_ops=no.
/Mikael
More information about the erlang-bugs
mailing list