View previous topic :: View next topic |
Author |
Message |
leo_t Tux's lil' helper
Joined: 28 Apr 2004 Posts: 93
|
Posted: Mon Nov 01, 2004 12:09 am Post subject: need help with /etc/make.conf |
|
|
what i should write in make.conf? i don't know what to write in CFLAG and all the rest, and which flags is recomended to write in USE?
my system is AMD Durun 1800 and i plan to use GCC 3.4.2 and reiser 4 (if i can fix the GRUB issue whick i posted in another topic here)
thanks |
|
Back to top |
|
|
rj686 Apprentice
Joined: 12 Oct 2004 Posts: 199 Location: In my room playing my guitar or Sitting at my damn computer trying to get my fuckin gentoo to work:)
|
Posted: Mon Nov 01, 2004 12:11 am Post subject: |
|
|
if u did a stage 3 tar then i wouldnt recommend messing with it until much later (after ur install as done and ur deciding which desktop to use and etc....) _________________ Athalon XP 3000+ (e-machines)
OS's:
Windows due to my idiot brother, I'll go full linux once i get my laptop |
|
Back to top |
|
|
leo_t Tux's lil' helper
Joined: 28 Apr 2004 Posts: 93
|
Posted: Mon Nov 01, 2004 12:15 am Post subject: |
|
|
well i am doing an stage 3 install, i using KDE and X.ORG. |
|
Back to top |
|
|
donjuan l33t
Joined: 11 May 2004 Posts: 760 Location: At Uni
|
Posted: Mon Nov 01, 2004 12:28 am Post subject: |
|
|
The CFLAGS you probably want set to something like:
Code: | CFLAGS="-O3 -mcpu=athlon-xp -pipe -fomit-frame-pointer" |
I think that the Duron is based on the Athlon-XP isn't it? If not, you might have to look up the best CFLAG. The LiveCD boot up will probably tell you when it's detecting hardware. Or if you don't plan on changing your CPU architecture (like getting a P4) anytime soon you can change "-mcpu=athon-xp" to "-march=athon-xp". This will break compatibility with other CPUs, but get you a bit more performance.
The USE flags really depend on what you want to do with your system. I've found that for starters the example in section 6a of the installation guide works quite well. Though note that it assumes that you have a DVD drive, a CD burner, and want sound (alsa). If you don't want/have any one of those remove it form the listing. _________________ Command-line ACCEPT_KEYWORDS is considered harmful, use the package.* files.
The Stage 1 on 3 Install |
|
Back to top |
|
|
leo_t Tux's lil' helper
Joined: 28 Apr 2004 Posts: 93
|
Posted: Mon Nov 01, 2004 12:37 am Post subject: |
|
|
donjuan wrote: | The CFLAGS you probably want set to something like:
Code: | CFLAGS="-O3 -mcpu=athlon-xp -pipe -fomit-frame-pointer" |
I think that the Duron is based on the Athlon-XP isn't it? If not, you might have to look up the best CFLAG. The LiveCD boot up will probably tell you when it's detecting hardware. Or if you don't plan on changing your CPU architecture (like getting a P4) anytime soon you can change "-mcpu=athon-xp" to "-march=athon-xp". This will break compatibility with other CPUs, but get you a bit more performance.
The USE flags really depend on what you want to do with your system. I've found that for starters the example in section 6a of the installation guide works quite well. Though note that it assumes that you have a DVD drive, a CD burner, and want sound (alsa). If you don't want/have any one of those remove it form the listing. |
thanks, i am not planning to replace the CPU, but i would like to know what is the diffrent between -mcpu=athlon-xp to -march=athlon-xp.
i guess i can use -O2 isn't it? is there a big diffrent between them? also the ammount of flags in USE can change the compiling time? is it best to use only really needed flags? and when can i find an updated list of all the flags? and except the CFLAGS and USE, do i need to enter something else in /etc/make.conf?
thanks |
|
Back to top |
|
|
donjuan l33t
Joined: 11 May 2004 Posts: 760 Location: At Uni
|
Posted: Mon Nov 01, 2004 1:15 am Post subject: |
|
|
For stuff besides the USE flags and CFLAGS you should probably take a look at /etc/make.conf.example. The Gentoo developers really do a good job with commenting in example files.
Also, I just found that you need to use athlon for -march and -mcpu. So the difference between -march=athon and -mcpu=athlon is that -mcpu will try to optimize binaries for your CPU without breaking compatibility with older CPUs. Those binaries will even work on a 386, so I'm told. -march=athon will optimize the binaries further, but will break compatibility with non-athlon processors. So they will work on your computer and and Athlon-XP, but don't expect them to run on a P3.
As far as the -O option, you can use -O2, -O3 just optimizes a bit more and will make your binaries a bit larger. Hence using -O3 will also make stuff take longer to compile.
It's probably a good idea to use only needed USE flags. If you use extras they will make your binaries larger and take longer to compile. You can find a list of common USE flags at http://www.gentoo.org/dyn/use-index.xml or in /usr/portage/profiles/use.desc. That isn't an exhaustive list because many are program-specific, like the "f77" (build with Fortran 77 support) and "gcj" (build with gcj, which will compile java to native code) flags only apply to GCC, so they aren't listed. To see the flags that apply to a program you are about to emerge, type "emerge -pv <program>" and that will list the program, its dependences, and all their respective USE flags. + means the flag is enabled, - means disabled. _________________ Command-line ACCEPT_KEYWORDS is considered harmful, use the package.* files.
The Stage 1 on 3 Install |
|
Back to top |
|
|
dirtyepic` n00b
Joined: 01 Nov 2004 Posts: 11 Location: sk.ca
|
Posted: Mon Nov 01, 2004 3:57 am Post subject: |
|
|
my advice would be to keep things simple. you're going to be building the foundations of your system, and if something is shaky, it'll come crashing down until later when it really matters. i use the following:
Code: | CFLAGS="-O2 -march=pentium3 -fomit-frame-pointers -pipe" |
change to your arch of course. "-nls" compiles things without native language support, since i won't be using any languages other than english (maybe some french, but not on the command line ;P), and NPTL is a new threading system that's pretty popular. search the forum for more info on that. once you're bootstrapped and have the system built, then go nuts.
good luck. :) |
|
Back to top |
|
|
Gnufsh Guru
Joined: 28 Dec 2002 Posts: 400 Location: Portland, OR
|
Posted: Mon Nov 01, 2004 9:40 am Post subject: |
|
|
If your duron is 1GHz or over, it is probably a morgan core (based on athlon-xp, supports sse). To check for sure, cat /proc/cpuinfo and see if sse is listed under flags. If so, you have a morgan core, and good cflags would be something like:
-march=athlon-xp -O2 -fomit-frame-pointer -pipe |
|
Back to top |
|
|
leo_t Tux's lil' helper
Joined: 28 Apr 2004 Posts: 93
|
Posted: Mon Nov 01, 2004 11:04 am Post subject: |
|
|
thanks finally i have an make.conf.
by the way, what exacly in NPTL? i searched the forum but didn't find an answer. |
|
Back to top |
|
|
YD Guru
Joined: 30 Oct 2004 Posts: 466 Location: Riga, Latvia
|
Posted: Mon Nov 01, 2004 12:54 pm Post subject: |
|
|
leo_t wrote: | thanks finally i have an make.conf.
by the way, what exacly in NPTL? i searched the forum but didn't find an answer. |
Native Posix Threads Linux, they r ~x4 faster than simple linux threads.
p.s 2.6 kernel only. |
|
Back to top |
|
|
leo_t Tux's lil' helper
Joined: 28 Apr 2004 Posts: 93
|
Posted: Mon Nov 01, 2004 6:34 pm Post subject: |
|
|
thanks, i finished to install gentoo, rebooted and got a kernel panic.
here is the error:
Code: |
mount_devfs_fs(): unabale to mount devfs, err:-2
freeing unused kernel memory: 168K freed
warning: unable to open an initial console
Kernel panic - not syncing: no init found. try passing init= option to kernel.
|
my partiton are:
/dev/hda1 - Windows XP
/dev/hda2 - Boot (reiserfs)
/dev/hda3 - Swap
/dev/hda4 - Root (reiser4)
i am using the love-sources-2.6.9-rc4 kernel.
thanks |
|
Back to top |
|
|
donjuan l33t
Joined: 11 May 2004 Posts: 760 Location: At Uni
|
|
Back to top |
|
|
leo_t Tux's lil' helper
Joined: 28 Apr 2004 Posts: 93
|
Posted: Tue Nov 02, 2004 10:10 am Post subject: |
|
|
i have build devfs to the kernel (built all what needed as said in the gentoo handbook) |
|
Back to top |
|
|
golloza Guru
Joined: 14 Mar 2004 Posts: 427
|
Posted: Tue Nov 02, 2004 10:21 am Post subject: |
|
|
Did you enable 'Automatically mount on boot' (CONFIG_DEVFS_MOUNT)? |
|
Back to top |
|
|
leo_t Tux's lil' helper
Joined: 28 Apr 2004 Posts: 93
|
Posted: Tue Nov 02, 2004 10:31 am Post subject: |
|
|
golloza wrote: | Did you enable 'Automatically mount on boot' (CONFIG_DEVFS_MOUNT)? |
yes i enabled it. |
|
Back to top |
|
|
leo_t Tux's lil' helper
Joined: 28 Apr 2004 Posts: 93
|
Posted: Tue Nov 02, 2004 11:01 am Post subject: |
|
|
i will try to replace love-sourrces kernel in gentoo-dev-sources
and also, i get an block in portage:
Code: |
[blocks B ] sys-kernel/linux-headers (from pkg sys-kernel/linux26-headers-2.6.8.1-r1)
|
why is that? |
|
Back to top |
|
|
YD Guru
Joined: 30 Oct 2004 Posts: 466 Location: Riga, Latvia
|
Posted: Tue Nov 02, 2004 12:03 pm Post subject: |
|
|
linux-headers kernel 2.4
linux26-headers kernel 2.6
So a conflict. |
|
Back to top |
|
|
leo_t Tux's lil' helper
Joined: 28 Apr 2004 Posts: 93
|
Posted: Tue Nov 02, 2004 1:33 pm Post subject: |
|
|
YD wrote: | linux-headers kernel 2.4
linux26-headers kernel 2.6
So a conflict. |
i use only kernel 2.6.. how can i fix the conflict? |
|
Back to top |
|
|
leo_t Tux's lil' helper
Joined: 28 Apr 2004 Posts: 93
|
Posted: Tue Nov 02, 2004 3:29 pm Post subject: |
|
|
well just notised that from some reason gentoo-dev-sources-2.6.9 doesn't support reiser 4, so what kernel should i use? |
|
Back to top |
|
|
nixnut Bodhisattva
Joined: 09 Apr 2004 Posts: 10974 Location: the dutch mountains
|
Posted: Tue Nov 02, 2004 3:31 pm Post subject: |
|
|
You could try mm-sources or nitro-sources (amongst others) _________________ Please add [solved] to the initial post's subject line if you feel your problem is resolved. Help answer the unanswered
talk is cheap. supply exceeds demand |
|
Back to top |
|
|
|