Subject: port-i386/15399: kernel doesn't build (apmcall.s)
To: None <gnats-bugs@gnats.netbsd.org>
From: None <itohy@netbsd.org>
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
>Closed-Date:
>Last-Modified:
>Originator: ITOH Yasufumi
>Release: 1.5ZA
>Organization:
>Environment:
System: NetBSD pino.my.domain 1.5ZA NetBSD 1.5ZA (PINO) #320: Sun Dec 23 16:02:27 JST 2001 itohy@pino.my.domain:/amd/fmv/w/src/sys/arch/i386/compile/PINO i386
Architecture: i386
Machine: i386
object format: a.out
>Description:
Kernel build abort on assembling apmcall.s .
The gas.new doesn't like the
lcall *%cs:(_C_LABEL(apminfo)+APM_ENTRY)
line.
>How-To-Repeat:
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
Stop.
>Fix:
ENOCLUE
Workaround: remove * from the line.
lcall %cs:(_C_LABEL(apminfo)+APM_ENTRY)
>Release-Note:
>Audit-Trail:
>Unformatted: