Page 1 of 1

bochs compile probs

Posted: Mon May 26, 2003 2:02 am
by srg
Hi

I am trying to build bochs 2.0.2 in SuSE Linux 8.2 which has gcc 3.3 prerelease with it (I have tried it with SuSE 8.1 and get the same prob) and I can't get it to make, I get this error about 10 times in a row:

fetchdecode.cc:xxx: error: brace-enclosed initalizer used to initalize 'void (bx_cpu.c::*)(bxInstruction_c*)'

the xxx is because it happends on mltiple lines

then make fails

What is going on?

BTW Are there any precompiled linux versions of this that have debugger support enabled?

srg

Re:bochs compile probs

Posted: Mon May 26, 2003 2:28 am
by beyond infinity lazy
download the latest cvs-build, and compile it. the older ones don't compile with the gcc 3.x line, but with the gcc 2.9x one. It is because some things are deprecated, others don't fit any more in new gcc's view of how things have to be arranged and so on...

Re:bochs compile probs

Posted: Mon May 26, 2003 3:14 am
by Pype.Clicker
may those GNU guyz be blamed for having broken the "downward compatibility" rule ...

Re:bochs compile probs

Posted: Mon May 26, 2003 4:30 am
by srg
Pype.Clicker wrote: may those GNU guyz be blamed for having broken the "downward compatibility" rule ...
You'd think that they would have known better ;D

Re:bochs compile probs

Posted: Mon May 26, 2003 5:12 am
by srg
I tried downloading the latest build on bochs sourceforge download page and no change, I have browsed the cvs repository page but how do I download the files.

Anyway, surely the latest bochs dated 2003-01-21 should compile ok, but it doesn't! >:(

Re:bochs compile probs

Posted: Mon May 26, 2003 5:35 am
by Pype.Clicker
afaik, SuSE 8.2 include BOCHS ... i'm not sure of what version it is, but maybe you should try to download the RPM ... maybe you can also get back the old gcc 2.5.9x from older SuSE distribution, and install it somewhere else. I guess there must be a way to force compiling using a given instance of GCC through the CC environment variable while running ./configure

Re:bochs compile probs

Posted: Mon May 26, 2003 6:19 am
by beyond infinity lazy
srg, it should be CURRENT cvs. The latest one I have downloaded for use on my laptop is dated about 18.5.2003. This version compiles with gcc 3.x line.

click on Download Current, then go at the very bottom of the page and there is located Download CVS Snapshot. This one you should take.

Re:bochs compile probs

Posted: Mon May 26, 2003 6:31 am
by beyond infinity lazy
link to suse bochs rpm at gd.tuwien.ac.at - my ressource:

http://gd.tuwien.ac.at/opsys/linux/suse/suse.com/i386/8.2/suse/i586/?fisel=bB

hope this helps

Re:bochs compile probs

Posted: Mon May 26, 2003 8:13 am
by srg
beyond infinity lazy wrote: srg, it should be CURRENT cvs. The latest one I have downloaded for use on my laptop is dated about 18.5.2003. This version compiles with gcc 3.x line.

click on Download Current, then go at the very bottom of the page and there is located Download CVS Snapshot. This one you should take.
ohh, I didn't see that at the bottom, I'll just try it......it worked....although due to a bug in the code externbd.cc didn't compile but I left it out, I can live without that.

BTW SuSE 8.2 does come with bochs (and a 30 demo of vmware) but it's version of bochs doesn't support bochsdbg and so is useless to me