since i havent seen anything yet i threw one together that includes some(all) of the new features i havent fully tested this out since im on dialup im having to slowly wait for wxGTK to download im fairly certian it should work tho
Created attachment 6773 [details] bochs-2.0.ebuild
ok i'll have a look ;)
well i got wx installed and tried it with that the config part works well i cant get it to boot anything but i didnt try hard tho dont see why its doing it
Boot's my image...
yeah its prob just user error then i havent used bochs in some time
weird... i can't compile it ..
what kind of error(s) do you get?
rm -fr .libs/libbx_ne2k.la .libs/libbx_ne2k.* .libs/libbx_ne2k.* (cd .libs && rm -f libbx_sb16.so && ln -s libbx_sb16.so.0.0.0 libbx_sb16.so) creating libbx_sb16.la (cd .libs && rm -f libbx_sb16.la && ln -s ../libbx_sb16.la libbx_sb16.la) (cd . && ln -s ne2k.lo ne2k.o) (cd . && ln -s eth.lo eth.o) (cd . && ln -s eth_null.lo eth_null.o) (cd . && ln -s eth_fbsd.lo eth_fbsd.o) (cd . && ln -s eth_linux.lo eth_linux.o) (cd . && ln -s eth_tap.lo eth_tap.o) (cd . && ln -s eth_tuntap.lo eth_tuntap.o) i686-pc-linux-gnu-gcc -shared ne2k.lo eth.lo eth_null.lo eth_fbsd.lo eth_linux.lo eth_tap.lo eth_tuntap.lo -Wl,-soname -Wl,libbx_ne2k.so.0 -o .libs/libbx_ne2k.so.0.0.0 (cd .libs && rm -f libbx_ne2k.so.0 && ln -s libbx_ne2k.so.0.0.0 libbx_ne2k.so.0) (cd .libs && rm -f libbx_ne2k.so && ln -s libbx_ne2k.so.0.0.0 libbx_ne2k.so) creating libbx_ne2k.la (cd .libs && rm -f libbx_ne2k.la && ln -s ../libbx_ne2k.la libbx_ne2k.la) make[1]: Leaving directory `/var/tmp/portage/bochs-2.0/work/bochs-2.0/iodev' !!! ERROR: app-emulation/bochs-2.0 failed. !!! Function src_compile, Line 51, Exitcode 2 !!! (no error message)
Tom, what are your use flags that are relevant for this build? Maybe I can spot the problem why it won't buid for you...
i tried to enable everything that can be used..
perhaps it doesnt like emake
i'll try when i get home again (10. 01. 2003)
2.0.2 is out the website isnt updated yet i read this on the announce mailing list i hope to test it soon
Okay, well, here is an ebuild for 2.0.2. It is essentially just the 2.0 ebuild, but I put int --disable-docbook in the configure line so that it would actually work. It compiles and runs fine for me. I couldn't even get it to work with docbook when I compiled manually, so I either something is wrong with docbook or something is wrong with their files. Oh, and I only tested on x86, somebody else will have to check ppc as I don't have access to a ppc machine. If this gets added to the tree and the docbook bug is fixed it could probably be switched to stable as 2.0.2 seems pretty solid. -ewen
Created attachment 8018 [details] bochs 2.0.2 ebuild
ok, i take it back, something is still wrong with it, although it may just be my computer. in general everything works fine, but if I try to use the ne2k emulation, I get an error on startup (i.e., during initialization of the vm, before even the bios is loaded): as a regular user I get [NE2K ] eth_linux: could not open socket: Operation not permitted but as root I get Event type: PANIC Device: [NE2K ] Message: eth_linux: could not set socket filter: Protocol not available If anybody has any idea about how this might be resolved I would be willing to continue working on the ebuild. -ewen
looks like your missing socket filtering from your kernel you'll find it under networking options
thanks, that was the cause of the problem should a note be put into the ebuild?
Created attachment 9098 [details] enhanced (imho) ebuild for bochs I have tweaked the bochs ebuild quite a bit to use many of the newer functions (like emake and econf) that were added in portage 2.0.46-r12. I have also tried to add as many of the speedup features and enhancements for bochs as well.
Created attachment 9099 [details] bochs 2.0.2 ebuild diff Here is a diff for the bochs 2.0.2 ebuild that is in portage. This should patch it to look like the ebuild I posted above. Enjoy!
Hello! I cannot emerge bochs too. Please help. # emerge info Portage 2.0.47-r8 (default-ppc-1.4, gcc-3.2.2, glibc-2.3.1-r2) ================================================================= System uname: 2.4.20-ben8 ppc GENTOO_MIRRORS="http://gentoo.oregonstate.edu/ http://www.ibiblio.org/pub/Linux/distributions/gentoo" CONFIG_PROTECT="/etc /var/qmail/control /usr/share/config /usr/kde/2/share/config /usr/kde/3/share/config /usr/X11R6/lib/X11/xkb" CONFIG_PROTECT_MASK="/etc/init.d /etc/gconf /etc/env.d" PORTDIR="/usr/portage" DISTDIR="/usr/portage/distfiles" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR_OVERLAY="" USE="libwww mitshm ppc gnome-libs gdbm berkdb slang java tcpd esd motif pam odbc samba gd plotutils pic xml2 lcms pda mozilla quicktime -3dnow -mmx -sse -3dfx -voodoo3 -matrox acpi apm -icc -icc-pgo pcmcia pnp cdr scanner usb cups slp -gpm X dga opengl fbcon sdl xv directfb -kde -arts -qt -qtmt gnome gtkhtml gtk gtk2 bonobo gb gphoto2 imlib ncurses readline -svga gif jpeg png tiff wmf mpeg alsa -oss dvd xmms oggvorbis encode ssl crypt truetype pdflib perl python nls cjk zlib leim mule" COMPILER="gcc3" CHOST="powerpc-unknown-linux-gnu" CFLAGS="-Os -pipe -mcpu=7450 -maltivec -mabi=altivec -mpowerpc-gfxopt -fsigned-char" CXXFLAGS="-Os -pipe -mcpu=7450 -maltivec -mabi=altivec -mpowerpc-gfxopt -fsigned-char" ACCEPT_KEYWORDS="ppc ~ppc" MAKEOPTS="-j2" AUTOCLEAN="yes" SYNC="rsync://rsync.gentoo.org/gentoo-portage" FEATURES="ccache userpriv" cd gui && \ make libgui.a make[1]: Entering directory `/var/tmp/portage/bochs-2.0.2/work/bochs-2.0.2/gui' g++ -c -I.. -I./.. -I../iodev -I./../iodev -I../instrument/stubs -I./../instrument/stubs -Os -pipe -mcpu=7450 -maltivec -mabi=altivec -mpowerpc-gfxopt -fsigned-char -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -I/usr/X11R6/include `sdl-config --cflags` `wx-config --cxxflags` `gtk-config --cflags` keymap.cc -o keymap.o g++ -c -I.. -I./.. -I../iodev -I./../iodev -I../instrument/stubs -I./../instrument/stubs -Os -pipe -mcpu=7450 -maltivec -mabi=altivec -mpowerpc-gfxopt -fsigned-char -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -I/usr/X11R6/include `sdl-config --cflags` `wx-config --cxxflags` `gtk-config --cflags` gui.cc -o gui.o g++ -c -I.. -I./.. -I../iodev -I./../iodev -I../instrument/stubs -I./../instrument/stubs -Os -pipe -mcpu=7450 -maltivec -mabi=altivec -mpowerpc-gfxopt -fsigned-char -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -I/usr/X11R6/include `sdl-config --cflags` `wx-config --cxxflags` `gtk-config --cflags` siminterface.cc -o siminterface.o g++ -c -I.. -I./.. -I../iodev -I./../iodev -I../instrument/stubs -I./../instrument/stubs -Os -pipe -mcpu=7450 -maltivec -mabi=altivec -mpowerpc-gfxopt -fsigned-char -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -I/usr/X11R6/include `sdl-config --cflags` `wx-config --cxxflags` `gtk-config --cflags` textconfig.cc -o textconfig.o g++ -c -I.. -I./.. -I../iodev -I./../iodev -I../instrument/stubs -I./../instrument/stubs -Os -pipe -mcpu=7450 -maltivec -mabi=altivec -mpowerpc-gfxopt -fsigned-char -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -I/usr/X11R6/include `sdl-config --cflags` `wx-config --cxxflags` `gtk-config --cflags` x.cc -o x.o g++ -c -I.. -I./.. -I../iodev -I./../iodev -I../instrument/stubs -I./../instrument/stubs -Os -pipe -mcpu=7450 -maltivec -mabi=altivec -mpowerpc-gfxopt -fsigned-char -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -I/usr/X11R6/include `sdl-config --cflags` `wx-config --cxxflags` `gtk-config --cflags` sdl.cc -o sdl.o g++ -c -I.. -I./.. -I../iodev -I./../iodev -I../instrument/stubs -I./../instrument/stubs -Os -pipe -mcpu=7450 -maltivec -mabi=altivec -mpowerpc-gfxopt -fsigned-char -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -I/usr/X11R6/include `sdl-config --cflags` `wx-config --cxxflags` `gtk-config --cflags` wx.cc -o wx.o In file included from wx.cc:57: wxdialog.h:41: default argument for `wxString complaint' has type `const char[17]' wxdialog.h:44: default argument for `wxString prompt' has type `const char[14]' In file included from wx.cc:59: wxmain.h:141: invalid type `const char[6]' for default argument to `const wxString&' wx.cc: In member function `void MyPanel::ToggleMouse(bool)': wx.cc:184: conversion from `const char[234]' to `wxString' is ambiguous /usr/include/wx/string.h:303: candidates are: wxString::wxString(wchar_t, unsigned int = 1) <near match> /usr/include/wx/string.h:281: wxString::wxString(int) <near match> wx.cc:185: could not convert `"Mouse Capture Enabled"' to `const wxString&' /usr/include/wx/msgdlg.h:30: in passing argument 2 of `int wxMessageBox(const wxString&, const wxString&, long int, wxWindow*, int, int)' wx.cc: In member function `virtual int bx_wx_gui_c::set_clipboard_text(char*, unsigned int)': wx.cc:1234: call of overloaded `wxString(char*&, Bit32u&)' is ambiguous /usr/include/wx/string.h:822: candidates are: wxString::wxString(const void*, const void*) <near match> /usr/include/wx/string.h:303: wxString::wxString(wchar_t, unsigned int = 1) <near match> make[1]: *** [wx.o] Error 1 make[1]: Leaving directory `/var/tmp/portage/bochs-2.0.2/work/bochs-2.0.2/gui' make: *** [gui/libgui.a] Error 2 !!! ERROR: app-emulation/bochs-2.0.2 failed. !!! Function src_compile, Line 47, Exitcode 2 !!! (no error message)
looks like its wx related do you have the latest ver of wxGTK installed?
Yes, my wxGTK version is 2.4.0
I have the same problem with wxGTK version 2.4.0. However bochs 2.0.2 compile just fine with wxGTK version 2.2.9-r1. Probably a compatibility issue. #emerge info Portage 2.0.47-r10 (default-x86-1.4, gcc-3.2.2, glibc-2.3.2-r0) ================================================================= System uname: 2.4.20-gentoo-r1 i686 AMD Athlon(tm) XP 1700+ GENTOO_MIRRORS="ftp://ftp.ntua.gr/pub/linux/gentoo ftp://ftp.tu-clausthal.de/pub/linux/gentoo/ http://gentoo.linux.no/ http://mirrors.sunsite.dk/gentoo/ ftp://ftp.gtlib.cc.gatech.edu/pub/gentoo ftp://ftp.snt.utwente.nl/pub/os/linux/gentoo/distfiles/ http://gentoo.oregonstate.edu/ http://www.ibiblio.org/pub/Linux/distributions/gentoo" CONFIG_PROTECT="/etc /var/qmail/control /usr/kde/2/share/config /usr/kde/3/share/config /usr/X11R6/lib/X11/xkb /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/config" CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d" PORTDIR="/usr/portage" DISTDIR="/usr/portage/distfiles" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR_OVERLAY="" USE="crypt cups encode libg++ mikmod pdflib xv gtkhtml gdbm berkdb slang tetex aalib nas bonobo svga ggi guile mysql pam ssl esd gtk qt motif cdr X x86 oss 3dnow apm avi gif gpm jpeg mmx mpeg ncurses nls oggvorbis opengl png python quicktime readline sdl truetype zlib xmms xml2 ungif java tcpd perl imlib mozilla -gnome -kde -alsa -kdelibs -arts gtk2 xfs tiff ogg vorbis dga -doc dvd -libwww mbox samba pic -spell sse tcltk usb wmf mad" COMPILER="gcc3" CHOST="i686-pc-linux-gnu" CFLAGS="-mcpu=athlon-xp -march=athlon-xp -O3 -pipe" CXXFLAGS="-mcpu=athlon-xp -march=athlon-xp -O3 -pipe" ACCEPT_KEYWORDS="x86 ~x86" MAKEOPTS="-j2" AUTOCLEAN="yes" SYNC="rsync://rsync.gentoo.org/gentoo-portage" FEATURES="sandbox ccache userpriv usersandbox"
If you use the latest ebuild in the portage tree and the wxGTK ebuild from http://bugs.gentoo.org/show_bug.cgi?id=16681 it compiles, or at least it did for me. I couldn't get it to compile with the wxGTK ebuild that is in portage currently. Vag
WFM with wxGTK-2.4.1 in portage, dep needs to be updated for bochs.
well, the wxGTK dep is already there, is there something else that needs to go in? lu_zero, you've handled this ebuild before, what do you think?
ok, people having problem with wxGTK please emerge it again and the problem with bochs will disappear there is already an ebuild for bochs 2.0.2 btw closing the bug, reopen if there are other issues
I think Trying to bochs 2.0.2 using gcc (GCC) 3.3.1 20030904 (Gentoo Linux 3.3.1-r1, propolice) POrtage Ebuild says ... fetchdecode.cc:210: error: brace-enclosed initializer used to initialize `void (*)(bxInstruction_c*)' g++ -c -I.. -I./.. -I../instrument/stubs -I./../instrument/stubs -mcpu=pentium -O3 -fomit-frame-pointer -pipe -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES `sdl-config --cflags` `wx-config --cxxflags` `gtk-config --cflags` keyboard.cc -o keyboard.o make[1]: *** [fetchdecode.o] Error 1 make[1]: Leaving directory `/usr/tmp/portage/bochs-2.0.2/work/bochs-2.0.2/cpu' make: *** [cpu/libcpu.a] Error 2 make: *** Waiting for unfinished jobs.... Ebuild from this page gives ... In file included from ../bochs.h:37, from init.cc:29: ../config.h:411:4: #error IDLE_HACK will only work with the X11 gui. Correct configure args and retry. In file included from ../bochs.h:37, from devices.cc:28: ../config.h:411:4: #error IDLE_HACK will only work with the X11 gui. Correct configure args and retry. make[1]: *** [devices.o] Error 1 make[1]: Leaving directory `/usr/tmp/portage/bochs-2.0.2/work/bochs-2.0.2/iodev'make: *** [iodev/libiodev.a] Error 2 make: *** Waiting for unfinished jobs.... Manual configure and make gives ... fetchdecode.cc:210: error: brace-enclosed initializer used to initialize `void (*)(bxInstruction_c*)' fetchdecode.cc:210: error: brace-enclosed initializer used to initialize `void (*)(bxInstruction_c*)' make[1]: *** [fetchdecode.o] Error 1 make[1]: Leaving directory `/usr/tmp/portage/bochs-2.0.2/work/bochs-2.0.2/cpu' make: *** [cpu/libcpu.a] Error 2
Fix for that can be found here: http://lists.freebsd.org/pipermail/freebsd-ports-bugs/2003-July/008114.html It's kind of a weird patch but I'm sure you'll figure it out.