Date: Thu, 24 Dec 2020 13:21:24 +0000 From: bugzilla-noreply@freebsd.org To: powerpc@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-25139-PdnEYZqp8M@https.bugs.freebsd.org/bugzilla/> In-Reply-To: <bug-249954-25139@https.bugs.freebsd.org/bugzilla/>
index | next in thread | previous in thread | raw e-mail
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=249954 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 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.home | help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-249954-25139-PdnEYZqp8M>
