| « Keeping track of Trac wikis | Mailserver problemer igen » |
Grub problems on hardened
Yesterday I updated my laptop for the first time i a month and had to update 240+ packages including KDE. All in all the upgrade went smoothely, I only had to skip a few packages that won't compile with hardened GCC, most notably mplayer. However after the reboot it turned out I had a problem with GRUB and my system wouldn't boot. I got it quickly fixed with a bootable USB stick with SystemRescueCd, I only miss a 64 bit version for my other systems :( It turned out that my /boot partition was simply full.
At the same time it also turned out that GRUB wouldn't run on my AMD64 hardened desktop, whenever I tried to run grub or grub-install it would segfault. The only solution seems to compile it with vanilla GCC.
So now I'm back to recreating my home setup so I can actually print and share files:)
Note: I'm using GCC4.
Trackback address for this post
9 comments
And I know that kingtaco has 100+ amd64 hardened boxes with no segfaults in grub.
Chrstian:
grub should compile and work perfectly on multilib amd64 - it does on my boxes.
I am not a guru, but I began my move to Gentoo while attempting to complete my engineering degree in November, 2004. Finances and other issues stopped the education, but I'm now stuck on Gentoo and now appreciate chroot! If Gentoo comes to an end so will be my computer use. (I use to be a CAD designer, but outsourcing and the American economy ended that, but perhaps Gentoo will open up some at home work?!)
Gentoo Rules! even with its imperfections!
Short way to make sure of this: look at your build log and if it says just after Unpacking that it does not filter PIE becouse it can't find nopie or nopiessp spec files, then you have this issue too. I have not had the time diving in to why.
The segfault I have had on one of my boxes (the one that did not have the PIE-filtering-problem) and fixed it temporary with a patch from debian adding stdvars into the offending functions (does not remember in my head which). I have not have had the time diving in to why this happends either.
But I guess this may be a starting point when trying to find out what went wrong.
Open up the toolchain-funcs.eclass you are using in your favorite editor.
Browse to the function _gcc-install-dir().
Change the line:
awk '$1=="install:" {print $2}')"
to
awk '$1=="installation:" {print $2}')"
and filter-flag -fPIE will work once again.