New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

identifier "pid_t" is undefined while build ps in R 3.5.1 by using intel icc 2018.3 #39

quanmqiu opened this Issue Aug 28, 2018 · 1 comment


None yet
2 participants

quanmqiu commented Aug 28, 2018

CentOS 6.10
R 3.5.1
Intel parallel studio 2018.3


error log:
installing source package ‘ps’ ...
** package ‘ps’ successfully unpacked and MD5 sums checked
** libs
icc -std=c99 -g -O3 -wd188 -ip -fp-model precise -qopt-mem-layout-trans=3 -xHost -mavx -Wall px.c -o px
icc -I"/opt/CRAN/R-3.5.1/lib64/R/include" -DNDEBUG -I/opt/extralib/bzip2-1.0.6 -I/opt/extralib/zlib-1.2.11/include -I/opt/extralib/xz-5.2.3/include -I/opt/extralib/pcre-8.42/include -I/opt/extralib/curl-7.59.0/include -fpic -std=c99 -g -O3 -wd188 -ip -fp-model precise -qopt-mem-layout-trans=3 -xHost -mavx -c init.c -o init.o

In file included from init.c(4):
ps-internal.h(25): error: identifier "pid_t" is undefined
pid_t pid;
compilation aborted for init.c (code 2)
make: *** [init.o] Error 2
ERROR: compilation failed for package ‘ps’

perhaps need this two header?
#include <sys/types.h>
#include <unistd.h>


This comment has been minimized.


gaborcsardi commented Oct 7, 2018

Thanks! Have you tried it with the headers? I don't have icc, so can't try, but happy to add it if it helps.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment