Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

That’s an underlying QEMU bug, which is used by Lima [1]. Add `ENV ERL_FLAGS="+JPperf true"` to your Dockerfile and it will build just fine cross platform. The flag just changes some things during build time and won’t affect runtime performance.

[1] https://gitlab.com/qemu-project/qemu/-/issues/1034



Thanks. I can confirm that this works. Compiling a new project no longer segfaults, and `Mix.install()` works in `iex` too.


HN just turned into Stack Overflow. :)


In that case can this whole thread be deleted and replaced by a link to an almost completely unrelated issue that used some of the same English words in the description? Just trying to get the full effect here.


What are you really trying to compile? This seems like an X vs Y problem. You should throw out the whole Internet and try again.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: