[tor-bugs] #25483 [Obfuscation/Snowflake]: Windows reproducible build of snowflake

Tor Bug Tracker & Wiki blackhole at torproject.org
Thu May 31 03:48:44 UTC 2018


#25483: Windows reproducible build of snowflake
-----------------------------------+--------------------------
 Reporter:  arlolra                |          Owner:  sukhbir
     Type:  project                |         Status:  assigned
 Priority:  High                   |      Milestone:
Component:  Obfuscation/Snowflake  |        Version:
 Severity:  Normal                 |     Resolution:
 Keywords:  TorBrowserTeam201805   |  Actual Points:
Parent ID:  #19001                 |         Points:
 Reviewer:                         |        Sponsor:
-----------------------------------+--------------------------

Comment (by cmm323):

 Cross compiling WebRTC library for Windows on a Linux machine and linking
 Snowflake involves multiple steps:

 1-Cross compiling WebRTC lib: This step is currently done using Clang,
 which is Microsoft Visual C++ (MSVC) compatible[1].
 2-Cross compiling Snowflake code: This step is currently done using MingW
 because Cgo (which integrates Golang with C) does not support Clang for
 Windows[2].
 3-Linking Snowflake binary against WebRTC lib: This part is problematic.
 First, Cgo currently doesn't support MSVC object files [3] and MingW and
 Clang/MSVC object files are not compatible[4]. An attempt to link these
 two using MingW leads to compiler errors `undefined reference to`
 mentioned in[comment:29].



 [1]- https://clang.llvm.org/docs/MSVCCompatibility.html
 [2]- https://github.com/golang/go/issues/17014
 [3]- https://github.com/golang/go/issues/20982
 [4]- http://www.mingw.org/wiki/MixingCompilers

--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/25483#comment:38>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online


More information about the tor-bugs mailing list