* [gentoo-user] repair of a seg-faulting bin-utils
@ 2022-10-26 16:14 Corbin
2022-10-26 16:24 ` [gentoo-user] " Grant Edwards
0 siblings, 1 reply; 4+ messages in thread
From: Corbin @ 2022-10-26 16:14 UTC (permalink / raw
To: gentoo-user
Help!
The last update I did built/installed bin-uitls. It is now producing
seg-faults. I forgot to make a quickpkg of the old bin-utils before
upgrading.
Added problem, dead optical drive. No cdrom/dvd or bluray.
How can I fix this without having to reinstall from scratch?
^ permalink raw reply [flat|nested] 4+ messages in thread
* [gentoo-user] Re: repair of a seg-faulting bin-utils
2022-10-26 16:14 [gentoo-user] repair of a seg-faulting bin-utils Corbin
@ 2022-10-26 16:24 ` Grant Edwards
2022-10-26 18:37 ` Rich Freeman
0 siblings, 1 reply; 4+ messages in thread
From: Grant Edwards @ 2022-10-26 16:24 UTC (permalink / raw
To: gentoo-user
On 2022-10-26, Corbin <corbinbird@charter.net> wrote:
> Help!
>
> The last update I did built/installed bin-uitls. It is now producing
> seg-faults. I forgot to make a quickpkg of the old bin-utils before
> upgrading.
The first thing I would do is run a RAM test overnight. IME,
segfaulting binutils or gcc has usually been a hardware problem.
--
Grant
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [gentoo-user] Re: repair of a seg-faulting bin-utils
2022-10-26 16:24 ` [gentoo-user] " Grant Edwards
@ 2022-10-26 18:37 ` Rich Freeman
2022-10-26 18:45 ` Matt Connell
0 siblings, 1 reply; 4+ messages in thread
From: Rich Freeman @ 2022-10-26 18:37 UTC (permalink / raw
To: gentoo-user
On Wed, Oct 26, 2022 at 12:24 PM Grant Edwards
<grant.b.edwards@gmail.com> wrote:
>
> On 2022-10-26, Corbin <corbinbird@charter.net> wrote:
> > Help!
> >
> > The last update I did built/installed bin-uitls. It is now producing
> > seg-faults. I forgot to make a quickpkg of the old bin-utils before
> > upgrading.
>
> The first thing I would do is run a RAM test overnight. IME,
> segfaulting binutils or gcc has usually been a hardware problem.
Bad disk is obviously another possible issue (saw that on a pi
sdcard), but I'd definitely be testing that RAM. Really if you suspect
bad RAM it is worth your trouble to just shut down ASAP and test that,
because every minute with bad RAM is potentially corrupted files on
your hard drive, and rework even if you have a good backup.
Another possible issue is bad -march settings. That usually is an
issue if you change your CPU and boot off of an existing hard drive.
If you're going to upgrade your CPU you should rebuild all of @system
(at least) with -march set to something very minimal. Don't assume
that a newer CPU does everything an existing one does - they sometimes
do drop instructions. You can set -mcpu to whatever you want, as a
bad -mcpu will only cause minor performance issues.
--
Rich
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [gentoo-user] Re: repair of a seg-faulting bin-utils
2022-10-26 18:37 ` Rich Freeman
@ 2022-10-26 18:45 ` Matt Connell
0 siblings, 0 replies; 4+ messages in thread
From: Matt Connell @ 2022-10-26 18:45 UTC (permalink / raw
To: gentoo-user
On Wed, 2022-10-26 at 14:37 -0400, Rich Freeman wrote:
> Another possible issue is bad -march settings. That usually is an
> issue if you change your CPU and boot off of an existing hard drive.
> If you're going to upgrade your CPU you should rebuild all of @system
> (at least) with -march set to something very minimal. Don't assume
> that a newer CPU does everything an existing one does - they sometimes
> do drop instructions. You can set -mcpu to whatever you want, as a
> bad -mcpu will only cause minor performance issues.
Further reading on this:
https://wiki.gentoo.org/wiki/Safe_CFLAGS
I've always used this as a reference for helping ensure make.conf is
not only going to be well optimized, but produce reliable binaries.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2022-10-26 18:45 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-10-26 16:14 [gentoo-user] repair of a seg-faulting bin-utils Corbin
2022-10-26 16:24 ` [gentoo-user] " Grant Edwards
2022-10-26 18:37 ` Rich Freeman
2022-10-26 18:45 ` Matt Connell
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox