Himax firmware_we_i_plus make -j command issue

I am building himax_we_i_plus code which is in below path

There is issue when i executed
make -j
Below are the logs.

emqos24@emqos24:~/Desktop/himax/sourcecode/firmware-himax-we-i-plus1/firmware-himax-we-i-plus/build-gnu$ make -j
Consolidate compiler generated dependencies of target firmware-himax-we-i-plus.elf
[ 1%] Building C object CMakeFiles/firmware-himax-we-i-plus.elf.dir/mbedtls_hmac_sha256_sw/mbedtls/src/ssl_tls.c.obj
/home/emqos24/Desktop/himax/sourcecode/firmware-himax-we-i-plus1/firmware-himax-we-i-plus/mbedtls_hmac_sha256_sw/mbedtls/src/ssl_tls.c: In function ‘ssl_calc_finished_tls_sha384’:
/home/emqos24/Desktop/himax/sourcecode/firmware-himax-we-i-plus1/firmware-himax-we-i-plus/mbedtls_hmac_sha256_sw/mbedtls/src/ssl_tls.c:6291:5: error: ‘mbedtls_sha512_finish_ret’ accessing 64 bytes in a region of size 48 [-Werror=stringop-overflow=]
6291 | mbedtls_sha512_finish_ret( &sha512, padbuf );
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/emqos24/Desktop/himax/sourcecode/firmware-himax-we-i-plus1/firmware-himax-we-i-plus/mbedtls_hmac_sha256_sw/mbedtls/src/ssl_tls.c:6291:5: note: referencing argument 2 of type ‘unsigned char *’
In file included from /home/emqos24/Desktop/himax/sourcecode/firmware-himax-we-i-plus1/firmware-himax-we-i-plus/mbedtls_hmac_sha256_sw/mbedtls/ssl_internal.h:49,
from /home/emqos24/Desktop/himax/sourcecode/firmware-himax-we-i-plus1/firmware-himax-we-i-plus/mbedtls_hmac_sha256_sw/mbedtls/src/ssl_tls.c:48:
/home/emqos24/Desktop/himax/sourcecode/firmware-himax-we-i-plus1/firmware-himax-we-i-plus/mbedtls_hmac_sha256_sw/mbedtls/sha512.h:141:5: note: in a call to function ‘mbedtls_sha512_finish_ret’
141 | int mbedtls_sha512_finish_ret( mbedtls_sha512_context *ctx,
| ^~~~~~~~~~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
make[2]: *** [CMakeFiles/firmware-himax-we-i-plus.elf.dir/build.make:1154: CMakeFiles/firmware-himax-we-i-plus.elf.dir/mbedtls_hmac_sha256_sw/mbedtls/src/ssl_tls.c.obj] Error 1
make[1]: *** [CMakeFiles/Makefile2:84: CMakeFiles/firmware-himax-we-i-plus.elf.dir/all] Error 2
make: *** [Makefile:91: all] Error 2
emqos24@emqos24:~/Desktop/himax/sourcecode/firmware-himax-we-i-plus1/firmware-himax-we-i-plus/build-gnu$

Hi @prashant.s,

Could you verify your ARC toolchain version (2020.09)?
You can run: arc-elf32-gcc -v.

I am not able to reproduce your issue, have you changed some files in the default firmware?

Thanks,
Aurelien

arc-elf32-gcc version is below


I had done changes in toolchain.gnu.cmake. Below are 2 line changes
image

Hello @prashant.s,

Can you try to build the firmware with Docker if you have issues when building with your local GNU Toolchain ?

Regards,

Louis