X-pop3-spooler: POP3MAIL 2.1.0 b 4 980420 -bs- Delivered-To: pcg AT goof DOT com Date: Tue, 19 May 1998 13:31:09 -0400 (EDT) From: Nicolas St-Pierre X-Sender: draggy AT kosmic DOT colba DOT net Reply-To: Nicolas St-Pierre To: beastium-list AT Desk DOT nl Subject: Re: flags for linux-kernel-kompiling In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: Marc Lehmann Status: RO X-Status: A Content-Length: 1638 Lines: 46 On Tue, 19 May 1998, Matthias Weiss wrote: > hi! > > If I compile the linux kernel where do I change the compiling flags, is it > in /usr/src/linux/Makefile at the line > > HOSTCFLAGS = > > ????? > > What flags would you recommend to set for best performance and stability > (I'm running kernel source version 2.0.29)???? I've had some problems with changing flags for the linux kernel compilation myself and would like some advice. Currently, I can compile 2.1.102 with -O2 and -m486 (standard flags) without any problems. I can compile with -O6 and -m486 as well, (-O6 in /usr/src/linux/Makefile and in /usr/src/linux/arch/i386/boot/Makefile. -m486 in /usr/src/linux/arch/i386/Makefile) but compiling without -m486 or with -mcpu=pentium or -mcpu=pentiumpro gives some big pain (this is on a P2 system with -DCPU=686). The kernel itself will compile, and even boot. But in the boot sequence, after reaching sysvinit (2.74, which I've recompiled with -O6), the boot process hangs in /etc/rc.d/rc.S (slakware install) after swapon, that is I get the following message: Adding Swap: 105468k swap-space (priority -1) then the system hangs. If I remove the swapon -a in rc.S, the system hangs at the next command (update &) and the next one (fsck) whenever the previous command that would hang is commented out. I've read in the pgcc FAQ that the linux kernel shouldn't have any problems running when compiled with -O6 and -mcpu=pentium, is anyone on this list doing this successfully? If it matters at all, the system is running with Glibc 2.0.7. As a sidenote, will a pgcc patch for egcs-1.0.3a be out soon? Nick.