[m-users.] ARM Linux toolchain

Vladimir Komendantskiy komendantsky at gmail.com
Fri Feb 12 22:18:10 AEDT 2016

Hi Julien,

> Passing
>     --with-llds-base-grade=none
> to configure should do this for you.
This works, thanks! There is a new error then:

../scripts/mgnuc --grade hlc.gc     --c-debug --no-ansi   --        -c
mercury_signal.c -o mercury_signal.o
mercury_signal.c: In function ‘MR_init_signal_action’:
mercury_signal.c:133:8: error: ‘MR_signal_action {aka struct sigaction}’
has no member named ‘no’
     act->MR_SIGACTION_FIELD = handler;

which seems to require setting the value of MR_SIGACTION_FIELD to
sa_handler in runtime/mercury_conf.h. In any case, that worked for me. So
far, we are done with compile-time errors.

What fails then is util/mkinit. It is supposed to be a native binary in the
make script. It is definitely an ARM executable though. The message is as

arm-linux-gnueabihf-ranlib    libmer_browser.a
echo > mer_browser.init
mkinit -k mdb.c mdb.browse.c mdb.browser_info.c mdb.browser_term.c
mdb.collect_lib.c mdb.cterm.c mdb.debugger_interface.c
mdb.declarative_analyser.c mdb.declarative_debugger.c mdb.declarative_edt.c
mdb.declarative_execution.c mdb.declarative_oracle.c mdb.declarative_tree.c
mdb.declarative_user.c mdb.diff.c mdb.dl.c mdb.frame.c mdb.help.c
mdb.interactive_query.c mdb.io_action.c mdb.listing.c mdb.name_mangle.c
mdb.parse.c mdb.sized_pretty.c mdb.term_rep.c mdb.util.c mer_browser.c  >>
../util/mkinit: 1: ../util/mkinit: Syntax error: word unexpected (expecting
/tmp/mmake.70HtEo:7334: recipe for target 'mer_browser.init' failed

Should I somehow use a native util/mkinit instead?

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mercurylang.org/archives/users/attachments/20160212/360e321a/attachment.html>

More information about the users mailing list