[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: [tor-bugs] #25420 [Applications/Tor Browser]: Update gcc to 6.4.0 (Windows)



#25420: Update gcc to 6.4.0 (Windows)
-------------------------------------------------+-------------------------
 Reporter:  boklm                                |          Owner:  tbb-
                                                 |  team
     Type:  task                                 |         Status:  new
 Priority:  Medium                               |      Milestone:
Component:  Applications/Tor Browser             |        Version:
 Severity:  Normal                               |     Resolution:
 Keywords:  tbb-rbm, TorBrowserTeam201803,       |  Actual Points:
  boklm201803                                    |
Parent ID:                                       |         Points:
 Reviewer:                                       |        Sponsor:
-------------------------------------------------+-------------------------

Comment (by boklm):

 I started a patch for this in branch `bug_25420`:
 https://gitweb.torproject.org/user/boklm/tor-browser-
 build.git/commit/?h=bug_25420&id=318ab85316b5d2d29084f5c1f9235c8909f8c1b6

 Building firefox using mingw and gcc 6.4.0 fails with the following error:
 {{{
 /var/tmp/dist/mingw-w64/helpers/i686-w64-mingw32-g++ -std=gnu++11
 -mwindows -o Unified_cpp_media_platforms_wmf0.o -c -I/var/tmp/build
 /firefox-8ee6fdadea2a/obj-mingw/dist
 /stl_wrappers  -DNDEBUG=1 -DTRIMMED=1 -DWIN32_LEAN_AND_MEAN -D_WIN32
 -DWIN32 -D_CRT_RAND_S -DCERT_CHAIN_PARA_HAS_EXTRA_FIELDS -DOS_WIN=1
 -D_UNICODE -DCHROMIUM_BUILD -DU_
 STATIC_IMPLEMENTATION -DUNICODE -D_WINDOWS -D_SECURE_ATL
 -DSTATIC_EXPORTABLE_JS_API -DMOZ_HAS_MOZGLUE -DMOZILLA_INTERNAL_API
 -DIMPL_LIBXUL -I/var/tmp/build/firefox-8ee6f
 dadea2a/dom/media/platforms/wmf -I/var/tmp/build/firefox-8ee6fdadea2a/obj-
 mingw/dom/media/platforms/wmf -I/var/tmp/build/firefox-8ee6fdadea2a/obj-
 mingw/ipc/ipdl/_ipdlhea
 ders -I/var/tmp/build/firefox-8ee6fdadea2a/ipc/chromium/src
 -I/var/tmp/build/firefox-8ee6fdadea2a/ipc/glue -I/var/tmp/build/firefox-
 8ee6fdadea2a/obj-mingw/dist/include
 -I/var/tmp/build/firefox-8ee6fdadea2a/obj-mingw/dist/include/nspr
 -I/var/tmp/build/firefox-8ee6fdadea2a/obj-mingw/dist/include/nss
 -DMOZILLA_CLIENT -include /var
 /tmp/build/firefox-8ee6fdadea2a/obj-mingw/mozilla-config.h -MD -MP -MF
 .deps/Unified_cpp_media_platforms_wmf0.o.pp  -Wall -Wc++11-compat -Wempty-
 body -Wignored-qualifier
 s -Woverloaded-virtual -Wpointer-arith -Wsign-compare -Wtype-limits
 -Wunreachable-code -Wwrite-strings -Wno-invalid-offsetof -Wc++14-compat
 -Wno-error=maybe-uninitialize
 d -Wno-error=deprecated-declarations -Wno-error=array-bounds -Wno-format
 -fno-lifetime-dse -fno-exceptions -fno-strict-aliasing -mms-bitfields
 -mstackrealign -fno-keep-i
 nline-dllexport -fno-rtti -fno-exceptions -fno-math-errno -pipe  -g -O
 -fno-omit-frame-pointer   -I/var/tmp/build/firefox-8ee6fdadea2a/obj-
 mingw/dist/include/cairo  /var
 /tmp/build/firefox-8ee6fdadea2a/obj-
 mingw/dom/media/platforms/wmf/Unified_cpp_media_platforms_wmf0.cpp
 In file included from /var/tmp/build/firefox-
 8ee6fdadea2a/dom/media/platforms/wmf/WMFUtils.cpp:11:0:
 /var/tmp/build/firefox-8ee6fdadea2a/obj-
 mingw/dist/include/mozilla/WindowsVersion.h:218:0: warning: ignoring
 #pragma warning  [-Wunknown-pragmas]
  #pragma warning(push)

 /var/tmp/build/firefox-8ee6fdadea2a/obj-
 mingw/dist/include/mozilla/WindowsVersion.h:219:0: warning: ignoring
 #pragma warning  [-Wunknown-pragmas]
  #pragma warning(disable:4996)

 /var/tmp/build/firefox-8ee6fdadea2a/obj-
 mingw/dist/include/mozilla/WindowsVersion.h:221:0: warning: ignoring
 #pragma warning  [-Wunknown-pragmas]
  #pragma warning(pop)
 In file included from /var/tmp/build/firefox-
 8ee6fdadea2a/dom/media/platforms/wmf/WMFDecoderModule.cpp:28:0,
                  from /var/tmp/build/firefox-8ee6fdadea2a/obj-
 mingw/dom/media/platforms/wmf/Unified_cpp_media_platforms_wmf0.cpp:29:
 /var/tmp/build/firefox-8ee6fdadea2a/obj-
 mingw/dist/include/mozilla/WindowsVersion.h:218:0: warning: ignoring
 #pragma warning  [-Wunknown-pragmas]
  #pragma warning(push)

 /var/tmp/build/firefox-8ee6fdadea2a/obj-
 mingw/dist/include/mozilla/WindowsVersion.h:219:0: warning: ignoring
 #pragma warning  [-Wunknown-pragmas]
  #pragma warning(disable:4996)

 /var/tmp/build/firefox-8ee6fdadea2a/obj-
 mingw/dist/include/mozilla/WindowsVersion.h:221:0: warning: ignoring
 #pragma warning  [-Wunknown-pragmas]
  #pragma warning(pop)

 In file included from /var/tmp/build/firefox-8ee6fdadea2a/obj-
 mingw/dist/include/mozilla/layers/Compositor.h:15:0,
                  from /var/tmp/build/firefox-8ee6fdadea2a/obj-
 mingw/dist/include/mozilla/layers/TextureD3D11.h:10,
                  from /var/tmp/build/firefox-8ee6fdadea2a/obj-
 mingw/dist/include/mozilla/layers/D3D11ShareHandleImage.h:13,
                  from /var/tmp/build/firefox-
 8ee6fdadea2a/dom/media/platforms/wmf/DXVA2Manager.cpp:14,
                  from /var/tmp/build/firefox-8ee6fdadea2a/obj-
 mingw/dom/media/platforms/wmf/Unified_cpp_media_platforms_wmf0.cpp:2:
 /var/tmp/build/firefox-8ee6fdadea2a/obj-
 mingw/dist/include/mozilla/gfx/Polygon.h: In member function
 'nsTArray<float>
 mozilla::gfx::Polygon3DTyped<Units>::CalculateDotProducts(const
 mozilla::gfx::Polygon3DTyped<Units>&, size_t&, size_t&) const':
 /var/tmp/build/firefox-8ee6fdadea2a/obj-
 mingw/dist/include/mozilla/gfx/Polygon.h:99:0: note: -Wmisleading-
 indentation is disabled from this point onwards, since column-tracking was
 disabled due to the size of the code/headers
        dotProducts.AppendElement(dot);

 In file included from /var/tmp/build/firefox-8ee6fdadea2a/obj-
 mingw/dist/include/mozilla/layers/D3D11ShareHandleImage.h:13:0,
                  from /var/tmp/build/firefox-
 8ee6fdadea2a/dom/media/platforms/wmf/DXVA2Manager.cpp:14,
                  from /var/tmp/build/firefox-8ee6fdadea2a/obj-
 mingw/dom/media/platforms/wmf/Unified_cpp_media_platforms_wmf0.cpp:2:
 /var/tmp/build/firefox-8ee6fdadea2a/obj-
 mingw/dist/include/mozilla/layers/TextureD3D11.h: In member function
 'virtual mozilla::layers::DataTextureSource*
 mozilla::layers::DataTextureSourceD3D11::AsDataTextureSource()':
 /var/tmp/build/firefox-8ee6fdadea2a/obj-
 mingw/dist/include/mozilla/layers/TextureD3D11.h:240:0: error: operands to
 ?: have different types 'mozilla::layers::DataTextureSourceD3D11*' and
 'bool'
    virtual DataTextureSource* AsDataTextureSource() override { return
 mAllowTextureUploads ? this : false; }

 In file included from /var/tmp/build/firefox-8ee6fdadea2a/obj-
 mingw/dom/media/platforms/wmf/Unified_cpp_media_platforms_wmf0.cpp:20:0:
 /var/tmp/build/firefox-
 8ee6fdadea2a/dom/media/platforms/wmf/WMFAudioMFTManager.cpp: In function
 'void mozilla::AACAudioSpecificConfigToUserData(uint8_t, const uint8_t*,
 uint32_t, nsTArray<unsigned char>&)':
 /var/tmp/build/firefox-
 8ee6fdadea2a/dom/media/platforms/wmf/WMFAudioMFTManager.cpp:68:0: warning:
 unused variable 'profile' [-Wunused-variable]
      int8_t profile = (aAudioSpecConfig[0] & 0xF8) >> 3;

 /var/tmp/build/firefox-
 8ee6fdadea2a/dom/media/webaudio/MediaBufferDecoder.cpp: In member function
 'void mozilla::WebAudioDecodeJob::OnFailure(mozilla::WebAudioDecodeJob:
 :ErrorCode)':
 /var/tmp/build/firefox-
 8ee6fdadea2a/dom/media/webaudio/MediaBufferDecoder.cpp:609:48: warning:
 'errorMessage' may be used uninitialized in this function [-Wmaybe-uniniti
 alized]
                                    errorMessage);
                                                 ^
 In file included from /var/tmp/build/firefox-
 8ee6fdadea2a/dom/media/platforms/wmf/WMFDecoderModule.cpp:9:0,
                  from /var/tmp/build/firefox-8ee6fdadea2a/obj-
 mingw/dom/media/platforms/wmf/Unified_cpp_media_platforms_wmf0.cpp:29:
 /var/tmp/build/firefox-
 8ee6fdadea2a/dom/media/platforms/wmf/WMFVideoMFTManager.h: In constructor
 'mozilla::WMFVideoMFTManager::WMFVideoMFTManager(const
 mozilla::VideoInfo&, mozilla::layers::KnowsCompositor*,
 mozilla::layers::ImageContainer*, bool)':
 /var/tmp/build/firefox-
 8ee6fdadea2a/dom/media/platforms/wmf/WMFVideoMFTManager.h:100:0: warning:
 'mozilla::WMFVideoMFTManager::mDXVAEnabled' will be initialized after
 [-Wreorder]
    bool mDXVAEnabled;

 /var/tmp/build/firefox-
 8ee6fdadea2a/dom/media/platforms/wmf/WMFVideoMFTManager.h:91:0: warning:
 'RefPtr<mozilla::layers::KnowsCompositor>
 mozilla::WMFVideoMFTManager::mKnowsCompositor' [-Wreorder]
    RefPtr<layers::KnowsCompositor> mKnowsCompositor;

 In file included from /var/tmp/build/firefox-8ee6fdadea2a/obj-
 mingw/dom/media/platforms/wmf/Unified_cpp_media_platforms_wmf0.cpp:47:0:
 /var/tmp/build/firefox-
 8ee6fdadea2a/dom/media/platforms/wmf/WMFVideoMFTManager.cpp:81:0: warning:
 when initialized here [-Wreorder]
  WMFVideoMFTManager::WMFVideoMFTManager(

 /var/tmp/build/firefox-8ee6fdadea2a/config/rules.mk:951: recipe for target
 'Unified_cpp_media_platforms_wmf0.o' failed
 make[5]: *** [Unified_cpp_media_platforms_wmf0.o] Error 1
 make[5]: Leaving directory '/var/tmp/build/firefox-8ee6fdadea2a/obj-
 mingw/dom/media/platforms/wmf'
 }}}

--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/25420#comment:1>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online
_______________________________________________
tor-bugs mailing list
tor-bugs@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-bugs