[tor-bugs] #9711 [Tor Browser]: Test out crosstools-ng for Gitian OSX builds (instead of toolchain4 binaries)

Tor Bug Tracker & Wiki blackhole at torproject.org
Thu Sep 4 22:05:07 UTC 2014


#9711: Test out crosstools-ng for Gitian OSX builds (instead of toolchain4
binaries)
-----------------------------+--------------------------------
     Reporter:  mikeperry    |      Owner:  tbb-team
         Type:  task         |     Status:  new
     Priority:  normal       |  Milestone:
    Component:  Tor Browser  |    Version:
   Resolution:               |   Keywords:  gitian, tbb-gitian
Actual Points:               |  Parent ID:
       Points:               |
-----------------------------+--------------------------------

Comment (by mingwandroid):

 This is the build procedure I had success with just now:

 untar your Mac OSX 10.6 SDK to $HOME (you should have $HOME/MacOSX10.6.sdk
 - if it's one with broken absolute links like some are you'll need to fix
 those links, but the one you've been using in the past should be fine).
 # clone (master branch is fine).
 git clone https://github.com/diorcety/crosstool-ng.git
 cd crosstool-ng
 # Default prefix is /usr/local, pass --prefix=<elsewhere> if you want to
 install it elsewhere.
 ./bootstrap && ./configure && make
 sudo make install
 mkdir build
 cd build
 /usr/local/bin/ct-ng x86_64-apple-darwin10
 /usr/local/bin/ct-ng build
 # Wait an hour or two. Libfaketime can make this several hours!
 # The cross compilers should be installed to $HOME/x-tools/x86_64-apple-
 darwin10/

 Regarding libfaketime, I ran into an infinite loop bug after I corrected
 the bug where it didn't change the nanosecond field of the time structure
 (which I'm guessing upstream have since fixed too), and also an autotools
 issue where it reports "checking whether build environment is sane .. no".
 This mail from Eric Blake to the GNU make bugs mailing list touches on
 both these subjects from the Austin Group's perspective (though not
 directly) http://lists.gnu.org/archive/html/bug-
 make/2014-08/msg00044.html. I don't think fixing these issues would be too
 much effort, but unless they are fixed I'd recommend a different approach
 to deterministic builds involving post processing object files instead.

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


More information about the tor-bugs mailing list