[email protected] writes: > In file included from nettle-meta.h:37:0, from > non-nettle.h:38, > from non-nettle.c:43: > nettle-types.h:70:3: error: expected specifier-qualifier-list before > ‘_Alignas’ > In file included from ocb.h:38:0, > from non-nettle.h:39, > from non-nettle.c:43: > aes.h:71:3: error: expected specifier-qualifier-list before ‘_Alignas’ > aes.h:92:3: error: expected specifier-qualifier-list before ‘_Alignas’ > aes.h:113:3: error: expected specifier-qualifier-list before ‘_Alignas’ > make[1]: *** [Makefile:322: non-nettle.o] Error 1
Related to this note in NEWS: In addition, support for alignof and alignas is required; these are part of C11, but intention is that this is the only required C11 feature. > For your information, I can compile it without any errors on x86-x64, but not > on ARM anymore. Which compiler and compiler options did you have this problem with? It's somewhat odd that you appear to have stdalign.h, and a macro alignas expanding to _Alignas, but the latter not working as expected. https://en.cppreference.com/w/c/language/alignas.html mentions a standards "defect report" https://www.open-std.org/jtc1/sc22/wg14/www/docs/n2396.htm#dr_444 that might be relevant. Does it matter if you move the use of _NETTLE_ALIGN16? If all else fails, one could add a --disable-alignas configure option, but since its use changes the ABI, I don't think it's a good idea to adapt automatically. Regards, /Niels -- Niels Möller. PGP key CB4962D070D77D7FCB8BA36271D8F1FF368C6677. Internet email is subject to wholesale government surveillance. _______________________________________________ nettle-bugs mailing list -- [email protected] To unsubscribe send an email to [email protected]
