The document suggests copy `/usr/lib/libatomic_ops.a` to `/usr/lib/libatomic.a`. Instead of copying, using a soft link to libatomic_ops is also an option. The reason to soft link is also added. I have successfully built Godot by using soft link.
--headless