--- clang-14.log 2022-11-02 22:36:16.862751379 +1100 +++ clang-15.log 2022-11-02 22:36:16.862751379 +1100 @@ -2,15 +2,15 @@ -clang version 15.0.1 +clang version 14.0.1 Target: x86_64-pc-linux-gnu Thread model: posix -InstalledDir: /usr/lib/llvm/15/bin +InstalledDir: /usr/lib/llvm/14/bin Selected GCC installation: /usr/lib/gcc/x86_64-pc-linux-gnu/11.3.0 Candidate multilib: .;@m64 Candidate multilib: 32;@m32 Selected multilib: .;@m64 -clang-15: error: no input files +clang-14: error: no input files @@ -36,16 +36,16 @@ /usr/bin/x86_64-pc-linux-gnu-ld: cannot find -lsendfile: No such file or directory -clang-15: error: linker command failed with exit code 1 (use -v to see invocation) +clang-14: error: linker command failed with exit code 1 (use -v to see invocation) /usr/bin/x86_64-pc-linux-gnu-ld: cannot find -liconv: No such file or directory -clang-15: error: linker command failed with exit code 1 (use -v to see invocation) +clang-14: error: linker command failed with exit code 1 (use -v to see invocation) /usr/bin/x86_64-pc-linux-gnu-ld: cannot find -lintl: No such file or directory -clang-15: error: linker command failed with exit code 1 (use -v to see invocation) +clang-14: error: linker command failed with exit code 1 (use -v to see invocation) /usr/bin/x86_64-pc-linux-gnu-ld: cannot find -lintl: No such file or directory -clang-15: error: linker command failed with exit code 1 (use -v to see invocation) +clang-14: error: linker command failed with exit code 1 (use -v to see invocation) @@ -58,13 +58,13 @@ /usr/bin/x86_64-pc-linux-gnu-ld: cannot find -lintl: No such file or directory -clang-15: error: linker command failed with exit code 1 (use -v to see invocation) +clang-14: error: linker command failed with exit code 1 (use -v to see invocation) try.c:6:7: warning: unused variable 'b' [-Wunused-variable] bfd *b = 0; ^ /usr/bin/x86_64-pc-linux-gnu-ld: cannot find -lintl: No such file or directory -clang-15: error: linker command failed with exit code 1 (use -v to see invocation) +clang-14: error: linker command failed with exit code 1 (use -v to see invocation) @@ -145,7 +145,7 @@ #include ^~~~~~~~~~~~ /usr/bin/x86_64-pc-linux-gnu-ld: cannot find -lWs2_32: No such file or directory -clang-15: error: linker command failed with exit code 1 (use -v to see invocation) +clang-14: error: linker command failed with exit code 1 (use -v to see invocation) try.c:11:14: warning: variable 'ret' set but not used [-Wunused-but-set-variable] @@ -156,7 +156,7 @@ ^~~~~~~~~~ /usr/bin/x86_64-pc-linux-gnu-ld: cannot find -lWs2_32: No such file or directory -clang-15: error: linker command failed with exit code 1 (use -v to see invocation) +clang-14: error: linker command failed with exit code 1 (use -v to see invocation) try.c:8:17: error: call to undeclared function 'getprogname'; ISO C99 and later do not support implicit function declarations [-Werror,-Wimplicit-function-declaration] @@ -302,16 +302,16 @@ /usr/bin/x86_64-pc-linux-gnu-ld: cannot find -lWs2_32: No such file or directory -clang-15: error: linker command failed with exit code 1 (use -v to see invocation) +clang-14: error: linker command failed with exit code 1 (use -v to see invocation) -try.c:15:9: error: call to undeclared function 'semtimedop'; ISO C99 and later do not support implicit function declarations [-Werror,-Wimplicit-function-declaration] +try.c:14:9: error: call to undeclared function 'semtimedop'; ISO C99 and later do not support implicit function declarations [-Werror,-Wimplicit-function-declaration] ret |= semtimedop(id, &buf, n, (struct timespec *) 0); ^ /usr/bin/x86_64-pc-linux-gnu-ld: cannot find -lsendfile: No such file or directory -clang-15: error: linker command failed with exit code 1 (use -v to see invocation) +clang-14: error: linker command failed with exit code 1 (use -v to see invocation) try.c:12:3: error: call to undeclared function 'setproctitle'; ISO C99 and later do not support implicit function declarations [-Werror,-Wimplicit-function-declaration] @@ -466,15 +466,15 @@ #define G_DEPRECATED_FOR(f) __attribute__((__deprecated__("Use '" #f "' instead"))) ^ 2 warnings generated. -try.c:3:2: warning: call to undeclared library function 'printf' with type 'int (const char *, ...)'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] +try.c:3:2: error: call to undeclared library function 'printf' with type 'int (const char *, ...)'; ISO C99 and later do not support implicit function declarations [-Werror,-Wimplicit-function-declaration] printf("OK\n"); ^ try.c:3:2: note: include the header or explicitly provide a declaration for 'printf' -try.c:4:2: warning: call to undeclared library function 'exit' with type 'void (int) __attribute__((noreturn))'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] +try.c:4:2: error: call to undeclared library function 'exit' with type 'void (int) __attribute__((noreturn))'; ISO C99 and later do not support implicit function declarations [-Werror,-Wimplicit-function-declaration] exit(0); ^ try.c:4:2: note: include the header or explicitly provide a declaration for 'exit' -2 warnings generated. +2 errors generated. bar1.c:1:21: error: call to undeclared function 'bar2'; ISO C99 and later do not support implicit function declarations [-Werror,-Wimplicit-function-declaration] int bar1() { return bar2(); } @@ -493,8 +493,8 @@ int main() { printf("%d\n", bar1()); return 0; } ^ 2 errors generated. -clang-15: error: no such file or directory: 'foo.o' -clang-15: error: no such file or directory: 'bar.a' +clang-14: error: no such file or directory: 'foo.o' +clang-14: error: no such file or directory: 'bar.a' @@ -508,7 +508,7 @@ try.c:25:2: note: remove the 'if' if its condition is always true if (doit()) ^~~~~~~~~~~ -try.c:8:15: note: initialize the variable 'goo' to silence this warning +try.c:8:14: note: initialize the variable 'goo' to silence this warning void (*goo)(); /* ptr to func returning void */ ^ = 0 @@ -519,7 +519,7 @@ In file included from :1: -/usr/lib/llvm/15/bin/../../../../lib/clang/15.0.1/include/varargs.h:11:4: error: "Please use instead of " +/usr/lib/llvm/14/bin/../../../../lib/clang/14.0.1/include/varargs.h:11:4: error: "Please use instead of " #error "Please use instead of " ^ @@ -534,8 +534,8 @@ static size_t n, srcleft, dstleft; ^ /usr/bin/x86_64-pc-linux-gnu-ld: cannot find -liconv: No such file or directory -clang-15: error: linker command failed with exit code 1 (use -v to see invocation) +clang-14: error: linker command failed with exit code 1 (use -v to see invocation) try.c:8:16: warning: variable 'n' set but not used [-Wunused-but-set-variable] static size_t n, srcleft, dstleft; ^ -clang-15: error: unknown argument: '-mieee' +clang-14: error: unknown argument: '-mieee'