Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 551258 - app-emulation/bochs-2.6: Linux kernel 2.4, 2.6 or 3.x is required for PCI host device mapping
Summary: app-emulation/bochs-2.6: Linux kernel 2.4, 2.6 or 3.x is required for PCI hos...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Unspecified (show other bugs)
Hardware: All Linux
: Normal normal with 2 votes (vote)
Assignee: Luca Barbato
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-06-05 06:07 UTC by Kobboi
Modified: 2015-11-01 09:39 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Don't enable pcidev support by default (no-pcidev-by-default.patch,1.00 KB, patch)
2015-08-25 09:33 UTC, Kobboi
Details | Diff
allow linux 4 (bochs-2.6-linux-4.patch,328 bytes, patch)
2015-10-14 09:42 UTC, Jonas Jelten
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Kobboi 2015-06-05 06:07:25 UTC
Running Linux 4 and /usr/src/linux pointing to Linux 4 sources

configure: Linux detected as host for PCI host device mapping
configure: error: Linux kernel 2.4, 2.6 or 3.x is required for PCI host device mapping



Reproducible: Always
Comment 1 Kobboi 2015-06-05 08:20:29 UTC
configure.in:

          case "$linux_version" in
                2.4*)
                        PCIDEV_MODULE_MAKE_ALL="all-kernel24"
                        KERNEL_MODULE_SUFFIX="o"
                ;;
                2.6*|3.*)
                        PCIDEV_MODULE_MAKE_ALL="all-kernel26"
                        KERNEL_MODULE_SUFFIX="ko"
                ;;
                *)
                        AC_MSG_ERROR([Linux kernel 2.4, 2.6 or 3.x is required for PCI host device mapping])
                ;;
Comment 2 Kobboi 2015-08-16 16:03:46 UTC
http://sourceforge.net/p/bochs/bugs/1375/
Comment 3 Kobboi 2015-08-25 09:33:40 UTC
Created attachment 410188 [details, diff]
Don't enable pcidev support by default
Comment 4 Kobboi 2015-08-25 09:36:47 UTC
Justification for patch is in the upstream bug report:

"The PCI host device mapping is a very experimental feature and unfortunately not maintained yet. That's why it currently better to remove the --enable-pcidev option from the configuration. This feature worked with Linux kernel 2.4 and 2.6, but I don't know whether or not it is possible to compile the kernel module with version 3.x. There is another related bug report present (#1189), but I don't know the status and there is no Linux kernel expert active here."
Comment 5 selurvedu 2015-09-23 14:35:40 UTC
I confirm this on Linux 4.x.

> configure: Linux detected as host for PCI host device mapping
> configure: error: Linux kernel 2.4, 2.6 or 3.x is required for PCI host device mapping
Comment 6 Jonas Jelten 2015-10-14 09:42:01 UTC
Created attachment 414554 [details, diff]
allow linux 4

This is a totally stupid patch but should fix the configure abort. The clean solution would be an additional useflag that enables the build of the kernel module.
Comment 7 Jonas Jelten 2015-10-14 09:43:57 UTC
(the additional useflag is implemented in the other patch by Kobboi)
Comment 8 Kobboi 2015-11-01 09:39:31 UTC
commit adff78a139aa5d07aa0373f90c71a094ed138e1a
Author: Luca Barbato <lu_zero@gentoo.org>
Date:   Sat Oct 31 23:30:34 2015 +0100

    app-emulation/bochs: Bump to version 2.6.8
    
    Address bug #551258
    
    Thanks to Kobboi for reminding me and the initial patches.
    
    Package-Manager: portage-2.2.23