Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I want to install bochs which can debug the kernel.

First, I download a package, then:

tar zxvf bochs-2.4.6.tar.gz<br>
cd bochs-2.4.6.<br>
./configure --enable-debugger --enable-disasm

It is all ok, but when I type a command

sudo make

an error ocurrs:

bx_debug/libdebug.a(parser.o): In function `bxparse':
/home/guang/Download/bochs-20120923/bx_debug/ undefined reference to `bxlex'
collect2: ld returned 1 exit status
make: *** [bochs] error 1

What should I do to resolve it?

share|improve this question

migrated from Sep 27 '12 at 11:27

This question came from our site for professional and enthusiast programmers.

Is the function present in bx_debug/lexer.c? Can you check if an svn snapshot compiles or produces the same error? – Michael Foukarakis Sep 26 '12 at 10:30
I have resolved it.Offcial bochs document ask to use "./configure --enable-debugger --enable-disasm",but if i just do "./configure --enable-debugger --enable-disasm",and then ,make,make install.all is ok.Thank you for answer. – user1471728 Sep 26 '12 at 11:02

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.