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

Tor Bug Tracker & Wiki blackhole at torproject.org
Tue Oct 8 23:48:16 UTC 2013


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

Comment (by mingwandroid):

 Something else I should mention is that the old GCC in the crosstool-ng
 port doesn't yet support the -arch and -Xarch flags (whereas toolchain4
 does).

 This is because those flags are actually handled by driverdriver.c which
 is an Apple-specific program that's compiled outside of the normal
 GCC/llvmgcc compilation and when run calls the real GCC once for each arch
 specified (using the standard -m32 or -m64 flag). It then calls lipo to
 merge the objects for each arch together into a fat object/binary.

 I'm not sure how the tbb build system for Mac invokes gcc; I would hope it
 is easy to change it from using "-arch i386" to "-m32" and/or "-arch
 x86_64" to "-m64", of course, if you build fat binaries in a single
 invocation then this is a bigger problem.

 Having said that, adding the driverdriver program is high priority and
 something I expect to do tomorrow.

 Finally, clang 'natively' supports these flags but I'd be (pleasantly)
 surprised if switching tbb to build with clang was trivial.

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


More information about the tor-bugs mailing list