Closed Bug 1879464 Opened 1 year ago Closed 1 year ago

Perma Linux x64 opt Bp-clang-trunk /builds/worker/workspace/obj-build/dist/include/nsCoord.h:91:30: error: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Werror,-Wshorten-64-to-32]

Categories

(Core :: Graphics, defect)

defect

Tracking

()

RESOLVED FIXED
124 Branch
Tracking Status
firefox124 --- fixed

People

(Reporter: intermittent-bug-filer, Assigned: glandium)

Details

(Keywords: intermittent-failure)

Attachments

(1 file, 1 obsolete file)

Filed by: sstanca [at] mozilla.com
Parsed log: https://treeherder.mozilla.org/logviewer?job_id=446597577&repo=mozilla-central
Full log: https://firefox-ci-tc.services.mozilla.com/api/queue/v1/task/OIV-DrshQ2GMsfdPG1dtvQ/runs/0/artifacts/public/logs/live_backing.log


[task 2024-02-09T03:18:26.508Z] 03:18:26     INFO -  gmake[4]: Leaving directory '/builds/worker/workspace/obj-build/config/external/icu/i18n'
[task 2024-02-09T03:18:26.526Z] 03:18:26     INFO -  gmake[4]: Entering directory '/builds/worker/workspace/obj-build/config/external/icu/i18n'
[task 2024-02-09T03:18:26.526Z] 03:18:26     INFO -  config/external/icu/i18n/erarules.o
[task 2024-02-09T03:18:26.526Z] 03:18:26     INFO -  gmake[4]: Leaving directory '/builds/worker/workspace/obj-build/config/external/icu/i18n'
[task 2024-02-09T03:18:26.987Z] 03:18:26     INFO -  gmake[4]: Entering directory '/builds/worker/workspace/obj-build/config/external/icu/common'
[task 2024-02-09T03:18:26.990Z] 03:18:26     INFO -  /builds/worker/fetches/clang/bin/clang++ --sysroot /builds/worker/fetches/sysroot-x86_64-linux-gnu -o uinit.o -c  -I/builds/worker/workspace/obj-build/dist/system_wrappers -include /builds/worker/checkouts/gecko/config/gcc_hidden.h -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -fstack-protector-strong -fstack-clash-protection -DNDEBUG=1 -DTRIMMED=1 -DU_COMMON_IMPLEMENTATION -DU_USING_ICU_NAMESPACE=0 -DU_NO_DEFAULT_INCLUDE_UTF_HEADERS=1 -DU_HIDE_OBSOLETE_UTF_OLD_H=1 -DUCONFIG_NO_LEGACY_CONVERSION -DUCONFIG_NO_TRANSLITERATION -DUCONFIG_NO_REGULAR_EXPRESSIONS -DUCONFIG_NO_BREAK_ITERATION -DU_CHARSET_IS_UTF8 -DUNISTR_FROM_CHAR_EXPLICIT=explicit -DUNISTR_FROM_STRING_EXPLICIT=explicit -DU_ENABLE_DYLOAD=0 -DU_HAVE_NL_LANGINFO_CODESET=0 -I/builds/worker/checkouts/gecko/config/external/icu/common -I/builds/worker/workspace/obj-build/config/external/icu/common -I/builds/worker/checkouts/gecko/intl/icu/source/i18n -I/builds/worker/workspace/obj-build/dist/include -I/builds/worker/workspace/obj-build/dist/include/nspr -I/builds/worker/workspace/obj-build/dist/include/nss -DMOZILLA_CLIENT -include /builds/worker/workspace/obj-build/mozilla-config.h -fno-sized-deallocation -fno-aligned-new -fno-exceptions -fPIC -fno-rtti -ffunction-sections -fdata-sections -fno-exceptions -fno-math-errno -pthread -pipe -gdwarf-4 -Xclang -load -Xclang /builds/worker/workspace/obj-build/build/clang-plugin/libclang-plugin.so -Xclang -add-plugin -Xclang moz-check -O2 -fno-omit-frame-pointer -funwind-tables -Wall -Wbitfield-enum-conversion -Wdeprecated-this-capture -Wempty-body -Wformat-type-confusion -Wignored-qualifiers -Wpointer-arith -Wshadow-field-in-constructor-modified -Wsign-compare -Wtautological-constant-in-range-compare -Wtype-limits -Wno-error=tautological-type-limit-compare -Wunreachable-code -Wunreachable-code-return -Wunused-but-set-parameter -Wno-invalid-offsetof -Wclass-varargs -Wempty-init-stmt -Wfloat-overflow-conversion -Wfloat-zero-conversion -Wloop-analysis -Wno-range-loop-analysis -Wc++2a-compat -Wenum-compare-conditional -Wenum-float-conversion -Wno-error=deprecated -Wno-error=deprecated-anon-enum-enum-conversion -Wno-error=deprecated-enum-enum-conversion -Wno-error=deprecated-pragma -Wno-error=deprecated-this-capture -Wcomma -Wimplicit-fallthrough -Wstring-conversion -Wno-inline-new-delete -Wno-error=deprecated-declarations -Wno-error=array-bounds -Wno-error=free-nonheap-object -Wno-error=atomic-alignment -Wno-error=deprecated-builtins -Wformat -Wformat-security -Wno-psabi -Wthread-safety -Wno-error=builtin-macro-redefined -Wno-vla-cxx-extension -Wno-unknown-warning-option -frtti -Wno-c++20-compat -Wno-comma -Wno-implicit-const-int-float-conversion -Wno-macro-redefined -Wno-microsoft-include -Wno-tautological-unsigned-enum-zero-compare -Wno-unreachable-code-loop-increment -Wno-unreachable-code-return -fno-strict-aliasing -ffp-contract=off  -MD -MP -MF .deps/uinit.o.pp   /builds/worker/checkouts/gecko/intl/icu/source/common/uinit.cpp
[task 2024-02-09T03:18:26.990Z] 03:18:26     INFO -  gmake[4]: Leaving directory '/builds/worker/workspace/obj-build/config/external/icu/common'
[task 2024-02-09T03:18:26.998Z] 03:18:26     INFO -  gmake[4]: Entering directory '/builds/worker/workspace/obj-build/config/external/icu/common'
[task 2024-02-09T03:18:26.998Z] 03:18:26     INFO -  gmake[4]: Leaving directory '/builds/worker/workspace/obj-build/config/external/icu/common'
[task 2024-02-09T03:18:27.017Z] 03:18:27     INFO -  gmake[4]: Entering directory '/builds/worker/workspace/obj-build/config/external/icu/common'
[task 2024-02-09T03:18:27.018Z] 03:18:27     INFO -  config/external/icu/common/uinvchar.o
[task 2024-02-09T03:18:27.018Z] 03:18:27     INFO -  gmake[4]: Leaving directory '/builds/worker/workspace/obj-build/config/external/icu/common'
[task 2024-02-09T03:18:27.061Z] 03:18:27     INFO -  gmake[4]: Entering directory '/builds/worker/workspace/obj-build/media/libaom'
[task 2024-02-09T03:18:27.064Z] 03:18:27     INFO -  /builds/worker/fetches/clang/bin/clang --sysroot /builds/worker/fetches/sysroot-x86_64-linux-gnu -std=gnu99 -o highbd_variance_sse2.o -c  -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -fstack-protector-strong -fstack-clash-protection -DNDEBUG=1 -DTRIMMED=1 -DMOZ_HAS_MOZGLUE -I/builds/worker/checkouts/gecko/media/libaom -I/builds/worker/workspace/obj-build/media/libaom -I/builds/worker/checkouts/gecko/media/libaom/config/linux/x64 -I/builds/worker/checkouts/gecko/media/libaom/config -I/builds/worker/checkouts/gecko/third_party/aom -I/builds/worker/workspace/obj-build/dist/include -I/builds/worker/workspace/obj-build/dist/include/nspr -I/builds/worker/workspace/obj-build/dist/include/nss -include /builds/worker/workspace/obj-build/mozilla-config.h -DMOZILLA_CLIENT -fPIC -ffunction-sections -fdata-sections -fno-math-errno -pthread -pipe -gdwarf-4 -Xclang -load -Xclang /builds/worker/workspace/obj-build/build/clang-plugin/libclang-plugin.so -Xclang -add-plugin -Xclang moz-check -O2 -fno-omit-frame-pointer -funwind-tables -Wall -Wbitfield-enum-conversion -Wempty-body -Wformat-type-confusion -Wignored-qualifiers -Wpointer-arith -Wshadow-field-in-constructor-modified -Wsign-compare -Wtautological-constant-in-range-compare -Wtype-limits -Wno-error=tautological-type-limit-compare -Wunreachable-code -Wunreachable-code-return -Wunused-but-set-parameter -Wclass-varargs -Wfloat-overflow-conversion -Wfloat-zero-conversion -Wloop-analysis -Wno-range-loop-analysis -Wenum-compare-conditional -Wenum-float-conversion -Wstring-conversion -Wno-error=deprecated-declarations -Wno-error=array-bounds -Wno-error=free-nonheap-object -Wno-error=atomic-alignment -Wno-error=deprecated-builtins -Wformat -Wformat-security -Werror=implicit-function-declaration -Wno-psabi -Wthread-safety -Wno-error=builtin-macro-redefined -Wno-unknown-warning-option -Wno-sign-compare -Wno-unused-function -Wno-unreachable-code -Wno-unneeded-internal-declaration -fno-strict-aliasing -ffp-contract=off  -MD -MP -MF .deps/highbd_variance_sse2.o.pp  -msse2 /builds/worker/checkouts/gecko/third_party/aom/aom_dsp/x86/highbd_variance_sse2.c
[task 2024-02-09T03:18:27.064Z] 03:18:27     INFO -  gmake[4]: Leaving directory '/builds/worker/workspace/obj-build/media/libaom'
[task 2024-02-09T03:18:27.077Z] 03:18:27     INFO -  gmake[4]: Entering directory '/builds/worker/workspace/obj-build/media/libaom'
[task 2024-02-09T03:18:27.077Z] 03:18:27     INFO -  gmake[4]: Leaving directory '/builds/worker/workspace/obj-build/media/libaom'
[task 2024-02-09T03:18:27.089Z] 03:18:27     INFO -  gmake[4]: Entering directory '/builds/worker/workspace/obj-build/media/libaom'
[task 2024-02-09T03:18:27.089Z] 03:18:27     INFO -  media/libaom/highbd_variance_sse4.o
[task 2024-02-09T03:18:27.090Z] 03:18:27     INFO -  gmake[4]: Leaving directory '/builds/worker/workspace/obj-build/media/libaom'
[task 2024-02-09T03:18:27.788Z] 03:18:27     INFO -  gmake[4]: Entering directory '/builds/worker/workspace/obj-build/dom/canvas'
[task 2024-02-09T03:18:27.793Z] 03:18:27     INFO -  /builds/worker/fetches/clang/bin/clang++ --sysroot /builds/worker/fetches/sysroot-x86_64-linux-gnu -o ImageUtils.o -c  -I/builds/worker/workspace/obj-build/dist/stl_wrappers -I/builds/worker/workspace/obj-build/dist/system_wrappers -include /builds/worker/checkouts/gecko/config/gcc_hidden.h -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -fstack-protector-strong -fstack-clash-protection -DNDEBUG=1 -DTRIMMED=1 -DMOZ_HAS_MOZGLUE -DMOZILLA_INTERNAL_API -DIMPL_LIBXUL -DSTATIC_EXPORTABLE_JS_API -I/builds/worker/checkouts/gecko/dom/canvas -I/builds/worker/workspace/obj-build/dom/canvas -I/builds/worker/checkouts/gecko/js/xpconnect/wrappers -I/builds/worker/workspace/obj-build/ipc/ipdl/_ipdlheaders -I/builds/worker/checkouts/gecko/ipc/chromium/src -I/builds/worker/checkouts/gecko/dom/base -I/builds/worker/checkouts/gecko/dom/html -I/builds/worker/checkouts/gecko/dom/svg -I/builds/worker/checkouts/gecko/dom/workers -I/builds/worker/checkouts/gecko/dom/xul -I/builds/worker/checkouts/gecko/gfx/angle/checkout/include -I/builds/worker/checkouts/gecko/gfx/cairo/cairo/src -I/builds/worker/checkouts/gecko/gfx/gl -I/builds/worker/checkouts/gecko/image -I/builds/worker/checkouts/gecko/js/xpconnect/src -I/builds/worker/checkouts/gecko/layout/generic -I/builds/worker/checkouts/gecko/layout/style -I/builds/worker/checkouts/gecko/layout/xul -I/builds/worker/checkouts/gecko/media/libyuv/libyuv/include -I/builds/worker/checkouts/gecko/gfx/skia -I/builds/worker/checkouts/gecko/gfx/skia/skia -I/builds/worker/workspace/obj-build/dist/include -I/builds/worker/workspace/obj-build/dist/include/nspr -I/builds/worker/workspace/obj-build/dist/include/nss -DMOZILLA_CLIENT -include /builds/worker/workspace/obj-build/mozilla-config.h -fno-sized-deallocation -fno-aligned-new -fno-exceptions -fPIC -fno-rtti -ffunction-sections -fdata-sections -fno-exceptions -fno-math-errno -pthread -pipe -gdwarf-4 -Xclang -load -Xclang /builds/worker/workspace/obj-build/build/clang-plugin/libclang-plugin.so -Xclang -add-plugin -Xclang moz-check -O2 -fno-omit-frame-pointer -funwind-tables -Werror -Wall -Wbitfield-enum-conversion -Wdeprecated-this-capture -Wempty-body -Wformat-type-confusion -Wignored-qualifiers -Wpointer-arith -Wshadow-field-in-constructor-modified -Wsign-compare -Wtautological-constant-in-range-compare -Wtype-limits -Wno-error=tautological-type-limit-compare -Wunreachable-code -Wunreachable-code-return -Wunused-but-set-parameter -Wno-invalid-offsetof -Wclass-varargs -Wempty-init-stmt -Wfloat-overflow-conversion -Wfloat-zero-conversion -Wloop-analysis -Wno-range-loop-analysis -Wc++2a-compat -Wenum-compare-conditional -Wenum-float-conversion -Wno-error=deprecated -Wno-error=deprecated-anon-enum-enum-conversion -Wno-error=deprecated-enum-enum-conversion -Wno-error=deprecated-pragma -Wno-error=deprecated-this-capture -Wcomma -Wimplicit-fallthrough -Wstring-conversion -Wno-inline-new-delete -Wno-error=deprecated-declarations -Wno-error=array-bounds -Wno-error=free-nonheap-object -Wno-error=atomic-alignment -Wno-error=deprecated-builtins -Wformat -Wformat-security -Wno-psabi -Wthread-safety -Wno-error=builtin-macro-redefined -Wno-vla-cxx-extension -Wno-unknown-warning-option -I/builds/worker/fetches/sysroot-x86_64-linux-gnu/usr/include/gtk-3.0 -I/builds/worker/fetches/sysroot-x86_64-linux-gnu/usr/include/pango-1.0 -I/builds/worker/fetches/sysroot-x86_64-linux-gnu/usr/include/glib-2.0 -I/builds/worker/fetches/sysroot-x86_64-linux-gnu/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/builds/worker/fetches/sysroot-x86_64-linux-gnu/usr/include -I/builds/worker/fetches/sysroot-x86_64-linux-gnu/usr/include/cairo -I/builds/worker/fetches/sysroot-x86_64-linux-gnu/usr/include/pixman-1 -I/builds/worker/fetches/sysroot-x86_64-linux-gnu/usr/include/freetype2 -I/builds/worker/fetches/sysroot-x86_64-linux-gnu/usr/include/libpng12 -I/builds/worker/fetches/sysroot-x86_64-linux-gnu/usr/include/gdk-pixbuf-2.0 -I/builds/worker/fetches/sysroot-x86_64-linux-gnu/usr/include/gio-unix-2.0/ -I/builds/worker/fetches/sysroot-x86_64-linux-gnu/usr/include/harfbuzz -I/builds/worker/fetches/sysroot-x86_64-linux-gnu/usr/include/atk-1.0 -I/builds/worker/fetches/sysroot-x86_64-linux-gnu/usr/include/at-spi2-atk/2.0 -I/builds/worker/fetches/sysroot-x86_64-linux-gnu/usr/include/at-spi-2.0 -I/builds/worker/fetches/sysroot-x86_64-linux-gnu/usr/include/dbus-1.0 -I/builds/worker/fetches/sysroot-x86_64-linux-gnu/usr/lib/x86_64-linux-gnu/dbus-1.0/include -I/builds/worker/fetches/sysroot-x86_64-linux-gnu/usr/include/gtk-3.0/unix-print -pthread -Werror=implicit-int-conversion -Werror=switch -fno-strict-aliasing -ffp-contract=off  -MD -MP -MF .deps/ImageUtils.o.pp   /builds/worker/checkouts/gecko/dom/canvas/ImageUtils.cpp
[task 2024-02-09T03:18:27.793Z] 03:18:27     INFO -  In file included from /builds/worker/checkouts/gecko/dom/canvas/ImageUtils.cpp:9:
[task 2024-02-09T03:18:27.794Z] 03:18:27     INFO -  In file included from /builds/worker/workspace/obj-build/dist/include/ImageContainer.h:21:
[task 2024-02-09T03:18:27.794Z] 03:18:27     INFO -  In file included from /builds/worker/workspace/obj-build/dist/include/mozilla/layers/LayersTypes.h:15:
[task 2024-02-09T03:18:27.794Z] 03:18:27     INFO -  In file included from /builds/worker/workspace/obj-build/dist/include/Units.h:18:
[task 2024-02-09T03:18:27.794Z] 03:18:27     INFO -  In file included from /builds/worker/workspace/obj-build/dist/include/nsMargin.h:10:
[task 2024-02-09T03:18:27.795Z] 03:18:27    ERROR -  /builds/worker/workspace/obj-build/dist/include/nsCoord.h:91:30: error: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Werror,-Wshorten-64-to-32]
[task 2024-02-09T03:18:27.795Z] 03:18:27     INFO -     91 |   div_t result = div(aSpace, aN);
[task 2024-02-09T03:18:27.795Z] 03:18:27     INFO -        |                  ~~~         ^~
[task 2024-02-09T03:18:27.795Z] 03:18:27    ERROR -  /builds/worker/workspace/obj-build/dist/include/nsCoord.h:97:45: error: implicit conversion loses integer precision: 'int64_t' (aka 'long') to 'nscoord' (aka 'int') [-Werror,-Wshorten-64-to-32]
[task 2024-02-09T03:18:27.796Z] 03:18:27     INFO -     97 |   return (int64_t(aMult1) * int64_t(aMult2) / int64_t(aDiv));
[task 2024-02-09T03:18:27.796Z] 03:18:27     INFO -        |   ~~~~~~  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~
[task 2024-02-09T03:18:27.797Z] 03:18:27     INFO -  In file included from /builds/worker/checkouts/gecko/dom/canvas/ImageUtils.cpp:9:
[task 2024-02-09T03:18:27.797Z] 03:18:27     INFO -  In file included from /builds/worker/workspace/obj-build/dist/include/ImageContainer.h:21:
[task 2024-02-09T03:18:27.798Z] 03:18:27     INFO -  In file included from /builds/worker/workspace/obj-build/dist/include/mozilla/layers/LayersTypes.h:15:
[task 2024-02-09T03:18:27.798Z] 03:18:27     INFO -  In file included from /builds/worker/workspace/obj-build/dist/include/Units.h:20:
[task 2024-02-09T03:18:27.799Z] 03:18:27     INFO -  In file included from /builds/worker/workspace/obj-build/dist/include/nsRegion.h:16:
[task 2024-02-09T03:18:27.799Z] 03:18:27     INFO -  In file included from /builds/worker/workspace/obj-build/dist/include/mozilla/ArrayView.h:9:
[task 2024-02-09T03:18:27.800Z] 03:18:27     INFO -  In file included from /builds/worker/workspace/obj-build/dist/include/nsTArray.h:3374:
[task 2024-02-09T03:18:27.800Z] 03:18:27    ERROR -  /builds/worker/workspace/obj-build/dist/include/nsTArray-inl.h:178:25: error: implicit conversion loses integer precision: 'size_type' (aka 'unsigned long') to 'uint32_t' (aka 'unsigned int') [-Werror,-Wshorten-64-to-32]
[task 2024-02-09T03:18:27.801Z] 03:18:27     INFO -    178 |     header->mCapacity = aCapacity;
[task 2024-02-09T03:18:27.802Z] 03:18:27     INFO -        |                       ~ ^~~~~~~~~
[task 2024-02-09T03:18:27.802Z] 03:18:27    ERROR -  /builds/worker/workspace/obj-build/dist/include/nsTArray-inl.h:230:23: error: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uint32_t' (aka 'unsigned int') [-Werror,-Wshorten-64-to-32]
[task 2024-02-09T03:18:27.803Z] 03:18:27     INFO -    230 |   header->mCapacity = newCapacity;
[task 2024-02-09T03:18:27.803Z] 03:18:27     INFO -        |                     ~ ^~~~~~~~~~~
[task 2024-02-09T03:18:27.804Z] 03:18:27     INFO -  In file included from /builds/worker/checkouts/gecko/dom/canvas/ImageUtils.cpp:9:
[task 2024-02-09T03:18:27.804Z] 03:18:27     INFO -  In file included from /builds/worker/workspace/obj-build/dist/include/ImageContainer.h:22:
[task 2024-02-09T03:18:27.805Z] 03:18:27     INFO -  In file included from /builds/worker/workspace/obj-build/dist/include/mozilla/layers/CompositorTypes.h:16:
[task 2024-02-09T03:18:27.805Z] 03:18:27     INFO -  In file included from /builds/worker/workspace/obj-build/dist/include/mozilla/layers/SyncObject.h:10:
[task 2024-02-09T03:18:27.806Z] 03:18:27    ERROR -  /builds/worker/workspace/obj-build/dist/include/mozilla/gfx/FileHandleWrapper.h:32:3: error: implicit conversion loses integer precision: 'nsrefcnt' (aka 'unsigned long') to 'MozExternalRefCountType' (aka 'unsigned int') [-Werror,-Wshorten-64-to-32]
[task 2024-02-09T03:18:27.807Z] 03:18:27     INFO -     32 |   NS_INLINE_DECL_THREADSAFE_REFCOUNTING(FileHandleWrapper);
[task 2024-02-09T03:18:27.807Z] 03:18:27     INFO -        |   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[task 2024-02-09T03:18:27.808Z] 03:18:27     INFO -  /builds/worker/workspace/obj-build/dist/include/nsISupportsImpl.h:728:3: note: expanded from macro 'NS_INLINE_DECL_THREADSAFE_REFCOUNTING'
[task 2024-02-09T03:18:27.808Z] 03:18:27     INFO -    728 |   NS_INLINE_DECL_THREADSAFE_REFCOUNTING_WITH_DESTROY(_class, delete (this), \
[task 2024-02-09T03:18:27.809Z] 03:18:27     INFO -        |   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[task 2024-02-09T03:18:27.809Z] 03:18:27     INFO -    729 |                                                      __VA_ARGS__)
[task 2024-02-09T03:18:27.810Z] 03:18:27     INFO -        |                                                      ~~~~~~~~~~~~
[task 2024-02-09T03:18:27.810Z] 03:18:27     INFO -  /builds/worker/workspace/obj-build/dist/include/nsISupportsImpl.h:706:3: note: expanded from macro 'NS_INLINE_DECL_THREADSAFE_REFCOUNTING_WITH_DESTROY'
[task 2024-02-09T03:18:27.811Z] 03:18:27     INFO -    706 |   NS_INLINE_DECL_THREADSAFE_REFCOUNTING_META(_class, NS_METHOD_, _destroy,   \
[task 2024-02-09T03:18:27.811Z] 03:18:27     INFO -        |   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[task 2024-02-09T03:18:27.811Z] 03:18:27     INFO -    707 |                                              __VA_ARGS__)
[task 2024-02-09T03:18:27.811Z] 03:18:27     INFO -        |                                              ~~~~~~~~~~~~
[task 2024-02-09T03:18:27.811Z] 03:18:27     INFO -  /builds/worker/workspace/obj-build/dist/include/nsISupportsImpl.h:674:12: note: expanded from macro 'NS_INLINE_DECL_THREADSAFE_REFCOUNTING_META'
[task 2024-02-09T03:18:27.811Z] 03:18:27     INFO -    674 |     return (nsrefcnt)count;                                                 \
[task 2024-02-09T03:18:27.811Z] 03:18:27     INFO -        |     ~~~~~~ ^~~~~~~~~~~~~~~
[task 2024-02-09T03:18:27.812Z] 03:18:27     INFO -  In file included from /builds/worker/checkouts/gecko/dom/canvas/ImageUtils.cpp:9:
[task 2024-02-09T03:18:27.812Z] 03:18:27     INFO -  In file included from /builds/worker/workspace/obj-build/dist/include/ImageContainer.h:22:
[task 2024-02-09T03:18:27.812Z] 03:18:27     INFO -  In file included from /builds/worker/workspace/obj-build/dist/include/mozilla/layers/CompositorTypes.h:16:
[task 2024-02-09T03:18:27.812Z] 03:18:27     INFO -  In file included from /builds/worker/workspace/obj-build/dist/include/mozilla/layers/SyncObject.h:10:
[task 2024-02-09T03:18:27.812Z] 03:18:27    ERROR -  /builds/worker/workspace/obj-build/dist/include/mozilla/gfx/FileHandleWrapper.h:32:3: error: implicit conversion loses integer precision: 'nsrefcnt' (aka 'unsigned long') to 'MozExternalRefCountType' (aka 'unsigned int') [-Werror,-Wshorten-64-to-32]
[task 2024-02-09T03:18:27.812Z] 03:18:27     INFO -     32 |   NS_INLINE_DECL_THREADSAFE_REFCOUNTING(FileHandleWrapper);
[task 2024-02-09T03:18:27.813Z] 03:18:27     INFO -        |   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[task 2024-02-09T03:18:27.813Z] 03:18:27     INFO -  /builds/worker/workspace/obj-build/dist/include/nsISupportsImpl.h:728:3: note: expanded from macro 'NS_INLINE_DECL_THREADSAFE_REFCOUNTING'
[task 2024-02-09T03:18:27.813Z] 03:18:27     INFO -    728 |   NS_INLINE_DECL_THREADSAFE_REFCOUNTING_WITH_DESTROY(_class, delete (this), \
[task 2024-02-09T03:18:27.813Z] 03:18:27     INFO -        |   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[task 2024-02-09T03:18:27.813Z] 03:18:27     INFO -    729 |                                                      __VA_ARGS__)
[task 2024-02-09T03:18:27.813Z] 03:18:27     INFO -        |                                                      ~~~~~~~~~~~~
[task 2024-02-09T03:18:27.813Z] 03:18:27     INFO -  /builds/worker/workspace/obj-build/dist/include/nsISupportsImpl.h:706:3: note: expanded from macro 'NS_INLINE_DECL_THREADSAFE_REFCOUNTING_WITH_DESTROY'
[task 2024-02-09T03:18:27.813Z] 03:18:27     INFO -    706 |   NS_INLINE_DECL_THREADSAFE_REFCOUNTING_META(_class, NS_METHOD_, _destroy,   \
[task 2024-02-09T03:18:27.813Z] 03:18:27     INFO -        |   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[task 2024-02-09T03:18:27.813Z] 03:18:27     INFO -    707 |                                              __VA_ARGS__)
[task 2024-02-09T03:18:27.813Z] 03:18:27     INFO -        |                                              ~~~~~~~~~~~~
[task 2024-02-09T03:18:27.813Z] 03:18:27     INFO -  /builds/worker/workspace/obj-build/dist/include/nsISupportsImpl.h:684:12: note: expanded from macro 'NS_INLINE_DECL_THREADSAFE_REFCOUNTING_META'
[task 2024-02-09T03:18:27.813Z] 03:18:27     INFO -    684 |     return count;                                                           \
[task 2024-02-09T03:18:27.813Z] 03:18:27     INFO -        |     ~~~~~~ ^~~~~
[task 2024-02-09T03:18:27.813Z] 03:18:27     INFO -  In file included from /builds/worker/checkouts/gecko/dom/canvas/ImageUtils.cpp:9:
[task 2024-02-09T03:18:27.813Z] 03:18:27     INFO -  In file included from /builds/worker/workspace/obj-build/dist/include/ImageContainer.h:30:
<...>
[task 2024-02-09T03:18:27.878Z] 03:18:27    ERROR -  /builds/worker/workspace/obj-build/dist/include/ImageContainer.h:276:3: error: implicit conversion loses integer precision: 'nsrefcnt' (aka 'unsigned long') to 'MozExternalRefCountType' (aka 'unsigned int') [-Werror,-Wshorten-64-to-32]
[task 2024-02-09T03:18:27.878Z] 03:18:27     INFO -    276 |   NS_INLINE_DECL_THREADSAFE_REFCOUNTING(ImageContainerListener)
[task 2024-02-09T03:18:27.879Z] 03:18:27     INFO -        |   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[task 2024-02-09T03:18:27.879Z] 03:18:27     INFO -  /builds/worker/workspace/obj-build/dist/include/nsISupportsImpl.h:728:3: note: expanded from macro 'NS_INLINE_DECL_THREADSAFE_REFCOUNTING'
[task 2024-02-09T03:18:27.879Z] 03:18:27     INFO -    728 |   NS_INLINE_DECL_THREADSAFE_REFCOUNTING_WITH_DESTROY(_class, delete (this), \
[task 2024-02-09T03:18:27.879Z] 03:18:27     INFO -        |   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[task 2024-02-09T03:18:27.880Z] 03:18:27     INFO -    729 |                                                      __VA_ARGS__)
[task 2024-02-09T03:18:27.880Z] 03:18:27     INFO -        |                                                      ~~~~~~~~~~~~
[task 2024-02-09T03:18:27.880Z] 03:18:27     INFO -  /builds/worker/workspace/obj-build/dist/include/nsISupportsImpl.h:706:3: note: expanded from macro 'NS_INLINE_DECL_THREADSAFE_REFCOUNTING_WITH_DESTROY'
[task 2024-02-09T03:18:27.880Z] 03:18:27     INFO -    706 |   NS_INLINE_DECL_THREADSAFE_REFCOUNTING_META(_class, NS_METHOD_, _destroy,   \
[task 2024-02-09T03:18:27.881Z] 03:18:27     INFO -        |   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[task 2024-02-09T03:18:27.881Z] 03:18:27     INFO -    707 |                                              __VA_ARGS__)
[task 2024-02-09T03:18:27.881Z] 03:18:27     INFO -        |                                              ~~~~~~~~~~~~
[task 2024-02-09T03:18:27.881Z] 03:18:27     INFO -  /builds/worker/workspace/obj-build/dist/include/nsISupportsImpl.h:674:12: note: expanded from macro 'NS_INLINE_DECL_THREADSAFE_REFCOUNTING_META'
[task 2024-02-09T03:18:27.882Z] 03:18:27     INFO -    674 |     return (nsrefcnt)count;                                                 \
[task 2024-02-09T03:18:27.882Z] 03:18:27     INFO -        |     ~~~~~~ ^~~~~~~~~~~~~~~
[task 2024-02-09T03:18:27.882Z] 03:18:27     INFO -  fatal error: too many errors emitted, stopping now [-ferror-limit=]
[task 2024-02-09T03:18:27.882Z] 03:18:27     INFO -  20 errors generated.
[task 2024-02-09T03:18:27.882Z] 03:18:27    ERROR -  gmake[4]: *** [/builds/worker/checkouts/gecko/config/rules.mk:689: ImageUtils.o] Error 1
[task 2024-02-09T03:18:27.883Z] 03:18:27     INFO -  gmake[4]: Leaving directory '/builds/worker/workspace/obj-build/dom/canvas'
[task 2024-02-09T03:18:27.883Z] 03:18:27     INFO -  gmake[4]: Entering directory '/builds/worker/workspace/obj-build/dom/canvas'
[task 2024-02-09T03:18:27.883Z] 03:18:27     INFO -  dom/canvas/MurmurHash3.o
[task 2024-02-09T03:18:27.883Z] 03:18:27     INFO -  gmake[4]: Leaving directory '/builds/worker/workspace/obj-build/dom/canvas'
[task 2024-02-09T03:18:27.917Z] 03:18:27     INFO -  gmake[4]: Entering directory '/builds/worker/workspace/obj-build/media/libaom'
[task 2024-02-09T03:18:27.919Z] 03:18:27     INFO -  /builds/worker/fetches/clang/bin/clang --sysroot /builds/worker/fetches/sysroot-x86_64-linux-gnu -std=gnu99 -o highbd_variance_sse4.o -c  -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -fstack-protector-strong -fstack-clash-protection -DNDEBUG=1 -DTRIMMED=1 -DMOZ_HAS_MOZGLUE -I/builds/worker/checkouts/gecko/media/libaom -I/builds/worker/workspace/obj-build/media/libaom -I/builds/worker/checkouts/gecko/media/libaom/config/linux/x64 -I/builds/worker/checkouts/gecko/media/libaom/config -I/builds/worker/checkouts/gecko/third_party/aom -I/builds/worker/workspace/obj-build/dist/include -I/builds/worker/workspace/obj-build/dist/include/nspr -I/builds/worker/workspace/obj-build/dist/include/nss -include /builds/worker/workspace/obj-build/mozilla-config.h -DMOZILLA_CLIENT -fPIC -ffunction-sections -fdata-sections -fno-math-errno -pthread -pipe -gdwarf-4 -Xclang -load -Xclang /builds/worker/workspace/obj-build/build/clang-plugin/libclang-plugin.so -Xclang -add-plugin -Xclang moz-check -O2 -fno-omit-frame-pointer -funwind-tables -Wall -Wbitfield-enum-conversion -Wempty-body -Wformat-type-confusion -Wignored-qualifiers -Wpointer-arith -Wshadow-field-in-constructor-modified -Wsign-compare -Wtautological-constant-in-range-compare -Wtype-limits -Wno-error=tautological-type-limit-compare -Wunreachable-code -Wunreachable-code-return -Wunused-but-set-parameter -Wclass-varargs -Wfloat-overflow-conversion -Wfloat-zero-conversion -Wloop-analysis -Wno-range-loop-analysis -Wenum-compare-conditional -Wenum-float-conversion -Wstring-conversion -Wno-error=deprecated-declarations -Wno-error=array-bounds -Wno-error=free-nonheap-object -Wno-error=atomic-alignment -Wno-error=deprecated-builtins -Wformat -Wformat-security -Werror=implicit-function-declaration -Wno-psabi -Wthread-safety -Wno-error=builtin-macro-redefined -Wno-unknown-warning-option -Wno-sign-compare -Wno-unused-function -Wno-unreachable-code -Wno-unneeded-internal-declaration -fno-strict-aliasing -ffp-contract=off  -MD -MP -MF .deps/highbd_variance_sse4.o.pp  -msse4.1 /builds/worker/checkouts/gecko/third_party/aom/aom_dsp/x86/highbd_variance_sse4.c
[task 2024-02-09T03:18:27.919Z] 03:18:27     INFO -  gmake[4]: Leaving directory '/builds/worker/workspace/obj-build/media/libaom'
[task 2024-02-09T03:18:27.921Z] 03:18:27     INFO -  gmake[4]: Entering directory '/builds/worker/workspace/obj-build/config/external/icu/i18n'
[task 2024-02-09T03:18:27.924Z] 03:18:27     INFO -  /builds/worker/fetches/clang/bin/clang++ --sysroot /builds/worker/fetches/sysroot-x86_64-linux-gnu -o erarules.o -c  -I/builds/worker/workspace/obj-build/dist/system_wrappers -include /builds/worker/checkouts/gecko/config/gcc_hidden.h -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -fstack-protector-strong -fstack-clash-protection -DNDEBUG=1 -DTRIMMED=1 -DU_I18N_IMPLEMENTATION -DU_USING_ICU_NAMESPACE=0 -DU_NO_DEFAULT_INCLUDE_UTF_HEADERS=1 -DU_HIDE_OBSOLETE_UTF_OLD_H=1 -DUCONFIG_NO_LEGACY_CONVERSION -DUCONFIG_NO_TRANSLITERATION -DUCONFIG_NO_REGULAR_EXPRESSIONS -DUCONFIG_NO_BREAK_ITERATION -DU_CHARSET_IS_UTF8 -DUNISTR_FROM_CHAR_EXPLICIT=explicit -DUNISTR_FROM_STRING_EXPLICIT=explicit -DU_ENABLE_DYLOAD=0 -DU_HAVE_NL_LANGINFO_CODESET=0 -I/builds/worker/checkouts/gecko/config/external/icu/i18n -I/builds/worker/workspace/obj-build/config/external/icu/i18n -I/builds/worker/checkouts/gecko/intl/icu/source/common -I/builds/worker/checkouts/gecko/mfbt/double-conversion -I/builds/worker/workspace/obj-build/dist/include -I/builds/worker/workspace/obj-build/dist/include/nspr -I/builds/worker/workspace/obj-build/dist/include/nss -DMOZILLA_CLIENT -include /builds/worker/workspace/obj-build/mozilla-config.h -fno-sized-deallocation -fno-aligned-new -fno-exceptions -fPIC -fno-rtti -ffunction-sections -fdata-sections -fno-exceptions -fno-math-errno -pthread -pipe -gdwarf-4 -Xclang -load -Xclang /builds/worker/workspace/obj-build/build/clang-plugin/libclang-plugin.so -Xclang -add-plugin -Xclang moz-check -O2 -fno-omit-frame-pointer -funwind-tables -Wall -Wbitfield-enum-conversion -Wdeprecated-this-capture -Wempty-body -Wformat-type-confusion -Wignored-qualifiers -Wpointer-arith -Wshadow-field-in-constructor-modified -Wsign-compare -Wtautological-constant-in-range-compare -Wtype-limits -Wno-error=tautological-type-limit-compare -Wunreachable-code -Wunreachable-code-return -Wunused-but-set-parameter -Wno-invalid-offsetof -Wclass-varargs -Wempty-init-stmt -Wfloat-overflow-conversion -Wfloat-zero-conversion -Wloop-analysis -Wno-range-loop-analysis -Wc++2a-compat -Wenum-compare-conditional -Wenum-float-conversion -Wno-error=deprecated -Wno-error=deprecated-anon-enum-enum-conversion -Wno-error=deprecated-enum-enum-conversion -Wno-error=deprecated-pragma -Wno-error=deprecated-this-capture -Wcomma -Wimplicit-fallthrough -Wstring-conversion -Wno-inline-new-delete -Wno-error=deprecated-declarations -Wno-error=array-bounds -Wno-error=free-nonheap-object -Wno-error=atomic-alignment -Wno-error=deprecated-builtins -Wformat -Wformat-security -Wno-psabi -Wthread-safety -Wno-error=builtin-macro-redefined -Wno-vla-cxx-extension -Wno-unknown-warning-option -frtti -Wno-c++20-compat -Wno-comma -Wno-implicit-const-int-float-conversion -Wno-macro-redefined -Wno-microsoft-include -Wno-tautological-unsigned-enum-zero-compare -Wno-unreachable-code-loop-increment -Wno-unreachable-code-return -fno-strict-aliasing -ffp-contract=off  -MD -MP -MF .deps/erarules.o.pp   /builds/worker/checkouts/gecko/intl/icu/source/i18n/erarules.cpp
[task 2024-02-09T03:18:27.924Z] 03:18:27     INFO -  gmake[4]: Leaving directory '/builds/worker/workspace/obj-build/config/external/icu/i18n'
[task 2024-02-09T03:18:27.930Z] 03:18:27     INFO -  gmake[4]: Entering directory '/builds/worker/workspace/obj-build/media/libaom'
[task 2024-02-09T03:18:27.930Z] 03:18:27     INFO -  gmake[4]: Leaving directory '/builds/worker/workspace/obj-build/media/libaom'
[task 2024-02-09T03:18:27.938Z] 03:18:27     INFO -  gmake[4]: Entering directory '/builds/worker/workspace/obj-build/config/external/icu/i18n'
[task 2024-02-09T03:18:27.938Z] 03:18:27     INFO -  gmake[4]: Leaving directory '/builds/worker/workspace/obj-build/config/external/icu/i18n'
[task 2024-02-09T03:18:27.946Z] 03:18:27     INFO -  gmake[4]: Entering directory '/builds/worker/workspace/obj-build/media/libaom'
[task 2024-02-09T03:18:27.946Z] 03:18:27     INFO -  media/libaom/intrapred_avx2.o
Severity: S4 → --
Priority: P5 → --
Summary: Intermittent Linux x64 opt Bp-clang-trunk /builds/worker/workspace/obj-build/dist/include/nsCoord.h:91:30: error: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Werror,-Wshorten-64-to-32] → Perma Linux x64 opt Bp-clang-trunk /builds/worker/workspace/obj-build/dist/include/nsCoord.h:91:30: error: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Werror,-Wshorten-64-to-32]

clang 19 is making -Wshorten-64-to-32 enabled by
-Wimplicit-int-conversion. This returns to the error level we could
handle up to clang 18.

Assignee: nobody → mh+mozilla
Status: NEW → ASSIGNED

This requires 3 steps:

  • disable the warning on nss
  • change a few internal API in memory/build
  • add some MOZ_ASSERT before forcing the conversion
Pushed by mh@glandium.org: https://hg.mozilla.org/integration/autoland/rev/1580a8901b8d Disable -Wshorten-64-to-32 when making implicit-int-conversion an error. r=firefox-build-system-reviewers,ahochheiden
Status: ASSIGNED → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Target Milestone: --- → 124 Branch

Comment on attachment 9379482 [details]
Bug 1879464 - Make mozilla-central compatible with -Wshorten-64-to-32 r=glandium

Revision D201376 was moved to bug 1883410. Setting attachment 9379482 [details] to obsolete.

Attachment #9379482 - Attachment is obsolete: true
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: