I think I have the same problem with some posts in here.
I follow every step of installations the YouTube from the begining ( https://www.youtube.com/watch?v=rUqzkDaQNa4&feature=youtu.be). I am trying to “make wp85” in red mangoH. But it found out about compiling problem as below.
Module: WiFi
********************* VERSION ********************
Legato WiFi version: 18.05.0
Module: Dualsys
make -f Makefile.hostTools
make[1]: Entering directory ‘/home/bonsai/workspace/legatoAF/legato’
mkdir -p bin
Using ninja installed at: /usr/bin/ninja
mkdir -p /home/bonsai/workspace/legatoAF/legato/build/tools
export TOOLS_ARCH=x86_64 &&
framework/tools/mkTools/ninja-generator
Tools arch: x86_64
ln -sf …/build/tools/mk bin/mk
ln -sf mk bin/mkcomp
ln -sf mk bin/mkexe
ln -sf mk bin/mkapp
ln -sf mk bin/mksys
ln -sf …/framework/tools/scripts/splitdebug …/framework/tools/scripts/instsys …/framework/tools/scripts/settime …/framework/tools/scripts/mkinfo …/framework/tools/scripts/instlegato …/framework/tools/scripts/stoplegato …/framework/tools/scripts/cextgenerator.py …/framework/tools/scripts/settz …/framework/tools/scripts/createsdk …/framework/tools/scripts/systoimg …/framework/tools/scripts/legato-qemu …/framework/tools/scripts/checkpa …/framework/tools/scripts/legato-install …/framework/tools/scripts/update-pack …/framework/tools/scripts/security-pack …/framework/tools/scripts/instapp …/framework/tools/scripts/mklegatoimg …/framework/tools/scripts/app …/framework/tools/scripts/av-pack …/framework/tools/scripts/releaselegato …/framework/tools/scripts/findtoolchain …/framework/tools/scripts/remoteDebug …/framework/tools/scripts/systocwe …/framework/tools/scripts/configlegatoenv …/framework/tools/scripts/update …/framework/tools/scripts/sbhelper …/framework/tools/scripts/configtargetssh …/framework/tools/scripts/legs …/framework/tools/scripts/gettargettype …/framework/tools/scripts/update-util …/framework/tools/scripts/configToolchainDirEnvVars …/framework/tools/scripts/simu …/framework/tools/scripts/fwupdate …/framework/tools/scripts/setname …/framework/tools/scripts/mkdoc …/framework/tools/scripts/startlegato …/framework/tools/scripts/shlib …/framework/tools/scripts/mklegatotreero bin/
ln -sf /home/bonsai/workspace/legatoAF/legato/framework/tools/ifgen/ifgen bin/
ln -sf /home/bonsai/workspace/legatoAF/legato/3rdParty/ima-support-tools/ima-sign.sh bin/
ln -sf /home/bonsai/workspace/legatoAF/legato/3rdParty/ima-support-tools/ima-gen-keys.sh bin/
make -C framework/tools/mkPatch mkPatch
make[2]: Entering directory ‘/home/bonsai/workspace/legatoAF/legato/framework/tools/mkPatch’
/usr/bin/gcc -Wall -Werror -o /home/bonsai/workspace/legatoAF/legato/bin/mkPatch
mkPatch.c /home/bonsai/workspace/legatoAF/legato/framework/liblegato/crc.c
-I/home/bonsai/workspace/legatoAF/legato/framework/include
-I/home/bonsai/workspace/legatoAF/legato/3rdParty/include
mkPatch.c: In function ‘main’:
mkPatch.c:1412: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=]
1412 | “cat patch.%u.cwe.hdr patch.%u.cwe >%s/patch-%s.cwe”,
| ^~
1413 | pid, pid, CurrentWorkDir, targetPtr );
| ~~~~~~~~~~~~~~
mkPatch.c:1411:9: note: ‘snprintf’ output 45 or more bytes (assuming 4140) into a destination of size 4096
1411 | snprintf( CmdBuf, sizeof(CmdBuf),
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1412 | “cat patch.%u.cwe.hdr patch.%u.cwe >%s/patch-%s.cwe”,
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1413 | pid, pid, CurrentWorkDir, targetPtr );
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
mkPatch.c:1147:60: error: ‘snprintf’ output may be truncated before the last format character [-Werror=format-truncation=]
1147 | snprintf(OrigName, sizeof(OrigName), “%s/%s”, CurrentWorkDir, OrigPtr);
| ^
mkPatch.c:1147:17: note: ‘snprintf’ output 2 or more bytes (assuming 4097) into a destination of size 4096
1147 | snprintf(OrigName, sizeof(OrigName), “%s/%s”, CurrentWorkDir, OrigPtr);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
mkPatch.c:1170:60: error: ‘snprintf’ output may be truncated before the last format character [-Werror=format-truncation=]
1170 | snprintf(DestName, sizeof(DestName), “%s/%s”, CurrentWorkDir, DestPtr);
| ^
mkPatch.c:1170:17: note: ‘snprintf’ output 2 or more bytes (assuming 4097) into a destination of size 4096
1170 | snprintf(DestName, sizeof(DestName), “%s/%s”, CurrentWorkDir, DestPtr);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
mkPatch.c:1223:60: error: ‘snprintf’ output may be truncated before the last format character [-Werror=format-truncation=]
1223 | snprintf(OrigName, sizeof(OrigName), “%s/%s”, CurrentWorkDir, OrigPtr);
| ^
mkPatch.c:1223:17: note: ‘snprintf’ output 2 or more bytes (assuming 4097) into a destination of size 4096
1223 | snprintf(OrigName, sizeof(OrigName), “%s/%s”, CurrentWorkDir, OrigPtr);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
mkPatch.c:1253:60: error: ‘snprintf’ output may be truncated before the last format character [-Werror=format-truncation=]
1253 | snprintf(DestName, sizeof(DestName), “%s/%s”, CurrentWorkDir, DestPtr);
| ^
mkPatch.c:1253:17: note: ‘snprintf’ output 2 or more bytes (assuming 4097) into a destination of size 4096
1253 | snprintf(DestName, sizeof(DestName), “%s/%s”, CurrentWorkDir, DestPtr);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
mkPatch.c:1389: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=]
1389 | “cat patch.%u.hdr patch.%u.bin >>%s/patch-%s.cwe”,
| ^~
1390 | pid, pid, CurrentWorkDir, productPtr );
| ~~~~~~~~~~~~~~
mkPatch.c:1388:17: note: ‘snprintf’ output 42 or more bytes (assuming 4137) into a destination of size 4096
1388 | snprintf( CmdBuf, sizeof(CmdBuf),
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1389 | “cat patch.%u.hdr patch.%u.bin >>%s/patch-%s.cwe”,
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1390 | 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=]
20 | #define BSDIFF “bsdiff”
| ^~~~~~~~
mkPatch.c:1298:27: note: in expansion of macro ‘BSDIFF’
1298 | BSDIFF " %s %s patched.%u.bin.%d",
| ^~~~~~
mkPatch.c:1298:36: note: format string is defined here
1298 | BSDIFF " %s %s patched.%u.bin.%d",
| ^~
mkPatch.c:20:16: note: using the range [0, 4294967295] for directive argument
20 | #define BSDIFF “bsdiff”
| ^~~~~~~~
mkPatch.c:1298:27: note: in expansion of macro ‘BSDIFF’
1298 | BSDIFF " %s %s patched.%u.bin.%d",
| ^~~~~~
mkPatch.c:1297:17: note: ‘snprintf’ output between 25 and 8234 bytes into a destination of size 4096
1297 | snprintf( CmdBuf, sizeof(CmdBuf),
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1298 | BSDIFF " %s %s patched.%u.bin.%d",
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1299 | OrigName, tmpName, pid, patchNum );
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
make[2]: *** [Makefile:25: mkPatch] Error 1
make[2]: Leaving directory ‘/home/bonsai/workspace/legatoAF/legato/framework/tools/mkPatch’
make[1]: *** [Makefile.hostTools:89: mkPatch] Error 2
make[1]: Leaving directory ‘/home/bonsai/workspace/legatoAF/legato’
make: *** [Makefile:298: tools] Error 2
What’s wrong with this? About ‘environment variable’? or missing package compiler? I using MINT Linux OS.