There are multiple errors similar to this issued by GenFw. Our edk2 version is fairly recent (UDK2018 upstream branch as of commit 10318063b) but all this did build fine with gcc 7.3. Any clues?
Your Conf/tools_def.txt is probably stale, and does not contain the -fno-pie option we added a while ago.