* 2.2.19pre10 doesn't compile on alphas (sunrpc)
@ 2001-02-12 20:23 Carlos Carvalho
2001-02-12 21:49 ` Alan Cox
0 siblings, 1 reply; 10+ messages in thread
From: Carlos Carvalho @ 2001-02-12 20:23 UTC (permalink / raw)
To: linux-kernel
When doing the final ld .... -o vmlinux on an alpha the linker
complains:
net/network.a(sunrpc.o): In function `xprt_ping_reserve':
sunrpc.o(.text+0x4b94): undefined reference to `BUG'
sunrpc.o(.text+0x4b98): undefined reference to `BUG'
Looks like a problem in Trond's patches, also it doesn't happen with
pre9. It links in intel machines. I didn't reboot to test yet...
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://vger.kernel.org/lkml/
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: 2.2.19pre10 doesn't compile on alphas (sunrpc)
2001-02-12 20:23 2.2.19pre10 doesn't compile on alphas (sunrpc) Carlos Carvalho
@ 2001-02-12 21:49 ` Alan Cox
2001-02-12 22:08 ` Carlos Carvalho
2001-02-13 9:56 ` Trond Myklebust
0 siblings, 2 replies; 10+ messages in thread
From: Alan Cox @ 2001-02-12 21:49 UTC (permalink / raw)
To: Carlos Carvalho; +Cc: linux-kernel
> net/network.a(sunrpc.o): In function `xprt_ping_reserve':
> sunrpc.o(.text+0x4b94): undefined reference to `BUG'
> sunrpc.o(.text+0x4b98): undefined reference to `BUG'
>
> Looks like a problem in Trond's patches, also it doesn't happen with
> pre9. It links in intel machines. I didn't reboot to test yet...
The ideal solution would be for someone to provide BUG() on the Alpha platform
as in 2.4. That would sort things cleanly
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://vger.kernel.org/lkml/
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: 2.2.19pre10 doesn't compile on alphas (sunrpc)
2001-02-12 21:49 ` Alan Cox
@ 2001-02-12 22:08 ` Carlos Carvalho
2001-02-12 22:11 ` Alan Cox
2001-02-13 9:56 ` Trond Myklebust
1 sibling, 1 reply; 10+ messages in thread
From: Carlos Carvalho @ 2001-02-12 22:08 UTC (permalink / raw)
To: Alan Cox, linux-kernel
Alan Cox (alan@lxorguk.ukuu.org.uk) wrote on 12 February 2001 21:49:
>The ideal solution would be for someone to provide BUG() on the
>Alpha platform as in 2.4. That would sort things cleanly
Hmm... Looks more difficult than I expected. Can we just change the
one call to BUG to something sensible on alphas? I'm really eager to
run this kernel..
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://vger.kernel.org/lkml/
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: 2.2.19pre10 doesn't compile on alphas (sunrpc)
2001-02-12 22:08 ` Carlos Carvalho
@ 2001-02-12 22:11 ` Alan Cox
2001-02-12 22:33 ` David S. Miller
0 siblings, 1 reply; 10+ messages in thread
From: Alan Cox @ 2001-02-12 22:11 UTC (permalink / raw)
To: Carlos Carvalho; +Cc: Alan Cox, linux-kernel
> Hmm... Looks more difficult than I expected. Can we just change the
> one call to BUG to something sensible on alphas? I'm really eager to
> run this kernel..
The 'something sensible' is what you need to define BUG() to be, so its no
harder to do it right IMHO
I suspect adding
#define BUG() __asm__ __volatile__("call_pal 129 # bugchk")
to include/asm-alpha/page.h will do the right thing, since it works on 2.4
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://vger.kernel.org/lkml/
^ permalink raw reply [flat|nested] 10+ messages in thread* Re: 2.2.19pre10 doesn't compile on alphas (sunrpc)
2001-02-12 22:11 ` Alan Cox
@ 2001-02-12 22:33 ` David S. Miller
2001-02-14 2:30 ` Richard Henderson
0 siblings, 1 reply; 10+ messages in thread
From: David S. Miller @ 2001-02-12 22:33 UTC (permalink / raw)
To: Alan Cox; +Cc: Carlos Carvalho, linux-kernel
Alan Cox writes:
> I suspect adding
>
> #define BUG() __asm__ __volatile__("call_pal 129 # bugchk")
>
> to include/asm-alpha/page.h will do the right thing, since it works on 2.4
You have to add a few bits to arch/alpha/kernel/traps.c
I could be wrong though...
Later,
David S. Miller
davem@redhat.com
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://vger.kernel.org/lkml/
^ permalink raw reply [flat|nested] 10+ messages in thread* Re: 2.2.19pre10 doesn't compile on alphas (sunrpc)
2001-02-12 22:33 ` David S. Miller
@ 2001-02-14 2:30 ` Richard Henderson
0 siblings, 0 replies; 10+ messages in thread
From: Richard Henderson @ 2001-02-14 2:30 UTC (permalink / raw)
To: David S. Miller; +Cc: Alan Cox, Carlos Carvalho, linux-kernel
On Mon, Feb 12, 2001 at 02:33:17PM -0800, David S. Miller wrote:
> You have to add a few bits to arch/alpha/kernel/traps.c
> I could be wrong though...
Only to make the oops look pretty. Something like
die_if_kernel((type == 1 ? "Kernel Bug" : "Instruction fault"),
®s, type, 0);
Don't have a 2.2 tree handy to look at the moment...
r~
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: 2.2.19pre10 doesn't compile on alphas (sunrpc)
2001-02-12 21:49 ` Alan Cox
2001-02-12 22:08 ` Carlos Carvalho
@ 2001-02-13 9:56 ` Trond Myklebust
2001-02-13 10:16 ` Carlos Carvalho
` (2 more replies)
1 sibling, 3 replies; 10+ messages in thread
From: Trond Myklebust @ 2001-02-13 9:56 UTC (permalink / raw)
To: Alan Cox; +Cc: Carlos Carvalho, linux-kernel
>>>>> " " == Alan Cox <alan@lxorguk.ukuu.org.uk> writes:
>> net/network.a(sunrpc.o): In function `xprt_ping_reserve':
>> sunrpc.o(.text+0x4b94): undefined reference to `BUG'
>> sunrpc.o(.text+0x4b98): undefined reference to `BUG'
>>
>> Looks like a problem in Trond's patches, also it doesn't happen
>> with pre9. It links in intel machines. I didn't reboot to test
>> yet...
> The ideal solution would be for someone to provide BUG() on the
> Alpha platform as in 2.4. That would sort things cleanly
Actually, since BUG() only seems to be defined on i386 platforms for
2.2.x, perhaps the easiest thing to do (unless somebody wants to
volunteer to backport all the `safe' definitions from 2.4.x) would be
to add the generic `*(int *)0 = 0' definition for local use by ping()
itself.
Cheers,
Trond
--- net/sunrpc/ping.c.orig Tue Feb 13 10:47:20 2001
+++ net/sunrpc/ping.c Tue Feb 13 10:50:03 2001
@@ -25,6 +25,10 @@
# define RPCDBG_FACILITY RPCDBG_XPRT
#endif
+#ifndef BUG
+#define BUG() do { printk("kernel BUG at %s:%d!\n", __FILE__, __LINE__); *(int *)0=0; } while (0)
+#endif
+
static void ping_call_reserve(struct rpc_task *);
static void ping_call_allocate(struct rpc_task *);
static void ping_call_encode(struct rpc_task *);
^ permalink raw reply [flat|nested] 10+ messages in thread* Re: 2.2.19pre10 doesn't compile on alphas (sunrpc)
2001-02-13 9:56 ` Trond Myklebust
@ 2001-02-13 10:16 ` Carlos Carvalho
2001-02-13 10:33 ` Carlos Carvalho
2001-02-13 11:22 ` Alan Cox
2 siblings, 0 replies; 10+ messages in thread
From: Carlos Carvalho @ 2001-02-13 10:16 UTC (permalink / raw)
To: Trond Myklebust; +Cc: Alan Cox, linux-kernel
Trond Myklebust (trond.myklebust@fys.uio.no) wrote on 13 February 2001 10:56:
>Actually, since BUG() only seems to be defined on i386 platforms for
>2.2.x, perhaps the easiest thing to do (unless somebody wants to
>volunteer to backport all the `safe' definitions from 2.4.x) would be
>to add the generic `*(int *)0 = 0' definition for local use by ping()
>itself.
Yes, this is what I wanted, something just enough to catch the bug and
run 2.2.19 until we can use 2.4. Thanks.
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: 2.2.19pre10 doesn't compile on alphas (sunrpc)
2001-02-13 9:56 ` Trond Myklebust
2001-02-13 10:16 ` Carlos Carvalho
@ 2001-02-13 10:33 ` Carlos Carvalho
2001-02-13 11:22 ` Alan Cox
2 siblings, 0 replies; 10+ messages in thread
From: Carlos Carvalho @ 2001-02-13 10:33 UTC (permalink / raw)
To: Trond Myklebust; +Cc: Alan Cox, linux-kernel
Trond Myklebust (trond.myklebust@fys.uio.no) wrote on 13 February 2001 10:56:
>--- net/sunrpc/ping.c.orig Tue Feb 13 10:47:20 2001
>+++ net/sunrpc/ping.c Tue Feb 13 10:50:03 2001
******
Oops, the BUG() call appears in xprt.c! Here's a patch that makes it
compile. Let's see if it runs...
--- linux/net/sunrpc/xprt.c.orig Tue Feb 13 08:30:20 2001
+++ linux/net/sunrpc/xprt.c Tue Feb 13 08:29:43 2001
@@ -81,6 +81,10 @@
# define MIN(a, b) ((a) < (b)? (a) : (b))
#endif
+#ifndef BUG
+#define BUG() do { printk("kernel BUG at %s:%d!\n", __FILE__, __LINE__); *(int *)0=0; } while (0)
+#endif
+
/*
* Local functions
*/
^ permalink raw reply [flat|nested] 10+ messages in thread* Re: 2.2.19pre10 doesn't compile on alphas (sunrpc)
2001-02-13 9:56 ` Trond Myklebust
2001-02-13 10:16 ` Carlos Carvalho
2001-02-13 10:33 ` Carlos Carvalho
@ 2001-02-13 11:22 ` Alan Cox
2 siblings, 0 replies; 10+ messages in thread
From: Alan Cox @ 2001-02-13 11:22 UTC (permalink / raw)
To: Trond Myklebust; +Cc: Alan Cox, Carlos Carvalho, linux-kernel
> volunteer to backport all the `safe' definitions from 2.4.x) would be
> to add the generic `*(int *)0 = 0' definition for local use by ping()
> itself.
*(int *)0 doesnt work for all ports either
I'd rather let people suffer a little and fix BUG 8)
^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2001-02-14 2:31 UTC | newest]
Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-02-12 20:23 2.2.19pre10 doesn't compile on alphas (sunrpc) Carlos Carvalho
2001-02-12 21:49 ` Alan Cox
2001-02-12 22:08 ` Carlos Carvalho
2001-02-12 22:11 ` Alan Cox
2001-02-12 22:33 ` David S. Miller
2001-02-14 2:30 ` Richard Henderson
2001-02-13 9:56 ` Trond Myklebust
2001-02-13 10:16 ` Carlos Carvalho
2001-02-13 10:33 ` Carlos Carvalho
2001-02-13 11:22 ` Alan Cox
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox