Re: [[meta-mingw][PATCH] libgcrypt: disable amd64 optimization


Adrian Bunk
 

On Tue, Feb 25, 2020 at 12:02:14PM -0600, Mark Hatle wrote:
amd64 optimization when using with mingw32 sometimes results in:

| ../../libgcrypt-1.8.4/cipher/rijndael-tables.h:103:24: error: expected
']' before '.' token
| 103 | #define encT enc_tables.T
...
Please send a complete build log, this looks like a parallel build
failure where some .c is compiled before some header it uses is
fully generated (or something similar).

--- a/recipes-support/libgcrypt/libgcrypt_%.bbappend
+++ b/recipes-support/libgcrypt/libgcrypt_%.bbappend
@@ -1,3 +1,4 @@
+EXTRA_OECONF_append_mingw32 = " --disable-amd64-as-feature-detection"
...
I assume PARALLEL_MAKE = "" would also work instead?

cu
Adrian

Join yocto@lists.yoctoproject.org to automatically receive all group messages.