ARM64 builds fail
sokoow opened this issue · 3 comments
sokoow commented
I got arm64 build failing with following:
hipagut.c: In function ‘unaligned_load_noasan’:
hipagut.c:48:28: warning: passing argument 2 of ‘__builtin_memcpy’ discards ‘volatile’ qualifier from pointer target type [-Wdiscarded-qualifiers]
__builtin_memcpy(&local, ptr, 8);
^
hipagut.c:48:28: note: expected ‘const void *’ but argument is of type ‘const volatile void *’
hipagut.c: In function ‘unaligned_load’:
hipagut.c:63:28: warning: passing argument 2 of ‘__builtin_memcpy’ discards ‘volatile’ qualifier from pointer target type [-Wdiscarded-qualifiers]
__builtin_memcpy(&local, ptr, 8);
^
hipagut.c:63:28: note: expected ‘const void *’ but argument is of type ‘const volatile void *’
hipagut.c: In function ‘unaligned_store’:
hipagut.c:76:20: warning: passing argument 1 of ‘__builtin_memcpy’ discards ‘volatile’ qualifier from pointer target type [-Wdiscarded-qualifiers]
__builtin_memcpy(ptr, &value, ptr, 8);
^
hipagut.c:76:20: note: expected ‘void *’ but argument is of type ‘volatile void *’
hipagut.c:76:33: warning: passing argument 3 of ‘__builtin_memcpy’ makes integer from pointer without a cast [-Wint-conversion]
__builtin_memcpy(ptr, &value, ptr, 8);
^
hipagut.c:76:33: note: expected ‘long unsigned int’ but argument is of type ‘volatile void *’
hipagut.c:76:3: error: too many arguments to function ‘__builtin_memcpy’
__builtin_memcpy(ptr, &value, ptr, 8);
^
CC init.lo
Makefile:824: recipe for target 'hipagut.lo' failed
make[4]: *** [hipagut.lo] Error 1
make[4]: *** Waiting for unfinished jobs....
sokoow commented
that works, thanks