Skip to content

__atomic_store error: incompatible integer to pointer conversion #13

@mingodad

Description

@mingodad

When trying to build cheerp on Ubuntu 18.04 with:

Makefile:151: recipe for target 'obj/crt/cheerp/crt1.o' failed
make: *** [obj/crt/cheerp/crt1.o] Error 1
make: *** Waiting for unfinished jobs....
In file included from ../src/aio/lio_listio.c:5:
In file included from ../src/internal/pthread_impl.h:11:
In file included from ../src/internal/atomic.h:6:
../arch/cheerp/atomic_arch.h:67:20: error: incompatible integer to pointer conversion passing 'int' to parameter of type 'volatile int *'; take the address with & [-Wint-conversion]
        __atomic_store(p, x, __ATOMIC_SEQ_CST);
                          ^
                          &
1 error generated.
1 error generated.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions