On a (older - with glibc v2.12) linux Centos6.5 cluster using conda 4.5.0, following instructions here and then here, as the result of the command…

python setup.py install

…here are the error messages…

[ 69%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/cube_op.cc.o
(snip)/pytorch/caffe2/operators/crash_op.cc: In member function ‘virtual bool caffe2::CrashOp::RunOnDevice()’:
(snip)/pytorch/caffe2/operators/crash_op.cc:14:11: error: ‘SIGABRT’ was not declared in this scope
raise(SIGABRT);
^
(snip)/pytorch/caffe2/operators/crash_op.cc:14:18: error: ‘raise’ was not declared in this scope
raise(SIGABRT);
^

Also, I believe the following shows where to find, e.g., SIGABRT.

find /usr/include -name signal.h -printf \n -print -exec grep SIGABRT {} ;
/usr/include/asm/signal.h
#define SIGABRT          6
/usr/include/signal.h
/usr/include/asm-generic/signal.h
#define SIGABRT          6
/usr/include/sys/signal.h
/usr/include/linux/signal.h

FYI, I’ve already added the following line…

set(CMAKE_CXX_FLAGS “${CMAKE_CXX_FLAGS} -D_FORCE_INLINES”)

…in order to avoid the error message…

‘errno’ not declared in this scope

Also, I’ve tried additional include_directories commands in CMakeLists.txt but to no avail so far, e.g. as in the following.

include_directories(
AFTER
/usr/include/asm/
)

Also, I’ve tried appending CMAKE_PREFIX_PATH but to no avail as in the following.

export CMAKE_PREFIX_PATH=$CMAKE_PREFIX_PATH:/usr/include/asm

Please advise and please let me know if I can provide more info, thanks.
Best,
CB