--- clang-14.log 2022-11-02 22:36:18.481746176 +1100 +++ clang-15.log 2022-11-02 22:36:18.482746173 +1100 @@ -1,70 +1,68 @@ -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: unsupported option '-dumpspecs' -clang-15: error: no input files -clang version 15.0.1 +clang-14: error: unsupported option '-dumpspecs' +clang-14: error: no input files +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: unsupported option '-dumpspecs' -clang-15: error: no input files -clang version 15.0.1 +clang-14: error: unsupported option '-dumpspecs' +clang-14: error: no input files +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: unsupported option '-dumpspecs' -clang-15: error: no input files +clang-14: error: unsupported option '-dumpspecs' +clang-14: error: no input files -if288.c:2:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] +if288.c:2:1: error: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Werror,-Wimplicit-int] main(argc, argv) ^ int -if288.c:6:3: 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] +if288.c:6:3: 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("%d\n", __GLIBC_MINOR__); ^ if288.c:6:3: note: include the header or explicitly provide a declaration for 'printf' if288.c:2:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] main(argc, argv) ^ -3 warnings generated. +1 warning and 2 errors generated. -ignoreme: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] +ignoreme: error: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Werror,-Wimplicit-int] foo(){} ^ int ignoreme: warning: non-void function does not return a value [-Wreturn-type] foo(){} ^ -2 warnings generated. -ignoreme: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] +ignoreme: error: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Werror,-Wimplicit-int] foo(){} ^ int ignoreme: warning: non-void function does not return a value [-Wreturn-type] foo(){} ^ -2 warnings generated. -configure:1173:10: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] +configure:1173:10: error: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Werror,-Wimplicit-int] } inline foo() { ~~~~~~ ^ int @@ -109,13 +107,13 @@ -configure:1588:67: 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] +configure:1488:67: 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] if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2); ^ -configure:1588:67: note: include the header or explicitly provide a declaration for 'exit' +configure:1488:67: note: include the header or explicitly provide a declaration for 'exit' -configure:2461:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] +configure:2461:1: error: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Werror,-Wimplicit-int] main(){return(0);} ^ int @@ -231,56 +229,56 @@ configure:2509:6: note: 'vsprintf' is a builtin with type 'int (char *, const char *, struct __va_list_tag *)' -configure:2645:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] +configure:2645:1: error: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Werror,-Wimplicit-int] find_stack_direction () ^ int -configure:2657:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] +configure:2657:1: error: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Werror,-Wimplicit-int] main () ^ int -configure:2659:3: 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] +configure:2659:3: 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 (find_stack_direction() < 0); ^ configure:2659:3: note: include the header or explicitly provide a declaration for 'exit' -3 warnings generated. +3 errors generated. configure:2691:10: fatal error: 'vfork.h' file not found #include ^~~~~~~~~ -configure:2797:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] +configure:2797:1: error: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Werror,-Wimplicit-int] sparc_address_test (arg) int arg; ^ configure:2797:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] configure:2813:1: warning: non-void function does not return a value in all control paths [-Wreturn-type] } ^ -configure:2814:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] +configure:2814:1: error: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Werror,-Wimplicit-int] main() { ^ int configure:2818:23: warning: too few arguments in call to 'sparc_address_test' sparc_address_test (); ~~~~~~~~~~~~~~~~~~ ^ -configure:2852:12: warning: call to undeclared function 'wait'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] +configure:2852:12: error: call to undeclared function 'wait'; ISO C99 and later do not support implicit function declarations [-Werror,-Wimplicit-function-declaration] while (wait(&status) != child) ^ -configure:2854:5: 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] +configure:2854:5: 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( ^ configure:2854:5: note: include the header or explicitly provide a declaration for 'exit' -7 warnings generated. +3 warnings and 4 errors generated. /usr/bin/x86_64-pc-linux-gnu-ld: /var/tmp/portage/sys-libs/libstdc++-v3-3.3.6-r4/temp/conftest.o: in function `main': conftest.c:(.text+0x4): undefined reference to `_doprnt' -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: /var/tmp/portage/sys-libs/libstdc++-v3-3.3.6-r4/temp/conftest.o: in function `main': conftest.c:(.text+0x3): undefined reference to `sys_errlist' -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: /var/tmp/portage/sys-libs/libstdc++-v3-3.3.6-r4/temp/conftest.o: in function `main': conftest.c:(.text+0x3): undefined reference to `sys_nerr' -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: /var/tmp/portage/sys-libs/libstdc++-v3-3.3.6-r4/temp/conftest.o: in function `main': conftest.c:(.text+0x3): undefined reference to `sys_siglist' -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) configure:3059:10: fatal error: 'sys/systemcfg.h' file not found #include ^~~~~~~~~~~~~~~~~ @@ -303,46 +301,46 @@ /usr/bin/x86_64-pc-linux-gnu-ld: /var/tmp/portage/sys-libs/libstdc++-v3-3.3.6-r4/temp/conftest.o: in function `main': conftest.c:(.text+0x4): undefined reference to `pstat_getstatic' -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: /var/tmp/portage/sys-libs/libstdc++-v3-3.3.6-r4/temp/conftest.o: in function `main': conftest.c:(.text+0x4): undefined reference to `pstat_getdynamic' -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: /var/tmp/portage/sys-libs/libstdc++-v3-3.3.6-r4/temp/conftest.o: in function `main': conftest.c:(.text+0x4): undefined reference to `sysmp' -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: /var/tmp/portage/sys-libs/libstdc++-v3-3.3.6-r4/temp/conftest.o: in function `main': conftest.c:(.text+0x4): undefined reference to `getsysinfo' -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: /var/tmp/portage/sys-libs/libstdc++-v3-3.3.6-r4/temp/conftest.o: in function `main': conftest.c:(.text+0x4): undefined reference to `table' -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: /var/tmp/portage/sys-libs/libstdc++-v3-3.3.6-r4/temp/conftest.o: in function `main': conftest.c:(.text+0x4): undefined reference to `sysctl' -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) configure:3360:7: warning: incompatible redeclaration of library function 'malloc' [-Wincompatible-library-redeclaration] char *malloc(); ^ configure:3360:7: note: 'malloc' is a builtin with type 'void *(unsigned long)' -configure:3370:13: warning: call to undeclared function 'getpagesize'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] +configure:3370:13: error: call to undeclared function 'getpagesize'; ISO C99 and later do not support implicit function declarations [-Werror,-Wimplicit-function-declaration] pagesize = getpagesize(); ^ -configure:3375:15: warning: passing arguments to 'malloc' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] +configure:3375:14: warning: passing arguments to 'malloc' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] data = malloc(pagesize); ^ -configure:3377:3: 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] +configure:3377:3: 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(1); ^ configure:3377:3: note: include the header or explicitly provide a declaration for 'exit' -configure:3379:17: warning: call to undeclared function 'rand'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] +configure:3379:17: error: call to undeclared function 'rand'; ISO C99 and later do not support implicit function declarations [-Werror,-Wimplicit-function-declaration] *(data + i) = rand(); ^ -configure:3380:2: warning: call to undeclared function 'umask'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] +configure:3380:2: error: call to undeclared function 'umask'; ISO C99 and later do not support implicit function declarations [-Werror,-Wimplicit-function-declaration] umask(0); ^ -configure:3384:6: warning: call to undeclared function 'write'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] +configure:3384:6: error: call to undeclared function 'write'; ISO C99 and later do not support implicit function declarations [-Werror,-Wimplicit-function-declaration] if (write(fd, data, pagesize) != pagesize) ^ -configure:3386:2: warning: call to undeclared function 'close'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] +configure:3386:2: error: call to undeclared function 'close'; ISO C99 and later do not support implicit function declarations [-Werror,-Wimplicit-function-declaration] close(fd); ^ configure:3396:16: warning: passing arguments to 'malloc' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] @@ -354,35 +352,35 @@ configure:3414:16: warning: passing arguments to 'malloc' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] data3 = malloc(pagesize); ^ -configure:3417:6: warning: call to undeclared function 'read'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] +configure:3417:6: error: call to undeclared function 'read'; ISO C99 and later do not support implicit function declarations [-Werror,-Wimplicit-function-declaration] if (read(fd, data3, pagesize) != pagesize) ^ -configure:3423:2: warning: call to undeclared function 'unlink'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] +configure:3423:2: error: call to undeclared function 'unlink'; ISO C99 and later do not support implicit function declarations [-Werror,-Wimplicit-function-declaration] unlink("conftestmmap"); ^ -13 warnings generated. -configure:3492:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] +5 warnings and 8 errors generated. +configure:3492:1: error: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Werror,-Wimplicit-int] main () ^ int -configure:3500:5: 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] +configure:3500:5: 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 (1); ^ configure:3500:5: note: include the header or explicitly provide a declaration for 'exit' -configure:3512:40: warning: call to undeclared library function 'strlen' with type 'unsigned long (const char *)'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] +configure:3512:40: error: call to undeclared library function 'strlen' with type 'unsigned long (const char *)'; ISO C99 and later do not support implicit function declarations [-Werror,-Wimplicit-function-declaration] char *q = (char *) p + MAP_LEN - strlen (string) - 2; ^ configure:3512:40: note: include the header or explicitly provide a declaration for 'strlen' -configure:3515:7: warning: call to undeclared library function 'strcpy' with type 'char *(char *, const char *)'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] +configure:3514:7: error: call to undeclared library function 'strcpy' with type 'char *(char *, const char *)'; ISO C99 and later do not support implicit function declarations [-Werror,-Wimplicit-function-declaration] strcpy (q, string); ^ -configure:3515:7: note: include the header or explicitly provide a declaration for 'strcpy' -configure:3517:7: warning: call to undeclared library function 'strncmp' with type 'int (const char *, const char *, unsigned long)'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] +configure:3514:7: note: include the header or explicitly provide a declaration for 'strcpy' +configure:3517:7: error: call to undeclared library function 'strncmp' with type 'int (const char *, const char *, unsigned long)'; ISO C99 and later do not support implicit function declarations [-Werror,-Wimplicit-function-declaration] strncmp (r, q, 14); ^ configure:3517:7: note: include the header or explicitly provide a declaration for 'strncmp' -5 warnings generated. -configure:1099:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] +5 errors generated. +configure:1099:1: error: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Werror,-Wimplicit-int] main(){return(0);} ^ int @@ -415,10 +413,10 @@ ^ -configure:1815:25: error: duplicate case value '0' +configure:1814:25: error: duplicate case value '0' switch (0) case 0: case (sizeof (long) == 4):; ^ -configure:1815:17: note: previous case defined here +configure:1814:17: note: previous case defined here switch (0) case 0: case (sizeof (long) == 4):; ^ @@ -448,20 +446,20 @@ /usr/bin/x86_64-pc-linux-gnu-ld: /var/tmp/portage/sys-libs/libstdc++-v3-3.3.6-r4/temp/conftest.o: in function `main': conftest.c:(.text+0x4): undefined reference to `ldopen' -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 -lld: 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 -lmld: 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 -lmld: 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 -lmld: 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: /var/tmp/portage/sys-libs/libstdc++-v3-3.3.6-r4/temp/conftest.o: in function `main': conftest.c:(.text+0x4): undefined reference to `exc_resume' -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 -lexc: 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) configure:3542:6: warning: incompatible redeclaration of library function 'ldexp' [-Wincompatible-library-redeclaration] char ldexp(); ^ @@ -475,14 +473,14 @@ /usr/bin/x86_64-pc-linux-gnu-ld: /var/tmp/portage/sys-libs/libstdc++-v3-3.3.6-r4/temp/conftest.o: in function `main': conftest.c:(.text+0x4): undefined reference to `atoq' -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: /var/tmp/portage/sys-libs/libstdc++-v3-3.3.6-r4/temp/conftest.o: in function `main': conftest.c:(.text+0x4): undefined reference to `fprintf_unlocked' -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) @@ -490,18 +488,18 @@ -configure:3817:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] +configure:3817:1: error: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Werror,-Wimplicit-int] main() ^ int -configure:3826:7: warning: call to undeclared function 'getgroups'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] +configure:3826:7: error: call to undeclared function 'getgroups'; ISO C99 and later do not support implicit function declarations [-Werror,-Wimplicit-function-declaration] n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1, ^ -configure:3830:3: 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] +configure:3830:3: 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 ((n > 0 && gidset[n] != val.gval) ? 1 : 0); ^ configure:3830:3: note: include the header or explicitly provide a declaration for 'exit' -3 warnings generated. +3 errors generated. @@ -560,7 +558,7 @@ ^ /usr/bin/x86_64-pc-linux-gnu-ld: cannot find -lunwind: 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) configure:5257:6: warning: incompatible redeclaration of library function 'strerror' [-Wincompatible-library-redeclaration] char strerror(); ^