Re: Breakage in tree

Matthew Gregan <[email protected]> Tue, 16 Mar 2004 23:23:59 +1300
Newsgroups gmane.os.openbsd.smp
Message-ID <[email protected]>
On Tue, Mar 16, 2004 at 01:32:44AM -0500, Ted Unangst wrote:
> can somebody compile a kernel with this, adding option
> DDB_SAFE_CONSOLE to the config, and boot UP?  when it hangs, hit
> ctrl-alt-esc and get the ps listing.  what's the hung process waiting
> on?

Built GENERIC using the SMP tree current to within 12 hours or so of
CVS, then patched the tree using Alexander's patch.  The link phase of
the build fails, so I was unable to test any further.


ld -Ttext 0xD0100120 -e start -N -x -o bsd ${SYSTEM_OBJ} vers.o
locore.o: In function `Xdna':
locore.o(.text+0xbc0): undefined reference to `cpu_info_primary'
init_main.o: In function `main':
init_main.o(.text+0x1a): undefined reference to `cpu_info_primary'
gdt.o: In function `setgdt':
gdt.o(.text+0x31): undefined reference to `cpu_info_list'
gdt.o: In function `gdt_init':
gdt.o(.text+0x75): undefined reference to `cpu_info_primary'
gdt.o: In function `gdt_grow':
gdt.o(.text+0x27e): undefined reference to `cpu_info_list'
machdep.o: In function `winchip_cpu_setup':
machdep.o(.text+0x573): undefined reference to `cpu_info_primary'
machdep.o(.text+0x584): undefined reference to `cpu_info_primary'
machdep.o(.text+0x595): undefined reference to `cpu_info_primary'
machdep.o: In function `cyrix6x86_cpu_setup':
machdep.o(.text+0xd9f): undefined reference to `cpu_info_primary'
machdep.o(.text+0xe5b): undefined reference to `cpu_info_primary'
machdep.o(.text+0xe7c): more undefined references to `cpu_info_primary' follow
pmap.o: In function `pmap_tlb_shootdown':
pmap.o(.text+0x321d): undefined reference to `cpu_info_list'
pmap.o(.text+0x325f): undefined reference to `cpu_info_primary'
pmap.o(.text+0x32e0): undefined reference to `cpu_info_primary'
npx.o: In function `npxintr':
npx.o(.text+0x36f): undefined reference to `cpu_info_primary'
npx.o: In function `npxsave_proc':
npx.o(.text+0x7f2): undefined reference to `cpu_info_primary'
*** Error code 1

Stop in /usr/src/sys/arch/i386/compile/GENERIC (line 653 of Makefile).



On a related note, I also tried to build GENERIC.MP using the same tree.


cc  -Werror -Wall -Wstrict-prototypes -Wmissing-prototypes  -Wno-uninitialized -Wno-format -Wno-main  -fno-builtin-printf -fno-builtin-log -O2  -nostdinc -I. -I/usr/src/sys/arch/i386/compile/GENERIC.MP/../../../../arch -I/usr/src/sys/arch/i386/compile/GENERIC.MP/../../../.. -DDDB -DDIAGNOSTIC -DKTRACE -DKMEMSTATS -DPTRACE -DCRYPTO -DSYSVMSG -DSYSVSEM -DSYSVSHM -DUVM_SWAP_ENCRYPT -DCOMPAT_25 -DCOMPAT_43 -DLKM -DFFS -DFFS_SOFTUPDATES -DUFS_DIRHASH -DQUOTA -DEXT2FS -DMFS -DXFS -DTCP_SACK -DTCP_ECN -DTCP_SIGNATURE -DNFSCLIENT -DNFSSERVER -DCD9660 -DMSDOSFS -DFDESC -DFIFO -DKERNFS -DPORTAL -DPROCFS -DNULLFS -DUMAPFS -DUNION -DINET -DALTQ -DINET6 -DIPSEC -DPPP_BSDCOMP -DPPP_DEFLATE -DBOOT_CONFIG -DI386_CPU -DI486_CPU -DI586_CPU -DI686_CPU -DGPL_MATH_EMULATE -DDDB_SAFE_CONSOLE -DUSER_PCICONF -DUSER_LDT -DAPERTURE -DCOMPAT_SVR4 -DCOMPAT_IBCS2 -DCOMPAT_LINUX -DCOMPAT_FREEBSD -DCOMPAT_BSDOS -DCOMP
 AT_AOUT -DPCIVERBOSE -DEISAVERBOSE -DUSBVERBOSE -DWSDISPLAY_COMPAT_USL -DWSDISPLAY_COMPAT!
 _RAWKBD -DWSDISPLAY_DEFAULTSCREENS="6" -DWSDISPLAY_COMPAT_PCVT -DPCIAGP -DMULTIPROCESSOR -DCPU -D_KERNEL -Di386  -c /usr/src/sys/arch/i386/compile/GENERIC.MP/../../../../dev/ic/smc93cx6.c
cc1: warnings being treated as errors
/usr/src/sys/arch/i386/compile/GENERIC.MP/../../../../dev/ic/smc93cx6.c: In function `read_seeprom':
/usr/src/sys/arch/i386/compile/GENERIC.MP/../../../../dev/ic/smc93cx6.c:114: warning: implicit declaration of function `DELAY'
*** Error code 1

Stop in /usr/src/sys/arch/i386/compile/GENERIC.MP (line 754 of Makefile).



I'll take a look at fixing the build errors tomorrow unless someone beats me to
it.

Cheers,
-mjg
-- 
Matthew Gregan                     |/
                                  /|                [email protected]