* [gentoo-user] Changing CFLAGS
@ 2007-04-28 1:40 Alex Schuster
2007-04-28 5:07 ` Hemmann, Volker Armin
0 siblings, 1 reply; 8+ messages in thread
From: Alex Schuster @ 2007-04-28 1:40 UTC (permalink / raw
To: gentoo-user
Hi there!
My motherboard or CPU just died, I am using a replacement system
for a while. It's an Athlox-XP, while I had an AMD-64 before.
I did not use 64 bit mode, but I have -march=k8 in my CFLAGS,
and get lots of illegal instructions. Seems I need to re-compile
everything with different CFLAGS, maybe -mcpu=k8 maybe this time
as I am planning to re-activate the old system some time.
What would be the best way to do this? I thought about unpacking
a stage1 tarball, changing CFLAGS, calling bootstrap.sh and doing
an emerge -e world, but this would overwrite things in /etc and
clutter my file system with more things I do not really want,
like creating entries in /dev. I would rather like to keep the
current setup as it is.
I think that I saw a howto once about what to do in such a case,
but at that time I did not need it, and now I cannot find it.
BTW: What exactly are the benefits from using march instead of
mcpu? Is there a noticeable difference in speed anyway? With mcpu
I would not have the trouble I am having now...
Alex
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [gentoo-user] Changing CFLAGS
2007-04-28 1:40 [gentoo-user] Changing CFLAGS Alex Schuster
@ 2007-04-28 5:07 ` Hemmann, Volker Armin
2007-04-28 14:04 ` [gentoo-user] " Alexander Skwar
2007-05-03 20:40 ` [gentoo-user] " Csányi András
0 siblings, 2 replies; 8+ messages in thread
From: Hemmann, Volker Armin @ 2007-04-28 5:07 UTC (permalink / raw
To: gentoo-user
On Samstag, 28. April 2007, Alex Schuster wrote:
>
> What would be the best way to do this?
complete reinstallation.
> I thought about unpacking
> a stage1 tarball, changing CFLAGS, calling bootstrap.sh and doing
> an emerge -e world, but this would overwrite things in /etc and
> clutter my file system with more things I do not really want,
> like creating entries in /dev. I would rather like to keep the
> current setup as it is.
use knoppix.
If you don't want to reinstall everything and the XP is just a temporary
replacement, get a knoppix livecd. It lets you save things to a file, if you
want to.
>
> I think that I saw a howto once about what to do in such a case,
> but at that time I did not need it, and now I cannot find it.
the howto is: remove the system and start from scratch.
>
>
> BTW: What exactly are the benefits from using march instead of
> mcpu? Is there a noticeable difference in speed anyway? With mcpu
> I would not have the trouble I am having now...
Your trouble started, when you switched to a completly different cpu...
mcpu = only rearranging stuff so it might run better on the cpu specified. No
instructions and features used, that are not available on all the other cpus
from a family (in theory, a binary built with mcpu=athlon-xp should be able
to run on a i486).
march = optimizing for the specified cpu. Using all features and instructions
available, building stuff not able to run on other cpus. (so a resulting
binary of march=athlon-xp won't run on a i486)
usually march is faster on the given cpu, mcpu is more compatible.
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 8+ messages in thread
* [gentoo-user] Re: Changing CFLAGS
2007-04-28 5:07 ` Hemmann, Volker Armin
@ 2007-04-28 14:04 ` Alexander Skwar
2007-04-28 14:22 ` Hemmann, Volker Armin
2007-05-03 20:40 ` [gentoo-user] " Csányi András
1 sibling, 1 reply; 8+ messages in thread
From: Alexander Skwar @ 2007-04-28 14:04 UTC (permalink / raw
To: gentoo-user
· Hemmann, Volker Armin <volker.armin.hemmann@tu-clausthal.de>:
> On Samstag, 28. April 2007, Alex Schuster wrote:
>> BTW: What exactly are the benefits from using march instead of
>> mcpu? Is there a noticeable difference in speed anyway? With mcpu
[...]
> usually march is faster on the given cpu, mcpu is more compatible.
Is it noticeable, though?
Alexander Skwar
--
"Beware of programmers carrying screwdrivers."
-- Chip Salzenberg
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [gentoo-user] Re: Changing CFLAGS
2007-04-28 14:04 ` [gentoo-user] " Alexander Skwar
@ 2007-04-28 14:22 ` Hemmann, Volker Armin
0 siblings, 0 replies; 8+ messages in thread
From: Hemmann, Volker Armin @ 2007-04-28 14:22 UTC (permalink / raw
To: gentoo-user
On Samstag, 28. April 2007, Alexander Skwar wrote:
> · Hemmann, Volker Armin <volker.armin.hemmann@tu-clausthal.de>:
> > On Samstag, 28. April 2007, Alex Schuster wrote:
> >> BTW: What exactly are the benefits from using march instead of
> >> mcpu? Is there a noticeable difference in speed anyway? With mcpu
>
> [...]
>
> > usually march is faster on the given cpu, mcpu is more compatible.
>
> Is it noticeable, though?
well, march uses things like sse/sse2/sse3 or 3dnow and mcpu does not. So yes,
it is.
You can test it for yourself. Get a 400mhz CPU with 3dnow, like a K6-2 or
K6-3, and compile mplayer or xine-lib with mcpu and with march. With march
you can watch videos. With mcpu you get a fast slideshow.
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [gentoo-user] Changing CFLAGS
2007-04-28 5:07 ` Hemmann, Volker Armin
2007-04-28 14:04 ` [gentoo-user] " Alexander Skwar
@ 2007-05-03 20:40 ` Csányi András
2007-05-03 22:19 ` Ryan Sims
1 sibling, 1 reply; 8+ messages in thread
From: Csányi András @ 2007-05-03 20:40 UTC (permalink / raw
To: gentoo-user
Hemmann, Volker Armin írta:
> the howto is: remove the system and start from scratch.
>
uhhh...
3 days before changed I the cpu type in /etc/make.conf file and
recompile the system.
And it is work without problems...
I'm very lucky...
Best regards,
András
---sorry my english..., study ---
--
- -
-- Csányi András -- http://sayusi.hu -- Sayusi Ando
-- "Bízzál Istenben és tartsd szárazon a puskaport!" -- Cromwell
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [gentoo-user] Changing CFLAGS
2007-05-03 20:40 ` [gentoo-user] " Csányi András
@ 2007-05-03 22:19 ` Ryan Sims
2007-05-04 6:11 ` Csányi András
0 siblings, 1 reply; 8+ messages in thread
From: Ryan Sims @ 2007-05-03 22:19 UTC (permalink / raw
To: gentoo-user
On 5/3/07, Csányi András <sayusi.ando@gmail.com> wrote:
> Hemmann, Volker Armin írta:
> > the howto is: remove the system and start from scratch.
> >
> uhhh...
> 3 days before changed I the cpu type in /etc/make.conf file and
> recompile the system.
> And it is work without problems...
> I'm very lucky...
>From what to what? Were you using march or mcpu?
--
Ryan W Sims
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [gentoo-user] Changing CFLAGS
2007-05-03 22:19 ` Ryan Sims
@ 2007-05-04 6:11 ` Csányi András
2007-05-04 6:12 ` Csányi András
0 siblings, 1 reply; 8+ messages in thread
From: Csányi András @ 2007-05-04 6:11 UTC (permalink / raw
To: gentoo-user
2007/5/4, Ryan Sims <rwsims@gmail.com>:
> On 5/3/07, Csányi András <sayusi.ando@gmail.com> wrote:
> > Hemmann, Volker Armin írta:
> > > the howto is: remove the system and start from scratch.
> > >
> > uhhh...
> > 3 days before changed I the cpu type in /etc/make.conf file and
> > recompile the system.
> > And it is work without problems...
> > I'm very lucky...
>
> From what to what? Were you using march or mcpu?
CLAGS="-O2 -march=i686 -pipe" to
CFLAGS="-O2 -march=pentium4-m -pipe"
the machine:
Toshiba L30 Laptop
--
- -
-- Csanyi Andras -- http://sayusi.hu -- Sayusi Ando
-- "Bízzál Istenben és tartsd szárazon a puskaport!".-- Cromwell
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [gentoo-user] Changing CFLAGS
2007-05-04 6:11 ` Csányi András
@ 2007-05-04 6:12 ` Csányi András
0 siblings, 0 replies; 8+ messages in thread
From: Csányi András @ 2007-05-04 6:12 UTC (permalink / raw
To: gentoo-user
2007/5/4, Csányi András <sayusi.ando@gmail.com>:
> 2007/5/4, Ryan Sims <rwsims@gmail.com>:
> > On 5/3/07, Csányi András <sayusi.ando@gmail.com> wrote:
> > > Hemmann, Volker Armin írta:
> > > > the howto is: remove the system and start from scratch.
> > > >
> > > uhhh...
> > > 3 days before changed I the cpu type in /etc/make.conf file and
> > > recompile the system.
> > > And it is work without problems...
> > > I'm very lucky...
> >
> > From what to what? Were you using march or mcpu?
>
> CLAGS="-O2 -march=i686 -pipe" to
> CFLAGS="-O2 -march=pentium4-m -pipe"
Sorry... I'm tired...
CFLAGS="-O2 -march=i686 -pipe" to
CFLAGS="-O2 -march=pentium4-m -pipe"
--
- -
-- Csanyi Andras -- http://sayusi.hu -- Sayusi Ando
-- "Bízzál Istenben és tartsd szárazon a puskaport!".-- Cromwell
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2007-05-04 6:21 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-04-28 1:40 [gentoo-user] Changing CFLAGS Alex Schuster
2007-04-28 5:07 ` Hemmann, Volker Armin
2007-04-28 14:04 ` [gentoo-user] " Alexander Skwar
2007-04-28 14:22 ` Hemmann, Volker Armin
2007-05-03 20:40 ` [gentoo-user] " Csányi András
2007-05-03 22:19 ` Ryan Sims
2007-05-04 6:11 ` Csányi András
2007-05-04 6:12 ` Csányi András
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox