由于 rstan 编译问题,travis 构建失败

travis builds failing due to rstan compilation issues

我在 Linux 上构建的包因 rstan 包的以下编译错误而失败:

lto-wrapper: fatal error: make returned 2 exit status
compilation terminated.
/usr/bin/ld: lto-wrapper failed
collect2: error: ld returned 1 exit status
make: *** [rstan.so] Error 1
ERROR: compilation failed for package ‘rstan’

如何修改我的 travis.yaml 以在 Travis 上成功安装 rstan

构建日志: https://travis-ci.org/IndrajeetPatil/statsExpressions/builds/638404778?utm_source=github_status&utm_medium=notification

特拉维斯亚姆: https://github.com/IndrajeetPatil/statsExpressions/blob/master/.travis.yml

在尝试了许多不同的排列和组合之后,我终于让 Travis 构建成功,不仅通过正确编译 rstan 而且还安装了其他需要编译的包,以便日志不超过最大值限制或超时。

这是供将来可能 运行 遇到类似问题的任何人使用的新 yaml 文件: https://github.com/IndrajeetPatil/statsExpressions/blob/master/.travis.yml