View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0005505 | GNUnet | util library | public | 2018-12-30 13:31 | 2019-02-28 11:17 |
Reporter | xrs | Assigned To | Christian Grothoff | ||
Priority | normal | Severity | minor | Reproducibility | always |
Status | closed | Resolution | fixed | ||
Platform | x86_64 | OS | archlinux | OS Version | head |
Product Version | Git master | ||||
Target Version | 0.11.0 | Fixed in Version | 0.11.0 | ||
Summary | 0005505: gnunet can't be compiled with clang | ||||
Description | make[4]: Leaving directory '/home/xrs/sources/gnunet/src/include' make[3]: Leaving directory '/home/xrs/sources/gnunet/src/include' make[2]: Leaving directory '/home/xrs/sources/gnunet/src/include' Making install in util make[2]: Entering directory '/home/xrs/sources/gnunet/src/util' CC time.lo In file included from time.c:25: In file included from ../../src/include/gnunet_util_lib.h:62: In file included from ../../src/include/gnunet_crypto_lib.h:77: ../../src/include/gnunet_common.h:411:19: warning: 'format' attribute argument not supported: gnu_printf [-Wignored-attributes] __attribute__ ((format (gnu_printf, 2, 3))); ^ time.c:880:25: error: address argument to atomic operation must be a pointer to _Atomic type ('uint64_t *' (aka 'unsigned long *') invalid) mt.abs_value_us__ = atomic_load (map); ^ ~~~ /usr/lib/clang/7.0.1/include/stdatomic.h:134:29: note: expanded from macro 'atomic_load' #define atomic_load(object) __c11_atomic_load(object, __ATOMIC_SEQ_CST) ^ ~~~~~~ time.c:898:5: error: address argument to atomic operation must be a pointer to _Atomic type ('uint64_t *' (aka 'unsigned long *') invalid) atomic_store (map, ^ ~~~ /usr/lib/clang/7.0.1/include/stdatomic.h:131:39: note: expanded from macro 'atomic_store' #define atomic_store(object, desired) __c11_atomic_store(object, desire... ^ ~~~~~~ 1 warning and 2 errors generated. make[2]: *** [Makefile:2426: time.lo] Error 1 make[2]: Leaving directory '/home/xrs/sources/gnunet/src/util' make[1]: *** [Makefile:555: install-recursive] Error 1 make[1]: Leaving directory '/home/xrs/sources/gnunet/src' make: *** [Makefile:610: install-recursive] Error 1 | ||||
Steps To Reproduce | Execution of "make" with clang compliler. | ||||
Additional Information | Workaround is to use gcc. | ||||
Tags | No tags attached. | ||||
Date Modified | Username | Field | Change |
---|---|---|---|
2018-12-30 13:31 | xrs | New Issue | |
2018-12-30 13:31 | xrs | Status | new => assigned |
2018-12-30 13:31 | xrs | Assigned To | => Christian Grothoff |
2018-12-30 23:24 | Christian Grothoff | Note Added: 0013440 | |
2018-12-30 23:24 | Christian Grothoff | Status | assigned => resolved |
2018-12-30 23:24 | Christian Grothoff | Resolution | open => fixed |
2018-12-30 23:24 | Christian Grothoff | Fixed in Version | => 0.11.0 |
2018-12-30 23:25 | Christian Grothoff | Target Version | => 0.11.0 |
2019-02-28 11:17 | Christian Grothoff | Status | resolved => closed |