Stm32duino with arduino core build taking too long time (3/4 hours for the first time)

Hi, I am building the basic arduino code for generic stm32F103 for the first time and it is taking too much long time. Is it normal or I missed some settings?

Absolutely not. 45mins is way beyond normal.

Sounds like you might have an antivirus which blocks / checks the invocation of GCC every time? Can you temporarily disable it?