Uploaded image for project: 'WiredTiger'
  1. WiredTiger
  2. WT-6378

Fix compile failure on OS X 10.12

    • Type: Icon: Build Failure Build Failure
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • WT10.0.0, 4.4.0-rc9, 4.7.0
    • Affects Version/s: None
    • Component/s: None
    • Storage - Ra 2020-06-15

      Compilation is failing onĀ OS X 10.12 starting with the WT-6276 merge:

      [2020/06/04 08:28:54.197]                             ^~~~~~~~~~~~~~~~~~~~~~~~~~
      [2020/06/04 08:28:54.197] :392:29: In file included from ../src/utilities/util_cpyright.c:9:
      [2020/06/04 08:28:54.197] In file included from error: incompatible pointer types passing 'size_t *' (aka 'unsigned long *') to parameter of type 'uint64_t *' (aka 'unsigned long long *') [-Werror,-Wincompatible-pointer-types]../src/utilities/util.h
      [2020/06/04 08:28:54.197] :9:
      [2020/06/04 08:28:54.197] In file included from ../src/include/wt_internal.h:438:
      [2020/06/04 08:28:54.197] ../src/include/btree.i:392:29: error: incompatible pointer types passing 'size_t *' (aka 'unsigned long *') to parameter of type 'uint64_t *' (aka 'unsigned long long *') [-Werror,-Wincompatible-pointer-types]
      [2020/06/04 08:28:54.197] In file included from     (void)__wt_atomic_add64(&page->modify->bytes_dirty, size);../src/utilities/util_downgrade.c
      [2020/06/04 08:28:54.197] :                            ^~~~~~~~~~~~~~~~~~~~~~~~~~
      [2020/06/04 08:28:54.197] 9:
      [2020/06/04 08:28:54.197] In file included from ../src/utilities/util.h    (void)__wt_atomic_add64(&page->modify->bytes_dirty, size);:9:
      [2020/06/04 08:28:54.197] In file included from ../src/include/wt_internal.h:
      [2020/06/04 08:28:54.197]                             ^~~~~~~~~~~~~~~~~~~~~~~~~~
      [2020/06/04 08:28:54.197] 438:
      [2020/06/04 08:28:54.197] ../src/include/btree.i:392:29: error: incompatible pointer types passing 'size_t *' (aka 'unsigned long *') to parameter of type 'uint64_t *' (aka 'unsigned long long *') [-Werror,-Wincompatible-pointer-types]
      [2020/06/04 08:28:54.197]     (void)__wt_atomic_add64(&page->modify->bytes_dirty, size);
      [2020/06/04 08:28:54.197]                             ^~~~~~~~~~~~~~~~~~~~~~~~~~
      [2020/06/04 08:28:54.198] ../src/include/gcc.h../src/include/gcc.h:../src/include/gcc.h151../src/include/gcc.h:../src/include/gcc.h::../src/include/gcc.h40::151In file included from ../src/utilities/util_alter.c:151151:: 40:note40151: ::40:9::40::passing argument to parameter 'vp' here :
      [2020/06/04 08:28:54.198]  151note  :
      [2020/06/04 08:28:54.198] notepassing argument to parameter 'vp' here:
      [2020/06/04 08:28:54.198] In file included from note:In file included from passing argument to parameter 'vp' herenote:
      [2020/06/04 08:28:54.198] 40WT_ATOMIC_FUNC(64, uint64_t, uint64_t *vp, uint64_t v): WT_ATOMIC_FUNC(64, uint64_t, uint64_t *vp, uint64_t v)../src/utilities/util_backup.c
      [2020/06/04 08:28:54.198] :                                       ^:
      [2020/06/04 08:28:54.198] passing argument to parameter 'vp' here9                                        ^
      [2020/06/04 08:28:54.198] notepassing argument to parameter 'vp' here: ../src/include/gcc.h:
      [2020/06/04 08:28:54.198] :WT_ATOMIC_FUNC(64, uint64_t, uint64_t *vp, uint64_t v)
      [2020/06/04 08:28:54.198] ../src/utilities/util.hIn file included from
      [2020/06/04 08:28:54.198] ../src/utilities/util.hWT_ATOMIC_FUNC(64, uint64_t, uint64_t *vp, uint64_t v):
      [2020/06/04 08:28:54.198] 9132                                       ^:passing argument to parameter 'vp' here
      [2020/06/04 08:28:54.198] :
      [2020/06/04 08:28:54.198] ../src/include/gcc.h:
      [2020/06/04 08:28:54.198] 9WT_ATOMIC_FUNC(64, uint64_t, uint64_t *vp, uint64_t v):
      [2020/06/04 08:28:54.198] ../src/include/gcc.h:WT_ATOMIC_FUNC(64, uint64_t, uint64_t *vp, uint64_t v)                                       ^
      [2020/06/04 08:28:54.198] 132:In file included from
      [2020/06/04 08:28:54.198] 45:In file included from                                        ^:
      [2020/06/04 08:28:54.198]                                        ^45
      [2020/06/04 08:28:54.198] ../src/include/wt_internal.h ../src/include/gcc.h
      [2020/06/04 08:28:54.198] :../src/include/gcc.h132::::43845:
      [2020/06/04 08:28:54.198] ../src/include/wt_internal.h132:note ../src/include/gcc.h438:132::note : :
      [2020/06/04 08:28:54.198] expanded from macro 'WT_ATOMIC_FUNC'4545note
      [2020/06/04 08:28:54.198] : ::132../src/include/btree.i:: expanded from macro 'WT_ATOMIC_FUNC'../src/include/btree.i
      [2020/06/04 08:28:54.198] :expanded from macro 'WT_ATOMIC_FUNC'392
      [2020/06/04 08:28:54.198] 392::29 ::  error:: 29note:    static inline ret __wt_atomic_add##name(vp_arg, v_arg)       \: incompatible pointer types passing 'size_t *' (aka 'unsigned long *') to parameter of type 'uint64_t *' (aka 'unsigned long long *') [-Werror,-Wincompatible-pointer-types]45     static inline ret __wt_atomic_add##name(vp_arg, v_arg)       \:error
      [2020/06/04 08:28:54.198] expanded from macro 'WT_ATOMIC_FUNC'note
      [2020/06/04 08:28:54.198] note    static inline ret __wt_atomic_add##name(vp_arg, v_arg)       \
      [2020/06/04 08:28:54.198]                                             ^:                                             ^expanded from macro 'WT_ATOMIC_FUNC'
      [2020/06/04 08:28:54.198] :                                             ^:
      [2020/06/04 08:28:54.198] incompatible pointer types passing 'size_t *' (aka 'unsigned long *') to parameter of type 'uint64_t *' (aka 'unsigned long long *') [-Werror,-Wincompatible-pointer-types]
      [2020/06/04 08:28:54.198]     static inline ret __wt_atomic_add##name(vp_arg, v_arg)       \
      [2020/06/04 08:28:54.198]                                             ^
      [2020/06/04 08:28:54.198]     static inline ret __wt_atomic_add##name(vp_arg, v_arg)       \
      [2020/06/04 08:28:54.198]                                             ^
      [2020/06/04 08:28:54.198]     (void)__wt_atomic_add64(&page->modify->bytes_dirty, size);
      [2020/06/04 08:28:54.198]                             ^~~~~~~~~~~~~~~~~~~~~~~~~~
      [2020/06/04 08:28:54.198]     (void)__wt_atomic_add64(&page->modify->bytes_dirty, size);
      [2020/06/04 08:28:54.198]                             ^~~~~~~~~~~~~~~~~~~~~~~~~~
      [2020/06/04 08:28:54.198] ../src/include/gcc.h:151:40: expanded from macro 'WT_ATOMIC_FUNC'note
      [2020/06/04 08:28:54.198] ../src/include/gcc.h:151:40: note: passing argument to parameter 'vp' here
      [2020/06/04 08:28:54.198]     static inline ret __wt_atomic_add##name(vp_arg, v_arg)       \
      [2020/06/04 08:28:54.198]                                             ^
      [2020/06/04 08:28:54.198] WT_ATOMIC_FUNC(64, uint64_t, uint64_t *vp, uint64_t v)
      [2020/06/04 08:28:54.198]                                        ^
      [2020/06/04 08:28:54.208] ../src/include/gcc.h:132:45: note: expanded from macro 'WT_ATOMIC_FUNC'
      [2020/06/04 08:28:54.208]     static inline ret __wt_atomic_add##name(vp_arg, v_arg)       \:
      [2020/06/04 08:28:54.208]                                             ^passing argument to parameter 'vp' here
      [2020/06/04 08:28:54.208] WT_ATOMIC_FUNC(64, uint64_t, uint64_t *vp, uint64_t v)
      [2020/06/04 08:28:54.208]                                        ^
      [2020/06/04 08:28:54.208] ../src/include/gcc.h:132:45: note: expanded from macro 'WT_ATOMIC_FUNC'
      [2020/06/04 08:28:54.208]     static inline ret __wt_atomic_add##name(vp_arg, v_arg)       \
      [2020/06/04 08:28:54.208]                                             ^
      [2020/06/04 08:28:54.279] 1 error generated.
      [2020/06/04 08:28:54.279] 1 error generated.
      [2020/06/04 08:28:54.279] 1 error generated.
      [2020/06/04 08:28:54.279] 1 error generated.
      [2020/06/04 08:28:54.279] 11 error generated.
      [2020/06/04 08:28:54.279]  error generated.
      [2020/06/04 08:28:54.279] 1 error generated.
      [2020/06/04 08:28:54.282] make[2]: *** [src/utilities/util_drop.o] Error 1
      [2020/06/04 08:28:54.282] make[2]: *** Waiting for unfinished jobs....
      [2020/06/04 08:28:54.282] make[2]: *** [src/utilities/util_downgrade.o] Error 1
      [2020/06/04 08:28:54.282] make[2]: *** [src/utilities/util_create.o] Error 1
      [2020/06/04 08:28:54.282] make[2]: *** [src/utilities/util_cpyright.o] Error 1
      [2020/06/04 08:28:54.282] make[2]: *** [src/utilities/util_alter.o] Error 1
      [2020/06/04 08:28:54.282] make[2]: *** [src/utilities/util_compact.o] Error 1
      [2020/06/04 08:28:54.288] make[2]: *** [src/utilities/util_backup.o] Error 1
      [2020/06/04 08:28:54.288] 1 error generated.
      [2020/06/04 08:28:54.288] make[2]: *** [src/utilities/util_dump.o] Error 1
      [2020/06/04 08:28:54.290] make[1]: *** [all-recursive] Error 1
      [2020/06/04 08:28:54.290] make: *** [all] Error 2 

            Assignee:
            chenhao.qu@mongodb.com Chenhao Qu
            Reporter:
            tammy.bailey@mongodb.com Tammy Bailey (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: