Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Portage & Programming
  • Search

Bochs-2.4.5 configure fails - needs Linux kernel 2.4 or 2.6

Problems with emerge or ebuilds? Have a basic programming question about C, PHP, Perl, BASH or something else?
Post Reply
Advanced search
9 posts • Page 1 of 1
Author
Message
thegamerdude23
n00b
n00b
Posts: 8
Joined: Tue Apr 05, 2011 3:55 am
Contact:
Contact thegamerdude23
Website

Bochs-2.4.5 configure fails - needs Linux kernel 2.4 or 2.6

  • Quote

Post by thegamerdude23 » Fri Jan 13, 2012 8:54 pm

Hey guys,
I can't get bochs to compile. I must be doing something wrong lol. I tried searching for an easy fix for this, there has to be one. I never found anything. Will I have to write my own ebuild and patch? I can't even find anyone with the same problem. here is exactly what is says at the end of the configure...

Code: Select all

configure: Linux detected as host for PCI host device mapping
configure: error: Linux kernel 2.4 or 2.6 is required
Here are the use flags in case it will help.

Code: Select all

Bochs USE FLAGS: X acpi debugger ncurses readline usb -sdl (-svga) -vnc -wxwidgets
Thanks.
Thinkpad T400 - Gentoo Linux
Core 2 Duo 2.53GHz - 4GB RAM - 64GB SSD

Alienware M17x R2 - Win7-64
Core i7 940xm - 8gb ram - 256gb ssd & 320GB hdd

2TB HDD for Archives
Top
paulj
Guru
Guru
User avatar
Posts: 546
Joined: Thu Sep 30, 2004 4:55 am
Location: Wales, UK

  • Quote

Post by paulj » Fri Jan 13, 2012 9:08 pm

What does

Code: Select all

uname -a
in a terminal return?
Which kernel do you have installed? Looking at gentoo-sources, the current highest stable kernel is 3.1.6, so if you have that installed, maybe that's why the configure stage is failing.
Top
thegamerdude23
n00b
n00b
Posts: 8
Joined: Tue Apr 05, 2011 3:55 am
Contact:
Contact thegamerdude23
Website

  • Quote

Post by thegamerdude23 » Fri Jan 13, 2012 11:56 pm

paulj wrote:What does

Code: Select all

uname -a
in a terminal return?
Which kernel do you have installed? Looking at gentoo-sources, the current highest stable kernel is 3.1.6, so if you have that installed, maybe that's why the configure stage is failing.
I know that I'm on kernel 3.2.0. I'm wondering if there is anything that I can do about that error. I want to install bochs.
Thinkpad T400 - Gentoo Linux
Core 2 Duo 2.53GHz - 4GB RAM - 64GB SSD

Alienware M17x R2 - Win7-64
Core i7 940xm - 8gb ram - 256gb ssd & 320GB hdd

2TB HDD for Archives
Top
Jaglover
Watchman
Watchman
User avatar
Posts: 8291
Joined: Sun May 29, 2005 1:57 am
Location: Saint Amant, Acadiana

  • Quote

Post by Jaglover » Sat Jan 14, 2012 12:35 am

Build by hand, there is a much never version available. Filing a bug with ebuild upgrade request will help, too.
My Gentoo installation notes.
Please learn how to denote units correctly!
Top
paulj
Guru
Guru
User avatar
Posts: 546
Joined: Thu Sep 30, 2004 4:55 am
Location: Wales, UK

  • Quote

Post by paulj » Sat Jan 14, 2012 8:00 am

In these circumstances, I normally try the following:
  • Is there an overlay with a later version available (google is your friend)
  • If not, make your own ebuild, and use that to install it. I have a local tree at /usr/local/portage, and have added

    Code: Select all

    PORTDIR_OVERLAY=/usr/local/portage
    in /etc/make.conf. Use the existing ebuild from the tree as a basis for your new ebuild, and once you get it working you can post it with an upgrade request. Using the local ebuild route means that portage can manage the system consistently.
Good luck!
Top
thegamerdude23
n00b
n00b
Posts: 8
Joined: Tue Apr 05, 2011 3:55 am
Contact:
Contact thegamerdude23
Website

  • Quote

Post by thegamerdude23 » Sun Jan 15, 2012 12:18 am

alright thanks guys.

i'll try writing my own ebuild and post it if I have any success...
Thinkpad T400 - Gentoo Linux
Core 2 Duo 2.53GHz - 4GB RAM - 64GB SSD

Alienware M17x R2 - Win7-64
Core i7 940xm - 8gb ram - 256gb ssd & 320GB hdd

2TB HDD for Archives
Top
fareale
n00b
n00b
Posts: 1
Joined: Wed Feb 01, 2012 5:14 pm

  • Quote

Post by fareale » Wed Feb 01, 2012 6:14 pm

The bochs 2.4.5 ebuild file add the PCI Host mapping feature by default but this feature require kernel 2.4 or 2.6.

As workaround I have modified the /usr/portage/app-emulation/bochs/bochs-2.4.5.ebuild file removing the "--enable-pcidev" compile time flag.
:!: I have modified the original bochs-2.4.5.ebuild file in my local portage local directory, I do not know if this is the correct way to interact with portage system :roll: ....

The following file is the diff output where the bochs-2.4.5.ebuild.orig is the original file and the bochs-2.4.5.ebuild is the modified one.

Code: Select all

gentoo ~ # diff /usr/portage/app-emulation/bochs/bochs-2.4.5.ebuild.orig /usr/portage/app-emulation/bochs/bochs-2.4.5.ebuild
93d92
< 		--enable-pcidev \
Then you must recreate the Manifest file (containing the digest of bochs-2.4.5.ebuild file)

Code: Select all

gentoo ~ # ebuild /usr/portage/app-emulation/bochs/bochs-2.4.5.ebuild manifest
>>> Creating Manifest for /usr/portage/app-emulation/bochs
When you have set your preferred USE flags merge bochs-2.4.5 using ebuild command

Code: Select all

gentoo ~ # ebuild /usr/portage/app-emulation/bochs/bochs-2.4.5.ebuild clean
gentoo ~ # ebuild /usr/portage/app-emulation/bochs/bochs-2.4.5.ebuild merge
Have a nice day :wink:
Top
|Quantum|
Tux's lil' helper
Tux's lil' helper
Posts: 133
Joined: Sat Jan 24, 2004 9:01 pm
Location: Belgium

  • Quote

Post by |Quantum| » Thu Apr 12, 2012 2:07 pm

thegamerdude23 wrote:alright thanks guys.

i'll try writing my own ebuild and post it if I have any success...
No need to. Just install the bleeding-edge overlay.
Top
Ant P.
Watchman
Watchman
Posts: 6920
Joined: Sat Apr 18, 2009 7:18 pm
Contact:
Contact Ant P.
Website

  • Quote

Post by Ant P. » Thu Apr 12, 2012 6:57 pm

Linux has a workaround specifically for broken old software like this:

Code: Select all

setarch `uname -m` --uname-2.6 emerge bochs
Top
Post Reply

9 posts • Page 1 of 1

Return to “Portage & Programming”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic