View previous topic :: View next topic |
Author |
Message |
drayco2000 Tux's lil' helper
Joined: 12 Mar 2003 Posts: 126
|
Posted: Sat Mar 29, 2003 3:08 am Post subject: /etc/make.conf questions |
|
|
I have successfully installed gentoo, but I think my /etc/make.conf file is not right.
When I was doing emerge xfree, I noticed after it downloaded and while it was compiling I noticed the following error.
gcc unrecognized option '-03' I'm assuming that refers to the -03 in the CFLAGS line.
could someone post a sample file for a Pentium 4,
do you need a # sign in front of the CHOST, CFLAGS and CXXFLAGS lines?
I think my CFLAGS line is
CFLAGS="-march=i686 -O3 -pipe
as far as CXXFLAGS goes, I think it said not to do anything if you want the CFLAGS line above to be the same??
I'm pretty sure I got the CHOST line right
CHOST="i686-pc-linux-gnu"
but I don't have a # sign in front of any of these lines.
I have installed succesfully to this point, even compiled the kernel right this time so that wvdial works so I could get online after rebooting from install, If I have to edit my /etc/make.conf file now, will the system be screwed up from compiling the kernel and xfree with the old /etc/make.conf file? |
|
Back to top |
|
|
Jarjar Apprentice
Joined: 21 Jul 2002 Posts: 265 Location: Sweden
|
Posted: Sat Mar 29, 2003 5:01 am Post subject: |
|
|
Hm.
1) Is that "zero three" or "O three"? The latter; -O3 is the correct one.
2) I don't have any P4 myself, but this should do:
CFLAGS="-march=pentium4 -O3 -fomit-frame-pointer"
CXXFLAGS="${CFLAGS}"
3) No, if you have a '#' sign before, the line is commented out, which means it'll be ignored.
4) No, editing it afterwards is just fine most (all?) of the time. _________________ [Server etc. | C2D 2.2 @ 3.0 GHz / 4 GB RAM / 3x1 TB + 1x2 TB SATA disks + 1.5 TB ext. | Gentoo]
[Laptop | Macbook Pro 15" / Core i7 (Sandy) Quad 2.2 GHz / 16 GB RAM / Samsung 840 250 GB SSD + 1 TB + 2 TB HDD / 6750M 1 GB / OS X, Win 7] |
|
Back to top |
|
|
joem Retired Dev
Joined: 20 Dec 2002 Posts: 508 Location: Bloomington, In
|
Posted: Sat Mar 29, 2003 10:13 am Post subject: |
|
|
word. I have p4 and thats how it goes. You can also do a
you should get a bunch of information with a line that reads something like
Code: | flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr
sse sse2 ss ht tm |
that will give you some available flags that your processor can use[/code] |
|
Back to top |
|
|
thardy01 Tux's lil' helper
Joined: 05 Aug 2002 Posts: 77
|
Posted: Sat Mar 29, 2003 10:49 am Post subject: |
|
|
Ive got a question after you do the
How do you find out what each of the flags do? |
|
Back to top |
|
|
drayco2000 Tux's lil' helper
Joined: 12 Mar 2003 Posts: 126
|
Posted: Sat Mar 29, 2003 1:31 pm Post subject: |
|
|
Thanks Jarjar, good call on your part, I used Zero (03) not O3 (capital O).
thardy01, I think I can actually answer this one, if we are talking about USE flags. emerge ufed, then run ufed, it is a Graphical program on setting USE flags and has a description of what each one does. |
|
Back to top |
|
|
Narada Guru
Joined: 12 Dec 2002 Posts: 300 Location: London, UK
|
Posted: Sat Mar 29, 2003 4:23 pm Post subject: |
|
|
Here are my important variables in make.conf for the Pentium 4 processor which I've had no problems with at all.
Code: | CHOST="i686-pc-linux-gnu"
CFLAGS="-march=pentium4 -O3 -pipe -fomit-frame-pointer -fprefetch-loop-arrays -falign-functions=4 -funroll-loops -ffast-math -fforce-addr"
CXXFLAGS=CXXFLAGS="${CFLAGS}" |
Do not add a hash symbol before any of these lines. If you make large changes to CFLAGS and wish to recompile the system with the new CFLAGS do the following. Please note that this can be time consuming and may generate many configuration files.
_________________ http://dhruba.name/ |
|
Back to top |
|
|
pjp Administrator
Joined: 16 Apr 2002 Posts: 20067
|
Posted: Sat Mar 29, 2003 9:30 pm Post subject: |
|
|
Moved from Installing Gentoo. _________________ Quis separabit? Quo animo? |
|
Back to top |
|
|
|