Closed
Description
Compilation on the Amazon Linux AMI currently fails with errors of the form (this is probably the same on CentOS).
In file included from /home/ec2-user/ray/src/common/state/table.h:7:0,
from /home/ec2-user/ray/src/common/state/table.cc:1:
/home/ec2-user/ray/src/common/state/table.cc: In function ‘int64_t table_timeout_handler(event_loop*, int64_t, void*)’:
/home/ec2-user/ray/src/common/state/table.cc:90:49: error: expected ‘)’ before PRId64’
LOG_WARN("Table command %s with timer ID %" PRId64 " failed",
^
/home/ec2-user/ray/src/common/cmake/../common.h:75:37: note: in definition of macro ‘LOG_WARN’
fprintf(stderr, "[WARN] (%s:%d) " M "\n", __FILE__, __LINE__, ##__VA_ARGS__)
^
Replacing the instances of PRId64 with %lld
or something like that (or just removing them) makes compilation work, although that probably isn't exactly the right solution (because it will introduce compiler warnings at least on Ubuntu).
Note that to install the Ray dependencies, I did the following.
sudo yum update
sudo yum install -y git cmake autoconf curl libtool boost-devel boost-devel-static unzip
sudo yum install -y gcc gcc-c++ make openssl-devel
wget https://repo.continuum.io/archive/Anaconda3-4.3.1-Linux-x86_64.sh
bash Anaconda3-4.3.1-Linux-x86_64.sh
pip install numpy cloudpickle funcsigs colorama psutil redis flatbuffers