Nginx compile fails with fatal error: ld terminated with signal 9

Written by - 0 comments

Published on - Listed in Linux Nginx

If you ever experience a failed nginx compile process, which ends with the following error:

collect2: fatal error: ld terminated with signal 9 [Killed]
compilation terminated.
objs/Makefile:355: recipe for target 'objs/nginx' failed
make[2]: *** [objs/nginx] Error 1
make[2]: Leaving directory '/home/builder/build/nginx-1.12.0'
Makefile:8: recipe for target 'build' failed
make[1]: *** [build] Error 2
make[1]: Leaving directory '/home/builder/build/nginx-1.12.0'

Check out your memory usage. Dmesg is your friend:

[237469.710196] Out of memory: Kill process 685 (ld) score 716 or sacrifice child
[237469.712587] Killed process 685 (ld) total-vm:374356kB, anon-rss:357624kB, file-rss:0kB

After increasing the memory capacity of this VM, the nginx compile worked just fine.

Add a comment

Show form to leave a comment

Comments (newest first)

No comments yet.