<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">
<html lang="en">
<head>
<meta content="text/html; charset=US-ASCII" http-equiv="Content-Type">
<title>
GitLab
</title>


<style>img {
max-width: 100%; height: auto;
}
</style>
</head>
<body>
<div class="content">

<p class="details" style="font-style: italic; color: #666;">
<a href="https://gitlab.com/sab24">Sab24</a> created an issue <a href="https://gitlab.com/gnutls/gnutls/-/issues/1089">#1089</a>:
</p>
<div></div>
<h2 dir="auto">
<a id="user-content-description-of-problem" class="anchor" href="#description-of-problem" aria-hidden="true"></a>Description of problem:</h2>
<p dir="auto">Cross compilation fails for specific arm assembly instructions in sha1-armv8</p>
<h2 dir="auto">
<a id="user-content-version-of-gnutls-used" class="anchor" href="#version-of-gnutls-used" aria-hidden="true"></a>Version of gnutls used:</h2>
<p dir="auto">HEAD</p>
<h2 dir="auto">
<a id="user-content-distributor-of-gnutls-eg-ubuntu-fedora-rhel" class="anchor" href="#distributor-of-gnutls-eg-ubuntu-fedora-rhel" aria-hidden="true"></a>Distributor of gnutls (e.g., Ubuntu, Fedora, RHEL)</h2>
<p dir="auto">Archlinux, building from source, cross-compiling for armv7</p>
<h2 dir="auto">
<a id="user-content-how-reproducible" class="anchor" href="#how-reproducible" aria-hidden="true"></a>How reproducible:</h2>
<pre class="code highlight js-syntax-highlight plaintext" lang="plaintext" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">git clone https://gitlab.com/gnutls/gnutls.git</span>
<span id="LC2" class="line" lang="plaintext">cd gnutls</span>
<span id="LC3" class="line" lang="plaintext">./bootstrap</span>
<span id="LC4" class="line" lang="plaintext">./configure --host=armv8-rpi3-linux-gnueabihf --prefix=/home/buildbot/x-tools/armv8-rpi3-linux-gnueabihf/armv8-rpi3-linux-gnueabihf/sysroot/usr --with-included-unistring</span>
<span id="LC5" class="line" lang="plaintext">make</span></code></pre>
<h2 dir="auto">
<a id="user-content-actual-results" class="anchor" href="#actual-results" aria-hidden="true"></a>Actual results:</h2>
<pre class="code highlight js-syntax-highlight plaintext" lang="plaintext" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">configure: summary of build options:</span>
<span id="LC2" class="line" lang="plaintext"></span>
<span id="LC3" class="line" lang="plaintext">  version:              3.6.14 shared 58:0:28</span>
<span id="LC4" class="line" lang="plaintext">  Host/Target system:   armv8-rpi3-linux-gnueabihf</span>
<span id="LC5" class="line" lang="plaintext">  Build system:         x86_64-pc-linux-gnu</span>
<span id="LC6" class="line" lang="plaintext">  Install prefix:       /home/bartsmink/x-tools/armv8-rpi3-linux-gnueabihf/armv8-rpi3-linux-gnueabihf/sysroot/usr</span>
<span id="LC7" class="line" lang="plaintext">  Compiler:             armv8-rpi3-linux-gnueabihf-gcc</span>
<span id="LC8" class="line" lang="plaintext">  Valgrind:             no</span>
<span id="LC9" class="line" lang="plaintext">  CFlags:               -g -O2</span>
<span id="LC10" class="line" lang="plaintext">  Library types:        Shared=yes, Static=no</span>
<span id="LC11" class="line" lang="plaintext">  Local libopts:        no</span>
<span id="LC12" class="line" lang="plaintext">  Local libtasn1:       no</span>
<span id="LC13" class="line" lang="plaintext">  Local unistring:      yes</span>
<span id="LC14" class="line" lang="plaintext">  Use nettle-mini:      no</span>
<span id="LC15" class="line" lang="plaintext">  Documentation:        yes (manpages: yes)</span>
<span id="LC16" class="line" lang="plaintext"></span>
<span id="LC17" class="line" lang="plaintext">configure: External hardware support:</span>
<span id="LC18" class="line" lang="plaintext"></span>
<span id="LC19" class="line" lang="plaintext">  /dev/crypto:          no</span>
<span id="LC20" class="line" lang="plaintext">  Hardware accel:       aarch64</span>
<span id="LC21" class="line" lang="plaintext">  Padlock accel:        no</span>
<span id="LC22" class="line" lang="plaintext">  Random gen. variant:  getrandom</span>
<span id="LC23" class="line" lang="plaintext">  PKCS#11 support:      yes</span>
<span id="LC24" class="line" lang="plaintext">  TPM support:          no</span>
<span id="LC25" class="line" lang="plaintext"></span>
<span id="LC26" class="line" lang="plaintext">configure: Optional features:</span>
<span id="LC27" class="line" lang="plaintext">(note that included applications might not compile properly</span>
<span id="LC28" class="line" lang="plaintext">if features are disabled)</span>
<span id="LC29" class="line" lang="plaintext"></span>
<span id="LC30" class="line" lang="plaintext">  SSL3.0 support:       no</span>
<span id="LC31" class="line" lang="plaintext">  SSL2.0 client hello:  yes</span>
<span id="LC32" class="line" lang="plaintext">  Allow SHA1 sign:      no</span>
<span id="LC33" class="line" lang="plaintext">  DTLS-SRTP support:    yes</span>
<span id="LC34" class="line" lang="plaintext">  ALPN support:         yes</span>
<span id="LC35" class="line" lang="plaintext">  OCSP support:         yes</span>
<span id="LC36" class="line" lang="plaintext">  SRP support:          yes</span>
<span id="LC37" class="line" lang="plaintext">  PSK support:          yes</span>
<span id="LC38" class="line" lang="plaintext">  DHE support:          yes</span>
<span id="LC39" class="line" lang="plaintext">  ECDHE support:        yes</span>
<span id="LC40" class="line" lang="plaintext">  GOST support:         yes</span>
<span id="LC41" class="line" lang="plaintext">  Anon auth support:    yes</span>
<span id="LC42" class="line" lang="plaintext">  Heartbeat support:    yes</span>
<span id="LC43" class="line" lang="plaintext">  IDNA support:         IDNA 2008 (libidn2)</span>
<span id="LC44" class="line" lang="plaintext">  Non-SuiteB curves:    yes</span>
<span id="LC45" class="line" lang="plaintext">  FIPS140 mode:         no</span>
<span id="LC46" class="line" lang="plaintext">  Strict DER time:      yes</span>
<span id="LC47" class="line" lang="plaintext"></span>
<span id="LC48" class="line" lang="plaintext">configure: Optional libraries:</span>
<span id="LC49" class="line" lang="plaintext"></span>
<span id="LC50" class="line" lang="plaintext">  Guile wrappers:       no</span>
<span id="LC51" class="line" lang="plaintext">  C++ library:          yes</span>
<span id="LC52" class="line" lang="plaintext">  DANE library:         no</span>
<span id="LC53" class="line" lang="plaintext">  OpenSSL compat:       no</span>
<span id="LC54" class="line" lang="plaintext"></span>
<span id="LC55" class="line" lang="plaintext">configure: System files:</span>
<span id="LC56" class="line" lang="plaintext"></span>
<span id="LC57" class="line" lang="plaintext">  Trust store pkcs11:</span>
<span id="LC58" class="line" lang="plaintext">  Trust store dir:</span>
<span id="LC59" class="line" lang="plaintext">  Trust store file:</span>
<span id="LC60" class="line" lang="plaintext">  Blacklist file:</span>
<span id="LC61" class="line" lang="plaintext">  CRL file:</span>
<span id="LC62" class="line" lang="plaintext">  Configuration file:   /etc/gnutls/config</span>
<span id="LC63" class="line" lang="plaintext">  DNSSEC root key file: /etc/unbound/root.key</span>
<span id="LC64" class="line" lang="plaintext"></span>
<span id="LC65" class="line" lang="plaintext">configure: WARNING:</span>
<span id="LC66" class="line" lang="plaintext">***</span>
<span id="LC67" class="line" lang="plaintext">*** The DNSSEC root key file in /etc/unbound/root.key was not found.</span>
<span id="LC68" class="line" lang="plaintext">*** This file is needed for the verification of DNSSEC responses.</span>
<span id="LC69" class="line" lang="plaintext">*** Use the command: unbound-anchor -a "/etc/unbound/root.key"</span>
<span id="LC70" class="line" lang="plaintext">*** to generate or update it.</span>
<span id="LC71" class="line" lang="plaintext">***</span></code></pre>
<pre class="code highlight js-syntax-highlight plaintext" lang="plaintext" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">  CC       aes-ccm-aarch64.lo</span>
<span id="LC2" class="line" lang="plaintext">  CCAS     elf/sha1-armv8.lo</span>
<span id="LC3" class="line" lang="plaintext">lib/accelerated/aarch64/elf/sha1-armv8.s.tmp.S: Assembler messages:</span>
<span id="LC4" class="line" lang="plaintext">lib/accelerated/aarch64/elf/sha1-armv8.s.tmp.S:13: Error: ARM register expected -- `ldr x16,.L_gnutls_arm_cpuid_s'</span>
<span id="LC5" class="line" lang="plaintext">lib/accelerated/aarch64/elf/sha1-armv8.s.tmp.S:15: Error: ARM register expected -- `adr x17,.L_gnutls_arm_cpuid_s'</span>
<span id="LC6" class="line" lang="plaintext">lib/accelerated/aarch64/elf/sha1-armv8.s.tmp.S:16: Error: ARM register expected -- `add x16,x16,x17'</span>
<span id="LC7" class="line" lang="plaintext">lib/accelerated/aarch64/elf/sha1-armv8.s.tmp.S:17: Error: ARM register expected -- `ldr w16,[x16]'</span>
<span id="LC8" class="line" lang="plaintext">lib/accelerated/aarch64/elf/sha1-armv8.s.tmp.S:18: Error: ARM register expected -- `tst w16,#(1<<3)'</span>
<span id="LC9" class="line" lang="plaintext">lib/accelerated/aarch64/elf/sha1-armv8.s.tmp.S:19: Error: unexpected character `n' in type specifier</span>
<span id="LC10" class="line" lang="plaintext">lib/accelerated/aarch64/elf/sha1-armv8.s.tmp.S:19: Error: bad instruction `b.ne .Lv8_entry'</span>
<span id="LC11" class="line" lang="plaintext">lib/accelerated/aarch64/elf/sha1-armv8.s.tmp.S:21: Error: bad instruction `stp x29,x30,[sp,#-96]!'</span>
<span id="LC12" class="line" lang="plaintext">lib/accelerated/aarch64/elf/sha1-armv8.s.tmp.S:22: Error: ARM register expected -- `add x29,sp,#0'</span>
<span id="LC13" class="line" lang="plaintext">lib/accelerated/aarch64/elf/sha1-armv8.s.tmp.S:23: Error: bad instruction `stp x19,x20,[sp,#16]'</span>
<span id="LC14" class="line" lang="plaintext">lib/accelerated/aarch64/elf/sha1-armv8.s.tmp.S:24: Error: bad instruction `stp x21,x22,[sp,#32]'</span>
<span id="LC15" class="line" lang="plaintext">lib/accelerated/aarch64/elf/sha1-armv8.s.tmp.S:25: Error: bad instruction `stp x23,x24,[sp,#48]'</span>
<span id="LC16" class="line" lang="plaintext">lib/accelerated/aarch64/elf/sha1-armv8.s.tmp.S:26: Error: bad instruction `stp x25,x26,[sp,#64]'</span>
<span id="LC17" class="line" lang="plaintext">lib/accelerated/aarch64/elf/sha1-armv8.s.tmp.S:27: Error: bad instruction `stp x27,x28,[sp,#80]'</span>
<span id="LC18" class="line" lang="plaintext">lib/accelerated/aarch64/elf/sha1-armv8.s.tmp.S:29: Error: bad instruction `ldp w20,w21,[x0]'</span>
<span id="LC19" class="line" lang="plaintext">lib/accelerated/aarch64/elf/sha1-armv8.s.tmp.S:30: Error: bad instruction `ldp w22,w23,[x0,#8]'</span>
<span id="LC20" class="line" lang="plaintext">lib/accelerated/aarch64/elf/sha1-armv8.s.tmp.S:31: Error: ARM register expected -- `ldr w24,[x0,#16]'</span>
<span id="LC21" class="line" lang="plaintext">lib/accelerated/aarch64/elf/sha1-armv8.s.tmp.S:34: Error: ARM register expected -- `ldr x3,[x1],#64'</span>
<span id="LC22" class="line" lang="plaintext">lib/accelerated/aarch64/elf/sha1-armv8.s.tmp.S:35: Error: bad instruction `movz w28,#0x7999'</span>
<span id="LC23" class="line" lang="plaintext">lib/accelerated/aarch64/elf/sha1-armv8.s.tmp.S:36: Error: ARM register expected -- `sub x2,x2,#1'</span>
<span id="LC24" class="line" lang="plaintext">lib/accelerated/aarch64/elf/sha1-armv8.s.tmp.S:37: Error: bad instruction `movk w28,#0x5a82,lsl#16'</span>
<span id="LC25" class="line" lang="plaintext">lib/accelerated/aarch64/elf/sha1-armv8.s.tmp.S:41: Error: bad instruction `rev32 x3,x3'</span></code></pre>
<h2 dir="auto">
<a id="user-content-expected-results" class="anchor" href="#expected-results" aria-hidden="true"></a>Expected results:</h2>
<p dir="auto">Compilation of the project</p>

</div>
<div class="footer" style="margin-top: 10px;">
<p style="font-size: small; color: #666;">

<br>
Reply to this email directly or <a href="https://gitlab.com/gnutls/gnutls/-/issues/1089">view it on GitLab</a>.
<br>
You're receiving this email because of your account on gitlab.com.
If you'd like to receive fewer emails, you can
<a href="https://gitlab.com/-/sent_notifications/684d3eda5aec8202d4fe8c762069568d/unsubscribe">unsubscribe</a>
from this thread or
adjust your notification settings.
<script type="application/ld+json">{"@context":"http://schema.org","@type":"EmailMessage","action":{"@type":"ViewAction","name":"View Issue","url":"https://gitlab.com/gnutls/gnutls/-/issues/1089"}}</script>


</p>
</div>
</body>
</html>