GNOME Bugzilla – Bug 762291
Cerbero failed (once) to build gnutls with current MinGW
Last modified: 2016-04-24 23:45:55 UTC
This is a weird bug since it did not happen after I repeated the build, so I would just keep it here in case someone else hits it and could reproduce it. Basically Cerbero failed to compile gnutls and configure aborted with the following message: checking whether <wchar.h> uses 'inline' correctly... no configure: error: <wchar.h> cannot be used with this compiler. This is a known interoperability problem of glibc <= 2.5 with gcc >= 4.3 in C99 mode. You have four options: - Add the flag -fgnu89-inline to CC and reconfigure, or - Fix your include files, using parts of <http://sourceware.org/git/?p=glibc.git;a=commitdiff;=b037a293a48718af30d706c2e18c929d0e69a621>, or - Use a gcc version older than 4.3, or - Don't use the flags -std=c99 or -std=gnu99. I copied this message from https://lists.freebsd.org/pipermail/freebsd-stable/2013-April/073108.html - the exact compiler flags were different, but did NOT include -std=c99 nor -std=gnu99. After I deleted the windows_x86_64.cache file and restarted the build, everything was built correctly.
Thanks for the bug report, but I'm not quite sure what to do about this, especially seeing that you couldn't even reproduce it yourself (and judging from the error message it should be reproducable if the setup didn't change). I think without more info we'll just have to close it and trust that if it's still an issue someone else will run into it again sooner or later and be able to reproduce it or even have a fix.