[Vm-dev] Re: Building the Bochs Plugin on Linux (Ubuntu 12.04)

Eliot Miranda eliot.miranda at gmail.com
Thu Jul 19 20:36:50 UTC 2012


On Thu, Jul 19, 2012 at 10:22 AM, Stefan Marr <smalltalk at stefan-marr.de>wrote:

> Hi:
>
> I was trying bring my Cog setup up to date to build the simulator etc.
>
> However, I run into trouble when building the linuxbochs part required for
> the Bochs plugin.
>
> Following the HowToBuild file, I did the `./conf.COG`,
> afterwards, I am supposed to do `./makeem`, which does not exist.
> So, I did a `make` instead.
>

Oops.  ../bochs/makeem does exist.  So do that.


>
> This runs fine, as far as I can see, until it tries to link everything
> together.
>
> Here it bails out with:
>
> /home/smarr/Projects/Cog-svn/processors/IA32/linuxbochs/../bochs/pc_system.cc:186:
> undefined reference to `bx_cpu_c::TLB_flush()'
>
> Any ideas what that could be?
>
> Details below.
>
> Best regards
> Stefan
>
>
>
> $ gcc --version
> gcc (Ubuntu/Linaro 4.6.3-1ubuntu5) 4.6.3
>
> make[1]: Leaving directory
> `/home/smarr/Projects/Cog-svn/processors/IA32/linuxbochs/fpu'
> echo done
> done
> /bin/sh ./libtool --mode=link g++ -o bochs -g -pipe -O3
> -fomit-frame-pointer -finline-functions -Dlongjmp=_longjmp -Dsetjmp=_setjmp
> -m32  -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -DCOG=1
> -DBX_SHARE_PATH='"/usr/local/share/bochs"'  -export-dynamic logio.o main.o
> config.o load32bitOShack.o pc_system.o osdep.o plugin.o crc.o   \
>                 iodev/libiodev.a  cpu/libcpu.a memory/libmemory.a
> gui/libgui.a \
>                 disasm/libdisasm.a   \
>                  fpu/libfpu.a \
>                  \
>                  \
>                  \
>                  \
>                  \
>                 -lm
> mkdir .libs
> g++ -o bochs -g -pipe -O3 -fomit-frame-pointer -finline-functions
> -Dlongjmp=_longjmp -Dsetjmp=_setjmp -m32 -D_FILE_OFFSET_BITS=64
> -D_LARGE_FILES -DCOG=1 -DBX_SHARE_PATH=\"/usr/local/share/bochs\" logio.o
> main.o config.o load32bitOShack.o pc_system.o osdep.o plugin.o crc.o
> -Wl,--export-dynamic  iodev/libiodev.a cpu/libcpu.a memory/libmemory.a
> gui/libgui.a disasm/libdisasm.a fpu/libfpu.a -lm
> pc_system.o: In function `bx_pc_system_c::MemoryMappingChanged()':
> /home/smarr/Projects/Cog-svn/processors/IA32/linuxbochs/../bochs/pc_system.cc:186:
> undefined reference to `bx_cpu_c::TLB_flush()'
>
>
>
>
> --
> Stefan Marr
> Software Languages Lab
> Vrije Universiteit Brussel
> Pleinlaan 2 / B-1050 Brussels / Belgium
> http://soft.vub.ac.be/~smarr
> Phone: +32 2 629 2974
> Fax:   +32 2 629 3525
>
>


-- 
best,
Eliot
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/vm-dev/attachments/20120719/e8b01b64/attachment.htm


More information about the Vm-dev mailing list