[Gluster-users] Error in Installing Glusterfs-4.1.6 from tar
Ravishankar N
ravishankar at redhat.com
Thu Jan 3 08:38:43 UTC 2019
I don't get these warnings when compiling 4.1.6 on fedora 28 with gcc
(GCC) 8.1.1. Perhaps it is a gcc issue
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80593.
On 01/03/2019 01:20 PM, Amudhan P wrote:
> Can I skip this warning message in tail mail and continue with the
> installation?
>
> On Thu, Dec 27, 2018 at 5:11 PM Amudhan P <amudhan83 at gmail.com
> <mailto:amudhan83 at gmail.com>> wrote:
>
> Thanks, Ravishankar it worked.
> also, I am getting the following warning message when running
> `make` is it safe to skip?
>
> dht-layout.c: In function ‘dht_layout_new’:
> dht-layout.c:51:9: warning: dereferencing type-punned pointer will
> break strict-aliasing rules [-Wstrict-aliasing]
> GF_ATOMIC_INIT (layout->ref, 1);
> ^
> dht-layout.c:51:9: warning: dereferencing type-punned pointer will
> break strict-aliasing rules [-Wstrict-aliasing]
> CC dht-helper.lo
>
>
> CC ec.lo
> ec.c: In function ‘ec_statistics_init’:
> ec.c:637:9: warning: dereferencing type-punned pointer will break
> strict-aliasing rules [-Wstrict-aliasing]
> GF_ATOMIC_INIT(ec->stats.stripe_cache.hits, 0);
> ^
> ec.c:637:9: warning: dereferencing type-punned pointer will break
> strict-aliasing rules [-Wstrict-aliasing]
> ec.c:638:9: warning: dereferencing type-punned pointer will break
> strict-aliasing rules [-Wstrict-aliasing]
> GF_ATOMIC_INIT(ec->stats.stripe_cache.misses, 0);
> ^
> ec.c:638:9: warning: dereferencing type-punned pointer will break
> strict-aliasing rules [-Wstrict-aliasing]
> ec.c:639:9: warning: dereferencing type-punned pointer will break
> strict-aliasing rules [-Wstrict-aliasing]
> GF_ATOMIC_INIT(ec->stats.stripe_cache.updates, 0);
> ^
> ec.c:639:9: warning: dereferencing type-punned pointer will break
> strict-aliasing rules [-Wstrict-aliasing]
> ec.c:640:9: warning: dereferencing type-punned pointer will break
> strict-aliasing rules [-Wstrict-aliasing]
> GF_ATOMIC_INIT(ec->stats.stripe_cache.invals, 0);
> ^
> ec.c:640:9: warning: dereferencing type-punned pointer will break
> strict-aliasing rules [-Wstrict-aliasing]
> ec.c:641:9: warning: dereferencing type-punned pointer will break
> strict-aliasing rules [-Wstrict-aliasing]
> GF_ATOMIC_INIT(ec->stats.stripe_cache.evicts, 0);
> ^
> ec.c:641:9: warning: dereferencing type-punned pointer will break
> strict-aliasing rules [-Wstrict-aliasing]
> ec.c:642:9: warning: dereferencing type-punned pointer will break
> strict-aliasing rules [-Wstrict-aliasing]
> GF_ATOMIC_INIT(ec->stats.stripe_cache.allocs, 0);
> ^
> ec.c:642:9: warning: dereferencing type-punned pointer will break
> strict-aliasing rules [-Wstrict-aliasing]
> ec.c:643:9: warning: dereferencing type-punned pointer will break
> strict-aliasing rules [-Wstrict-aliasing]
> GF_ATOMIC_INIT(ec->stats.stripe_cache.errors, 0);
> ^
> ec.c:643:9: warning: dereferencing type-punned pointer will break
> strict-aliasing rules [-Wstrict-aliasing]
> CC ec-data.lo
>
>
> CCLD posix.la <http://posix.la>
> .libs/posix-inode-fd-ops.o: In function `posix_do_chmod':
> /home/qubevaultadmin/gluster-tar/glusterfs-4.1.6/xlators/storage/posix/src/posix-inode-fd-ops.c:203:
> warning: lchmod is not implemented and will always fail
> make[5]: Nothing to be done for 'all-am'.
>
>
> CC client-handshake.lo
> client-handshake.c: In function ‘clnt_fd_lk_local_create’:
> client-handshake.c:150:9: warning: dereferencing type-punned
> pointer will break strict-aliasing rules [-Wstrict-aliasing]
> GF_ATOMIC_INIT (local->ref, 1);
> ^
> client-handshake.c:150:9: warning: dereferencing type-punned
> pointer will break strict-aliasing rules [-Wstrict-aliasing]
> CC client-callback.lo
>
> CC readdir-ahead.lo
> readdir-ahead.c: In function ‘init’:
> readdir-ahead.c:637:9: warning: dereferencing type-punned pointer
> will break strict-aliasing rules [-Wstrict-aliasing]
> GF_ATOMIC_INIT (priv->rda_cache_size, 0);
> ^
> readdir-ahead.c:637:9: warning: dereferencing type-punned pointer
> will break strict-aliasing rules [-Wstrict-aliasing]
> CCLD readdir-ahead.la <http://readdir-ahead.la>
>
> Making all in src
> CC md-cache.lo
> md-cache.c: In function ‘mdc_init’:
> md-cache.c:3431:9: warning: dereferencing type-punned pointer will
> break strict-aliasing rules [-Wstrict-aliasing]
> GF_ATOMIC_INIT (conf->mdc_counter.stat_hit, 0);
> ^
> md-cache.c:3431:9: warning: dereferencing type-punned pointer will
> break strict-aliasing rules [-Wstrict-aliasing]
> md-cache.c:3432:9: warning: dereferencing type-punned pointer will
> break strict-aliasing rules [-Wstrict-aliasing]
> GF_ATOMIC_INIT (conf->mdc_counter.stat_miss, 0);
> ^
> md-cache.c:3432:9: warning: dereferencing type-punned pointer will
> break strict-aliasing rules [-Wstrict-aliasing]
> md-cache.c:3433:9: warning: dereferencing type-punned pointer will
> break strict-aliasing rules [-Wstrict-aliasing]
> GF_ATOMIC_INIT (conf->mdc_counter.xattr_hit, 0);
> ^
> md-cache.c:3433:9: warning: dereferencing type-punned pointer will
> break strict-aliasing rules [-Wstrict-aliasing]
> md-cache.c:3434:9: warning: dereferencing type-punned pointer will
> break strict-aliasing rules [-Wstrict-aliasing]
> GF_ATOMIC_INIT (conf->mdc_counter.xattr_miss, 0);
> ^
> md-cache.c:3434:9: warning: dereferencing type-punned pointer will
> break strict-aliasing rules [-Wstrict-aliasing]
> md-cache.c:3435:9: warning: dereferencing type-punned pointer will
> break strict-aliasing rules [-Wstrict-aliasing]
> GF_ATOMIC_INIT (conf->mdc_counter.negative_lookup, 0);
> ^
> md-cache.c:3435:9: warning: dereferencing type-punned pointer will
> break strict-aliasing rules [-Wstrict-aliasing]
> md-cache.c:3436:9: warning: dereferencing type-punned pointer will
> break strict-aliasing rules [-Wstrict-aliasing]
> GF_ATOMIC_INIT (conf->mdc_counter.nameless_lookup, 0);
> ^
> md-cache.c:3436:9: warning: dereferencing type-punned pointer will
> break strict-aliasing rules [-Wstrict-aliasing]
> md-cache.c:3437:9: warning: dereferencing type-punned pointer will
> break strict-aliasing rules [-Wstrict-aliasing]
> GF_ATOMIC_INIT (conf->mdc_counter.stat_invals, 0);
> ^
> md-cache.c:3437:9: warning: dereferencing type-punned pointer will
> break strict-aliasing rules [-Wstrict-aliasing]
> md-cache.c:3438:9: warning: dereferencing type-punned pointer will
> break strict-aliasing rules [-Wstrict-aliasing]
> GF_ATOMIC_INIT (conf->mdc_counter.xattr_invals, 0);
> ^
> md-cache.c:3438:9: warning: dereferencing type-punned pointer will
> break strict-aliasing rules [-Wstrict-aliasing]
> md-cache.c:3439:9: warning: dereferencing type-punned pointer will
> break strict-aliasing rules [-Wstrict-aliasing]
> GF_ATOMIC_INIT (conf->mdc_counter.need_lookup, 0);
> ^
> md-cache.c:3439:9: warning: dereferencing type-punned pointer will
> break strict-aliasing rules [-Wstrict-aliasing]
> CCLD md-cache.la <http://md-cache.la>
>
>
> dht-layout.c: In function ‘dht_layout_new’:
> dht-layout.c:51:9: warning: dereferencing type-punned pointer will
> break strict-aliasing rules [-Wstrict-aliasing]
> GF_ATOMIC_INIT (layout->ref, 1);
>
> CC io-stats.lo
> io-stats.c: In function ‘ios_init_iosstat’:
> io-stats.c:1973:17: warning: dereferencing type-punned pointer
> will break strict-aliasing rules [-Wstrict-aliasing]
> GF_ATOMIC_INIT (iosstat->counters[i], 0);
> ^
> io-stats.c:1973:17: warning: dereferencing type-punned pointer
> will break strict-aliasing rules [-Wstrict-aliasing]
> io-stats.c: In function ‘io_stats_open_cbk’:
> io-stats.c:2066:9: warning: dereferencing type-punned pointer will
> break strict-aliasing rules [-Wstrict-aliasing]
> GF_ATOMIC_INIT (iosfd->data_read, 0);
> ^
> io-stats.c:2066:9: warning: dereferencing type-punned pointer will
> break strict-aliasing rules [-Wstrict-aliasing]
> io-stats.c:2067:9: warning: dereferencing type-punned pointer will
> break strict-aliasing rules [-Wstrict-aliasing]
> GF_ATOMIC_INIT (iosfd->data_written, 0);
> ^
> io-stats.c:2067:9: warning: dereferencing type-punned pointer will
> break strict-aliasing rules [-Wstrict-aliasing]
> io-stats.c:2069:17: warning: dereferencing type-punned pointer
> will break strict-aliasing rules [-Wstrict-aliasing]
> GF_ATOMIC_INIT (iosfd->block_count_write[i], 0);
> ^
> io-stats.c:2069:17: warning: dereferencing type-punned pointer
> will break strict-aliasing rules [-Wstrict-aliasing]
> io-stats.c:2070:17: warning: dereferencing type-punned pointer
> will break strict-aliasing rules [-Wstrict-aliasing]
> GF_ATOMIC_INIT (iosfd->block_count_read[i], 0);
> ^
> io-stats.c:2070:17: warning: dereferencing type-punned pointer
> will break strict-aliasing rules [-Wstrict-aliasing]
> io-stats.c: In function ‘ios_init_stats’:
> io-stats.c:4006:9: warning: dereferencing type-punned pointer will
> break strict-aliasing rules [-Wstrict-aliasing]
> GF_ATOMIC_INIT (stats->data_read, 0);
> ^
> io-stats.c:4006:9: warning: dereferencing type-punned pointer will
> break strict-aliasing rules [-Wstrict-aliasing]
> io-stats.c:4007:9: warning: dereferencing type-punned pointer will
> break strict-aliasing rules [-Wstrict-aliasing]
> GF_ATOMIC_INIT (stats->data_written, 0);
> ^
> io-stats.c:4007:9: warning: dereferencing type-punned pointer will
> break strict-aliasing rules [-Wstrict-aliasing]
> io-stats.c:4010:17: warning: dereferencing type-punned pointer
> will break strict-aliasing rules [-Wstrict-aliasing]
> GF_ATOMIC_INIT (stats->block_count_write[i], 0);
> ^
> io-stats.c:4010:17: warning: dereferencing type-punned pointer
> will break strict-aliasing rules [-Wstrict-aliasing]
> io-stats.c:4011:17: warning: dereferencing type-punned pointer
> will break strict-aliasing rules [-Wstrict-aliasing]
> GF_ATOMIC_INIT (stats->block_count_read[i], 0);
> ^
> io-stats.c:4011:17: warning: dereferencing type-punned pointer
> will break strict-aliasing rules [-Wstrict-aliasing]
> io-stats.c:4015:17: warning: dereferencing type-punned pointer
> will break strict-aliasing rules [-Wstrict-aliasing]
> GF_ATOMIC_INIT (stats->fop_hits[i], 0);
> ^
> io-stats.c:4015:17: warning: dereferencing type-punned pointer
> will break strict-aliasing rules [-Wstrict-aliasing]
> io-stats.c:4018:17: warning: dereferencing type-punned pointer
> will break strict-aliasing rules [-Wstrict-aliasing]
> GF_ATOMIC_INIT (stats->upcall_hits[i], 0);
> ^
> io-stats.c:4018:17: warning: dereferencing type-punned pointer
> will break strict-aliasing rules [-Wstrict-aliasing]
> CCLD io-stats.la <http://io-stats.la>
>
> CC barrier.lo
> barrier.c: In function ‘notify’:
> barrier.c:499:33: warning: switch condition has boolean value
> [-Wswitch-bool]
> switch (past) {
> ^
> barrier.c: In function ‘reconfigure’:
> barrier.c:565:25: warning: switch condition has boolean value
> [-Wswitch-bool]
> switch (past) {
> ^
> CCLD barrier.la <http://barrier.la>
>
>
> CC client-handshake.lo
> client-handshake.c: In function ‘clnt_fd_lk_local_create’:
> client-handshake.c:150:9: warning: dereferencing type-punned
> pointer will break strict-aliasing rules [-Wstrict-aliasing]
> GF_ATOMIC_INIT (local->ref, 1);
> ^
> client-handshake.c:150:9: warning: dereferencing type-punned
> pointer will break strict-aliasing rules [-Wstrict-aliasing]
>
>
> CC changelog-rpc.lo
> changelog-rpc.c: In function ‘changelog_rpc_clnt_init’:
> changelog-rpc.c:217:9: warning: dereferencing type-punned pointer
> will break strict-aliasing rules [-Wstrict-aliasing]
> GF_ATOMIC_INIT (crpc->ref, 1);
> ^
> changelog-rpc.c:217:9: warning: dereferencing type-punned pointer
> will break strict-aliasing rules [-Wstrict-aliasing]
> CC changelog-barrier.lo
> CC changelog-rpc-common.lo
>
>
>
> CC mount.lo
> ../../../../contrib/fuse-lib/mount.c: In function
> ‘gf_fuse_unmount_daemon’:
> ../../../../contrib/fuse-lib/mount.c:106:17: warning: ignoring
> return value of ‘chdir’, declared with attribute
> warn_unused_result [-Wunused-result]
> (void)chdir("/");
> ^
> ../../../../contrib/fuse-lib/mount.c:110:17: warning: ignoring
> return value of ‘read’, declared with attribute warn_unused_result
> [-Wunused-result]
> read (ump[0], &c, 1);
> ^
> ../../../../contrib/fuse-lib/mount.c: In function ‘gf_fuse_mount’:
> ../../../../contrib/fuse-lib/mount.c:507:25: warning: ignoring
> return value of ‘write’, declared with attribute
> warn_unused_result [-Wunused-result]
> (void)write (status_fd, &ret, sizeof (ret));
> ^
> CC mount-common.lo
> ../../../../contrib/fuse-lib/mount-common.c: In function
> ‘mtab_needs_update’:
> ../../../../contrib/fuse-lib/mount-common.c:59:25: warning:
> ignoring return value of ‘setreuid’, declared with attribute
> warn_unused_result [-Wunused-result]
> setreuid (0, -1);
> ^
> ../../../../contrib/fuse-lib/mount-common.c:64:25: warning:
> ignoring return value of ‘setreuid’, declared with attribute
> warn_unused_result [-Wunused-result]
> setreuid (ruid, -1);
> ^
> CCLD fuse.la <http://fuse.la>
>
>
>
> glusterd-pmap.c: In function ‘pmap_registry_bind’:
> glusterd-pmap.c:287:17: warning: ignoring return value of
> ‘asprintf’, declared with attribute warn_unused_result
> [-Wunused-result]
> asprintf (&pmap->ports[p].brickname, "%s %s",
> tmp, brickname);
> ^
> glusterd-pmap.c: In function ‘pmap_registry_extend’:
> glusterd-pmap.c:346:17: warning: ignoring return value of
> ‘asprintf’, declared with attribute warn_unused_result
> [-Wunused-result]
> asprintf (&new_bn, "%s %s", old_bn, brickname);
>
>
>
> CC mount-common.o
> ../../contrib/fuse-lib/mount-common.c: In function
> ‘mtab_needs_update’:
> ../../contrib/fuse-lib/mount-common.c:59:25: warning: ignoring
> return value of ‘setreuid’, declared with attribute
> warn_unused_result [-Wunused-result]
> setreuid (0, -1);
> ^
> ../../contrib/fuse-lib/mount-common.c:64:25: warning: ignoring
> return value of ‘setreuid’, declared with attribute
> warn_unused_result [-Wunused-result]
> setreuid (ruid, -1);
> ^
> CCLD fusermount-glusterfs
>
>
> Amudhan
>
> On Thu, Dec 27, 2018 at 4:38 PM Ravishankar N
> <ravishankar at redhat.com <mailto:ravishankar at redhat.com>> wrote:
>
>
>
> On 12/27/2018 04:26 PM, Amudhan P wrote:
>> Hi,
>>
>> I am trying to compile & install Glusterfs-4.1.6 using tar
>> file and I am getting this error message when running `make`.
>> ```
>> CC afr-self-heal-name.lo
>> CC afr.lo
>> In file included from afr.c:18:0:
>> afr-common.c: In function ‘afr_lookup_entry_heal’:
>> afr-common.c:2892:29: error: implicit declaration of function
>> ‘uuid_is_null’ [-Werror=implicit-function-declaration]
>> if (uuid_is_null (gfid)) {
>> ^
>> cc1: some warnings being treated as errors
>> Makefile:585: recipe for target 'afr.lo' failed
>> make[5]: *** [afr.lo] Error 1
>> Makefile:467: recipe for target 'all-recursive' failed
>> make[4]: *** [all-recursive] Error 1
>> Makefile:467: recipe for target 'all-recursive' failed
>> make[3]: *** [all-recursive] Error 1
>> Makefile:473: recipe for target 'all-recursive' failed
>> make[2]: *** [all-recursive] Error 1
>> Makefile:606: recipe for target 'all-recursive' failed
>> make[1]: *** [all-recursive] Error 1
>> Makefile:497: recipe for target 'all' failed
>> make: *** [all] Error 2
>> ```
>> OS : Ubuntu 16.04
>> file used : glusterfs-4.1.6.tar.gz
>>
>> How to fix this issue?
> Try this fix: https://review.gluster.org/#/c/glusterfs/+/21571/
> -Ravi
>>
>> regards
>> Amudhan
>>
>>
>> _______________________________________________
>> Gluster-users mailing list
>> Gluster-users at gluster.org <mailto:Gluster-users at gluster.org>
>> https://lists.gluster.org/mailman/listinfo/gluster-users
>
> _______________________________________________
> Gluster-users mailing list
> Gluster-users at gluster.org <mailto:Gluster-users at gluster.org>
> https://lists.gluster.org/mailman/listinfo/gluster-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gluster.org/pipermail/gluster-users/attachments/20190103/91ad30b6/attachment.html>
More information about the Gluster-users
mailing list