View Issue Details

IDProjectCategoryView StatusLast Update
0005505GNUnetutil librarypublic2019-02-28 11:17
Reporterxrs Assigned ToChristian Grothoff  
Status closedResolutionfixed 
Platformx86_64OSarchlinuxOS Versionhead
Product VersionGit master 
Target Version0.11.0Fixed in Version0.11.0 
Summary0005505: gnunet can't be compiled with clang
Descriptionmake[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
#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
#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 ReproduceExecution of "make" with clang compliler.
Additional InformationWorkaround is to use gcc.
TagsNo tags attached.


Christian Grothoff

2018-12-30 23:24

manager   ~0013440

Should be fixed in 88b2d2d6c..019808f15. Thanks for reporting!

Issue History

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