[gnutls-devel] GnuTLS | Build error when enable fips under cross compile (#1373)

Read-only notification of GnuTLS library development activities gnutls-devel at lists.gnutls.org
Tue Nov 29 05:52:18 CET 2022




Daiki Ueno commented:


This might be already fixed in !1585. I've set up AArch64 cross-compilation environment on Fedora 36, with:
```console
$ sudo dnf install gcc-aarch64-linux-gnu binutils-aarch64-linux-gnu
$ sudo dnf build-dep --repo=fedora --releasever=36 --forcearch aarch64 --installroot /usr/aarch64-linux-gnu/sys-root gnutls
```
and compile GnuTLS with:
```console
$ ./configure --disable-doc --disable-cxx --enable-fips140-mode --host=`aarch64-linux-gnu-gcc -dumpmachine`
$ QEMU_LD_PREFIX=/usr/aarch64-linux-gnu/sys-root make -j$(nproc)
...
  CCLD     fipshmac
  GEN      .libs/.gnutls.hmac
...
$ file lib/.libs/fipshmac
lib/.libs/fipshmac: ELF 64-bit LSB executable, ARM aarch64, version 1 (SYSV), dynamically linked, interpreter /lib/ld-linux-aarch64.so.1, BuildID[sha1]=7bdb92b2f47e3efcc801fcee893ac8ec0a0df539, for GNU/Linux 3.7.0, with debug_info, not stripped, too many notes (256)
```

-- 
Reply to this email directly or view it on GitLab: https://gitlab.com/gnutls/gnutls/-/issues/1373#note_1188885215
You're receiving this email because of your account on gitlab.com.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.gnupg.org/pipermail/gnutls-devel/attachments/20221129/891a5489/attachment.html>


More information about the Gnutls-devel mailing list