[tor-bugs] #18490 [Tor]: unit-test fail to cross-compile for aarch64
Tor Bug Tracker & Wiki
blackhole at torproject.org
Wed Mar 9 11:17:16 UTC 2016
#18490: unit-test fail to cross-compile for aarch64
--------------------------------+------------------------------
Reporter: wbx | Owner: cypherpunks
Type: defect | Status: needs_review
Priority: Medium | Milestone:
Component: Tor | Version: Tor: 0.2.7.6
Severity: Normal | Resolution:
Keywords: unit tests aarch64 | Actual Points:
Parent ID: | Points:
Sponsor: |
--------------------------------+------------------------------
Changes (by cypherpunks):
* status: assigned => needs_review
Comment:
I was able to reproduce the issue by configuring with `CFLAGS="-O2
-flto"`. The attached patch fixed the issue for me. @wbx can you verify
this?
As mentioned in the commit message, removing the non-testing library from
the test binary dependencies caused undefined reference errors which were
caused by missing dependencies. I have added the dependencies that the
compiler complained about but i am not 100% sure i got them all because of
the optional external dependencies that tor has. For instance, during
testing i had to add sandbox.c for one machine because it had sandboxing
capabilities while another machine did not (yay for conditional
compilation).
--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/18490#comment:3>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online
More information about the tor-bugs
mailing list