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

alex@REDACTED alex@REDACTED
Thu Jan 31 07:45:27 CET 2019


Never had any issue using the -j flag as...

CFLAGS="-O3 -fPIC -march=native -pipe" ./configure --prefix=/usr && make 
-j{number of cores + 1}

Cheers,
Alex


On 1/30/19 7:34 AM, Gerhard Lazu wrote:
> 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 
> <roger@REDACTED <mailto:roger@REDACTED>> 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
>     erlang-questions@REDACTED <mailto:erlang-questions@REDACTED>
>     http://erlang.org/mailman/listinfo/erlang-questions
>
>
> _______________________________________________
> erlang-questions mailing list
> erlang-questions@REDACTED
> http://erlang.org/mailman/listinfo/erlang-questions
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20190131/c58f90d8/attachment.htm>


More information about the erlang-questions mailing list