I have done two test builds on both Linux Mint 18.3 32-bit and Ubuntu 20.04 LTS (64-bit) and I cannot reproduce your problem. What are you trying to build exactly on what distribution? And what parameters do you put in to start the build?
Regards,
Audioniek.