Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 365749

Summary: app-emulation/bochs-2.4.5 unable to build in amd64 emulation on x86 platforms
Product: Gentoo Linux Reporter: Alex Buell <alex.buell>
Component: New packagesAssignee: Luca Barbato <lu_zero>
Status: RESOLVED DUPLICATE    
Severity: normal    
Priority: Normal    
Version: 10.1   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Alex Buell 2011-05-02 19:51:44 UTC
Apparently bochs will not compile in support for amd64 emulation on x86 platforms. The docs says it should be to emulate an amd64 processor on x86 through bochs runtime configuration options.
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2011-05-06 03:32:01 UTC
Do you have more information? Say, a build log or configure log? Where is your `emerge --info' output?
Comment 2 Alex Buell 2011-05-07 11:22:14 UTC
Here's the relevant information from the bochs documentation. 

1. x86 processors

-enable-cpu-level={3,4,5,6}elect which CPU level to emulate. Choices are 3,4,5,6 which mean to target 386, 486, Pentium, or Pentium Pro and later emulation. 

2. amd76 processors

--enable-x86-64	no	Add support for x86-64 instruction set, written by Peter Tattam and Stanislav Shwartsman.
Comment 3 Alex Buell 2011-05-07 11:29:06 UTC
Here's the relevant information from the bochs documentation. 

1. x86 processors

-enable-cpu-level={3,4,5,6} Select which CPU level to emulate. Choices are 3,4,5,6 which mean to target 386, 486, Pentium, or Pentium Pro and later emulation. Defaults to 6.

2. amd64 processors

--enable-x86-64	Adds support for x86-64 instruction set, written by Peter Tattam and Stanislav Shwartsman. 

The ebuild for 2.4.5 has this: 

  use x86 && \
        myconf="--enable-idle-hack --enable-fast-function-calls"

  use amd64 && \
        myconf="--enable-x86-64"

The first one is OK, but the second really isn't, as it requires one to have an amd64 box to run an amd64 *emulator*! Perhaps a new local use flag could be set for this. 

Also, the docs says we can select the processor required during build time, so perhaps again, local use flags could be recommended for this, i.e. 386, 486 etc.
Comment 4 Pacho Ramos gentoo-dev 2016-05-28 08:19:14 UTC

*** This bug has been marked as a duplicate of bug 347715 ***