I started getting that error after I switched from 
'default/linux/amd64/23.0/no-multilib/hardened/systemd' to 
'default/linux/amd64/23.0/no-multilib/systemd' as follows:

eselect profile set 30
env-update && source /etc/profile

emerge -va1 binutils
env-update && source /etc/profile
emerge -va1 gcc
env-update && source /etc/profile
emerge -va1 binutils glibc
env-update && source /etc/profile
emerge -vea @world

When usbip failed with that error I did `emerge --resume 
--exclude='net-misc/usbip'`.
efitools and dqlite also failed with missing headers errors. I did the same and 
everything
else built and works fine.

Initially I also added sys-devel/gcc -pie to 
/etc/portage/profile/package.use.forced/ but then
I removed it and repeated all the steps.

All three packages that fail to build where installed before (same versions) 
and I have them
installed on another machine that's still on a hardened profile. On the case of 
usbip it seems
that it's trying to install the libraries on /usr/lib rather than /usr/lib64. 
The same package
installed to lib64 on the other machine.

I'm at a loss as to what to do now. I would be grateful for any help!

Reply via email to