Can't compile bochs-2.3.7 ( ubuntu 8.10 )

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
wilos
Posts: 1
Joined: Sun Feb 15, 2009 10:22 am

Can't compile bochs-2.3.7 ( ubuntu 8.10 )

Post by wilos »

I configure Bochs-2.3.7 with :

chan@wilos:~/bochs/bochs-bin/bochs-2.3.7$ ./configure --enable-debugger --enable-disasm

and then

chan@wilos:~/bochs/bochs-bin/bochs-2.3.7$ make

but :

ISO C++ forbids declaration of 'hash_map' with no type
error: extra qualification 'sparse_image_t::' on member 'get_physical_offset'
error: extra qualification 'sparse_image_t::' on member 'set_virtual_page'
symbols.cc:143: error: ISO C++ forbids declaration of 'hash_map' with no type
symbols.cc:143: error: expected ';' before '<' token
symbols.cc:151: error: expected constructor, destructor, or type conversion before '<' token
symbols.cc: In constructor 'context_t::context_t(Bit32u)':
symbols.cc:158: error: 'map' was not declared in this scope
symbols.cc: In static member function 'static context_t* context_t::get_context(Bit32u)':
symbols.cc:180: error: 'map' was not declared in this scope
make[1]: *** [symbols.o] Error 1


My os is ubuntu 8.10 , gcc is 4.3.2

chan@wilos:~/bochs/bochs-bin/bochs-2.3.7$ gcc -v
Using built-in specs.
Target: i486-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Ubuntu 4.3.2-1ubuntu12' --with-bugurl=file:///usr/share/doc/gcc-4.3/README.Bugs --enable-languages=c,c++,fortran,objc,obj-c++ --prefix=/usr --enable-shared --with-system-zlib --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --enable-nls --with-gxx-include-dir=/usr/include/c++/4.3 --program-suffix=-4.3 --enable-clocale=gnu --enable-libstdcxx-debug --enable-objc-gc --enable-mpfr --enable-targets=all --enable-checking=release --build=i486-linux-gnu --host=i486-linux-gnu --target=i486-linux-gnu
Thread model: posix
gcc version 4.3.2 (Ubuntu 4.3.2-1ubuntu12)


chan@wilos:~/bochs/bochs-bin/bochs-2.3.7$ g++ -v
Using built-in specs.
Target: i486-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Ubuntu 4.3.2-1ubuntu12' --with-bugurl=file:///usr/share/doc/gcc-4.3/README.Bugs --enable-languages=c,c++,fortran,objc,obj-c++ --prefix=/usr --enable-shared --with-system-zlib --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --enable-nls --with-gxx-include-dir=/usr/include/c++/4.3 --program-suffix=-4.3 --enable-clocale=gnu --enable-libstdcxx-debug --enable-objc-gc --enable-mpfr --enable-targets=all --enable-checking=release --build=i486-linux-gnu --host=i486-linux-gnu --target=i486-linux-gnu
Thread model: posix
gcc version 4.3.2 (Ubuntu 4.3.2-1ubuntu12)




How to solve this problem?

Thx a lot.
User avatar
01000101
Member
Member
Posts: 1599
Joined: Fri Jun 22, 2007 12:47 pm
Contact:

Re: Can't compile bochs-2.3.7 ( ubuntu 8.10 )

Post by 01000101 »

unfortunately the only way I've been able to fix that problem in the past was to downgrade G++ to like <= 4.2.x. There are known bugs related to the newest GCC's and compiling BOCHS.
stlw
Member
Member
Posts: 357
Joined: Fri Apr 04, 2008 6:43 am
Contact:

Re: Can't compile bochs-2.3.7 ( ubuntu 8.10 )

Post by stlw »

01000101 wrote:unfortunately the only way I've been able to fix that problem in the past was to downgrade G++ to like <= 4.2.x. There are known bugs related to the newest GCC's and compiling BOCHS.
There is other way - forget about 2.3.7, CVS compiles fine !

Stanislav
Post Reply