[erlang-questions] R20 escript does not accept "-smp disable"
Mark Geib
mark.geib.44@REDACTED
Wed Feb 7 17:55:55 CET 2018
Thanks for info. I will go back to R19 until cuttlefish is updated.
Mark.
> On Feb 6, 2018, at 6:40 PM, Dmytro Lytovchenko <dmytro.lytovchenko@REDACTED> wrote:
>
> Non-SMP runtime has been disabled in OTP 20 and will be removed in OTP 21 (summer 2018).
> Observe here https://groups.google.com/forum/#!topic/erlang-programming/e8BgIzWxoLo <https://groups.google.com/forum/#!topic/erlang-programming/e8BgIzWxoLo>
>
> 2018-02-07 0:33 GMT+01:00 Mark Geib <mark.geib.44@REDACTED <mailto:mark.geib.44@REDACTED>>:
> 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@REDACTED/19.3.6.4//bin/escript <http://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
> erlang-questions@REDACTED <mailto:erlang-questions@REDACTED>
> http://erlang.org/mailman/listinfo/erlang-questions <http://erlang.org/mailman/listinfo/erlang-questions>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20180207/dd1bc0bb/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 528 bytes
Desc: Message signed with OpenPGP
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20180207/dd1bc0bb/attachment.bin>
More information about the erlang-questions
mailing list