[tor-bugs] #18490 [Tor]: unit-test fail to cross-compile for aarch64

Tor Bug Tracker & Wiki blackhole at torproject.org
Mon Mar 7 05:02:40 UTC 2016


#18490: unit-test fail to cross-compile for aarch64
--------------------------------+------------------------------
 Reporter:  wbx                 |          Owner:
     Type:  defect              |         Status:  new
 Priority:  Medium              |      Milestone:
Component:  Tor                 |        Version:  Tor: 0.2.7.6
 Severity:  Normal              |     Resolution:
 Keywords:  unit tests aarch64  |  Actual Points:
Parent ID:                      |         Points:
  Sponsor:                      |
--------------------------------+------------------------------

Comment (by wbx):

 It also happens with ARM toolchain when you enable LTO:
 /home/wbx/tor-musl/toolchain_qemu-arm-vexpress-
 a9_glibc_arm_hard_eabihf/usr/bin/arm-openadk-linux-gnueabihf-gcc   -fwrapv
 -fno-ident -fhonour-copts -mcpu=cortex-a9 -mfpu=vfpv3-fp16 -mfloat-
 abi=hard -flto -Os -pipe -fomit-frame-pointer -fno-unwind-tables -fno-
 asynchronous-unwind-tables -marm -fasynchronous-unwind-tables -Wall -fno-
 strict-aliasing  -L/home/wbx/tor-musl/target_qemu-arm-vexpress-
 a9_glibc_arm_hard_eabihf/lib -L/home/wbx/tor-musl/target_qemu-arm-
 vexpress-a9_glibc_arm_hard_eabihf/usr/lib -Wl,-O1 -Wl,-rpath -Wl,/usr/lib
 -Wl,-rpath-link -Wl,/home/wbx/tor-musl/target_qemu-arm-vexpress-
 a9_glibc_arm_hard_eabihf/usr/lib -flto -z relro -z now -rdynamic -o
 src/test/test-memwipe src/test/src_test_test_memwipe-test-memwipe.o src/or
 /libtor-testing.a src/common/libor-testing.a src/common/libor-crypto-
 testing.a src/common/libcurve25519_donna.a
 src/ext/ed25519/ref10/libed25519_ref10.a
 src/ext/ed25519/donna/libed25519_donna.a src/common/libor.a src/common
 /libor-event-testing.a src/trunnel/libor-trunnel-testing.a -lz -lm -levent
 -lssl -lcrypto  -lpthread -ldl
 src/common/container.h:31:1: error: function 'smartlist_free' redeclared
 as variable
  MOCK_DECL(void, smartlist_free, (smartlist_t *sl));
  ^
 src/common/container.c:44:1: note: previously declared here
  MOCK_IMPL(void,
  ^
 src/common/container.h:30:1: error: function 'smartlist_new' redeclared as
 variable
  MOCK_DECL(smartlist_t *, smartlist_new, (void));
  ^
 src/common/container.c:31:1: note: previously declared here
  MOCK_IMPL(smartlist_t *,
  ^
 lto1: fatal error: errors during merging of translation units
 compilation terminated.

 The error is a little bit more visible.

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


More information about the tor-bugs mailing list