Closed lin7sh closed 2 years ago
Hi, did you try other versions? Like 21.0 or 22.0? Does it fail with the same problem for you?
@peerst I just tried 21.0, but time time the error seems to be using freebsd make instead of gmake which should be used for OTP build
===> Building
* Running autoconf...
* Running configure... (this may take a while)
* Compiling... (this may take a while)
* Installing...
===> sh(make install DESTDIR="/usr/home/mko_io/mcu/foo3/_grisp/otp/21.0/install")
failed with return code 1 and the following output:
make: "/usr/home/mko_io/mcu/foo3/_grisp/otp/21.0/build/make/output.mk" line 38: Missing dependency operator
make: "/usr/home/mko_io/mcu/foo3/_grisp/otp/21.0/build/make/output.mk" line 40: Need an operator
make: "/usr/home/mko_io/mcu/foo3/_grisp/otp/21.0/build/make/output.mk" line 43: Missing dependency operator
make: "/usr/home/mko_io/mcu/foo3/_grisp/otp/21.0/build/make/output.mk" line 45: Need an operator
make: "/usr/home/mko_io/mcu/foo3/_grisp/otp/21.0/build/make/output.mk" line 47: Need an operator
make: "/usr/home/mko_io/mcu/foo3/_grisp/otp/21.0/build/Makefile" line 94: Missing dependency operator
make: "/usr/home/mko_io/mcu/foo3/_grisp/otp/21.0/build/Makefile" line 95: Missing dependency operator
make: "/usr/home/mko_io/mcu/foo3/_grisp/otp/21.0/build/Makefile" line 97: Need an operator
make: "/usr/home/mko_io/mcu/foo3/_grisp/otp/21.0/build/Makefile" line 98: Need an operator
make: "/usr/home/mko_io/mcu/foo3/_grisp/otp/21.0/build/Makefile" line 99: Missing dependency operator
make: "/usr/home/mko_io/mcu/foo3/_grisp/otp/21.0/build/Makefile" line 100: Missing dependency operator
make: "/usr/home/mko_io/mcu/foo3/_grisp/otp/21.0/build/Makefile" line 101: Need an operator
make: "/usr/home/mko_io/mcu/foo3/_grisp/otp/21.0/build/Makefile" line 102: Need an operator
make: "/usr/home/mko_io/mcu/foo3/_grisp/otp/21.0/build/Makefile" line 103: Need an operator
make: "/usr/home/mko_io/mcu/foo3/_grisp/otp/21.0/build/Makefile" line 104: Need an operator
make: "/usr/home/mko_io/mcu/foo3/_grisp/otp/21.0/build/Makefile" line 166: Missing dependency operator
make: "/usr/home/mko_io/mcu/foo3/_grisp/otp/21.0/build/Makefile" line 168: Need an operator
make: "/usr/home/mko_io/mcu/foo3/_grisp/otp/21.0/build/Makefile" line 170: Need an operator
make: "/usr/home/mko_io/mcu/foo3/_grisp/otp/21.0/build/make/target.mk" line 23: Missing dependency operator
make: "/usr/home/mko_io/mcu/foo3/_grisp/otp/21.0/build/make/target.mk" line 25: Missing dependency operator
make: "/usr/home/mko_io/mcu/foo3/_grisp/otp/21.0/build/make/target.mk" line 29: Need an operator
make: "/usr/home/mko_io/mcu/foo3/_grisp/otp/21.0/build/make/target.mk" line 31: Need an operator
make: "/usr/home/mko_io/mcu/foo3/_grisp/otp/21.0/build/make/target.mk" line 33: Need an operator
make: "/usr/home/mko_io/mcu/foo3/_grisp/otp/21.0/build/make/target.mk" line 35: Missing dependency operator
make: "/usr/home/mko_io/mcu/foo3/_grisp/otp/21.0/build/make/target.mk" line 37: Missing dependency operator
make: "/usr/home/mko_io/mcu/foo3/_grisp/otp/21.0/build/make/target.mk" line 42: Need an operator
make: "/usr/home/mko_io/mcu/foo3/_grisp/otp/21.0/build/make/target.mk" line 43: Need an operator
make: "/usr/home/mko_io/mcu/foo3/_grisp/otp/21.0/build/make/target.mk" line 44: Need an operator
make: "/usr/home/mko_io/mcu/foo3/_grisp/otp/21.0/build/make/target.mk" line 48: Need an operator
make: "/usr/home/mko_io/mcu/foo3/_grisp/otp/21.0/build/make/target.mk" line 52: Need an operator
make: "/usr/home/mko_io/mcu/foo3/_grisp/otp/21.0/build/make/target.mk" line 54: Need an operator
make: "/usr/home/mko_io/mcu/foo3/_grisp/otp/21.0/build/make/target.mk" line 56: Missing dependency operator
make: "/usr/home/mko_io/mcu/foo3/_grisp/otp/21.0/build/make/target.mk" line 57: Missing dependency operator
make: "/usr/home/mko_io/mcu/foo3/_grisp/otp/21.0/build/make/target.mk" line 58: Missing dependency operator
make: "/usr/home/mko_io/mcu/foo3/_grisp/otp/21.0/build/make/target.mk" line 60: Need an operator
make: "/usr/home/mko_io/mcu/foo3/_grisp/otp/21.0/build/make/target.mk" line 61: Need an operator
make: "/usr/home/mko_io/mcu/foo3/_grisp/otp/21.0/build/make/target.mk" line 62: Need an operator
make: "/usr/home/mko_io/mcu/foo3/_grisp/otp/21.0/build/make/target.mk" line 63: Need an operator
make: "/usr/home/mko_io/mcu/foo3/_grisp/otp/21.0/build/make/target.mk" line 64: Need an operator
make: "/usr/home/mko_io/mcu/foo3/_grisp/otp/21.0/build/make/target.mk" line 65: Need an operator
make: "/usr/home/mko_io/mcu/foo3/_grisp/otp/21.0/build/make/target.mk" line 67: Missing dependency operator
make: "/usr/home/mko_io/mcu/foo3/_grisp/otp/21.0/build/make/target.mk" line 68: Need an operator
make: "/usr/home/mko_io/mcu/foo3/_grisp/otp/21.0/build/make/target.mk" line 69: Need an operator
make: "/usr/home/mko_io/mcu/foo3/_grisp/otp/21.0/build/make/target.mk" line 70: Need an operator
make: "/usr/home/mko_io/mcu/foo3/_grisp/otp/21.0/build/Makefile" line 175: Variable/Value missing from "export"
make: "/usr/home/mko_io/mcu/foo3/_grisp/otp/21.0/build/Makefile" line 181: Missing dependency operator
make: "/usr/home/mko_io/mcu/foo3/_grisp/otp/21.0/build/Makefile" line 184: Need an operator
make: "/usr/home/mko_io/mcu/foo3/_grisp/otp/21.0/build/Makefile" line 185: Missing dependency operator
make: "/usr/home/mko_io/mcu/foo3/_grisp/otp/21.0/build/Makefile" line 187: Need an operator
make: "/usr/home/mko_io/mcu/foo3/_grisp/otp/21.0/build/Makefile" line 189: Need an operator
make: "/usr/home/mko_io/mcu/foo3/_grisp/otp/21.0/build/Makefile" line 191: Need an operator
make: "/usr/home/mko_io/mcu/foo3/_grisp/otp/21.0/build/Makefile" line 221: Need an operator
make: "/usr/home/mko_io/mcu/foo3/_grisp/otp/21.0/build/Makefile" line 236: Missing dependency operator
make: "/usr/home/mko_io/mcu/foo3/_grisp/otp/21.0/build/Makefile" line 239: Need an operator
make: "/usr/home/mko_io/mcu/foo3/_grisp/otp/21.0/build/Makefile" line 242: Need an operator
make: "/usr/home/mko_io/mcu/foo3/_grisp/otp/21.0/build/Makefile" line 248: Cannot open /usr/home/mko_io/mcu/foo3/_grisp/otp/21.0/build/make//otp_ded.mk
make: "/usr/home/mko_io/mcu/foo3/_grisp/otp/21.0/build/Makefile" line 270: Missing dependency operator
make: "/usr/home/mko_io/mcu/foo3/_grisp/otp/21.0/build/Makefile" line 274: Missing dependency operator
make: "/usr/home/mko_io/mcu/foo3/_grisp/otp/21.0/build/Makefile" line 276: Need an operator
make: "/usr/home/mko_io/mcu/foo3/_grisp/otp/21.0/build/Makefile" line 278: Need an operator
make: "/usr/home/mko_io/mcu/foo3/_grisp/otp/21.0/build/Makefile" line 288: Missing dependency operator
make: "/usr/home/mko_io/mcu/foo3/_grisp/otp/21.0/build/Makefile" line 290: Need an operator
make: "/usr/home/mko_io/mcu/foo3/_grisp/otp/21.0/build/Makefile" line 292: Need an operator
make: "/usr/home/mko_io/mcu/foo3/_grisp/otp/21.0/build/Makefile" line 296: Missing dependency operator
make: "/usr/home/mko_io/mcu/foo3/_grisp/otp/21.0/build/Makefile" line 297: Missing dependency operator
make: "/usr/home/mko_io/mcu/foo3/_grisp/otp/21.0/build/Makefile" line 299: Need an operator
make: "/usr/home/mko_io/mcu/foo3/_grisp/otp/21.0/build/Makefile" line 300: Need an operator
make: "/usr/home/mko_io/mcu/foo3/_grisp/otp/21.0/build/Makefile" line 307: Missing dependency operator
make: "/usr/home/mko_io/mcu/foo3/_grisp/otp/21.0/build/Makefile" line 308: Missing dependency operator
make: "/usr/home/mko_io/mcu/foo3/_grisp/otp/21.0/build/Makefile" line 310: Need an operator
make: "/usr/home/mko_io/mcu/foo3/_grisp/otp/21.0/build/Makefile" line 312: Need an operator
make: "/usr/home/mko_io/mcu/foo3/_grisp/otp/21.0/build/Makefile" line 313: Need an operator
make: "/usr/home/mko_io/mcu/foo3/_grisp/otp/21.0/build/Makefile" line 326: Missing dependency operator
make: "/usr/home/mko_io/mcu/foo3/_grisp/otp/21.0/build/Makefile" line 329: Missing dependency operator
make: "/usr/home/mko_io/mcu/foo3/_grisp/otp/21.0/build/Makefile" line 331: Need an operator
make: "/usr/home/mko_io/mcu/foo3/_grisp/otp/21.0/build/Makefile" line 334: Need an operator
make: "/usr/home/mko_io/mcu/foo3/_grisp/otp/21.0/build/Makefile" line 336: Need an operator
make: "/usr/home/mko_io/mcu/foo3/_grisp/otp/21.0/build/Makefile" line 341: Need an operator
make: "/usr/home/mko_io/mcu/foo3/_grisp/otp/21.0/build/Makefile" line 358: Missing dependency operator
make: "/usr/home/mko_io/mcu/foo3/_grisp/otp/21.0/build/Makefile" line 365: Need an operator
make: "/usr/home/mko_io/mcu/foo3/_grisp/otp/21.0/build/Makefile" line 389: Missing dependency operator
make: "/usr/home/mko_io/mcu/foo3/_grisp/otp/21.0/build/Makefile" line 393: Need an operator
make: "/usr/home/mko_io/mcu/foo3/_grisp/otp/21.0/build/Makefile" line 397: Need an operator
make: "/usr/home/mko_io/mcu/foo3/_grisp/otp/21.0/build/Makefile" line 401: Missing dependency operator
make: "/usr/home/mko_io/mcu/foo3/_grisp/otp/21.0/build/Makefile" line 402: warning: duplicate script for target "ifeq" ignored
make: "/usr/home/mko_io/mcu/foo3/_grisp/otp/21.0/build/Makefile" line 392: warning: using previous script for "ifeq" defined here
make: "/usr/home/mko_io/mcu/foo3/_grisp/otp/21.0/build/Makefile" line 403: Need an operator
make: "/usr/home/mko_io/mcu/foo3/_grisp/otp/21.0/build/Makefile" line 405: Need an operator
make: "/usr/home/mko_io/mcu/foo3/_grisp/otp/21.0/build/Makefile" line 412: Missing dependency operator
make: "/usr/home/mko_io/mcu/foo3/_grisp/otp/21.0/build/Makefile" line 415: warning: duplicate script for target "ifeq" ignored
make: "/usr/home/mko_io/mcu/foo3/_grisp/otp/21.0/build/Makefile" line 392: warning: using previous script for "ifeq" defined here
make: "/usr/home/mko_io/mcu/foo3/_grisp/otp/21.0/build/Makefile" line 415: warning: duplicate script for target "(,true)" ignored
make: "/usr/home/mko_io/mcu/foo3/_grisp/otp/21.0/build/Makefile" line 392: warning: using previous script for "(,true)" defined here
make: "/usr/home/mko_io/mcu/foo3/_grisp/otp/21.0/build/Makefile" line 416: Need an operator
make: "/usr/home/mko_io/mcu/foo3/_grisp/otp/21.0/build/Makefile" line 420: Need an operator
make: "/usr/home/mko_io/mcu/foo3/_grisp/otp/21.0/build/Makefile" line 427: Missing dependency operator
make: "/usr/home/mko_io/mcu/foo3/_grisp/otp/21.0/build/Makefile" line 428: warning: duplicate script for target "(,true)" ignored
make: "/usr/home/mko_io/mcu/foo3/_grisp/otp/21.0/build/Makefile" line 392: warning: using previous script for "(,true)" defined here
make: "/usr/home/mko_io/mcu/foo3/_grisp/otp/21.0/build/Makefile" line 429: Need an operator
make: "/usr/home/mko_io/mcu/foo3/_grisp/otp/21.0/build/Makefile" line 434: Missing dependency operator
make: "/usr/home/mko_io/mcu/foo3/_grisp/otp/21.0/build/Makefile" line 436: warning: duplicate script for target "ifeq" ignored
make: "/usr/home/mko_io/mcu/foo3/_grisp/otp/21.0/build/Makefile" line 392: warning: using previous script for "ifeq" defined here
make: "/usr/home/mko_io/mcu/foo3/_grisp/otp/21.0/build/Makefile" line 436: warning: duplicate script for target "(,true)" ignored
make: "/usr/home/mko_io/mcu/foo3/_grisp/otp/21.0/build/Makefile" line 392: warning: using previous script for "(,true)" defined here
make: "/usr/home/mko_io/mcu/foo3/_grisp/otp/21.0/build/Makefile" line 437: Need an operator
make: "/usr/home/mko_io/mcu/foo3/_grisp/otp/21.0/build/Makefile" line 442: Need an operator
make: "/usr/home/mko_io/mcu/foo3/_grisp/otp/21.0/build/Makefile" line 455: Cannot open /usr/home/mko_io/mcu/foo3/_grisp/otp/21.0/build/make//otp.mk
make: "/usr/home/mko_io/mcu/foo3/_grisp/otp/21.0/build/Makefile" line 459: Missing dependency operator
make: "/usr/home/mko_io/mcu/foo3/_grisp/otp/21.0/build/Makefile" line 464: Need an operator
make: "/usr/home/mko_io/mcu/foo3/_grisp/otp/21.0/build/Makefile" line 467: Need an operator
make: "/usr/home/mko_io/mcu/foo3/_grisp/otp/21.0/build/Makefile" line 474: Missing dependency operator
make: "/usr/home/mko_io/mcu/foo3/_grisp/otp/21.0/build/Makefile" line 477: warning: duplicate script for target "ifeq" ignored
make: "/usr/home/mko_io/mcu/foo3/_grisp/otp/21.0/build/Makefile" line 392: warning: using previous script for "ifeq" defined here
make: "/usr/home/mko_io/mcu/foo3/_grisp/otp/21.0/build/Makefile" line 477: warning: duplicate script for target "(,true)" ignored
make: "/usr/home/mko_io/mcu/foo3/_grisp/otp/21.0/build/Makefile" line 392: warning: using previous script for "(,true)" defined here
make: "/usr/home/mko_io/mcu/foo3/_grisp/otp/21.0/build/Makefile" line 478: Need an operator
make: "/usr/home/mko_io/mcu/foo3/_grisp/otp/21.0/build/Makefile" line 483: Need an operator
make: "/usr/home/mko_io/mcu/foo3/_grisp/otp/21.0/build/Makefile" line 528: Missing dependency operator
make: "/usr/home/mko_io/mcu/foo3/_grisp/otp/21.0/build/Makefile" line 543: Need an operator
make: "/usr/home/mko_io/mcu/foo3/_grisp/otp/21.0/build/Makefile" line 564: Need an operator
make: "/usr/home/mko_io/mcu/foo3/_grisp/otp/21.0/build/Makefile" line 989: Missing dependency operator
make: "/usr/home/mko_io/mcu/foo3/_grisp/otp/21.0/build/Makefile" line 991: Need an operator
make: "/usr/home/mko_io/mcu/foo3/_grisp/otp/21.0/build/Makefile" line 993: Need an operator
make: "/usr/home/mko_io/mcu/foo3/_grisp/otp/21.0/build/Makefile" line 1008: Missing dependency operator
make: "/usr/home/mko_io/mcu/foo3/_grisp/otp/21.0/build/Makefile" line 1011: warning: duplicate script for target "ifeq" ignored
make: "/usr/home/mko_io/mcu/foo3/_grisp/otp/21.0/build/Makefile" line 392: warning: using previous script for "ifeq" defined here
make: "/usr/home/mko_io/mcu/foo3/_grisp/otp/21.0/build/Makefile" line 1011: warning: duplicate script for target "(,true)" ignored
make: "/usr/home/mko_io/mcu/foo3/_grisp/otp/21.0/build/Makefile" line 392: warning: using previous script for "(,true)" defined here
make: "/usr/home/mko_io/mcu/foo3/_grisp/otp/21.0/build/Makefile" line 1012: Need an operator
make: "/usr/home/mko_io/mcu/foo3/_grisp/otp/21.0/build/Makefile" line 1016: Need an operator
make: "/usr/home/mko_io/mcu/foo3/_grisp/otp/21.0/build/Makefile" line 1023: Missing dependency operator
make: "/usr/home/mko_io/mcu/foo3/_grisp/otp/21.0/build/Makefile" line 1024: warning: duplicate script for target "ifeq" ignored
make: "/usr/home/mko_io/mcu/foo3/_grisp/otp/21.0/build/Makefile" line 392: warning: using previous script for "ifeq" defined here
make: "/usr/home/mko_io/mcu/foo3/_grisp/otp/21.0/build/Makefile" line 1025: Need an operator
make: "/usr/home/mko_io/mcu/foo3/_grisp/otp/21.0/build/Makefile" line 1027: Need an operator
make: Fatal errors encountered -- cannot continue
make: stopped in /usr/home/mko_io/mcu/foo3/_grisp/otp/21.0/build
I'm not family with rebar3 build system, I don't know how to modify it to use gmake on freebsd
First a question: do you have own C level drivers or modifications to grisp
C code?
Because only if you do this you need to cross build OTP yourself. We provide prebuilt cross OTPs for GRiSP for many versions. And those are OS independent since they only depend on the target (GRiSP board) which is always the same.
That would be a workaround to your current blocking point.
Building OTP from source (which is necessary if you want to add/modify C code) is currently not tested on FreeBSD and MacOS but we are planning to add those OS to our CI.
So we are very interested on problems occurring when cross building OTP on other OS
@peerst the reason I'm learning to cross build the OTP, is because I'm trying to make a low cost RK3399 based single board computer running only Freebsd and use it as the base to develop other small MCU like grisp.
I've watched your presentation, and glad to know your a freebsd guy too, your grisp-software package, build perfectly on Freebsd 12 with just a few hacks which just manually change make
to gmake
.
I think the port rebar3_grisp to freebsd should be not hard, but I'm not family with rebar3 build system, may need some help
Just saying that cross compiling OTP is not a necessary step when you want to deploy Erlang or Elixir code to a GRiSP board: Only the steps under https://github.com/grisp/grisp/wiki heading "Tutorial" (excluding "Advanced" section) are necessary.
Of course we will work to make it work on FreeBSD and MacOS but for the majority of use cases its not necessary.
@peerst I think for now I could just use the prebuilt OTP since I don't have do any c level driver hack. And I will try to it on Linux box and see how it works.
Prebuilt should just work fine on FreeBSD no need for Linux here
Good to know, I'll give it a try, thanks
I'm closing this because we're many versions ahead by now. Please re-open if it still is an issue!
Hi grisp team, I made some progress on building OTP for grisp, there's new error, here's my build environment:
rebar3 new grispapp name=foo dest=/dev/sd1
{erl_opts, [debug_info]}.
{grisp, [ {otp, [ {version, "22.0.4"} ]}, {build, [ {toolchain, [ {directory, "/usr/home/mko_io/mcu/grisp-software/rtems-install/rtems/5"} ]} ]}, {deploy, [ {destination, "foo_disk"} ]} ]}.
{shell, [{apps, []}]}.
{relx, [ {release, {foo, "0.1.0"}, [foo]} ]}.
$ rebar3 grisp build ===> Compiling grisp_tools ===> Compiling rebar3_grisp ===> Verifying dependencies... ===> Checking out Erlang/OTP 22.0
legacy/erl_marshal.c:472:6: note: in expansion of macro 'put32be' put32be(ext, i); ^
~~ misc/putget.h:53:12: warning: conversion to 'unsigned char' from 'int' may alter its value [-Wconversion] (s)[2] = ((n) >> 8) & 0xff; \ ^ legacy/erl_marshal.c:472:6: note: in expansion of macro 'put32be' put32be(ext, i); ^~~ misc/putget.h:54:12: warning: conversion to 'unsigned char' from 'int' may alter its value [-Wconversion] (s)[3] = (n) & 0xff; \ ^ legacy/erl_marshal.c:472:6: note: in expansion of macro 'put32be' put32be(ext, i); ^~~ misc/putget.h:51:12: warning: conversion to 'unsigned char' from 'int' may alter its value [-Wconversion] (s)[0] = ((n) >> 24) & 0xff; \ ^ legacy/erl_marshal.c:474:6: note: in expansion of macro 'put32be' put32be(ext, i); ^~~ misc/putget.h:52:12: warning: conversion to 'unsigned char' from 'int' may alter its value [-Wconversion] (s)[1] = ((n) >> 16) & 0xff; \ ^ legacy/erl_marshal.c:474:6: note: in expansion of macro 'put32be' put32be(ext, i); ^~~ misc/putget.h:53:12: warning: conversion to 'unsigned char' from 'int' may alter its value [-Wconversion] (s)[2] = ((n) >> 8) & 0xff; \ ^ legacy/erl_marshal.c:474:6: note: in expansion of macro 'put32be' put32be(ext, i); ^~~ misc/putget.h:54:12: warning: conversion to 'unsigned char' from 'int' may alter its value [-Wconversion] (s)[3] = (n) & 0xff; \ ^ legacy/erl_marshal.c:474:6: note: in expansion of macro 'put32be' put32be(ext, i); ^~~ misc/putget.h:51:12: warning: conversion to 'unsigned char' from 'int' may alter its value [-Wconversion] (s)[0] = ((n) >> 24) & 0xff; \ ^ legacy/erl_marshal.c:483:3: note: in expansion of macro 'put32be' put32be(size_p, i); ^~~ misc/putget.h:52:12: warning: conversion to 'unsigned char' from 'int' may alter its value [-Wconversion] (s)[1] = ((n) >> 16) & 0xff; \ ^ legacy/erl_marshal.c:483:3: note: in expansion of macro 'put32be' put32be(size_p, i); ^~~ misc/putget.h:53:12: warning: conversion to 'unsigned char' from 'int' may alter its value [-Wconversion] (s)[2] = ((n) >> 8) & 0xff; \ ^ legacy/erl_marshal.c:483:3: note: in expansion of macro 'put32be' put32be(size_p, i); ^~~ misc/putget.h:54:12: warning: conversion to 'unsigned char' from 'int' may alter its value [-Wconversion] (s)[3] = (n) & 0xff; \ ^ legacy/erl_marshal.c:483:3: note: in expansion of macro 'put32be' put32be(size_p, i); ^~~ legacy/erl_marshal.c:488:18: warning: conversion to 'unsigned char' from 'int' may alter its value [-Wconversion] (ext)++ = (i >> 24) & 0xff; ^ legacy/erl_marshal.c:489:18: warning: conversion to 'unsigned char' from 'int' may alter its value [-Wconversion] (ext)++ = (i >> 16) & 0xff; ^ legacy/erl_marshal.c:490:18: warning: conversion to 'unsigned char' from 'int' may alter its value [-Wconversion] (ext)++ = (i >> 8) & 0xff; ^ legacy/erl_marshal.c:491:18: warning: conversion to 'unsigned char' from 'int' may alter its value [-Wconversion] (ext)++ = i & 0xff; ^ legacy/erl_marshal.c: In function 'erl_decode_it': legacy/erl_marshal.c:896:18: warning: declaration of 'i' shadows a previous local [-Wshadow] size_t cnt, i; ^ legacy/erl_marshal.c:732:9: note: shadowed declaration is here int i,j,arity; ^ legacy/erl_marshal.c: In function 'cmp_latin1_vs_utf8': legacy/erl_marshal.c:1526:25: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] unsigned char sL = (unsigned char)strL; ^ legacy/erl_marshal.c:1527:25: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] unsigned char sU = (unsigned char)strU; ^ legacy/erl_marshal.c:1535:10: warning: conversion to 'unsigned char' from 'int' may alter its value [-Wconversion] UasL = ((sU[0] & 0x3) << 6) | (sU[1] & 0x3F); ^ CC /usr/home/mko_io/mcu/foo/_grisp/otp/22.0.4/build/lib/erl_interface/obj.mt/arm-unknown-rtems5/erl_resolve.o CC /usr/home/mko_io/mcu/foo/_grisp/otp/22.0.4/build/lib/erl_interface/obj.mt/arm-unknown-rtems5/erl_timeout.o CC /usr/home/mko_io/mcu/foo/_grisp/otp/22.0.4/build/lib/erl_interface/obj.mt/arm-unknown-rtems5/global_names.o CC /usr/home/mko_io/mcu/foo/_grisp/otp/22.0.4/build/lib/erl_interface/obj.mt/arm-unknown-rtems5/global_register.o CC /usr/home/mko_io/mcu/foo/_grisp/otp/22.0.4/build/lib/erl_interface/obj.mt/arm-unknown-rtems5/global_unregister.o CC /usr/home/mko_io/mcu/foo/_grisp/otp/22.0.4/build/lib/erl_interface/obj.mt/arm-unknown-rtems5/global_whereis.o AR /usr/home/mko_io/mcu/foo/_grisp/otp/22.0.4/build/lib/erl_interface/obj/arm-unknown-rtems5/liberl_interface.a RANLIB /usr/home/mko_io/mcu/foo/_grisp/otp/22.0.4/build/lib/erl_interface/obj/arm-unknown-rtems5/liberl_interface.a LD /usr/home/mko_io/mcu/foo/_grisp/otp/22.0.4/build/lib/erl_interface/bin/arm-unknown-rtems5/erl_call prog/erl_call.c: In function 'main': prog/erl_call.c:296:16: warning: conversion to 'int' from 'time_t {aka long long int}' may alter its value [-Wconversion] creation = (time(NULL) % 3) + 1; / "random" / ^ prog/erl_call.c:300:11: warning: conversion to 'int' from 'time_t {aka long long int}' may alter its value [-Wconversion] i = flags.randomp ? (time(NULL) % 997) : 17; ^~~~~ prog/erl_call.c:316:13: warning: declaration of 'ct' shadows a previous local [-Wshadow] char ct; ^~ prog/erl_call.c:147:11: note: shadowed declaration is here char ct = NULL; / temporary used when truncating nodename / ^~ prog/erl_call.c:397:6: warning: declaration of 'i' shadows a previous local [-Wshadow] int i = 0; ^ prog/erl_call.c:142:9: note: shadowed declaration is here int i = 1,fd,creation; ^ prog/erl_call.c:398:8: warning: declaration of 'p' shadows a previous local [-Wshadow] char p; ^ prog/erl_call.c:146:11: note: shadowed declaration is here char p = NULL; ^ prog/erl_call.c:440:8: warning: declaration of 'i' shadows a previous local [-Wshadow] int i = 0; ^ prog/erl_call.c:142:9: note: shadowed declaration is here int i = 1,fd,creation; ^ prog/erl_call.c:441:10: warning: declaration of 'p' shadows a previous local [-Wshadow] char p; ^ prog/erl_call.c:146:11: note: shadowed declaration is here char p = NULL; ^ prog/erl_call.c:473:8: warning: declaration of 'i' shadows a previous local [-Wshadow] int i = 0; ^ prog/erl_call.c:142:9: note: shadowed declaration is here int i = 1,fd,creation; ^ prog/erl_call.c:474:10: warning: declaration of 'p' shadows a previous local [-Wshadow] char p; ^ prog/erl_call.c:146:11: note: shadowed declaration is here char p = NULL; ^ prog/erl_call.c:528:8: warning: declaration of 'i' shadows a previous local [-Wshadow] int i = 0; ^ prog/erl_call.c:142:9: note: shadowed declaration is here int i = 1,fd,creation; ^ prog/erl_call.c:529:10: warning: declaration of 'p' shadows a previous local [-Wshadow] char p; ^ prog/erl_call.c:146:11: note: shadowed declaration is here char *p = NULL; ^ prog/erl_call.c:590:8: warning: declaration of 'i' shadows a previous local [-Wshadow] int i = 0; ^ prog/erl_call.c:142:9: note: shadowed declaration is here int i = 1,fd,creation; ^ prog/erl_call.c: In function 'do_connect': prog/erl_call.c:650:32: warning: cast increases required alignment of target type [-Wcast-align] if ((r=erl_start_sys(ec,alive,(Erl_IpAddr)(h->h_addr_list[0]), ^ prog/erl_call.c: In function 'main': prog/erl_call.c:245:3: warning: this statement may fall through [-Wimplicit-fallthrough=] usage(progname); ^~~~~~~ prog/erl_call.c:246:6: note: here default: ^~~ /usr/home/mko_io/mcu/foo/_grisp/otp/22.0.4/build/lib/erl_interface/obj/arm-unknown-rtems5/libei.a(ei_connect.o): In functiongen_challenge': /usr/home/mko_io/mcu/foo/_grisp/otp/22.0.4/build/lib/erl_interface/src/connect/ei_connect.c:1659: undefined reference to
gethostid' /usr/home/mko_io/mcu/grisp-software/rtems-install/rtems/5/arm-rtems5/atsamv/lib/librtemscpu.a(bdbuf.o): In functionrtems_mutex_lock': /usr/home/mko_io/mcu/grisp-software/rtems/cpukit/include/rtems/thread.h:54: undefined reference to
rtems_bdbuf_configuration' /usr/home/mko_io/mcu/grisp-software/rtems-install/rtems/5/arm-rtems5/atsamv/lib/librtemscpu.a(bdbuf.o): In functionrtems_bdbuf_set_block_size': /usr/home/mko_io/mcu/grisp-software/build/..//rtems/c/src/../../cpukit/libblock/src/bdbuf.c:2880: undefined reference to
rtems_bdbuf_configuration' collect2: error: ld returned 1 exit status gmake[4]: [arm-unknown-rtems5/Makefile:669: /usr/home/mko_io/mcu/foo/_grisp/otp/22.0.4/build/lib/erl_interface/bin/arm-unknown-rtems5/erl_call] Error 1 gmake[4]: Leaving directory '/usr/home/mko_io/mcu/foo/_grisp/otp/22.0.4/build/lib/erl_interface/src' gmake[3]: [Makefile:31: opt] Error 2 gmake[3]: Leaving directory '/usr/home/mko_io/mcu/foo/_grisp/otp/22.0.4/build/lib/erl_interface/src' gmake[2]: [/usr/home/mko_io/mcu/foo/_grisp/otp/22.0.4/build/make/otp_subdir.mk:29: opt] Error 2 gmake[2]: Leaving directory '/usr/home/mko_io/mcu/foo/_grisp/otp/22.0.4/build/lib/erl_interface' gmake[1]: [/usr/home/mko_io/mcu/foo/_grisp/otp/22.0.4/build/make/otp_subdir.mk:29: opt] Error 2 gmake[1]: Leaving directory '/usr/home/mko_io/mcu/foo/_grisp/otp/22.0.4/build/lib' gmake: *** [Makefile:490: libs] Error 2