The most accurate response to how other countries responded when Portugal built a global empire is:
They attacked Portuguese ships and trading posts.
During the Age of Exploration, other European powers were often in competition with Portugal for trade routes and colonial territories. This led to conflicts, including attacks on Portuguese ships and trading posts by countries such as Spain, the Netherlands, and England.