public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* 2.6.12-mm1 compile failure on PPC64
@ 2005-06-20 15:30 Martin J. Bligh
  2005-06-20 15:33 ` Ingo Molnar
  0 siblings, 1 reply; 3+ messages in thread
From: Martin J. Bligh @ 2005-06-20 15:30 UTC (permalink / raw)
  To: linux-kernel; +Cc: Ingo Molnar, Andrew Morton

kernel/built-in.o(.init.text+0x440): In function `.sched_cacheflush':
: undefined reference to `.cacheflush'
make: *** [.tmp_vmlinux1] Error 1
06/20/05-01:28:25 Build the kernel. Failed rc = 2
06/20/05-01:28:25 build: kernel build Failed rc = 1
06/20/05-01:28:25 command complete: (2) rc=126
Failed and terminated the run
 Fatal error, aborting autorun

Works with some configs, but not this one:

http://ftp.kernel.org/pub/linux/kernel/people/mbligh/config/abat/p570

I'm guessing :

scheduler-cache-hot-autodetect.patch

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: 2.6.12-mm1 compile failure on PPC64
  2005-06-20 15:30 2.6.12-mm1 compile failure on PPC64 Martin J. Bligh
@ 2005-06-20 15:33 ` Ingo Molnar
  2005-06-20 20:15   ` Andrew Morton
  0 siblings, 1 reply; 3+ messages in thread
From: Ingo Molnar @ 2005-06-20 15:33 UTC (permalink / raw)
  To: Martin J. Bligh; +Cc: linux-kernel, Andrew Morton


* Martin J. Bligh <mbligh@mbligh.org> wrote:

> kernel/built-in.o(.init.text+0x440): In function `.sched_cacheflush':
> : undefined reference to `.cacheflush'
> make: *** [.tmp_vmlinux1] Error 1
> 06/20/05-01:28:25 Build the kernel. Failed rc = 2
> 06/20/05-01:28:25 build: kernel build Failed rc = 1
> 06/20/05-01:28:25 command complete: (2) rc=126
> Failed and terminated the run
>  Fatal error, aborting autorun
> 
> Works with some configs, but not this one:
> 
> http://ftp.kernel.org/pub/linux/kernel/people/mbligh/config/abat/p570
> 
> I'm guessing :
> 
> scheduler-cache-hot-autodetect.patch

the patch below (from akpm) should fix this:

From: Andrew Morton <akpm@osdl.org>

Cc: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Andrew Morton <akpm@osdl.org>
---

 kernel/sched.c |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)

diff -puN kernel/sched.c~scheduler-cache-hot-autodetect-cacheflush-fix kernel/sched.c
--- 25/kernel/sched.c~scheduler-cache-hot-autodetect-cacheflush-fix	2005-06-18 08:38:26.000000000 -0600
+++ 25-akpm/kernel/sched.c	2005-06-18 08:38:43.000000000 -0600
@@ -5288,7 +5288,7 @@ __init static void sched_cacheflush(void
 	asm ("wbinvd");
 #elif defined(CONFIG_IA64)
 	ia64_sal_cache_flush(1); // what argument does d/cache flush?
-#elif defined(CONFIG_PPC64) || defined(CONFIG_PPC)
+#elif (defined(CONFIG_PPC64) || defined(CONFIG_PPC)) && defined(CONFIG_XMON)
 	cacheflush();
 #else
 # warning implement sched_cacheflush()! Calibration results may be unreliable.
_

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: 2.6.12-mm1 compile failure on PPC64
  2005-06-20 15:33 ` Ingo Molnar
@ 2005-06-20 20:15   ` Andrew Morton
  0 siblings, 0 replies; 3+ messages in thread
From: Andrew Morton @ 2005-06-20 20:15 UTC (permalink / raw)
  To: Ingo Molnar; +Cc: mbligh, linux-kernel

Ingo Molnar <mingo@elte.hu> wrote:
>
> > kernel/built-in.o(.init.text+0x440): In function `.sched_cacheflush':
> > : undefined reference to `.cacheflush'
> > make: *** [.tmp_vmlinux1] Error 1
> > 06/20/05-01:28:25 Build the kernel. Failed rc = 2
> > 06/20/05-01:28:25 build: kernel build Failed rc = 1
> > 06/20/05-01:28:25 command complete: (2) rc=126
> > Failed and terminated the run
> >  Fatal error, aborting autorun
> > 
> > Works with some configs, but not this one:
> > 
> > http://ftp.kernel.org/pub/linux/kernel/people/mbligh/config/abat/p570
> > 
> > I'm guessing :
> > 
> > scheduler-cache-hot-autodetect.patch
> 
> the patch below (from akpm) should fix this:

That patch is already in 2.6.12-mm1, so it's not covering all cases
for some reason.

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2005-06-20 20:19 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-06-20 15:30 2.6.12-mm1 compile failure on PPC64 Martin J. Bligh
2005-06-20 15:33 ` Ingo Molnar
2005-06-20 20:15   ` Andrew Morton

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox