Errors while building mbedTLS3.2.1 Apache version

Hi,

I am trying to build mbedtls3.2.1 apache version in Ubuntu 14.04.6 LTS.
Python3.4 is being used.
When do just “make” command, getting the below error.
Please help to resolve this error.

AR libmbedtls.a
File “scripts/generate_psa_tests.py”, line 597

      ^

SyntaxError: can use starred expression only as assignment target
Makefile:74: *** “python3 scripts/generate_psa_tests.py --list” failed. Stop.
make: *** [mbedtls_test] Error 2

Hi,

I tried to build the mbedtls v3.2.1 with Ubuntu 22.04 and python 3.10.6 and compiled/linked with no error.

You got:

SyntaxError: can use starred expression only as assignment target

The syntax error is caused by the * operator, which is not supported in this form in Python <= 3.4, so you need to update to 3.5 onwards.

README in the Mbed TLS mentioned:

  • Python 3.6 to generate the test code, and to generate sample programs in the development branch.

Regards,
Toyo

Thanks a lot, Its working now.