[gnutls-devel] GnuTLS | Error building with clang 14: the clang compiler does not support '-march=all' (#1377)

Read-only notification of GnuTLS library development activities gnutls-devel at lists.gnutls.org
Wed May 17 16:09:12 CEST 2023




Dimitri Papadopoulos Orfanos commented on a discussion: https://gitlab.com/gnutls/gnutls/-/issues/1377#note_1394360444

Perhaps this line?

[**configure.ac**](https://gitlab.com/gnutls/gnutls/-/blob/0263dec937e02ab71fd9cb158fa69acf7c374481/configure.ac#L205-L210)<br/>
Line 205 to 210 in 0263dec9
```c
# Check if the assembler supports -march=all
if test "$hw_accel" = aarch64; then
  AARCH64_CCASFLAGS="-Wa,-march=all"
  AC_MSG_CHECKING([whether the compiler supports -Wa,-march=all])
  : > conftest.s
  if "$CCAS" "$AARCH64_CCASFLAGS" -c conftest.s >/dev/null 2>&1; then
```

According to [⚙ D114677 [AArch64] Avoid crashing on invalid -Wa,-march= values](https://reviews.llvm.org/D114677):
> As reported in https://bugs.freebsd.org/260078, the gnutls Makefiles
pass -Wa,-march=all to compile a number of assembly files. Clang does
not support this -march value, but because of a mistake in handling
the arguments, an unitialized Arg pointer is dereferenced, which can
cause a segfault.

-- 
Reply to this email directly or view it on GitLab: https://gitlab.com/gnutls/gnutls/-/issues/1377#note_1394360444
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/20230517/5bdc86fd/attachment.html>


More information about the Gnutls-devel mailing list