Problems with kaffe-0.10.0 on OpenStep

jso at lyngso-industri.dk jso at lyngso-industri.dk
Thu Apr 2 07:41:05 PST 1998


>cc -g -seglinkedit -all_load -DNO_SHARED_LIBRARIES -DNO_SHARED_VMLIBRARY -I.  
>-I. -I./../../config -I../../config -I../../include -I./../../include  
>-DINTERPRETER -I./intrp   -DKVER=\"0.100\"  -c  support.c
>/usr/tmp/cc018554.s:1270<perands given don't match any known 386 instruction
>/usr/tmp/cc018554.s:1275<perands given don't match any known 386 instruction
>/usr/tmp/cc018554.s:1281<perands given don't match any known 386 instruction
>/usr/tmp/cc018554.s:1851<perands given don't match any known 386 instruction
>/usr/tmp/cc018554.s:1856<perands given don't match any known 386 instruction
>/usr/tmp/cc018554.s:1862<perands given don't match any known 386 instruction

>Anybody have an idea what is wrong with this?


In config/i386/common.h (and config/i386/qnx/md.h) there are some
cmp instructions that compares a register with immediate character
values. The version of gas that I have (1.38) seems to not like the
syntax used for this. If the instruction is changed to use hex values
instead, the problem goes away. So to fix, change:

	 cmpb $'D',%%cl    ->     cmpb $0x44,%%cl
	 cmpb $'J',%%cl    ->     cmpb $0x4a,%%cl
	 cmpb $'F',%%cl    ->     cmpb $0x46,%%cl

Jeppe



More information about the kaffe mailing list