It may be that you have a dependency of this specific test (or the test
itself) that has the following stanza in its Cabal file:
"extra-libraries: gmp"


Thanks, makes sense. Any shortcuts to try and find which package has gmp enabled?

Interestingly this problem doesn't happen with ghc-8.6.5. Does build order decide on if this issue is triggered or not?

-Sumit