 <p>Since you crosspost, I crossanswer :P IMHO crossposting is bad and you should delete one of the questions.</p> <hr> <p>This question is also being answered here (since you already found my github bug report):</p> <p><a href="https://debbugs.gnu.org/cgi/bugreport.cgi?bug=23529" rel="nofollow">https://debbugs.gnu.org/cgi/bugreport.cgi?bug=23529</a></p> <p>For the moment, and likely it will be this way until the emacs build system changes, the only valid solutions are:</p> <ul> <li><p>Don't build with a Dockerfile and build in a running container that has a seccomp profile that allows the personality syscall. For example:</p> <p><code>docker run --rm -it --security-opt seccomp=unconfined emacs-builder-image</code></p></li> <li><p>Disable /proc/sys/kernel/randomize_va_space before building:</p> <p><code>echo 0 &gt; /proc/sys/kernel/randomize_va_space; docker build .</code></p></li> </ul>