[Bug 249954] graphics/drm-kmod : Fails to build on FreeBSD 12.2-BETA1 r365618 GENERIC powerpc 32 bit : /usr/src/sys/vm/vm_page.h:204: error: field 'md' has incomplete type

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Thu Dec 24 13:21:24 UTC 2020


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

lfmorrison at gmail.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |lfmorrison at gmail.com

--- Comment #2 from lfmorrison at gmail.com ---
I saw this some time ago as well, but the specifics may be a little rusty. I
never found a solution.

As I recall, this seems to be a consequence of the way the kernel deals with
two different ways in which various PowerPC hardware deals with virtual memory.
Some use the legacy "AIM" (Apple-IBM-Motorola) model, and others use an
alternate Book-E" model, which was added to make PowerPC more palatable for
embedded systems.

Application code works identically on processors using either VM model, but the
kernel code needs to work differently. The FreeBSD kernel has support for both
VM models, but a compile-time define needs to be supplied to specify which
model is used for the targeted CPU; this configuration parameter leads to,
among other things, different definitions of the struct in question.

When building drm-kmod, the build system somehow needs to be told whether the
kernel module is being built for AIM or Book-E in order to get past this error.

Since running into this issue, the increasing in dependency that various ports
have on a bootstrap rustc compiler (which doesn't exist upstream for 32-bit
PowerPC on FreeBSD) has left me reluctant to go much further in my experiments
with graphical environments.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the freebsd-ppc mailing list