I have been following “getting started guide” for Linux but was stuck in “make red_wp77xx”. I tried to follow a few threads but had no luck. Can you help please? Thanks.
oliver@OgeSurfacePro:~/mangOH$ make red_wp77xx
make -C /home/oliver/legato_framework/legato framework_wp77xx
make[1]: Entering directory ‘/home/oliver/legato_framework/legato’
Module: WiFi
********************* VERSION ********************
Legato WiFi version: 18.09.0
Module: Dualsys
make -f Makefile.hostTools
make[2]: Entering directory ‘/home/oliver/legato_framework/legato’
Using ninja installed at: /usr/bin/ninja
ln -sf /home/oliver/legato_framework/legato/build/tools/mk /home/oliver/legato_framework/legato/bin/mk
ln -sf mk /home/oliver/legato_framework/legato/bin/mkcomp
ln -sf mk /home/oliver/legato_framework/legato/bin/mkexe
ln -sf mk /home/oliver/legato_framework/legato/bin/mkapp
ln -sf mk /home/oliver/legato_framework/legato/bin/mksys
ln -sf /home/oliver/legato_framework/legato/framework/tools/scripts/splitdebug /home/oliver/legato_framework/legato/framework/tools/scripts/instsys /home/oliver/legato_framework/legato/framework/tools/scripts/settime /home/oliver/legato_framework/legato/framework/tools/scripts/mkinfo /home/oliver/legato_framework/legato/framework/tools/scripts/legato-qemu /home/oliver/legato_framework/legato/framework/tools/scripts/stoplegato /home/oliver/legato_framework/legato/framework/tools/scripts/cextgenerator.py /home/oliver/legato_framework/legato/framework/tools/scripts/settz /home/oliver/legato_framework/legato/framework/tools/scripts/createsdk /home/oliver/legato_framework/legato/framework/tools/scripts/systoimg /home/oliver/legato_framework/legato/framework/tools/scripts/instlegato /home/oliver/legato_framework/legato/framework/tools/scripts/checkpa /home/oliver/legato_framework/legato/framework/tools/scripts/legato-install /home/oliver/legato_framework/legato/framework/tools/scripts/update-pack /home/oliver/legato_framework/legato/framework/tools/scripts/security-pack /home/oliver/legato_framework/legato/framework/tools/scripts/instapp /home/oliver/legato_framework/legato/framework/tools/scripts/mklegatoimg /home/oliver/legato_framework/legato/framework/tools/scripts/app /home/oliver/legato_framework/legato/framework/tools/scripts/av-pack /home/oliver/legato_framework/legato/framework/tools/scripts/releaselegato /home/oliver/legato_framework/legato/framework/tools/scripts/findtoolchain /home/oliver/legato_framework/legato/framework/tools/scripts/remoteDebug /home/oliver/legato_framework/legato/framework/tools/scripts/mkdelta /home/oliver/legato_framework/legato/framework/tools/scripts/systocwe /home/oliver/legato_framework/legato/framework/tools/scripts/configlegatoenv /home/oliver/legato_framework/legato/framework/tools/scripts/update /home/oliver/legato_framework/legato/framework/tools/scripts/sbhelper /home/oliver/legato_framework/legato/framework/tools/scripts/configtargetssh /home/oliver/legato_framework/legato/framework/tools/scripts/legs /home/oliver/legato_framework/legato/framework/tools/scripts/gettargettype /home/oliver/legato_framework/legato/framework/tools/scripts/update-util /home/oliver/legato_framework/legato/framework/tools/scripts/configToolchainDirEnvVars /home/oliver/legato_framework/legato/framework/tools/scripts/simu /home/oliver/legato_framework/legato/framework/tools/scripts/fwupdate /home/oliver/legato_framework/legato/framework/tools/scripts/setname /home/oliver/legato_framework/legato/framework/tools/scripts/mkdoc /home/oliver/legato_framework/legato/framework/tools/scripts/startlegato /home/oliver/legato_framework/legato/framework/tools/scripts/shlib /home/oliver/legato_framework/legato/framework/tools/scripts/mklegatotreero /home/oliver/legato_framework/legato/bin/
ln -sf /home/oliver/legato_framework/legato/framework/tools/ifgen/ifgen /home/oliver/legato_framework/legato/bin/
ln -sf /home/oliver/legato_framework/legato/3rdParty/ima-support-tools/ima-sign.sh /home/oliver/legato_framework/legato/bin/
ln -sf /home/oliver/legato_framework/legato/3rdParty/ima-support-tools/ima-gen-keys.sh /home/oliver/legato_framework/legato/bin/
make -C framework/tools/patchTool/mkPatch
make[3]: Entering directory ‘/home/oliver/legato_framework/legato/framework/tools/patchTool/mkPatch’
/usr/bin/gcc -Wall -Werror -o /home/oliver/legato_framework/legato/bin/mkPatch
mkPatch.c /home/oliver/legato_framework/legato/framework/liblegato/crc.c
-I/home/oliver/legato_framework/legato/framework/include
-I/home/oliver/legato_framework/legato/3rdParty/include
mkPatch.c: In function ‘main’:
mkPatch.c:1419:55: error: ‘%s’ directive output may be truncated writing up to 4095 bytes into a region of size between 4045 and 4063 [-Werror=format-truncation=]
“cat patch.%u.cwe.hdr patch.%u.cwe >%s/patch-%s.cwe”,
^~
pid, pid, CurrentWorkDir, targetPtr );
~~~~~~~~~~~~~~
mkPatch.c:1418:9: note: ‘snprintf’ output 45 or more bytes (assuming 4140) into a destination of size 4096
snprintf( CmdBuf, sizeof(CmdBuf),
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
“cat patch.%u.cwe.hdr patch.%u.cwe >%s/patch-%s.cwe”,
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
pid, pid, CurrentWorkDir, targetPtr );
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
mkPatch.c:1154:60: error: ‘snprintf’ output may be truncated before the last format character [-Werror=format-truncation=]
snprintf(OrigName, sizeof(OrigName), “%s/%s”, CurrentWorkDir, OrigPtr);
^
mkPatch.c:1154:17: note: ‘snprintf’ output 2 or more bytes (assuming 4097) into a destination of size 4096
snprintf(OrigName, sizeof(OrigName), “%s/%s”, CurrentWorkDir, OrigPtr);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
mkPatch.c:1177:60: error: ‘snprintf’ output may be truncated before the last format character [-Werror=format-truncation=]
snprintf(DestName, sizeof(DestName), “%s/%s”, CurrentWorkDir, DestPtr);
^
mkPatch.c:1177:17: note: ‘snprintf’ output 2 or more bytes (assuming 4097) into a destination of size 4096
snprintf(DestName, sizeof(DestName), “%s/%s”, CurrentWorkDir, DestPtr);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
mkPatch.c:1230:60: error: ‘snprintf’ output may be truncated before the last format character [-Werror=format-truncation=]
snprintf(OrigName, sizeof(OrigName), “%s/%s”, CurrentWorkDir, OrigPtr);
^
mkPatch.c:1230:17: note: ‘snprintf’ output 2 or more bytes (assuming 4097) into a destination of size 4096
snprintf(OrigName, sizeof(OrigName), “%s/%s”, CurrentWorkDir, OrigPtr);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
mkPatch.c:1260:60: error: ‘snprintf’ output may be truncated before the last format character [-Werror=format-truncation=]
snprintf(DestName, sizeof(DestName), “%s/%s”, CurrentWorkDir, DestPtr);
^
mkPatch.c:1260:17: note: ‘snprintf’ output 2 or more bytes (assuming 4097) into a destination of size 4096
snprintf(DestName, sizeof(DestName), “%s/%s”, CurrentWorkDir, DestPtr);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
mkPatch.c:1396:60: error: ‘%s’ directive output may be truncated writing up to 4095 bytes into a region of size between 4048 and 4066 [-Werror=format-truncation=]
“cat patch.%u.hdr patch.%u.bin >>%s/patch-%s.cwe”,
^~
pid, pid, CurrentWorkDir, productPtr );
~~~~~~~~~~~~~~
mkPatch.c:1395:17: note: ‘snprintf’ output 42 or more bytes (assuming 4137) into a destination of size 4096
snprintf( CmdBuf, sizeof(CmdBuf),
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
“cat patch.%u.hdr patch.%u.bin >>%s/patch-%s.cwe”,
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
pid, pid, CurrentWorkDir, productPtr );
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
mkPatch.c:20:16: error: ‘%s’ directive output may be truncated writing up to 4095 bytes into a region of size 4089 [-Werror=format-truncation=]
#define BSDIFF “bsdiff”
^~~~~~~~
mkPatch.c:1305:27: note: in expansion of macro ‘BSDIFF’
BSDIFF " %s %s patched.%u.bin.%d",
^~~~~~
mkPatch.c:1305:36: note: format string is defined here
BSDIFF " %s %s patched.%u.bin.%d",
^~
mkPatch.c:20:16: note: using the range [0, 4294967295] for directive argument
#define BSDIFF “bsdiff”
^~~~~~~~
mkPatch.c:1305:27: note: in expansion of macro ‘BSDIFF’
BSDIFF " %s %s patched.%u.bin.%d",
^~~~~~
mkPatch.c:1304:17: note: ‘snprintf’ output between 25 and 8234 bytes into a destination of size 4096
snprintf( CmdBuf, sizeof(CmdBuf),
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
BSDIFF " %s %s patched.%u.bin.%d",
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
OrigName, tmpName, pid, patchNum );
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
make[3]: *** [Makefile:25: mkPatch] Error 1
make[3]: Leaving directory ‘/home/oliver/legato_framework/legato/framework/tools/patchTool/mkPatch’
make[2]: *** [Makefile.hostTools:91: mkPatch] Error 2
make[2]: Leaving directory ‘/home/oliver/legato_framework/legato’
make[1]: *** [Makefile:358: tools] Error 2
make[1]: Leaving directory ‘/home/oliver/legato_framework/legato’
make: *** [Makefile:34: legato_wp77xx] Error 2