X-Git-Url: https://git.saurik.com/bison.git/blobdiff_plain/bcbbf654863dd285b176a0f54a75a28c4bdac1d3..fa5303b8ff748b8feab0b2613773056ce9f3ff54:/README-hacking?ds=sidebyside diff --git a/README-hacking b/README-hacking index bb91ac06..26391e98 100644 --- a/README-hacking +++ b/README-hacking @@ -168,6 +168,19 @@ decide whether to update. ** make check Use liberally. +** Typical errors +If the test suite shows failures such as the following one + + .../bison/lib/getopt.h:196:8: error: redefinition of 'struct option' + /usr/include/getopt.h:54:8: error: previous definition of 'struct option' + +it probably means that some file was compiled without +AT_DATA_SOURCE_PROLOGUE. This error is due to the fact that our -I options +pick up gnulib's replacement headers, such as getopt.h, and this will go +wrong if config.h was not included first. + +See tests/local.at for details. + ** make maintainer-check-valgrind This target uses valgrind both to check bison, and the generated parsers.