Thanks, Karl. automake-1.16.5/t/dist-vs-built-sources.dir/foo.c only has two lines: #include "h.h" int main (void) { printf ("%s\n", F); return 0; }
Also, automake-1.16.5/t/dist-vs-built-sources.sh only appears to be writing those two lines to foo.c and there is no inclusion of <stdio.h>. Does that give you any clues? Thx. Erik > On Dec 30, 2023, at 2:56 PM, Karl Berry <k...@freefriends.org> wrote: > > Subject: [GNU automake 1.16.5] test-suite 45 tests failed > Clean install of macOS Sonoma 14.2.1 on MacBook Pro M3 max > > Thanks for the report, but it seems like something in the environment is > causing trouble. For example, one of the failing tests is > dist-vs-built-sources.sh: > > gcc -DPACKAGE_NAME=\"dist-vs-built-sources\" > -DPACKAGE_TARNAME=\"dist-vs-built-sources\" -DPACKAGE_VERSION=\"1.0\" > -DPACKAGE_STRING=\"dist-vs-built-sources\ 1.0\" -DPACKAGE_BUGREPORT=\"\" > -DPACKAGE_URL=\"\" -DPACKAGE=\"dist-vs-built-sources\" -DVERSION=\"1.0\" -I. > -g -O2 -MT foo.o -MD -MP -MF .deps/foo.Tpo -c -o foo.o foo.c > foo.c:2:19: error: call to undeclared library function 'printf' with type > 'int (const char *, ...)'; ISO C99 and later do not support implicit function > declarations [-Wimplicit-function-declaration] > int main (void) { printf ("%s\n", F); return 0; } > ^ > foo.c:2:19: note: include the header <stdio.h> or explicitly provide a > declaration for 'printf' > > However, <stdio.h> is already included. The test program is these three > lines (h.h is a trivial #define): > #include <stdio.h> > #include "h.h" > int main (void) { printf ("%s\n", F); return 0; } > > So the failure doesn't make sense to me. I have no access to Sonoma or > other way to debug, unfortunately. > > The other failures also look like they relate to the test suite programs > in this particular environment, rather than actual Automake > functionality. > > Maybe someone else here has an idea or a way to proceed. --thanks, karl.