R20 escript does not accept "-smp disable"

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

R20 escript does not accept "-smp disable"

Mark Geib-2
Did the escript command line args change in R20.? I could not find any reference with a quick search.

I recently upgraded Erlang on my mac, via homebrew to R20. The first time I went to test an application using cuttlefish I received this error.

Argument '-smp disable' not supported. Use "+S 1" instead.
Usage: erl [-version] [-sname NAME | -name NAME] [-noshell] [-noinput] [-env VAR VALUE] [-compile file ...] [-smp [auto|enable]] [-make] [-man [manopts] MANPAGE] [-x] [-emu_args] [-start_epmd BOOLEAN] [-args_file FILENAME] [+A THREADS] [+a SIZE] [+B[c|d|i]] [+c [BOOLEAN]] [+C MODE] [+h HEAP_SIZE_OPTION] [+K BOOLEAN] [+l] [+M<SUBSWITCH> <ARGUMENT>] [+P MAX_PROCS] [+Q MAX_PORTS] [+R COMPAT_REL] [+r] [+rg READER_GROUPS_LIMIT] [+s SCHEDULER_OPTION] [+S NO_SCHEDULERS:NO_SCHEDULERS_ONLINE] [+SP PERCENTAGE_SCHEDULERS:PERCENTAGE_SCHEDULERS_ONLINE] [+T LEVEL] [+V] [+v] [+W<i|w|e>] [+z MISC_OPTION] [args …]

I wrote a trivial escript of my own and sure enough, with R19 it works fine, with R20 the above error.

Here is the escript I am using for testing.

#!/usr/local/Cellar/erlang@19/19.3.6.4//bin/escript

%%! -smp disable -sname demo -setcookie cookie

-define(ME, filename:basename(escript:script_name())).
-include_lib("kernel/include/file.hrl").

main(Args) ->
    io:format("Args:~s~n~n",
              [Args]),
    halt(0).

Cuttlefish uses {escript_emu_args, "%%! -escript main cuttlefish_escript -smp disable +A 0\n”}. in it’s the rebar.config.

Thanks,
Mark.

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

signature.asc (540 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: R20 escript does not accept "-smp disable"

Dmytro Lytovchenko
Non-SMP runtime has been disabled in OTP 20 and will be removed in OTP 21 (summer 2018).

2018-02-07 0:33 GMT+01:00 Mark Geib <[hidden email]>:
Did the escript command line args change in R20.? I could not find any reference with a quick search.

I recently upgraded Erlang on my mac, via homebrew to R20. The first time I went to test an application using cuttlefish I received this error.

Argument '-smp disable' not supported. Use "+S 1" instead.
Usage: erl [-version] [-sname NAME | -name NAME] [-noshell] [-noinput] [-env VAR VALUE] [-compile file ...] [-smp [auto|enable]] [-make] [-man [manopts] MANPAGE] [-x] [-emu_args] [-start_epmd BOOLEAN] [-args_file FILENAME] [+A THREADS] [+a SIZE] [+B[c|d|i]] [+c [BOOLEAN]] [+C MODE] [+h HEAP_SIZE_OPTION] [+K BOOLEAN] [+l] [+M<SUBSWITCH> <ARGUMENT>] [+P MAX_PROCS] [+Q MAX_PORTS] [+R COMPAT_REL] [+r] [+rg READER_GROUPS_LIMIT] [+s SCHEDULER_OPTION] [+S NO_SCHEDULERS:NO_SCHEDULERS_ONLINE] [+SP PERCENTAGE_SCHEDULERS:PERCENTAGE_SCHEDULERS_ONLINE] [+T LEVEL] [+V] [+v] [+W<i|w|e>] [+z MISC_OPTION] [args …]

I wrote a trivial escript of my own and sure enough, with R19 it works fine, with R20 the above error.

Here is the escript I am using for testing.

#!/usr/local/Cellar/erlang@19/19.3.6.4//bin/escript

%%! -smp disable -sname demo -setcookie cookie

-define(ME, filename:basename(escript:script_name())).
-include_lib("kernel/include/file.hrl").

main(Args) ->
    io:format("Args:~s~n~n",
              [Args]),
    halt(0).

Cuttlefish uses {escript_emu_args, "%%! -escript main cuttlefish_escript -smp disable +A 0\n”}. in it’s the rebar.config.

Thanks,
Mark.

_______________________________________________
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: R20 escript does not accept "-smp disable"

Håkan Mattsson

Maybe it has something to do with this...

Here are some of the most important news in OTP 20:

Potential Incompatibilities
  • ERTS:

    • The non SMP Erlang VM is deprecated and not built by default
/Håkan

On Wed, Feb 7, 2018 at 2:40 AM, Dmytro Lytovchenko <[hidden email]> wrote:
Non-SMP runtime has been disabled in OTP 20 and will be removed in OTP 21 (summer 2018).

2018-02-07 0:33 GMT+01:00 Mark Geib <[hidden email]>:
Did the escript command line args change in R20.? I could not find any reference with a quick search.

I recently upgraded Erlang on my mac, via homebrew to R20. The first time I went to test an application using cuttlefish I received this error.

Argument '-smp disable' not supported. Use "+S 1" instead.
Usage: erl [-version] [-sname NAME | -name NAME] [-noshell] [-noinput] [-env VAR VALUE] [-compile file ...] [-smp [auto|enable]] [-make] [-man [manopts] MANPAGE] [-x] [-emu_args] [-start_epmd BOOLEAN] [-args_file FILENAME] [+A THREADS] [+a SIZE] [+B[c|d|i]] [+c [BOOLEAN]] [+C MODE] [+h HEAP_SIZE_OPTION] [+K BOOLEAN] [+l] [+M<SUBSWITCH> <ARGUMENT>] [+P MAX_PROCS] [+Q MAX_PORTS] [+R COMPAT_REL] [+r] [+rg READER_GROUPS_LIMIT] [+s SCHEDULER_OPTION] [+S NO_SCHEDULERS:NO_SCHEDULERS_ONLINE] [+SP PERCENTAGE_SCHEDULERS:PERCENTAGE_SCHEDULERS_ONLINE] [+T LEVEL] [+V] [+v] [+W<i|w|e>] [+z MISC_OPTION] [args …]

I wrote a trivial escript of my own and sure enough, with R19 it works fine, with R20 the above error.

Here is the escript I am using for testing.

#!/usr/local/Cellar/erlang@19/19.3.6.4//bin/escript

%%! -smp disable -sname demo -setcookie cookie

-define(ME, filename:basename(escript:script_name())).
-include_lib("kernel/include/file.hrl").

main(Args) ->
    io:format("Args:~s~n~n",
              [Args]),
    halt(0).

Cuttlefish uses {escript_emu_args, "%%! -escript main cuttlefish_escript -smp disable +A 0\n”}. in it’s the rebar.config.

Thanks,
Mark.

_______________________________________________
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: R20 escript does not accept "-smp disable"

Mark Geib-2
In reply to this post by Dmytro Lytovchenko
Thanks for info. I will go back to R19 until cuttlefish is updated.

Mark.

On Feb 6, 2018, at 6:40 PM, Dmytro Lytovchenko <[hidden email]> wrote:

Non-SMP runtime has been disabled in OTP 20 and will be removed in OTP 21 (summer 2018).

2018-02-07 0:33 GMT+01:00 Mark Geib <[hidden email]>:
Did the escript command line args change in R20.? I could not find any reference with a quick search.

I recently upgraded Erlang on my mac, via homebrew to R20. The first time I went to test an application using cuttlefish I received this error.

Argument '-smp disable' not supported. Use "+S 1" instead.
Usage: erl [-version] [-sname NAME | -name NAME] [-noshell] [-noinput] [-env VAR VALUE] [-compile file ...] [-smp [auto|enable]] [-make] [-man [manopts] MANPAGE] [-x] [-emu_args] [-start_epmd BOOLEAN] [-args_file FILENAME] [+A THREADS] [+a SIZE] [+B[c|d|i]] [+c [BOOLEAN]] [+C MODE] [+h HEAP_SIZE_OPTION] [+K BOOLEAN] [+l] [+M<SUBSWITCH> <ARGUMENT>] [+P MAX_PROCS] [+Q MAX_PORTS] [+R COMPAT_REL] [+r] [+rg READER_GROUPS_LIMIT] [+s SCHEDULER_OPTION] [+S NO_SCHEDULERS:NO_SCHEDULERS_ONLINE] [+SP PERCENTAGE_SCHEDULERS:PERCENTAGE_SCHEDULERS_ONLINE] [+T LEVEL] [+V] [+v] [+W<i|w|e>] [+z MISC_OPTION] [args …]

I wrote a trivial escript of my own and sure enough, with R19 it works fine, with R20 the above error.

Here is the escript I am using for testing.

#!/usr/local/Cellar/erlang@19/19.3.6.4//bin/escript

%%! -smp disable -sname demo -setcookie cookie

-define(ME, filename:basename(escript:script_name())).
-include_lib("kernel/include/file.hrl").

main(Args) ->
    io:format("Args:~s~n~n",
              [Args]),
    halt(0).

Cuttlefish uses {escript_emu_args, "%%! -escript main cuttlefish_escript -smp disable +A 0\n”}. in it’s the rebar.config.

Thanks,
Mark.

_______________________________________________
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

signature.asc (540 bytes) Download Attachment