[erlang-questions] R20 escript does not accept "-smp disable"
Håkan Mattsson
hawk.mattsson@REDACTED
Wed Feb 7 17:13:35 CET 2018
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 <
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
>
> 2018-02-07 0:33 GMT+01:00 Mark Geib <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
>>
>> %%! -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
>> 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/20180207/490d13b4/attachment.htm>
More information about the erlang-questions
mailing list