From: Adrian Bunk <bunk@fs.tum.de>
To: Fabio Coatti <cova@ferrara.linux.it>, Andi Kleen <ak@muc.de>,
Andrew Morton <akpm@osdl.org>
Cc: Eric <eric@cisu.net>, linux-kernel@vger.kernel.org
Subject: [patch] Re: Kernels > 2.6.1-mm3 do not boot. - SOLVED
Date: Sun, 25 Jan 2004 18:30:48 +0100 [thread overview]
Message-ID: <20040125173048.GL513@fs.tum.de> (raw)
In-Reply-To: <200401251811.27890.cova@ferrara.linux.it>
On Sun, Jan 25, 2004 at 06:11:27PM +0100, Fabio Coatti wrote:
> Alle Sunday 25 January 2004 17:21, Adrian Bunk ha scritto:
>
> >
> > What's your gcc version ("gcc --version")?
>
> gcc (GCC) 3.3.1 (Mandrake Linux 9.2 3.3.1-2mdk)
>
>
> >
> > Could you back out ("patch -p1 -R < ..." or manually remove the lines)
> > the patch below and retry?
>
> Yep, and now it works :)
> Now I'm running 2.6.1-mm4, tested both UP and SMP (SMT) and it boots just
> fine. Later I'll try with more recents releases, but I'm pretty sure that
> these will work.
>
> Many thanks, the patch has solved this issue :)
Many thanks to Eric and you for your help in tracking the problem down!
@Andi,Andrew:
It seems use-funit-at-a-time breaks with distributions shipping a gcc
3.3 that supports -funit-at-a-time.
Th patch below replaces use-funit-at-a-time.patch and uses
scripts/gcc-version.sh from add-config-for-mregparm-3-ng* to use
-funit-at-a-time only with gcc >= 3.4 .
cu
Adrian
--- linux-2.6.2-rc1-mm3/Makefile.old 2004-01-25 18:22:25.000000000 +0100
+++ linux-2.6.2-rc1-mm3/Makefile 2004-01-25 18:26:56.000000000 +0100
@@ -441,6 +441,15 @@
CFLAGS += -g
endif
+# Enable unit-at-a-time mode when possible. It shrinks the
+# kernel considerably.
+#
+# Check the gcc version since -funit-at-a-time is available since gcc 3.4,
+# but some distributions ship a gcc 3.3 patched with a broken
+# -funit-at-a-time implementation
+GCC_VERSION = $(shell $(CONFIG_SHELL) scripts/gcc-version.sh $(CC))
+CFLAGS += $(shell if [ $(GCC_VERSION) -ge 0304 ] ; then echo "-funit-at-a-time"; fi ;)
+
# warn about C99 declaration after statement
CFLAGS += $(call check_gcc,-Wdeclaration-after-statement,)
next prev parent reply other threads:[~2004-01-25 17:31 UTC|newest]
Thread overview: 68+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-01-24 4:53 Kernels > 2.6.1-mm3 do not boot Eric
2004-01-24 6:11 ` Eric
2004-01-24 22:39 ` Eric
2004-01-25 1:02 ` Adrian Bunk
2004-01-25 4:03 ` Eric
2004-01-25 13:15 ` Adrian Bunk
2004-01-25 13:52 ` Fabio Coatti
2004-01-25 14:34 ` Adrian Bunk
2004-01-25 15:39 ` Fabio Coatti
2004-01-25 16:21 ` Adrian Bunk
2004-01-25 17:11 ` Kernels > 2.6.1-mm3 do not boot. - SOLVED Fabio Coatti
2004-01-25 17:30 ` Adrian Bunk [this message]
2004-01-25 17:48 ` [patch] " Andi Kleen
2004-01-25 18:00 ` Valdis.Kletnieks
2004-01-25 19:12 ` Andi Kleen
2004-01-25 20:21 ` John Stoffel
2004-01-25 20:25 ` Andi Kleen
2004-01-25 20:37 ` John Stoffel
2004-01-25 21:45 ` Andi Kleen
2004-01-25 21:49 ` Adrian Bunk
2004-01-25 23:18 ` John Stoffel
2004-01-25 23:47 ` Andi Kleen
2004-01-26 2:40 ` John Stoffel
2004-01-26 3:23 ` John Stoffel
2004-01-26 4:26 ` John Stoffel
2004-01-26 5:04 ` Andi Kleen
2004-01-26 14:14 ` John Stoffel
2004-01-26 14:36 ` Andi Kleen
2004-01-26 6:00 ` Andrew Morton
2004-01-26 6:09 ` Andi Kleen
2004-01-26 14:12 ` John Stoffel
2004-01-26 14:51 ` Fabio Coatti
2004-01-26 19:26 ` Eric
2004-01-26 19:56 ` Andrew Morton
2004-01-27 5:43 ` Eric
2004-01-27 5:50 ` Andrew Morton
2004-01-27 5:57 ` Eric
2004-01-27 6:37 ` Eric
2004-01-27 16:26 ` Andi Kleen
2004-01-27 18:15 ` [patch] Re: Kernels > 2.6.1-mm3 do not boot. - REALLY SOLVED Andi Kleen
2004-01-27 19:31 ` Eric
2004-01-27 21:09 ` Fabio Coatti
2004-01-27 16:20 ` [patch] Re: Kernels > 2.6.1-mm3 do not boot. - SOLVED Andi Kleen
2004-01-27 20:54 ` Andrew Morton
2004-01-27 22:30 ` Andi Kleen
2004-01-27 23:16 ` Andrew Morton
2004-01-27 23:29 ` Andi Kleen
2004-01-27 23:45 ` Andrew Morton
2004-01-27 0:18 ` 2.6.2-rc2 Hangs on boot (was: [patch] Re: Kernels > 2.6.1-mm3 do not boot. - SOLVED) John Stoffel
2004-01-27 0:38 ` Andrew Morton
2004-01-27 9:40 ` [patch] Re: Kernels > 2.6.1-mm3 do not boot. - SOLVED Erik Hensema
2004-01-25 21:11 ` Andrew Morton
2004-01-25 21:21 ` Fabio Coatti
2004-01-25 21:46 ` Andi Kleen
2004-01-25 22:03 ` Bartlomiej Zolnierkiewicz
2004-01-25 22:08 ` Fabio Coatti
2004-01-25 22:13 ` Andi Kleen
2004-01-25 22:25 ` Andrew Morton
2004-01-25 22:31 ` Andi Kleen
2004-01-25 22:59 ` Andrew Morton
2004-01-26 3:48 ` Adrian Bunk
2004-01-25 23:24 ` John Stoffel
2004-01-26 3:27 ` Adrian Bunk
2004-01-25 21:54 ` [patch] Re: Kernels > 2.6.1-mm3 do not boot. - II Andi Kleen
2004-01-25 21:48 ` [patch] Re: Kernels > 2.6.1-mm3 do not boot. - SOLVED Adrian Bunk
2004-01-25 17:49 ` Valdis.Kletnieks
2004-01-25 16:28 ` Kernels > 2.6.1-mm3 do not boot Valdis.Kletnieks
2004-01-25 17:12 ` Fabio Coatti
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20040125173048.GL513@fs.tum.de \
--to=bunk@fs.tum.de \
--cc=ak@muc.de \
--cc=akpm@osdl.org \
--cc=cova@ferrara.linux.it \
--cc=eric@cisu.net \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox