Illegall instruction cant open termanals

Check the messages logs. Perhaps, as in my case, you need to mask the nettle, for which run as root:
echo '>=dev-libs/nettle-3.8' >> /etc/portage/package.mask/nettle_bug
then upgrade the system or just reinstall nettle.