Skip to contentSkip to conversation

tor: disable unit-tests for aarch64

PATCH Superseded Waldemar Brodkorb 2 participants 2 messages Mar 7, 2016

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 tor: disable unit-tests for aarch64

Fixes following autobuild failure:
http://autobuild.buildroot.net/results/13ef47c962afefbaa9ea7a95de083f885f1a8825/

There still might be a bug outside the unit-test.

---
Bug reported upstream:
https://trac.torproject.org/projects/tor/ticket/18490

---
 package/tor/tor.mk |    6 ++++++
 1 file changed, 6 insertions(+)
package/tor/tor.mk +6 -0
index f6874a6..efd0d8d 100644
@@ -32,6 +32,12 @@ else
 TOR_CONF_OPTS += --disable-seccomp
 endif
 
+# aarch64 toolchain triggers a code problem, message is misleading
+# relocation truncated to fit: R_AARCH64_LDST64_ABS_LO12_NC against symbol
+ifeq ($(BR2_aarch64),y)
+TOR_CONF_OPTS += --disable-unittests
+endif
+
 # uses gnu extensions
 TOR_CONF_ENV = ac_cv_prog_cc_c99='-std=gnu99'
 
Signature · 1 line
1.7.10.4
#1 lore raw

PATCH 1/1 tor: disable unit-tests for aarch64

Waldemar,

Quoted 20 lines · Waldemar Brodkorb

Fixes following autobuild failure:
http://autobuild.buildroot.net/results/13ef47c962afefbaa9ea7a95de083f885f1a8825/

There still might be a bug outside the unit-test.

---
Bug reported upstream:
https://trac.torproject.org/projects/tor/ticket/18490

---
 package/tor/tor.mk |    6 ++++++
 1 file changed, 6 insertions(+)
package/tor/tor.mk +0 -0
index f6874a6..efd0d8d 100644

package/tor/tor.mk else · line 39

Quoted 8 lines
package/tor/tor.mk +5 -0
@@ -32,6 +32,12 @@ else
 TOR_CONF_OPTS += --disable-seccomp
 endif
 
+# aarch64 toolchain triggers a code problem, message is misleading
+# relocation truncated to fit: R_AARCH64_LDST64_ABS_LO12_NC against symbol
+ifeq ($(BR2_aarch64),y)
+TOR_CONF_OPTS += --disable-unittests
+endif

I think we should disable unittests globally, as we generally don't build test programs.

Best regards,

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com