Can I build Erlang with make -j?

classic Classic list List threaded Threaded
8 messages Options
Reply | Threaded
Open this post in threaded view
|

Can I build Erlang with make -j?

Roger Lipscombe-2
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
[hidden email]
http://erlang.org/mailman/listinfo/erlang-questions
Reply | Threaded
Open this post in threaded view
|

Re: Can I build Erlang with make -j?

Jesper Eskilson-2
As for it being "supported" I'll let the OTP team answer, but I'm using parallell build all the time and have not seen any issues related to it.

/Jesper

On Wed, Jan 30, 2019 at 12:19 PM Roger Lipscombe <[hidden email]> 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
[hidden email]
http://erlang.org/mailman/listinfo/erlang-questions


--

Jesper Eskilson
Senior Software Engineer
Kred Core
+46-72-855-8421

Klarna Bank AB (publ)
Sveavägen 46, 111 34 Stockholm
Tel: <a href="tel:+46812012000" style="color:rgb(130,130,137)" target="_blank">+46 8 120 120 00
Reg no: 556737-0431
klarna.com


_______________________________________________
erlang-questions mailing list
[hidden email]
http://erlang.org/mailman/listinfo/erlang-questions
Reply | Threaded
Open this post in threaded view
|

Re: Can I build Erlang with make -j?

Lukas Larsson-8
In reply to this post by Roger Lipscombe-2
On Wed, Jan 30, 2019 at 12:19 PM Roger Lipscombe <[hidden email]> 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?


Lukas

_______________________________________________
erlang-questions mailing list
[hidden email]
http://erlang.org/mailman/listinfo/erlang-questions
Reply | Threaded
Open this post in threaded view
|

Re: Can I build Erlang with make -j?

Dmytro Lytovchenko
In reply to this post by Roger Lipscombe-2
Make will guarantee the clean result if the makefile targets are lined up properly.
So far I have observed it works well, no matter if I set MAKEFLAGS before I build or install with kerl or asdf, or if I generate automake/autoconf on a single core and then do make -j#

On Wed, 30 Jan 2019 at 12:19, Roger Lipscombe <[hidden email]> 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
[hidden email]
http://erlang.org/mailman/listinfo/erlang-questions

_______________________________________________
erlang-questions mailing list
[hidden email]
http://erlang.org/mailman/listinfo/erlang-questions
Reply | Threaded
Open this post in threaded view
|

Re: Can I build Erlang with make -j?

Gerhard Lazu
In reply to this post by Roger Lipscombe-2
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?


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


Hope this helps, Gerhard.

On Wed, Jan 30, 2019 at 11:19 AM Roger Lipscombe <[hidden email]> 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
[hidden email]
http://erlang.org/mailman/listinfo/erlang-questions

_______________________________________________
erlang-questions mailing list
[hidden email]
http://erlang.org/mailman/listinfo/erlang-questions
Reply | Threaded
Open this post in threaded view
|

Re: Can I build Erlang with make -j?

Dmytro Lytovchenko
Binary compare of all artifacts, without those parts where timestamp or temporary pathname is embedded into the output.

On Wed, 30 Jan 2019 at 13:35, Gerhard Lazu <[hidden email]> 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?


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


Hope this helps, Gerhard.

On Wed, Jan 30, 2019 at 11:19 AM Roger Lipscombe <[hidden email]> 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
[hidden email]
http://erlang.org/mailman/listinfo/erlang-questions
_______________________________________________
erlang-questions mailing list
[hidden email]
http://erlang.org/mailman/listinfo/erlang-questions

_______________________________________________
erlang-questions mailing list
[hidden email]
http://erlang.org/mailman/listinfo/erlang-questions
Reply | Threaded
Open this post in threaded view
|

Re: Can I build Erlang with make -j?

Roger Lipscombe-2
In reply to this post by Lukas Larsson-8
On Wed, 30 Jan 2019 at 12:15, Lukas Larsson <[hidden email]> wrote:
> yes. Search for "-j" in http://erlang.org/doc/installation_guide/INSTALL.html

So... I did that, but whatever search I'd done to find that page had
dropped me at http://erlang.org/documentation/doc-5.9.1/doc/installation_guide/INSTALL.html,
which doesn't mention it. I wish Google didn't do that.

Thanks for the clarification.
_______________________________________________
erlang-questions mailing list
[hidden email]
http://erlang.org/mailman/listinfo/erlang-questions
Reply | Threaded
Open this post in threaded view
|

Re: Can I build Erlang with make -j?

Alex Alvarez-4
In reply to this post by Gerhard Lazu
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?


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


Hope this helps, Gerhard.

On Wed, Jan 30, 2019 at 11:19 AM Roger Lipscombe <[hidden email]> 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
[hidden email]
http://erlang.org/mailman/listinfo/erlang-questions

_______________________________________________
erlang-questions mailing list
[hidden email]
http://erlang.org/mailman/listinfo/erlang-questions

_______________________________________________
erlang-questions mailing list
[hidden email]
http://erlang.org/mailman/listinfo/erlang-questions