[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

[email protected]
Newsgroups gmane.os.freebsd.devel.ppc
Message-ID <[email protected]/bugzilla/>
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=249954

[email protected] changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[email protected]

--- Comment #2 from [email protected] ---
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.
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-ppc
To unsubscribe, send any mail to "[email protected]"
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.