2.5.67 alpha compile failure
Hi all,
kernel 2.5.67 fails to compile on alpha ( DP264, SMP ):
[...]
gcc -Wp,-MD,kernel/.sys.o.d -D__KERNEL__ -Iinclude -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -pipe -mno-fp-regs -ffixed-8 -mcpu=ev6 -Wa,-mev6 -fomit-frame-pointer -nostdinc -iwithprefix include -DKBUILD_BASENAME=sys -DKBUILD_MODNAME=sys -c -o kernel/sys.o kernel/sys.ckernel/sys.c:226: conflicting types for sys_sendmsg' include/linux/socket.h:245: previous declaration of sys_sendmsg' kernel/sys.c:227: conflicting types for sys_recvmsg' include/linux/socket.h:246: previous declaration of sys_recvmsg' make[1]: *** [kernel/sys.o] Error 1
make: *** [kernel] Error 2
in include/linux/socket.h, both sys_sendmsg and sys_recvmsg are declared as follows:
extern asmlinkage long sys_sendmsg(int fd, struct msghdr *msg, unsigned flags); extern asmlinkage long sys_recvmsg(int fd, struct msghdr *msg, unsigned flags);
Obviously, commenting-out those declarations fixes the compile problem and the rest of the build passes just fine.
This problem is new to me. 2.5.64 and 65 do not have it.
My question is: Is commenting-out the declarations the Correct Way (TM) ? I don't think so ...
Any Ideas ?
Regards,
Thomas Weyergraf
Options set in .config are as follows:
CONFIG_ALPHA=yCONFIG_MMU=yCONFIG_RWSEM_XCHGADD_ALGORITHM=yCONFIG_GENERIC_ISA_DMA=yCONFIG_EXPERIMENTAL=yCONFIG_SWAP=yCONFIG_SYSVIPC=yCONFIG_SYSCTL=yCONFIG_LOG_BUF_SHIFT=15CONFIG_MODULES=yCONFIG_MODULE_UNLOAD=yCONFIG_OBSOLETE_MODPARM=yCONFIG_ALPHA_DP264=yCONFIG_ISA=yCONFIG_EISA=yCONFIG_PCI=yCONFIG_ALPHA_EV6=yCONFIG_ALPHA_TSUNAMI=yCONFIG_ALPHA_EV67=yCONFIG_ALPHA_SRM=yCONFIG_EARLY_PRINTK=yCONFIG_SMP=yCONFIG_HAVE_DEC_LOCK=yCONFIG_NR_CPUS=2CONFIG_VERBOSE_MCHECK=yCONFIG_PCI_NAMES=yCONFIG_KCORE_ELF=yCONFIG_SRM_ENV=yCONFIG_BINFMT_ELF=yCONFIG_PARPORT=yCONFIG_PARPORT_PC=yCONFIG_PARPORT_PC_CML1=yCONFIG_BLK_DEV_FD=mCONFIG_BLK_DEV_LOOP=mCONFIG_MD=yCONFIG_BLK_DEV_MD=yCONFIG_MD_LINEAR=yCONFIG_MD_RAID0=yCONFIG_MD_RAID1=yCONFIG_MD_RAID5=yCONFIG_BLK_DEV_DM=yCONFIG_SCSI=yCONFIG_BLK_DEV_SD=yCONFIG_CHR_DEV_ST=yCONFIG_BLK_DEV_SR=yCONFIG_BLK_DEV_SR_VENDOR=yCONFIG_CHR_DEV_SG=yCONFIG_SCSI_CONSTANTS=yCONFIG_SCSI_AIC7XXX=yCONFIG_AIC7XXX_CMDS_PER_DEVICE=253CONFIG_AIC7XXX_RESET_DELAY_MS=5000CONFIG_AIC7XXX_DEBUG_ENABLE=yCONFIG_AIC7XXX_DEBUG_MASK=0CONFIG_AIC7XXX_REG_PRETTY_PRINT=yCONFIG_SCSI_NCR53C8XX=mCONFIG_SCSI_NCR53C8XX_DEFAULT_TAGS=8CONFIG_SCSI_NCR53C8XX_MAX_TAGS=32CONFIG_SCSI_NCR53C8XX_SYNC=20CONFIG_NET=yCONFIG_PACKET=yCONFIG_UNIX=yCONFIG_INET=yCONFIG_INET_ECN=yCONFIG_IPV6_SCTP__=yCONFIG_NETDEVICES=yCONFIG_NET_ETHERNET=yCONFIG_NET_VENDOR_3COM=yCONFIG_VORTEX=yCONFIG_NET_TULIP=yCONFIG_DE2104X=mCONFIG_TULIP=yCONFIG_TULIP_MMIO=yCONFIG_INPUT=yCONFIG_SOUND_GAMEPORT=yCONFIG_VT=yCONFIG_VT_CONSOLE=yCONFIG_HW_CONSOLE=yCONFIG_SERIAL_8250=yCONFIG_SERIAL_8250_CONSOLE=yCONFIG_SERIAL_CORE=yCONFIG_SERIAL_CORE_CONSOLE=yCONFIG_UNIX98_PTYS=yCONFIG_UNIX98_PTY_COUNT=256CONFIG_RTC=yCONFIG_EXT2_FS=yCONFIG_EXT3_FS=yCONFIG_EXT3_FS_XATTR=yCONFIG_JBD=yCONFIG_FS_MBCACHE=yCONFIG_ISO9660_FS=yCONFIG_FAT_FS=mCONFIG_MSDOS_FS=mCONFIG_VFAT_FS=mCONFIG_PROC_FS=yCONFIG_DEVPTS_FS=yCONFIG_TMPFS=yCONFIG_RAMFS=yCONFIG_NFS_FS=yCONFIG_NFS_V3=yCONFIG_NFSD=yCONFIG_NFSD_V3=yCONFIG_LOCKD=yCONFIG_LOCKD_V4=yCONFIG_EXPORTFS=yCONFIG_SUNRPC=yCONFIG_OSF_PARTITION=yCONFIG_MSDOS_PARTITION=yCONFIG_NLS=yCONFIG_NLS_DEFAULT="iso8859-1"CONFIG_NLS_CODEPAGE_437=yCONFIG_NLS_CODEPAGE_850=yCONFIG_NLS_ISO8859_1=yCONFIG_NLS_ISO8859_15=yCONFIG_VGA_CONSOLE=yCONFIG_DUMMY_CONSOLE=yCONFIG_ALPHA_LEGACY_START_ADDRESS=yCONFIG_DEBUG_KERNEL=yCONFIG_MATHEMU=yCONFIG_MAGIC_SYSRQ=yCONFIG_CRC32=y
Signature · 3 lines
Thomas Weyergraf [email protected] My Favorite IA64 Opcode-guess ( see arch/ia64/lib/memset.S ) "br.ret.spnt.few" - got back from getting beer, did not spend a lot.
Quoted 11 lines · T. Weyergraf
kernel 2.5.67 fails to compile on alpha ( DP264, SMP ):
[...]
gcc -Wp,-MD,kernel/.sys.o.d -D__KERNEL__ -Iinclude -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -pipe -mno-fp-regs -ffixed-8 -mcpu=ev6 -Wa,-mev6 -fomit-frame-pointer -nostdinc -iwithprefix include -DKBUILD_BASENAME=sys -DKBUILD_MODNAME=sys -c -okernel/sys.okernel/sys.ckernel/sys.c:226: conflicting types forsys_sendmsg' include/linux/socket.h:245: previous declaration ofsys_sendmsg'kernel/sys.c:227: conflicting types forsys_recvmsg' include/linux/socket.h:246: previous declaration ofsys_recvmsg' make[1]: *** [kernel/sys.o] Error 1
make: *** [kernel] Error 2
Quoted 6 lines
Obviously, commenting-out those declarations fixes the compile problem and the rest of the build passes just fine.
This problem is new to me. 2.5.64 and 65 do not have it.My question is: Is commenting-out the declarations the Correct Way (TM) ? I don't think so ...
See my message with subject "[PATCH] Fix cond_syscall macro on Alpha".
Signature · 2 lines
Måns Rullgård [email protected]
Re: 2.5.67 alpha compile failure (solved but nfsd Oopses now)
Quoted 1 line · Måns Rullgård
See my message with subject "[PATCH] Fix
cond_syscallmacro on Alpha".
yes, indees. the patch applied (with an error when using patch --verbose) and 2.5.67 compiled perfectly. i sa w the thread about this thing on the redhat-AXP list, but i don't know anything about the deeper interactions between kernel and glibc, sorry.
from a user's point of view i could say: "yes, let it go in 2.5.68" :-)
besides:
now i have a kernel oops when starting the kernel-nfs-server:
------------
lila:~# /etc/init.d/nfs-kernel-server start Apr 14 00:31:08 lila kernel: Unable to handle kernel paging request at virtual address 2834362d657a6973 Apr 14 00:31:08 lila kernel: rpc.nfsd(22279): Oops 0 Apr 14 00:31:08 lila kernel: pc = [<fffffc0000314748>] ra = [<fffffc0000312ec0>] ps = 0007 Not tainted Apr 14 00:31:08 lila kernel: v0 = 0000000000000000 t0 = 0000000000000000 t1 = fffffc0000314744 Apr 14 00:31:08 lila kernel: t2 = fffffc0000560848 t3 = fffffc000055fba0 t4 = 0000000000000001 Apr 14 00:31:08 lila kernel: t5 = 2834362d657a6973 t6 = 000000000000001c t7 = fffffc00031f8000 Apr 14 00:31:08 lila kernel: s0 = 0000000000000000 s1 = fffffc000034e0d0 s2 = 0000000000000000 Apr 14 00:31:08 lila kernel: s3 = 000000011ffff3e4 s4 = 0000000000000000 s5 = fffffc0003840000 Apr 14 00:31:08 lila kernel: s6 = 0000000000000801 Apr 14 00:31:08 lila kernel: a0 = 2834362d657a6973 a1 = 0000000000000028 a2 = 0000000000000001 Apr 14 00:31:08 lila kernel: a3 = 0000000000000028 a4 = 0000000000000001 a5 = 0000000000000000 Apr 14 00:31:08 lila kernel: t8 = 0000000000000000 t9 = fffffc0000540848 t10= fffffc0003ff31c8 Apr 14 00:31:08 lila kernel: t11= fffffc00005c3010 pv = fffffc0000314300 at = fffffffc002e6b84 Apr 14 00:31:08 lila kernel: gp = fffffc0000560848 sp = fffffc00031fbcd8 Apr 14 00:31:08 lila kernel: Trace:fffffc0000312ec0 fffffc0000379408 fffffc000034e050 fffffc0000379b78 fffffc000034e0d4 fffffc0000397e3c fffffc0000313134 fffffc0000313090 Apr 14 00:31:08 lila kernel: Code: 3c900001 3cb00000 47f60401 e43fff1d c3ffff21 47ff0401 <2cb00000> 2cf00003
Starting NFS kernel daemon: nfsd/etc/init.d/nfs-kernel-server: line 79:
22279 Segmentation fault start-stop-daemon --start --quiet --exec
$PREFIX/sbin/rpc.nfsd -- $RPCNFSDCOUNT
mountd.
lila:~#
--------------
(could be that the order is a bit messed up, i copied the kernel oops from /var/log/messages between "start" and "segfault".)
Thank you very much,
Christian.
nfs-kernel-server Oopses with 2.5.67
In reply to Måns Rullgårdcoming from [Re: 2.5.67 alpha compile failure (solved but nfsd Oopses now)] i think the subject line has to change, as i get another problem now:
after applying the cond_syscall patch on my Alpha, 2.5.67 compiled with no errors. however the nfs-kernel-server Oopses now:
------------
lila:~# /etc/init.d/nfs-kernel-server start Apr 14 00:31:08 lila kernel: Unable to handle kernel paging request at virtual address 2834362d657a6973 Apr 14 00:31:08 lila kernel: rpc.nfsd(22279): Oops 0 Apr 14 00:31:08 lila kernel: pc = [<fffffc0000314748>] ra = [<fffffc0000312ec0>] ps = 0007 Not tainted Apr 14 00:31:08 lila kernel: v0 = 0000000000000000 t0 = 0000000000000000 t1 = fffffc0000314744 Apr 14 00:31:08 lila kernel: t2 = fffffc0000560848 t3 = fffffc000055fba0 t4 = 0000000000000001 Apr 14 00:31:08 lila kernel: t5 = 2834362d657a6973 t6 = 000000000000001c t7 = fffffc00031f8000 Apr 14 00:31:08 lila kernel: s0 = 0000000000000000 s1 = fffffc000034e0d0 s2 = 0000000000000000 Apr 14 00:31:08 lila kernel: s3 = 000000011ffff3e4 s4 = 0000000000000000 s5 = fffffc0003840000 Apr 14 00:31:08 lila kernel: s6 = 0000000000000801 Apr 14 00:31:08 lila kernel: a0 = 2834362d657a6973 a1 = 0000000000000028 a2 = 0000000000000001 Apr 14 00:31:08 lila kernel: a3 = 0000000000000028 a4 = 0000000000000001 a5 = 0000000000000000 Apr 14 00:31:08 lila kernel: t8 = 0000000000000000 t9 = fffffc0000540848 t10= fffffc0003ff31c8 Apr 14 00:31:08 lila kernel: t11= fffffc00005c3010 pv = fffffc0000314300 at = fffffffc002e6b84 Apr 14 00:31:08 lila kernel: gp = fffffc0000560848 sp = fffffc00031fbcd8 Apr 14 00:31:08 lila kernel: Trace:fffffc0000312ec0 fffffc0000379408 fffffc000034e050 fffffc0000379b78 fffffc000034e0d4 fffffc0000397e3c fffffc0000313134 fffffc0000313090 Apr 14 00:31:08 lila kernel: Code: 3c900001 3cb00000 47f60401 e43fff1d c3ffff21 47ff0401 <2cb00000> 2cf00003
Starting NFS kernel daemon: nfsd/etc/init.d/nfs-kernel-server: line 79:
22279 Segmentation fault start-stop-daemon --start --quiet --exec
$PREFIX/sbin/rpc.nfsd -- $RPCNFSDCOUNT
mountd.
lila:~#
--------------
(could be that the order is a bit messed up, i copied the kernel oops from /var/log/messages between "start" and "segfault".)
the nfs-kernel-server is from nfs-utils_1.0.3-1 (Debian testing), working without problems under 2.5.65. the nfs-user-server does *not* oops.
kernel 2.5.67, compiled with gcc (GCC) 3.2.3 20030309, machine is an Alpha EV45/Avtanti.
Thank you,
Christian.
Re: nfs-kernel-server Oopses with 2.5.67
Quoted 7 lines · Christian
coming from [Re: 2.5.67 alpha compile failure (solved but nfsd Oopses now)] i think the subject line has to change, as i get another problem now:
after applying the
cond_syscallpatch on my Alpha, 2.5.67 compiled with no errors. however the nfs-kernel-server Oopses now:
It happens for me too. Here's the output of ksymoops.
ksymoops 2.4.5 on alpha 2.5.67. Options used
-v /mnt/linux/linux-sx164-2.5/vmlinux (specified)
-k /proc/ksyms (default)
-l /proc/modules (default)
-o /lib/modules/2.5.67/ (default)
-m /mnt/linux/linux-sx164-2.5/System.map (specified)Error (regular_file): read_ksyms stat /proc/ksyms failed No modules in ksyms, skipping objects
No ksyms, skipping lsmod
warning: process `update' used the obsolete bdflush system call
Unable to handle kernel paging request at virtual address 2834362d657a6973 rpc.nfsd(93): Oops 0 pc = [<fffffc0000314404>] ra = [<fffffc0000312c30>] ps = 0007 Not tainted Using defaults from ksymoops -t elf64-alpha -a alpha v0 = 0000000000000000 t0 = 0000000000000000 t1 = fffffc0000314400 t2 = fffffc0000559ec8 t3 = fffffc0000559720 t4 = 000000000000001c t5 = fffffc002f0e0010 t6 = 000000011ffff44c t7 = fffffc002f2d0000 s0 = 0000000000000000 s1 = fffffc000034e370 s2 = 0000000000000000 s3 = 000000011ffff444 s4 = 0000000000000000 s5 = fffffc002f0e0000 s6 = 000000011fff9410 a0 = 2834362d657a6973 a1 = 0000000000000028 a2 = 0000000000000003 a3 = 0000000000000028 a4 = 0000000000000003 a5 = 000000011ffffecb t8 = 000000000000001f t9 = fffffc0000539ec8 t10= 0000000000000008 t11= 00000200001c70a0 pv = fffffc0000313fd0 at = fffffffc002c0b74 gp = fffffc0000559ec8 sp = fffffc002f2d3cd8 Trace:fffffc0000312c30 fffffc000037999c fffffc000034e2f0 fffffc000037a0e0 fffffc000034e374 fffffc0000398410 fffffc0000312ea4 Code: 44a70405 3cd00001 3cb00000 e49fff1f c3ffff24 47ff0401 <2cb00000> 2cd00003
Quoted 3 lines
Quoted 3 lines
RA;
fffffc0000312c30<entUna+90/110>PC;
fffffc0000314404<do_entUna+434/580> <=====
Trace; fffffc0000312c30 <entUna+90/110>
Trace; fffffc000037999c <do_lookup+4c/130>
Trace; fffffc000034e2f0 <kmalloc+0/d0>
Trace; fffffc000037a0e0 <link_path_walk+660/ac0>
Trace; fffffc000034e374 <kmalloc+84/d0>
Trace; fffffc0000398410 <sys_nfsservctl+110/1a0>
Trace; fffffc0000312ea4 <entSys+a4/c0>
Code; fffffc00003143ec <do_entUna+41c/580>
0000000000000000 <_PC>:
Code; fffffc00003143ec <do_entUna+41c/580>
0: 05 04 a7 44 or t4,t6,t4
Code; fffffc00003143f0 <do_entUna+420/580>
4: 01 00 d0 3c stq_u t5,1(a0)
Code; fffffc00003143f4 <do_entUna+424/580>
8: 00 00 b0 3c stq_u t4,0(a0)
Code; fffffc00003143f8 <do_entUna+428/580>
c: 1f ff 9f e4 beq t3,fffffffffffffc8c <_PC+0xfffffffffffffc8c> fffffc0000314078 <do_entUna+a8/580>
Code; fffffc00003143fc <do_entUna+42c/580>
10: 24 ff ff c3 br fffffffffffffca4 <_PC+0xfffffffffffffca4> fffffc0000314090 <do_entUna+c0/580>
Code; fffffc0000314400 <do_entUna+430/580>
14: 01 04 ff 47 clr t0
Code; fffffc0000314404 <do_entUna+434/580> <=====
18: 00 00 b0 2c ldq_u t4,0(a0) <=====
Code; fffffc0000314408 <do_entUna+438/580>
1c: 03 00 d0 2c ldq_u t5,3(a0)
1 error issued. Results may not be reliable.
Signature · 2 lines
Måns Rullgård [email protected]