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

WiredTiger failing on OSX due to "implicit conversion loses integer precision"

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Duplicate
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None

      Description

      WiredTiger failing on OSX

       [2017/01/23 16:25:12.679] 	/bin/sh ../../../libtool  --tag=CC   --mode=compile cc -DHAVE_CONFIG_H -I. -I../../.. -I../../../api/leveldb  -I../../.. -I../../../src/include  -std=c11 -Weverything -Werror -Wno-cast-align -Wno-documentation-unknown-command -Wno-format-nonliteral -Wno-packed -Wno-padded -Wno-reserved-id-macro -Wno-zero-length-array -Wno-cast-qual -Wno-unknown-warning-option -O3 -g -MT fail_fs.lo -MD -MP -MF $depbase.Tpo -c -o fail_fs.lo fail_fs.c &&\
       [2017/01/23 16:25:12.679] 	mv -f $depbase.Tpo $depbase.Plo
       [2017/01/23 16:25:12.787] libtool: compile:  cc -DHAVE_CONFIG_H -I. -I../../.. -I../../../api/leveldb -I../../.. -I../../../src/include -std=c11 -Weverything -Werror -Wno-cast-align -Wno-documentation-unknown-command -Wno-format-nonliteral -Wno-packed -Wno-padded -Wno-reserved-id-macro -Wno-zero-length-array -Wno-cast-qual -Wno-unknown-warning-option -O3 -g -MT fail_fs.lo -MD -MP -MF .deps/fail_fs.Tpo -c fail_fs.c  -fno-common -DPIC -o .libs/fail_fs.o
       [2017/01/23 16:25:12.830] fail_fs.c:230:55: error: implicit conversion loses integer precision: 'ssize_t' (aka 'long') to 'int' [-Werror,-Wshorten-64-to-32]
       [2017/01/23 16:25:12.830]                             (uint64_t)offset, wtext->strerror(wtext, NULL, nr));
       [2017/01/23 16:25:12.830]                                               ~~~~~                        ^~
       [2017/01/23 16:25:12.831] fail_fs.c:333:55
       [2017/01/23 16:25:12.831] : error:
       [2017/01/23 16:25:12.831] implicit conversion loses integer precision: 'ssize_t' (aka 'long') to 'int' [-Werror,-Wshorten-64-to-32]
       [2017/01/23 16:25:12.831]                             (uint64_t)offset, wtext->strerror(wtext, NULL, nr));
       [2017/01/23 16:25:12.831]                                               ~~~~~                        ^~
       [2017/01/23 16:25:12.834] 2 errors generated.
       [2017/01/23 16:25:12.837] make[2]: *** [fail_fs.lo] Error 1
       [2017/01/23 16:25:12.838] make[1]:
       [2017/01/23 16:25:12.838] *** [all-recursive] Error 1
       [2017/01/23 16:25:12.838] make: *** [all] Error 2
       [2017/01/23 16:25:12.838] Command failed: exit status 2
       [2017/01/23 16:25:12.839] Task completed - FAILURE.
      

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              david.hows David Hows
              Reporter:
              david.hows David Hows
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: