I tried to repeat the installation from scratch, but unfortunately I incur in the same error.
At the end of the trace log, I get repated mentions of “sprocket” and “sprocket-rails”- I know nothing of Ruby, I guess they’re libraries which somehow fail to compile?
I report here the last two lines of the trace:
...
/home/diaspora/diaspora/vendor/bundle/ruby/2.4.0/gems/sprockets-3.7.1/lib/rake/sprocketstask.rb:147:in `with_logger'
/home/diaspora/diaspora/vendor/bundle/ruby/2.4.0/gems/sprockets-rails-3.2.1/lib/sprockets/rails/task.rb:67:in `block (2 levels) in define'
I don’t know if nodejs 4.x is enough, I have nodejs 6.x on my pod (which is also already pretty old, but still supported), so you could try with a newer nodejs version.