Mbed TLS is now part of TrustedFirmware.org.

MinGW make error


Apr 25, 2017 06:48
Ivan

I have a Windows 8.1 (tested on Windows 7 too)

Сarefully following the instructions https://tls.mbed.org/kb/compiling-and-building/compiling-mbedtls-in-mingw but meet error at section #5:

c:\MinGW\projects\mbedtls-2.4.2>mingw32-make " CC aes.c" process_begin: CreateProcess(NULL, cc -Wall -W -Wdeclaration-after-statement -I. ./include -D_FILE_OFFSET_BITS=64 -O2 -c aes.c, ...) failed. make (e=2): Не удается найти указанный файл. Makefile:161: recipe for target 'aes.o' failed mingw32-make[1]: *** [aes.o] Error 2 Makefile:18: recipe for target 'lib' failed mingw32-make: *** [lib] Error 2

What does it mean? Help me please.

 
Apr 25, 2017 08:01
Ron Eldor

Hi Ivan,
Thank you for reporting this!
I have reproduced this issue, and created an issue in github
We will look into it
Regards,
mbed TLS Team member
Ron

 
Apr 25, 2017 08:14
Ron Eldor

HI Ivan,
The reason for failure is that mingw32 doesn't have cc , and this is why it couldn't be found.
The compilation should be done the following way:

mingw32-make CC=gcc

I have updated the knowledge base article accordingly.
Regards,
mbed TLS Team member
Ron

 
Apr 25, 2017 09:33
Ivan

Hi Ron,

it works well, thank you very much.

Cheers!