* cannot compile 2.1.96 on PC164
@ 1998-04-16 4:00 Edwin Koshimoto
1998-04-17 4:00 ` Mika Kortelainen
1998-04-17 4:00 ` Steven N. Hirsch
0 siblings, 2 replies; 3+ messages in thread
From: Edwin Koshimoto @ 1998-04-16 4:00 UTC (permalink / raw)
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 759 bytes --]
Trying to compile 2.1.96 on my PC164 500Mhz Alpha yields the following:
init/main.o: In function `checksetup':
main.c(.text+0x200): undefined reference to `__builtin_memset'
main.c(.text+0x204): undefined reference to `__builtin_memset'
main.c(.text+0x23c): undefined reference to `__builtin_memset'
main.c(.text+0x240): undefined reference to `__builtin_memset'
main.c(.text+0x278): undefined reference to `__builtin_memset'
init/main.o(.text+0x27c):main.c: more undefined references
to`__builtin_memset' follow
make: *** [vmlinux] Error 1
Any ideas? At least this is different from the previous fatal error in 2.1.94.
Thanks,
ed
--
To get random signatures put text files into a folder called �Random Signatures� into your Preferences folder.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: cannot compile 2.1.96 on PC164
1998-04-16 4:00 cannot compile 2.1.96 on PC164 Edwin Koshimoto
@ 1998-04-17 4:00 ` Mika Kortelainen
1998-04-17 4:00 ` Steven N. Hirsch
1 sibling, 0 replies; 3+ messages in thread
From: Mika Kortelainen @ 1998-04-17 4:00 UTC (permalink / raw)
edko@cello.qnet.com (Edwin Koshimoto) writes:
>
> Trying to compile 2.1.96 on my PC164 500Mhz Alpha yields the following:
>
> init/main.o: In function `checksetup':
> main.c(.text+0x200): undefined reference to `__builtin_memset'
> main.c(.text+0x204): undefined reference to `__builtin_memset'
> main.c(.text+0x23c): undefined reference to `__builtin_memset'
> ...
>
> Any ideas? At least this is different from the previous fatal error in 2.1.94.
>
Yes, perhaps you are using egcs? Or at least with egcs,
include/asm-alpha/string.h is a bit broken... there is a #ifdef
under which memset is defined in two ways, the way to get it to work
with egcs is to e.g. change the #ifdef to #if 0 (so that the "else"
branch will be used).
To be honest, I haven't yet tried that kernel, but at least it did
build without problems after that change.
Mika Kortelainen
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: cannot compile 2.1.96 on PC164
1998-04-16 4:00 cannot compile 2.1.96 on PC164 Edwin Koshimoto
1998-04-17 4:00 ` Mika Kortelainen
@ 1998-04-17 4:00 ` Steven N. Hirsch
1 sibling, 0 replies; 3+ messages in thread
From: Steven N. Hirsch @ 1998-04-17 4:00 UTC (permalink / raw)
In article <edko-1604981819570001@k56-palm-00-40.ca.qnet.com>, Edwin Koshimoto wrote:
>Trying to compile 2.1.96 on my PC164 500Mhz Alpha yields the following:
>
>init/main.o: In function `checksetup':
>main.c(.text+0x200): undefined reference to `__builtin_memset'
>main.c(.text+0x204): undefined reference to `__builtin_memset'
I posted a patch to the kernel mailing list for this. I'm not sure
which variant of gcc has __builtin_memset, but it isn't egcs-1.0.1 or
1.0.2 for sure.
Try:
--- linux/include/asm-alpha/string.h.orig Fri Apr 10 06:25:33 1998
+++ linux/include/asm-alpha/string.h Thu Apr 9 19:28:23 1998
@@ -24,7 +24,8 @@
extern void * __constant_c_memset(void *, unsigned long, long);
extern void * __memset(void *, char, size_t);
-#if __GNUC__ > 2 || __GNUC_MINOR__ >= 8
+/* #if __GNUC__ > 2 || __GNUC_MINOR__ >= 8 */
+#if 0
#define memset(s, c, n) \
(__builtin_constant_p(c) \
? (__builtin_constant_p(n) && (c) == 0 \
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~1998-04-17 4:00 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1998-04-16 4:00 cannot compile 2.1.96 on PC164 Edwin Koshimoto
1998-04-17 4:00 ` Mika Kortelainen
1998-04-17 4:00 ` Steven N. Hirsch
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox