I have encountered this problem in the past (but building for a specific device, not GSI). Possible solutions mentioned here