[Bug 223780] linux_base-c7 does not work with latest 10.4 (FreeBSD 10.4-RELEASE-p3) - "FATAL: kernel too old"

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Tue Nov 21 14:07:47 UTC 2017


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=223780

            Bug ID: 223780
           Summary: linux_base-c7 does not work with latest 10.4 (FreeBSD
                    10.4-RELEASE-p3) - "FATAL: kernel too old"
           Product: Ports & Packages
           Version: Latest
          Hardware: amd64
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: Individual Port(s)
          Assignee: freebsd-ports-bugs at FreeBSD.org
          Reporter: jnn at synfin.org

After installing linux_base-c7, mounting the /compat/linux/proc and
/compat/linux/dev/shm mounts, and loading the linux & linux64 modules, all
Linux binaries fail to run with the following error message:

root at wintermute .../linux/usr/bin# /compat/linux/usr/bin/uname
FATAL: kernel too old

This particular error is indicative in Linux that the glibc in use was compiled
with/for a kernel greater than the one currently in use. 

Here is the status of installed modules, mounts, loaded modules, etc at the
time of the error -

------------------------------------------------------------
------------------------------------------------------------
root at wintermute .../linux/usr/bin # kldstat  | grep linux
 9    3 0xffffffff82064000 7566     linux_common.ko
11    1 0xffffffff82073000 3d0b3    linux.ko
12    1 0xffffffff820b1000 37e1a    linux64.ko

root at wintermute .../linux/usr/bin # mount | grep compat
tmpfs on /usr/compat/linux/dev/shm (tmpfs, local)
linprocfs on /usr/compat/linux/proc (linprocfs, local)

root at wintermute .../linux/usr/bin # pkg query %v linux_base-c7
7.4.1708_2

root at wintermute .../linux/usr/bin # uname -a
FreeBSD wintermute.synfin.org 10.4-RELEASE-p3 FreeBSD 10.4-RELEASE-p3 #0: Tue
Nov 14 09:43:55 UTC 2017    
root at amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC  amd64

------------------------------------------------------------
------------------------------------------------------------

The good news is that the latest linux_base-c6 works just fine with FreeBSD
10.4-RELEASE-p3. All the same setup info as documented above, except
linux_base-c7 has been removed and linux_base-c6 has been installed (version
6.9_4). Sample output of a successful command -

root at wintermute .../linux/usr/bin # /compat/linux/bin/uname -a
Linux wintermute.synfin.org 2.6.18 FreeBSD 10.4-RELEASE-p3 #0: Tue Nov 14
09:43:55 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux

I suspect that the latest linux_base-c7 has glibc kernel requirement that, for
whatever reason, the linux/linux64 modules do not meet.

thanks,

John Newman
jnn at synfin.org

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-ports-bugs mailing list