Subject: port-i386/15399: kernel doesn't build (apmcall.s)
To: None <>
From: None <>
List: netbsd-bugs
Date: 01/28/2002 10:44:16
>Number:         15399
>Category:       port-i386
>Synopsis:       kernel doesn't build (apmcall.s)
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    port-i386-maintainer
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Jan 27 17:45:01 PST 2002
>Originator:     ITOH Yasufumi
>Release:        1.5ZA
System: NetBSD 1.5ZA NetBSD 1.5ZA (PINO) #320: Sun Dec 23 16:02:27 JST 2001 i386
Architecture: i386
Machine: i386
object format: a.out

	Kernel build abort on assembling apmcall.s .
	The doesn't like the

		lcall	*%cs:(_C_LABEL(apminfo)+APM_ENTRY)


	Try to build a kernel with apm.

% /usr/sbin/config FOO
% cd ../compile/FOO
% make depend && make
cc  -x assembler-with-cpp -traditional-cpp -D_LOCORE  -Di386 -I.  -I../../../../arch -I../../../.. -nostdinc -DLKM -DDIAGNOSTIC -DNMBCLUSTERS="0x200" -DMAXUSERS=16 -D_KERNEL -D_KERNEL_OPT -c ../../../../arch/i386/i386/apmcall.s
/tmp/ccqeNT7n.s: Assembler messages:
/tmp/ccqeNT7n.s:618: Error: operands given don't match any known 386 instruction
*** Error code 1


	Workaround: remove * from the line.

	lcall	%cs:(_C_LABEL(apminfo)+APM_ENTRY)