[tor-bugs] #29307 [Applications]: Use Debian Stretch for cross-comiling our Windows builds

Tor Bug Tracker & Wiki blackhole at torproject.org
Fri Feb 1 19:28:08 UTC 2019


#29307: Use Debian Stretch for cross-comiling our Windows builds
-------------------------------------------------+-------------------------
 Reporter:  gk                                   |          Owner:  (none)
     Type:  enhancement                          |         Status:  new
 Priority:  Medium                               |      Milestone:
Component:  Applications                         |        Version:
 Severity:  Normal                               |     Resolution:
 Keywords:  tbb-rbm, TorBrowserTeam201902,       |  Actual Points:
  GeorgKoppen201902                              |
Parent ID:  #28238                               |         Points:
 Reviewer:                                       |        Sponsor:
-------------------------------------------------+-------------------------
Changes (by gk):

 * keywords:  tbb-rbm => tbb-rbm, TorBrowserTeam201902, GeorgKoppen201902


Comment:

 I've been working on that today while trying to fix #28238 and it's not
 that hard for x86_64 at least. I got everything cross-compiled for that
 architecture, just with a small patch needed for the Rust config.

 For i686 I got pretty far but am blocked right now by a PyCrypto/Wine
 issue:
 {{{
 running build_ext
 wine: Bad EXE format for
 Z:\var\tmp\dist\mingw-w64\bin\i686-w64-mingw32-dllwrap..
 running build_configure
 wine: Bad EXE format for
 Z:\var\tmp\dist\mingw-w64\bin\i686-w64-mingw32-dllwrap..
 building 'Crypto.Random.OSRNG.winrandom' extension
 creating build
 creating build\temp.win32-2.7
 creating build\temp.win32-2.7\Release
 creating build\temp.win32-2.7\Release\src
 C:\windows\gcc.exe -mno-cygwin -mdll -Wall -std=c99 -O3 -fomit-frame-
 pointer -Isrc/ -IZ:\var\tmp\dist\winpython\include
 -IZ:\var\tmp\dist\winpython\PC -c src/winrand.c -o
 build\temp.win32-2.7\Release\src\winrand.o
 /var/tmp/home/.wine/dosdevices/z:/var/tmp/build/pycrypto-2.6.1/src/winrand.c:38:0:
 warning: "_WIN32_WINNT" redefined
  #define _WIN32_WINNT 0x400

 In file included from
 /var/tmp/dist/mingw-w64/i686-w64-mingw32/include/crtdefs.h:10:0,
                  from
 /var/tmp/dist/mingw-w64/i686-w64-mingw32/include/io.h:9,
                  from
 /var/tmp/home/.wine/dosdevices/z:/var/tmp/dist/winpython/include/pyconfig.h:68,
                  from
 /var/tmp/home/.wine/dosdevices/z:/var/tmp/dist/winpython/include/Python.h:8,
                  from
 /var/tmp/home/.wine/dosdevices/z:/var/tmp/build/pycrypto-2.6.1/src/winrand.c:33:
 /var/tmp/dist/mingw-w64/i686-w64-mingw32/include/_mingw.h:232:0: note:
 this is the location of the previous definition
  #define _WIN32_WINNT 0x502

 Exception WindowsError: (6, 'Invalid handle') in <bound method
 Popen.__del__ of <subprocess.Popen object at 0x006970D0>> ignored
 writing build\temp.win32-2.7\Release\src\winrandom.def
 creating build\lib.win32-2.7
 creating build\lib.win32-2.7\Crypto
 creating build\lib.win32-2.7\Crypto\Random
 creating build\lib.win32-2.7\Crypto\Random\OSRNG
 C:\windows\dllwrap.exe -mno-cygwin -mdll -static --output-lib
 build\temp.win32-2.7\Release\src\libwinrandom.a --def
 build\temp.win32-2.7\Release\src\winrandom.def -s
 build\temp.win32-2.7\Release\src\winrand.o
 -LZ:\var\tmp\dist\winpython\libs -LZ:\var\tmp\dist\winpython\PCbuild
 -lws2_32 -ladvapi32 -lpython27 -o
 build\lib.win32-2.7\Crypto\Random\OSRNG\winrandom.pyd
 wine: Bad EXE format for
 Z:\var\tmp\dist\mingw-w64\bin\i686-w64-mingw32-dllwrap..
 Traceback (most recent call last):
   File "dllwrap.py", line 32, in <module>
   File "common.pyc", line 27, in popen_faketime
   File "subprocess.pyc", line 711, in __init__
   File "subprocess.pyc", line 948, in _execute_child
 WindowsError: [Error 193] Bad EXE format for %1
 warning: GMP or MPIR library not found; Not building
 Crypto.PublicKey._fastmath.
 error: command 'dllwrap' failed with exit status 255
 }}}

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


More information about the tor-bugs mailing list