On 11.10.20 19:28, Helmut Grohne wrote:
If you are interested in figuring out why this happens, all the better,
I guess you should pass --anything-failed-commands=%SBUILD_SHELL to
sbuild and examine config.log.

Before I dig into this, could you, please, try applying the attached patch and check if it works?

(It's a little bit a stab in the dark, just reverting the last changes made there. After all, it should've worked before.)

  -richy.
--
Richard B. Kreckel
<https://in.terlu.de/~kreckel/>
diff --git a/m4/intparam.m4 b/m4/intparam.m4
index 3c990d7..7d81424 100644
--- a/m4/intparam.m4
+++ b/m4/intparam.m4
@@ -113,7 +113,7 @@ AC_DEFUN([CL_INTPARAM_CROSS],
         echo "#error \"Integer types long long and unsigned long long have different sizes!!\""
       fi
     fi
-    AC_TRY_COMPILE([#include <stdint.h>], [static_assert(sizeof(char*) <= sizeof(intptr_t), "");],
+    AC_TRY_COMPILE([#include <stdint.h>], [typedef int verify[2*(sizeof(char*)<=sizeof (intptr_t))-1];],
       [], [echo "#error \"Type char * does not fit into an intptr_t!!\""])
     _AC_COMPUTE_INT([sizeof (char *)], [pointer_size])
     pointer_bitsize=`expr $pointer_size '*' $char_bitsize`
@@ -290,7 +290,7 @@ AC_DEFUN([CL_INTPARAM_ALIGNOF],
 #else
 # define alignof(type)  offsetof (struct { char slot1; type slot2; }, slot2)
 #endif
-], [static_assert(alignof($1) == $n, "");],
+], [typedef int verify[2*(alignof($1) == $n) - 1];],
       [$2=$n; break;]
       [if test $n = 0; then $2=; break; fi])
     n=`expr $n '*' 2`

Reply via email to