[erlang-questions] Can I build Erlang with make -j?

Gerhard Lazu <>
Wed Jan 30 13:34:05 CET 2019


Yes, the -j flag is guaranteed to work as expected when building Erlang
from source. If still in doubt, can you think of a series of checks that
you could run post-build to ensure that the resulting artefact behaves
correctly?

We are using -j when compiling Erlang in the RabbitMQ Docker image:
https://github.com/docker-library/rabbitmq/blob/8a623bb9420b8bfb1cbad2467abb48db26e7ddbc/3.7/ubuntu/Dockerfile#L138

As for checks, we verify that Erlang/OTP crypto & ssl were compiled against
OpenSSL correctly:
https://github.com/docker-library/rabbitmq/blob/8a623bb9420b8bfb1cbad2467abb48db26e7ddbc/3.7/ubuntu/Dockerfile#L159

The same -j flag is used in the Erlang Docker image:
https://github.com/erlang/docker-erlang-otp/blob/a35e84764af1391f174905c7d18db3c1b7c629e6/21/Dockerfile#L29

Hope this helps, Gerhard.

On Wed, Jan 30, 2019 at 11:19 AM Roger Lipscombe <>
wrote:

> I'm building Erlang/OTP (using kerl, but I don't think that's
> relevant) and it's taking forever. Can I use MAKEFLAGS=-j8 to make it
> quicker? Is this supported?
>
> I mean, sure, it *appears* to be working (though something's using
> more than 8 cores, somehow, and my music playback's getting choppy).
> But is it *guaranteed* to work?
> _______________________________________________
> erlang-questions mailing list
> 
> http://erlang.org/mailman/listinfo/erlang-questions
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20190130/5a562890/attachment.html>


More information about the erlang-questions mailing list