Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 24 Dec 2020 13:21:24 +0000
From:      bugzilla-noreply@freebsd.org
To:        x11@FreeBSD.org
Subject:   [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
Message-ID:  <bug-249954-7141-kGEJrpi0l2@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-249954-7141@https.bugs.freebsd.org/bugzilla/>
References:  <bug-249954-7141@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D249954

lfmorrison@gmail.com changed:

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

--- Comment #2 from lfmorrison@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 mem=
ory.
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 b=
oth
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 t=
he
kernel module is being built for AIM or Book-E in order to get past this er=
ror.

Since running into this issue, the increasing in dependency that various po=
rts
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 experime=
nts
with graphical environments.

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-249954-7141-kGEJrpi0l2>