我在Linux上构建的软件包失败,并出现select cw.*,f.temp from
(select date, gen_city_id, min(temp) as min_temp, max(temp) as max_temp from current_weather group by date, gen_city_id order by date) cw
inner join
(select gen_city_id, forecast_date, array_agg(temp) temp from forecast where forecast_date < current_date group by gen_city_id, forecast_date) f
on cw.gen_city_id = f.gen_city_id and cw.date = f.forecast_date;
软件包的以下编译错误:
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上成功安装travis.yaml
?
Travis yaml: https://github.com/IndrajeetPatil/statsExpressions/blob/master/.travis.yml
答案 0 :(得分:3)
尝试了许多不同的排列和组合之后,我终于获得了Travis构建的成功,不仅可以正确地编译rstan
,还可以安装其他需要编译的软件包,从而使日志不超过最大限制或超时。
这是新的yaml
文件,适用于将来可能遇到类似问题的任何人:
https://github.com/IndrajeetPatil/statsExpressions/blob/master/.travis.yml