I bump into an error when trying to build an additional python module using intelpython3-2018.1-023.x86_64
OS: CentOs 6.9 x86_64
Compiler: icc 22.214.171.124, gcc, presumed all
Intel python: 3-2018.1-023
cat <<EOF > regex_test.c
$ icc -E -I /softs/intel/python/2018_u1/intelpython3/include regex_test.c >/dev/null
In file included from /softs/intel/python/2018_u1/intelpython3/include/tclPort.h(23),
/softs/intel/python/2018_u1/intelpython3/include/tclUnixPort.h(158): error #2379: cannot open source file "../compat/unistd.h"
# include "../compat/unistd.h"
The "/softs/intel/python/2018_u1/intelpython3/include" include path is *required* for additional python modules compilation.
Obviously the *tcl header overrides the glibc one*.
No such problem occurs with a system python installation (CentOS 6.9), since glibc include "regex.h" is used.