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
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]) ;;
http://sourceforge.net/p/bochs/bugs/1375/
Created attachment 410188 [details, diff] Don't enable pcidev support by default
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."
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
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.
(the additional useflag is implemented in the other patch by Kobboi)
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