Skip to content

Enable JIT, install g++ #492

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jun 23, 2021
Merged

Enable JIT, install g++ #492

merged 2 commits into from
Jun 23, 2021

Conversation

mkuratczyk
Copy link
Contributor

@mkuratczyk mkuratczyk commented Jun 21, 2021

Erlang 24 provides JIT support that requires c++17-compatible compiler.
Without the g++ package, autoconf considers this support missing and
therefore silently disables JIT. This commit makes sure that:

  1. g++ is installed (this makes autoconf detect it correctly as
    c++17-compatible)
  2. Explicitly enables JIT so that it fails in case something changes in
    the future. JIT is a great feature so we don't want it being silently
    turned off for any reason.

Erlang 24 provide JIT support that requires c++17-compatible compiler.
Without the g++ package, `autoconf` considers this support missing and
therefore silently disables JIT. This commits makes sure that:
1. g++ is installed (this makes `autoconf` detect it correctly as
   c++17-compatible)
2. Explicitly enables JIT so that it fails in case something changes in
   the future. JIT is a great feature so we don't want it being silently
   turned off for any reason.

Co-authored-by: Michal Kuratczyk <mkuratczyk@vmware.com>
ansd added a commit to rabbitmq/rabbitmq-server that referenced this pull request Jun 21, 2021
See docker-library/rabbitmq#492

Co-authored-by: Michal Kuratczyk <mkuratczyk@vmware.com>
ansd added a commit to rabbitmq/rabbitmq-server that referenced this pull request Jun 21, 2021
See docker-library/rabbitmq#492

Co-authored-by: Michal Kuratczyk <mkuratczyk@vmware.com>

Ensure compilation and runtime Erlang are in sync

Bump to Ubuntu 20.04

docker-library/rabbitmq also uses Ubuntu 20.04
@mkuratczyk
Copy link
Contributor Author

I forgot to mention how to test this change - the first line of erl output should contain [jit] like this:

$ docker run -it 98888cb56d9ed7ddcca316f4f647c3ae1bb6db305600fe806856aceeea5b3dc2 erl
Erlang/OTP 24 [erts-12.0.2] [source] [64-bit] [smp:2:2] [ds:2:2:10] [async-threads:1] [jit]

@yosifkit
Copy link
Member

Change seems fine to me.

@michaelklishin or @gerhard, any reason this shouldn't be enabled?

@michaelklishin
Copy link
Collaborator

Let's merge this 👍

@yosifkit yosifkit merged commit bc88db1 into docker-library:master Jun 23, 2021
@yosifkit yosifkit mentioned this pull request Jun 23, 2021
docker-library-bot added a commit to docker-library-bot/official-images that referenced this pull request Jun 23, 2021
Changes:

- docker-library/rabbitmq@59d7871: Merge pull request docker-library/rabbitmq#424 from infosiftr/entrypoint-deprecation
- docker-library/rabbitmq@bc88db1: Merge pull request docker-library/rabbitmq#492 from mkuratczyk/master
- docker-library/rabbitmq@051164d: Switch from SKS to Ubuntu keyserver
- docker-library/rabbitmq@973c614: Add missing `\`
- docker-library/rabbitmq@38ead37: Enable JIT, install g++
- docker-library/rabbitmq@8942a4b: Merge pull request docker-library/rabbitmq#490 from J0WI/alpine-3.14
- docker-library/rabbitmq@59c5913: Alpine 3.14
- docker-library/rabbitmq@2fab209: Add deprecation warnings to "docker-entrypoint.sh"
docker-library-bot added a commit to docker-library-bot/official-images that referenced this pull request Jun 26, 2021
Changes:

- docker-library/rabbitmq@226c6de: Update 3.8-rc to 3.8.18-rc.1
- docker-library/rabbitmq@4792573: Update 3.8 to 3.8.18
- docker-library/rabbitmq@59d7871: Merge pull request docker-library/rabbitmq#424 from infosiftr/entrypoint-deprecation
- docker-library/rabbitmq@bc88db1: Merge pull request docker-library/rabbitmq#492 from mkuratczyk/master
- docker-library/rabbitmq@051164d: Switch from SKS to Ubuntu keyserver
- docker-library/rabbitmq@973c614: Add missing `\`
- docker-library/rabbitmq@38ead37: Enable JIT, install g++
- docker-library/rabbitmq@8942a4b: Merge pull request docker-library/rabbitmq#490 from J0WI/alpine-3.14
- docker-library/rabbitmq@59c5913: Alpine 3.14
- docker-library/rabbitmq@2fab209: Add deprecation warnings to "docker-entrypoint.sh"
docker-library-bot added a commit to docker-library-bot/official-images that referenced this pull request Jun 28, 2021
Changes:

- docker-library/rabbitmq@ad1824a: Update 3.8-rc to otp 24.0.3
- docker-library/rabbitmq@5414666: Update 3.8 to otp 24.0.3
- docker-library/rabbitmq@226c6de: Update 3.8-rc to 3.8.18-rc.1
- docker-library/rabbitmq@4792573: Update 3.8 to 3.8.18
- docker-library/rabbitmq@59d7871: Merge pull request docker-library/rabbitmq#424 from infosiftr/entrypoint-deprecation
- docker-library/rabbitmq@bc88db1: Merge pull request docker-library/rabbitmq#492 from mkuratczyk/master
- docker-library/rabbitmq@051164d: Switch from SKS to Ubuntu keyserver
- docker-library/rabbitmq@973c614: Add missing `\`
- docker-library/rabbitmq@38ead37: Enable JIT, install g++
- docker-library/rabbitmq@8942a4b: Merge pull request docker-library/rabbitmq#490 from J0WI/alpine-3.14
- docker-library/rabbitmq@59c5913: Alpine 3.14
- docker-library/rabbitmq@2fab209: Add deprecation warnings to "docker-entrypoint.sh"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants