More helpful error message for -object qualifier without a value
Final Release Note
Compiling M code with an -object
qualifier that has no value specified reports a helpful %YDB-E-CLIERR, Option : OBJECT needs value
error. Previously it reported the less helpful %YDB-E-NOTMNAME
error. [#505 (closed)]
Description
Debug version of r1.29/master
crashes when ydb_compile
or $ZCOMPILE
contains -object
qualifier (without value).
root@71673183d1b9:/data# env ydb_compile="-object" /opt/yottadb/current/mumps r/test.m
%YDB-F-ASSERT, Assert failed in /tmp/yottadb-src/sr_unix/zl_cmd_qlf.c line 156 for expression ((cmd_qlf.object_file.str.len) && (MAX_FN_LEN >= cmd_qlf.object_file.str.len) && (cmd_qlf.object_file.str.addr))
root@71673183d1b9:/data# env ydb_compile="-object=xyz" /opt/yottadb/current/mumps r/test.m
root@71673183d1b9:/data# ls -lah xyz.o
-rw-r--r-- 1 root root 1016 Nov 21 22:03 xyz.o
root@71673183d1b9:/data# env ydb_compile="-noobject" /opt/yottadb/current/mumps r/test.m
This should not be a big deal since it is set by default anyway and -noobject
works fine.