Page 1 of 1

Trying to Compile Bochs under Linux

Posted: Mon Jun 21, 2004 3:52 am
by srganon
Hi

I'm trying to migrate to Linux (Suse 9.1) but I'm having trouble compiling Bochs 2.1.1.

The error comes up here:

make libdisasm.a
make[1]: Entering directory `/network/bochs-2.1.1/disasm'
make[1]: *** No rule to make target `dis_decode.cc', needed by `dis_decode.o'. Stop.
make[1]: Leaving directory `/network/bochs-2.1.1/disasm'
make: *** [disasm/libdisasm.a] Error 2

Has anyone else had this problem (I wish the Linux binary version came with the debugger like the Win32 one did). I have no idea why this won't compile.

Oh and I'm using these options:

./configure --prefix=/usr/local/bochs686 --with-x --enable-config-interface --enable-new-pit --enable-idle-hack --enable-plugins --enable-processors=1 --enable-x86-64 --enable-cpu-level=6 --enable-apic --enable-ne2000 --enable-pci --enable-usb --enable-dc2300-vlb-ide --enable-4meg-pages --enable-pae --enable-guest2host-tlb --enable-repeat-speedups --enable-icache --enable-fast-function-calls --enable-global-pages --enable-host-specific-asms --enable-cpp --enable-debugger --enable-all-optimizations --enable-vbe --enable-fpu --enable-mmx --enable-3dnow --enable-sse=2 --enable-daz --enable-cdrom --enable-sb16=linux --enable-gameport --enable-iodebug --enable-docbook --enable-xpm

Thanks
srg

Re:Trying to Compile Bochs under Linux

Posted: Mon Jun 21, 2004 8:34 am
by Brendan
Hi,
srganon wrote: make[1]: *** No rule to make target `dis_decode.cc', needed by `dis_decode.o'. Stop.
Are you sure the file "bochs-2.1.1/disasm/dis_decond.cc" is actually there? If it was somehow deleted or renamed...


Cheers,

Brendan

Re:Trying to Compile Bochs under Linux

Posted: Mon Jun 21, 2004 9:07 am
by srg-anon
I managed to get it to compile, by editing these lines at the bottom of it's makefile:

dis_decode.o: dis_decode.cpp disasm.h ../config.h dis_tables.h
dis_groups.o: dis_groups.cpp disasm.h ../config.h
resolve.o: resolve.cpp disasm.h ../config.h

they were still .cc and not .cpp.

Anyway, this is on Bochs 2.1, with 2.1.1 when I tried this, it's also worked! BUT I then got a compile error in some fpu file, I guessing it's a bug, anyway I'm happy with 2.1.

Thanks for the help
srg