I have spent my last five hours looking for this weird situation a reasonable explanation.
Here is the warning:
ld: warning: directory not found for opt
You have to follow these step:
Good Luck !!