www.delorie.com/archives/browse.cgi   search  
Mail Archives: pgcc/1998/05/19/17:33:58

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 <draggy AT kosmic DOT org>
X-Sender: draggy AT kosmic DOT colba DOT net
Reply-To: Nicolas St-Pierre <draggy AT kosmic DOT org>
To: beastium-list AT Desk DOT nl
Subject: Re: flags for linux-kernel-kompiling
In-Reply-To: <Pine.A41.3.95.980519184645.65384A-100000@stud2.tuwien.ac.at>
Message-ID: <Pine.LNX.3.96.980519132216.152D-100000@kosmic.colba.net>
MIME-Version: 1.0
Sender: Marc Lehmann <pcg AT goof DOT com>
Status: RO
X-Status: A
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.



- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019