NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

kern/43958: Can't compile Atari kernel with ksyms pseudo-device enabled



>Number:         43958
>Category:       kern
>Synopsis:       Can't compile Atari kernel with ksyms pseudo-device enabled
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Oct 09 23:40:00 +0000 2010
>Originator:     David Ross
>Release:        5.0.2
>Organization:
n/a
>Environment:
NetBSD computer 5.0.2 NetBSD 5.0.2 (GENERIC) #0: Sat Feb  6 17:53:27 UTC 2010  
builds%b7.netbsd.org@localhost:/home/builds/ab/netbsd-5-0-2-RELEASE/i386/201002061851Z-obj/home/builds/ab/netbsd-5-0-2-RELEASE/src/sys/arch/i386/compile/GENERIC
 i386
>Description:
Tried to compile with "pseudo-device ksyms" in the kernel configuration file.  
Compilation fails here:

#   compile  MYKERNEL/machdep.o
/usr/src/tooldir.NetBSD-5.0.2-i386/bin/m68k--netbsdelf-gcc -pipe 
-fomit-frame-pointer -ffreestanding -fno-zero-initialized-in-bss -O2 -std=gnu99 
-fno-strict-aliasing -Werror -Wall -Wno-main -Wno-format-zero-length 
-Wpointer-arith -Wmissing-prototypes -Wstrict-prototypes -Wswitch -Wshadow 
-Wcast-qual -Wwrite-strings -Wno-unreachable-code -Wno-sign-compare 
-Wno-pointer-sign -Wno-attributes -Werror -m68030 -m68881 -Datari -I. 
-I/usr/src/sys/../common/include -I/usr/src/sys/arch -I/usr/src/sys -nostdinc 
-DM68030 -DPANICWAIT -DST_POOL_SIZE=24 -DTT_VIDEO -DDISKLABEL_NBDA 
-DDISKLABEL_AHDI -DRELOC_KERNEL -DMSGBUFSIZE=32768 -DMAXUSERS=16 -D_KERNEL 
-D_KERNEL_OPT -I/usr/src/sys/lib/libkern/../../../common/lib/libc/quad 
-I/usr/src/sys/lib/libkern/../../../common/lib/libc/string 
-I/usr/src/sys/lib/libkern/../../../common/lib/libc/arch/m68k/string 
-I/usr/src/sys/dist/ipf -c /usr/src/sys/arch/atari/atari/machdep.c
/usr/src/sys/arch/atari/atari/machdep.c: In function 'consinit':
/usr/src/sys/arch/atari/atari/machdep.c:209: error: 'Elf32_Ehdr' undeclared 
(first use in this function)
/usr/src/sys/arch/atari/atari/machdep.c:209: error: (Each undeclared identifier 
is reported only once
/usr/src/sys/arch/atari/atari/machdep.c:209: error: for each function it 
appears in.)

*** Failed target:  machdep.o
*** Failed command: echo '# ' "compile MYKERNEL/machdep.o"; echo 
/usr/src/tooldir.NetBSD-5.0.2-i386/bin/m68k--netbsdelf-gcc -pipe 
-fomit-frame-pointer -ffreestanding -fno-zero-initialized-in-bss -O2 -std=gnu99 
-fno-strict-aliasing -Werror -Wall -Wno-main -Wno-format-zero-length 
-Wpointer-arith -Wmissing-prototypes -Wstrict-prototypes -Wswitch -Wshadow 
-Wcast-qual -Wwrite-strings -Wno-unreachable-code -Wno-sign-compare 
-Wno-pointer-sign -Wno-attributes -Werror -m68030 -m68881 -Datari -I. 
-I/usr/src/sys/../common/include -I/usr/src/sys/arch -I/usr/src/sys -nostdinc 
-DM68030 -DPANICWAIT -DST_POOL_SIZE="24" -DTT_VIDEO -DDISKLABEL_NBDA 
-DDISKLABEL_AHDI -DRELOC_KERNEL -DMSGBUFSIZE="32768" -DMAXUSERS=16 -D_KERNEL 
-D_KERNEL_OPT -I/usr/src/sys/lib/libkern/../../../common/lib/libc/quad 
-I/usr/src/sys/lib/libkern/../../../common/lib/libc/string 
-I/usr/src/sys/lib/libkern/../../../common/lib/libc/arch/m68k/string 
-I/usr/src/sys/dist/ipf -c /usr/src/sys/arch/atari/atari/machdep.c; /usr/sr
 c/tooldir.NetBSD-5.0.2-i386/bin/m68k--netbsdelf-gcc -pipe -fomit-frame-pointer 
-ffreestanding -fno-zero-initialized-in-bss -O2 -std=gnu99 -fno-strict-aliasing 
-Werror -Wall -Wno-main -Wno-format-zero-length -Wpointer-arith 
-Wmissing-prototypes -Wstrict-prototypes -Wswitch -Wshadow -Wcast-qual 
-Wwrite-strings -Wno-unreachable-code -Wno-sign-compare -Wno-pointer-sign 
-Wno-attributes -Werror -m68030 -m68881 -Datari -I. 
-I/usr/src/sys/../common/include -I/usr/src/sys/arch -I/usr/src/sys -nostdinc 
-DM68030 -DPANICWAIT -DST_POOL_SIZE="24" -DTT_VIDEO -DDISKLABEL_NBDA 
-DDISKLABEL_AHDI -DRELOC_KERNEL -DMSGBUFSIZE="32768" -DMAXUSERS=16 -D_KERNEL 
-D_KERNEL_OPT -I/usr/src/sys/lib/libkern/../../../common/lib/libc/quad 
-I/usr/src/sys/lib/libkern/../../../common/lib/libc/string 
-I/usr/src/sys/lib/libkern/../../../common/lib/libc/arch/m68k/string 
-I/usr/src/sys/dist/ipf -c /usr/src/sys/arch/atari/atari/machdep.c
*** Error code 1

Stop.
nbmake: stopped in /usr/obj/sys/arch/atari/compile/MYKERNEL

ERROR: Failed to make all in /usr/src/sys/arch/atari/compile/obj/MYKERNEL
*** BUILD ABORTED ***
computer$ 
>How-To-Repeat:
Try to compile an atari kernel with the ksyms pseudo-device.
>Fix:



Home | Main Index | Thread Index | Old Index