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.
Can't compile bochs-2.3.7 ( ubuntu 8.10 )
Re: Can't compile bochs-2.3.7 ( ubuntu 8.10 )
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.
Website: https://joscor.com
Re: Can't compile bochs-2.3.7 ( ubuntu 8.10 )
There is other way - forget about 2.3.7, CVS compiles fine !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.
Stanislav