[Error] ws_pae_time.c@174,103: expected ')' before 'PRIi64'

I tried to compile the Blinky example by Mbed CLI, while it was prompted:

I have already used “sudo pip install -r requirements.txt”:

When I commented the line of “tr_error” it prompted more errors and all related to “PRIi64”:

and I noted, the function “tr_debug” wasn’t error, though it still had “PRIi64”.

Believe it or not, I actually ran into this exact same issue today! I believe it may be due to this bug in the Ubuntu package manager version of arm-none-eabi-gcc. The issue is not present in the GCC linux binaries downloadable from ARM’s site.