I found my error. The point is mentioned here: https://visualgdb.com/documentation/espidf/#buildproblems
I fetched a version from Github which is not the way to go. I have followed the instructions and installed the latest version from here: https://gnutoolchains.com/esp32/
That solved this problem 🙂