* Re: Compiling kernel 2.1.25
@ 1997-02-05 13:57 John F. Carr
0 siblings, 0 replies; 8+ messages in thread
From: John F. Carr @ 1997-02-05 13:57 UTC (permalink / raw)
> Wether this points to a bug in gcc optimization code (suprise) or to
> "an invalid xchg()", I don't know...
It is an invalid xchg(). Change the type of the umask variable (in
whatever structure it is defined) from short to int. That will fix
the problem and slightly reduce kernel code size as well.
--
To unsubscribe: send e-mail to axp-list-request@redhat.com with
'unsubscribe' as the subject. Do not send it to axp-list@redhat.com
^ permalink raw reply [flat|nested] 8+ messages in thread
[parent not found: <199702041403.PAA05495@alpha.ciber-rede.pt>]
* Re: Compiling kernel 2.1.25
[not found] <199702041403.PAA05495@alpha.ciber-rede.pt>
@ 1997-02-05 5:08 ` Terran D Lane
0 siblings, 0 replies; 8+ messages in thread
From: Terran D Lane @ 1997-02-05 5:08 UTC (permalink / raw)
On Tue, 4 Feb 1997, Miguel Bettencourt Dias wrote:
> > You need the appropriate glibc and include files. What distribution
> > of Linux are you using?
> >
> > --Vik
> >
>
> I'm using RH 303
>
> mbd
But even aside from this, there seem to be problems with 2.1.25. On a
more-or-less stock RH 4.0 system (gcc 2.7.2), I encountered the
following errors when linking:
kernel/kernel.o: In function `sys_umask':
sys.c(.text+0x6afc): undefined reference to
`__xchg_called_with_bad_pointer'
sys.c(.text+0x6b00): undefined reference to
`__xchg_called_with_bad_pointer'
net/network.a(ipv4.o): In function `tcp_do_sendmsg':
tcp.c(.text+0x10204): undefined reference to
`csum_partial_copy_from_user'
tcp.c(.text+0x10208): undefined reference to
`csum_partial_copy_from_user'
The latter error I traced (I think) to a typo in include/asm-alpha/checksum.h.
The former, however, seems to trace back to the file
include/asm-alpha/system.h, where it is accompanied by the message:
/*
* This function doesn't exist, so you'll get a linker error
* if something tries to do an invalid xchg().
*
* This only works if the compiler isn't horribly bad at optimizing.
* gcc-2.5.8 reportedly can't handle this, but as that doesn't work
* too well on the alpha anyway..
*/
Wether this points to a bug in gcc optimization code (suprise) or to
"an invalid xchg()", I don't know...
Fortunately, however, 2.0.28 compiled flawlessly for me.
--
Terran Lane email=terran@ecn.purdue.edu
WWW=http://purcell.ecn.purdue.edu/~terran/
"But I don't want to go among mad people," Alice remarked.
"Oh, you can't help that," said the Cat: "we're all mad here. I'm mad.
You're mad."
"How do you know I'm mad?" said Alice.
"You must be," said the Cat, "or you wouldn't have come here."
--
To unsubscribe: send e-mail to axp-list-request@redhat.com with
'unsubscribe' as the subject. Do not send it to axp-list@redhat.com
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Compiling kernel 2.1.25
@ 1997-02-04 14:03 Miguel Bettencourt Dias
0 siblings, 0 replies; 8+ messages in thread
From: Miguel Bettencourt Dias @ 1997-02-04 14:03 UTC (permalink / raw)
> You need the appropriate glibc and include files. What distribution
> of Linux are you using?
>
> --Vik
>
I'm using RH 303
mbd
--
To unsubscribe: send e-mail to axp-list-request@redhat.com with
'unsubscribe' as the subject. Do not send it to axp-list@redhat.com
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Compiling kernel 2.1.25
@ 1997-02-04 13:07 John F. Carr
1997-02-04 14:41 ` vbajaj
0 siblings, 1 reply; 8+ messages in thread
From: John F. Carr @ 1997-02-04 13:07 UTC (permalink / raw)
This version obviously wasn't tested on alpha. I didn't get that
error (but I'm using a new gcc so maybe that's why), but there are two
other fatal errors:
. xchg is used with a short argument (alpha can't do this)
. an undefined checksumming function is called from tcp.c
When I got the kernel to compile it crashed in the networking code
and I gave up.
--
To unsubscribe: send e-mail to axp-list-request@redhat.com with
'unsubscribe' as the subject. Do not send it to axp-list@redhat.com
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Compiling kernel 2.1.25
1997-02-04 13:07 John F. Carr
@ 1997-02-04 14:41 ` vbajaj
0 siblings, 0 replies; 8+ messages in thread
From: vbajaj @ 1997-02-04 14:41 UTC (permalink / raw)
You need the appropriate glibc and include files. What distribution
of Linux are you using?
--Vik
|
| This version obviously wasn't tested on alpha. I didn't get that
| error (but I'm using a new gcc so maybe that's why), but there are two
| other fatal errors:
|
| . xchg is used with a short argument (alpha can't do this)
| . an undefined checksumming function is called from tcp.c
|
| When I got the kernel to compile it crashed in the networking code
| and I gave up.
|
| --
| To unsubscribe: send e-mail to axp-list-request@redhat.com with
| 'unsubscribe' as the subject. Do not send it to axp-list@redhat.com
|
--
To unsubscribe: send e-mail to axp-list-request@redhat.com with
'unsubscribe' as the subject. Do not send it to axp-list@redhat.com
^ permalink raw reply [flat|nested] 8+ messages in thread
* Compiling kernel 2.1.25
@ 1997-02-04 10:19 Miguel Bettencourt Dias
1997-02-04 17:21 ` Richard Henderson
0 siblings, 1 reply; 8+ messages in thread
From: Miguel Bettencourt Dias @ 1997-02-04 10:19 UTC (permalink / raw)
Hi !
I'm trying to compile kernel 2.1.25 on alpha Avanti.
Problem: I can't get it to compile. On earlier versions of the kernel I had to
get a patch to the normal source tree, but there's nothing over 2.1.1 on
ftp.azstarnet.com.
I changed ARCH=i386 to ARCH=alpha in the Makefile but it won't compile ...
make dep and make clean work just fine :-)
make vmlinux fails on:
--------------------------------------------
make[2]: Entering directory `/usr/src/linux/kernel'
gcc -D__KERNEL__ -I/usr/src/linux/include -Wall -Wstrict-prototypes -O2
-fomit-frame-pointer -pipe -mno-fp-regs -DEXPORT_SYMTAB -c ksyms.c
ksyms.c:96: section attributes are not supported for this target
ksyms.c:96: section attributes are not supported for this target
ksyms.c:100: section attributes are not supported for this target
ksyms.c:100: section attributes are not supported for this target
ksyms.c:101: section attributes are not supported for this target
[... lots of other just like this ...]
----------------------------------------------
mbd
P.S.
HELP !!!
--
To unsubscribe: send e-mail to axp-list-request@redhat.com with
'unsubscribe' as the subject. Do not send it to axp-list@redhat.com
^ permalink raw reply [flat|nested] 8+ messages in thread* Re: Compiling kernel 2.1.25
1997-02-04 10:19 Miguel Bettencourt Dias
@ 1997-02-04 17:21 ` Richard Henderson
0 siblings, 0 replies; 8+ messages in thread
From: Richard Henderson @ 1997-02-04 17:21 UTC (permalink / raw)
> gcc -D__KERNEL__ -I/usr/src/linux/include -Wall -Wstrict-prototypes -O2
> -fomit-frame-pointer -pipe -mno-fp-regs -DEXPORT_SYMTAB -c ksyms.c
> ksyms.c:96: section attributes are not supported for this target
Are you, by chance, still running RH 3.0.3 and ECOFF?
The 2.1.x series requires ELF in a big way.
r~
--
To unsubscribe: send e-mail to axp-list-request@redhat.com with
'unsubscribe' as the subject. Do not send it to axp-list@redhat.com
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~1997-02-05 15:59 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <Pine.SOL.3.91.970204235030.1932A-100000@mow.ecn.purdue.edu>
1997-02-05 15:59 ` Compiling kernel 2.1.25 Richard Henderson
1997-02-05 13:57 John F. Carr
[not found] <199702041403.PAA05495@alpha.ciber-rede.pt>
1997-02-05 5:08 ` Terran D Lane
-- strict thread matches above, loose matches on Subject: below --
1997-02-04 14:03 Miguel Bettencourt Dias
1997-02-04 13:07 John F. Carr
1997-02-04 14:41 ` vbajaj
1997-02-04 10:19 Miguel Bettencourt Dias
1997-02-04 17:21 ` Richard Henderson
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox