Trying to Compile Bochs under Linux

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
srganon

Trying to Compile Bochs under Linux

Post 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
User avatar
Brendan
Member
Member
Posts: 8561
Joined: Sat Jan 15, 2005 12:00 am
Location: At his keyboard!
Contact:

Re:Trying to Compile Bochs under Linux

Post 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
For all things; perfection is, and will always remain, impossible to achieve in practice. However; by striving for perfection we create things that are as perfect as practically possible. Let the pursuit of perfection be our guide.
srg-anon

Re:Trying to Compile Bochs under Linux

Post 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
Post Reply