<div dir="ltr"><div class="gmail_default" style="font-family:arial,helvetica,sans-serif"><br>Maybe it has something to do with this...<br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif"><br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><p>Here are some of the most important news in OTP 20:</p>Potential Incompatibilities<ul>
<li>
<p>ERTS:</p>
<ul>
<li>The non SMP Erlang VM is deprecated and not built by default<br clear="all"></li></ul></li></ul></blockquote></div><div class="gmail_extra"><div><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div>/Håkan</div></div></div></div>
<br><div class="gmail_quote">On Wed, Feb 7, 2018 at 2:40 AM, Dmytro Lytovchenko <span dir="ltr"><<a href="mailto:dmytro.lytovchenko@gmail.com" target="_blank">dmytro.lytovchenko@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Non-SMP runtime has been disabled in OTP 20 and will be removed in OTP 21 (summer 2018).<div>Observe here <a href="https://groups.google.com/forum/#!topic/erlang-programming/e8BgIzWxoLo" target="_blank">https://groups.google.<wbr>com/forum/#!topic/erlang-<wbr>programming/e8BgIzWxoLo</a></div></div><div class="gmail_extra"><br><div class="gmail_quote">2018-02-07 0:33 GMT+01:00 Mark Geib <span dir="ltr"><<a href="mailto:mark.geib.44@gmail.com" target="_blank">mark.geib.44@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Did the escript command line args change in R20.? I could not find any reference with a quick search.<br>
<br>
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.<br>
<br>
Argument '-smp disable' not supported. Use "+S 1" instead.<br>
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_ON<wbr>LINE] [+SP PERCENTAGE_SCHEDULERS:PERCENTA<wbr>GE_SCHEDULERS_ONLINE] [+T LEVEL] [+V] [+v] [+W<i|w|e>] [+z MISC_OPTION] [args …]<br>
<br>
I wrote a trivial escript of my own and sure enough, with R19 it works fine, with R20 the above error.<br>
<br>
Here is the escript I am using for testing.<br>
<br>
#!/usr/local/Cellar/erlang@19/<a href="http://19.3.6.4//bin/escript" rel="noreferrer" target="_blank"><wbr>19.3.6.4//bin/escript</a><br>
<br>
%%! -smp disable -sname demo -setcookie cookie<br>
<br>
-define(ME, filename:basename(escript:scri<wbr>pt_name())).<br>
-include_lib("kernel/include/f<wbr>ile.hrl").<br>
<br>
main(Args) -><br>
io:format("Args:~s~n~n",<br>
[Args]),<br>
halt(0).<br>
<br>
Cuttlefish uses {escript_emu_args, "%%! -escript main cuttlefish_escript -smp disable +A 0\n”}. in it’s the rebar.config.<br>
<br>
Thanks,<br>
Mark.<br>
<br>______________________________<wbr>_________________<br>
erlang-questions mailing list<br>
<a href="mailto:erlang-questions@erlang.org" target="_blank">erlang-questions@erlang.org</a><br>
<a href="http://erlang.org/mailman/listinfo/erlang-questions" rel="noreferrer" target="_blank">http://erlang.org/mailman/list<wbr>info/erlang-questions</a><br>
<br></blockquote></div><br></div>
<br>______________________________<wbr>_________________<br>
erlang-questions mailing list<br>
<a href="mailto:erlang-questions@erlang.org">erlang-questions@erlang.org</a><br>
<a href="http://erlang.org/mailman/listinfo/erlang-questions" rel="noreferrer" target="_blank">http://erlang.org/mailman/<wbr>listinfo/erlang-questions</a><br>
<br></blockquote></div><br></div></div>