https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84629
Bug ID: 84629 Summary: sanitizer warnings and errors on Linux Product: gcc Version: 8.0.1 Status: UNCONFIRMED Severity: normal Priority: P3 Component: sanitizer Assignee: unassigned at gcc dot gnu.org Reporter: jay.krell at cornell dot edu CC: dodji at gcc dot gnu.org, dvyukov at gcc dot gnu.org, jakub at gcc dot gnu.org, kcc at gcc dot gnu.org, marxin at gcc dot gnu.org Target Milestone: --- ^ /s/gccgit/libsanitizer/sanitizer_common/sanitizer_linux.cc:230:44: note: in expansion of macro 'SYSCALL' HANDLE_EINTR(res, (sptr)internal_syscall(SYSCALL(ftruncate), fd, ^~~~~~~ /s/gccgit/libsanitizer/sanitizer_common/sanitizer_syscall_generic.inc:15:24: note: suggested alternative: 'SYS_ftruncat ' # define SYSCALL(name) __NR_ ## name ^~~~~ /s/gccgit/libsanitizer/sanitizer_common/sanitizer_internal_defs.h:377:14: note: in definition of macro 'HANDLE_EINTR' res = (f); \ ^ /s/gccgit/libsanitizer/sanitizer_common/sanitizer_linux.cc:230:44: note: in expansion of macro 'SYSCALL' HANDLE_EINTR(res, (sptr)internal_syscall(SYSCALL(ftruncate), fd, ^~~~~~~ In file included from /s/gccgit/libsanitizer/sanitizer_common/sanitizer_linux.cc:152: /s/gccgit/libsanitizer/sanitizer_common/sanitizer_linux.cc: In function '__sanitizer::uptr __sanitizer::internal_stat(const char*, void*)': /s/gccgit/libsanitizer/sanitizer_common/sanitizer_syscall_generic.inc:15:24: error: '__NR_stat64' was not declared in this scope # define SYSCALL(name) __NR_ ## name ^~~~~ /s/gccgit/libsanitizer/sanitizer_common/sanitizer_linux.cc:322:30: note: in expansion of macro 'SYSCALL' int res = internal_syscall(SYSCALL(stat64), path, &buf64); ^~~~~~~ /s/gccgit/libsanitizer/sanitizer_common/sanitizer_syscall_generic.inc:15:24: note: suggested alternative: '__lxstat64' # define SYSCALL(name) __NR_ ## name ^~~~~ /s/gccgit/libsanitizer/sanitizer_common/sanitizer_linux.cc:322:30: note: in expansion of macro 'SYSCALL' int res = internal_syscall(SYSCALL(stat64), path, &buf64); ^~~~~~~ /s/gccgit/libsanitizer/sanitizer_common/sanitizer_linux.cc: In function '__sanitizer::uptr __sanitizer::internal_lstat(const char*, void*)': /s/gccgit/libsanitizer/sanitizer_common/sanitizer_syscall_generic.inc:15:24: error: '__NR_lstat64' was not declared in this scope # define SYSCALL(name) __NR_ ## name ^~~~~ /s/gccgit/libsanitizer/sanitizer_common/sanitizer_linux.cc:349:30: note: in expansion of macro 'SYSCALL' int res = internal_syscall(SYSCALL(lstat64), path, &buf64); ^~~~~~~ /s/gccgit/libsanitizer/sanitizer_common/sanitizer_syscall_generic.inc:15:24: note: suggested alternative: '__lxstat64' # define SYSCALL(name) __NR_ ## name ^~~~~ /s/gccgit/libsanitizer/sanitizer_common/sanitizer_linux.cc:349:30: note: in expansion of macro 'SYSCALL' int res = internal_syscall(SYSCALL(lstat64), path, &buf64); ^~~~~~~ /s/gccgit/libsanitizer/sanitizer_common/sanitizer_linux.cc: In function '__sanitizer::uptr __sanitizer::internal_dup2(int, int)': /s/gccgit/libsanitizer/sanitizer_common/sanitizer_syscall_generic.inc:15:24: error: '__NR_dup2' was not declared in this scope # define SYSCALL(name) __NR_ ## name ^~~~~ /s/gccgit/libsanitizer/sanitizer_common/sanitizer_linux.cc:385:27: note: in expansion of macro 'SYSCALL' return internal_syscall(SYSCALL(dup2), oldfd, newfd); ^~~~~~~ /s/gccgit/libsanitizer/sanitizer_common/sanitizer_syscall_generic.inc:15:24: note: suggested alternative: 'SYS_dup2' # define SYSCALL(name) __NR_ ## name ^~~~~ /s/gccgit/libsanitizer/sanitizer_common/sanitizer_linux.cc:385:27: note: in expansion of macro 'SYSCALL' return internal_syscall(SYSCALL(dup2), oldfd, newfd); ^~~~~~~ /s/gccgit/libsanitizer/sanitizer_common/sanitizer_linux.cc: In function '__sanitizer::uptr __sanitizer::internal_readlink(const char*, char*, __sanitizer::uptr)': /s/gccgit/libsanitizer/sanitizer_common/sanitizer_syscall_generic.inc:15:24: error: '__NR_readlink' was not declared in this scope # define SYSCALL(name) __NR_ ## name ^~~~~ /s/gccgit/libsanitizer/sanitizer_common/sanitizer_linux.cc:396:27: note: in expansion of macro 'SYSCALL' return internal_syscall(SYSCALL(readlink), (uptr)path, (uptr)buf, bufsize); ^~~~~~~ /s/gccgit/libsanitizer/sanitizer_common/sanitizer_syscall_generic.inc:15:24: note: suggested alternative: 'SYS_readlink' # define SYSCALL(name) __NR_ ## name ^~~~~ /s/gccgit/libsanitizer/sanitizer_common/sanitizer_linux.cc:396:27: note: in expansion of macro 'SYSCALL' return internal_syscall(SYSCALL(readlink), (uptr)path, (uptr)buf, bufsize); ^~~~~~~ /s/gccgit/libsanitizer/sanitizer_common/sanitizer_linux.cc: In function '__sanitizer::uptr __sanitizer::internal_unlink(const char*)': /s/gccgit/libsanitizer/sanitizer_common/sanitizer_syscall_generic.inc:15:24: error: '__NR_unlink' was not declared in this scope # define SYSCALL(name) __NR_ ## name ^~~~~ /s/gccgit/libsanitizer/sanitizer_common/sanitizer_linux.cc:404:27: note: in expansion of macro 'SYSCALL' return internal_syscall(SYSCALL(unlink), (uptr)path); ^~~~~~~ /s/gccgit/libsanitizer/sanitizer_common/sanitizer_syscall_generic.inc:15:24: note: suggested alternative: 'shm_unlink' # define SYSCALL(name) __NR_ ## name ^~~~~ /s/gccgit/libsanitizer/sanitizer_common/sanitizer_linux.cc:404:27: note: in expansion of macro 'SYSCALL' return internal_syscall(SYSCALL(unlink), (uptr)path); ^~~~~~~ /s/gccgit/libsanitizer/sanitizer_common/sanitizer_linux.cc: In function '__sanitizer::uptr __sanitizer::internal_rename(const char*, const char*)': /s/gccgit/libsanitizer/sanitizer_common/sanitizer_syscall_generic.inc:15:24: error: '__NR_rename' was not declared in this scope # define SYSCALL(name) __NR_ ## name ^~~~~ /s/gccgit/libsanitizer/sanitizer_common/sanitizer_linux.cc:413:27: note: in expansion of macro 'SYSCALL' return internal_syscall(SYSCALL(rename), (uptr)oldpath, (uptr)newpath); ^~~~~~~ /s/gccgit/libsanitizer/sanitizer_common/sanitizer_syscall_generic.inc:15:24: note: suggested alternative: 'SYS_rename' # define SYSCALL(name) __NR_ ## name ^~~~~ /s/gccgit/libsanitizer/sanitizer_common/sanitizer_linux.cc:413:27: note: in expansion of macro 'SYSCALL' return internal_syscall(SYSCALL(rename), (uptr)oldpath, (uptr)newpath); ^~~~~~~ /s/gccgit/libsanitizer/sanitizer_common/sanitizer_linux.cc: In function '__sanitizer::uptr __sanitizer::internal_getdents(__sanitizer::fd_t, __sanitizer::linux_dirent*, unsigned int)': /s/gccgit/libsanitizer/sanitizer_common/sanitizer_syscall_generic.inc:15:24: error: '__NR_getdents' was not declared in this scope # define SYSCALL(name) __NR_ ## name ^~~~~ /s/gccgit/libsanitizer/sanitizer_common/sanitizer_linux.cc:724:27: note: in expansion of macro 'SYSCALL' return internal_syscall(SYSCALL(getdents), fd, (uptr)dirp, count); ^~~~~~~ /s/gccgit/libsanitizer/sanitizer_common/sanitizer_syscall_generic.inc:15:24: note: suggested alternative: 'SYS_getdents' # define SYSCALL(name) __NR_ ## name ^~~~~ /s/gccgit/libsanitizer/sanitizer_common/sanitizer_linux.cc:724:27: note: in expansion of macro 'SYSCALL' return internal_syscall(SYSCALL(getdents), fd, (uptr)dirp, count); ^~~~~~~ /s/gccgit/libsanitizer/sanitizer_common/sanitizer_linux.cc: In function '__sanitizer::uptr __sanitizer::internal_lseek(__sanitizer::fd_t, __sanitizer::OFF_T, int)': /s/gccgit/libsanitizer/sanitizer_common/sanitizer_syscall_generic.inc:15:24: error: '__NR_lseek' was not declared in this scope # define SYSCALL(name) __NR_ ## name ^~~~~ /s/gccgit/libsanitizer/sanitizer_common/sanitizer_linux.cc:732:27: note: in expansion of macro 'SYSCALL' return internal_syscall(SYSCALL(lseek), fd, offset, whence); ^~~~~~~ /s/gccgit/libsanitizer/sanitizer_common/sanitizer_syscall_generic.inc:15:24: note: suggested alternative: 'SYS_lseek' # define SYSCALL(name) __NR_ ## name ^~~~~ /s/gccgit/libsanitizer/sanitizer_common/sanitizer_linux.cc:732:27: note: in expansion of macro 'SYSCALL' return internal_syscall(SYSCALL(lseek), fd, offset, whence); ^~~~~~~ /s/gccgit/libsanitizer/sanitizer_common/sanitizer_linux.cc: In function 'int __sanitizer::internal_fork()': /s/gccgit/libsanitizer/sanitizer_common/sanitizer_syscall_generic.inc:15:24: error: '__NR_fork' was not declared in this scope # define SYSCALL(name) __NR_ ## name ^~~~~ /s/gccgit/libsanitizer/sanitizer_common/sanitizer_linux.cc:750:27: note: in expansion of macro 'SYSCALL' return internal_syscall(SYSCALL(fork)); ^~~~~~~ /s/gccgit/libsanitizer/sanitizer_common/sanitizer_syscall_generic.inc:15:24: note: suggested alternative: 'SYS_fork' # define SYSCALL(name) __NR_ ## name ^~~~~ /s/gccgit/libsanitizer/sanitizer_common/sanitizer_linux.cc:750:27: note: in expansion of macro 'SYSCALL' return internal_syscall(SYSCALL(fork)); ^~~~~~~ /s/gccgit/libsanitizer/sanitizer_common/sanitizer_linux.cc: In function 'void* __sanitizer::internal_start_thread(void (*)(void*), void*)': /s/gccgit/libsanitizer/sanitizer_common/sanitizer_linux.cc:1621:58: warning: cast between incompatible function types from 'void (*)(void*)' to 'void* (*)(void*)' [-Wcast-function-type] real_pthread_create(&th, nullptr, (void*(*)(void *arg))func, arg); ^~~~ Ma