GNOME Bugzilla – Bug 681244
Configure errors out from AC_CHECK_ALIGNOF
Last modified: 2012-08-05 19:43:42 UTC
Configure errors out with "cannot compute alignment of guint32" From config.log: conftest.c: In function 'main': conftest.c:121:12: error: size of array 'test_array' is negative conftest.c:121:12: error: storage size of 'test_array' isn't constant conftest.c:121:12: warning: unused variable 'test_array' [-Wunused-variable] ... configure:28574: error: in `/tmp/crosser-cazfi/build/glib': configure:28576: error: cannot compute alignment of guint32 See `config.log' for more details It seems that this alignment check is AC_CHECK_ALIGNOF in configure.ac. Google found mails from autoconf bugs list about this error (I didn't search for glib specific error, but it turned out that one reported to autoconf list was about glib too). There it was declared (glib) configure.ac bug, not autoconf bug. http://lists.gnu.org/archive/html/bug-autoconf/2012-04/msg00026.html
Created attachment 220394 [details] [review] Workaround This is the workaround I used to get past the error.
Reading the discussion on the list it seems that our problem is that invocation of macros inside of open-coded if statements is not permitted in autoconf and that we should be using AS_IF instead.
Ah. Looks like this was already fixed a few months ago... *** This bug has been marked as a duplicate of bug 674483 ***