[issue31748] Modules/posixmodule.c: skip compiling jka4NaPmmQ37 and posix_fildes_fd

2017-10-10 Thread Дилян Палаузов
Дилян Палаузов added the comment: If I remove -Werror from CFLAGS ./configure prints: checking for fchdir... yes checking for fsync... yes checking for fdatasync... yes so it is irrelevant what the OS is. -- ___ Python tracker

[issue31748] Modules/posixmodule.c: skip compiling jka4NaPmmQ37 and posix_fildes_fd

2017-10-10 Thread STINNER Victor
STINNER Victor added the comment: Ok. My next question is: what is your operating system? What is your operating system version? -- ___ Python tracker ___

[issue31748] Modules/posixmodule.c: skip compiling jka4NaPmmQ37 and posix_fildes_fd

2017-10-10 Thread Дилян Палаузов
Дилян Палаузов added the comment: Having 'CFLAGS="-pipe -Werror -Wall -Wextra -O3 -fno-fat-lto-objects -flto" CXXFLAGS="-pipe -Wall -Wextra -O3 -fno-fat-lto-objects -flto" LDFLAGS="-Wl,-O1,-s -flto=12" ' in config.site and running "./configure" with gcc8 prints: checking for fchdir... no che

[issue31748] Modules/posixmodule.c: skip compiling jka4NaPmmQ37 and posix_fildes_fd

2017-10-10 Thread STINNER Victor
STINNER Victor added the comment: Hi Дилян Палаузов, > These are needed only sometimes. Would you mind to elaborate, please? Which platform doesn't have os.fchdir(), os.fsync() nor os.fdatasync()? -- nosy: +haypo ___ Python tracker

[issue31748] Modules/posixmodule.c: skip compiling jka4NaPmmQ37 and posix_fildes_fd

2017-10-10 Thread Дилян Палаузов
New submission from Дилян Палаузов : These are needed only sometimes. diff --git a/Modules/posixmodule.c b/Modules/posixmodule.c --- a/Modules/posixmodule.c +++ b/Modules/posixmodule.c @@ -1466,6 +1466,7 @@ path_error2(path_t *path, path_t *path2) /* POSIX generic methods */ +#if defined(HA