I had the same problem with compiling under Archlinux. I think gcc-8.1 is too new for coreboot (currently). Debian uses an older version of gcc and works fine. Below are a couple suggestions to try.
- See if you can install and use gcc6 from the AUR
- Install docker and then try using coreboot-sdk from docker hub
Another option I went with (assuming Archlinux):
https://wiki.archlinux.org/index.php/Systemd-nspawn#Create_a_Debian_or_Ubunt...
In short:
pacman -S debootstrap debian-archive-keyring cd /var/lib/machines mkdir debian_build (if you're on btrfs, instead do 'btrfs sub create debian_build') debootstrap stable ./debian_build https://deb.debian.org/debian/ systemd-nspawn -D ./debian_build passwd logout systemd-nspawn -bD ./debian_build -> adjust /etc/apt/sources.list
I had the same problem a few weeks ago when compiling coreboot for the first time (now it worked!) :)