Re: [CFT] WITH_META_MODE: Working incremental build [only on i386 and amd64] [filemon fails to load on powerpc64]

From: Mark Millard <markmi_at_dsl-only.net>
Date: Wed, 1 Jun 2016 18:39:30 -0700
[A top-posted error report for powerpc64.]

On 2016-Jun-1, at 8:20 AM, Bryan Drewery <bdreweryv at FreeBSD.org> wrote:
> I've just enabled the filemon(4) build on all architectures in r301130.

But on (built via powerpc64-gcc on the powerpc64 box):

> # uname -apKU
> FreeBSD FBSDG5C0 11.0-ALPHA1 FreeBSD 11.0-ALPHA1 #39 r301139M: Wed Jun  1 17:37:17 PDT 2016     root_at_FBSDG5C0:/usr/obj/xtoolchain/powerpc.powerpc64/usr/src/sys/GENERIC64vtsc-NODEBUG  powerpc powerpc64 1100116 1100116

while filemon.ko now exists:

> # ls -l /boot/*/filemon*
> -r-xr-xr-x  1 root  wheel  32064 Jun  1 17:59 /boot/kernel/filemon.ko

it does not load:

> # kldload -n filemon
> kldload: can't load filemon: No such file or directory

> # dmesg | grep link_elf
> link_elf: symbol elf64_freebsd_sysvec undefined

So no WITH_META_MODE=yes yet for powerpc64.

I'm not sure when I get to trying the rpi2 (armv6).

===
Mark Millard
markmi at dsl-only.net

On 2016-Jun-1, at 8:20 AM, Bryan Drewery <bdreweryv at FreeBSD.org> wrote:

> On 5/29/2016 3:53 PM, Mark Millard wrote:
>> Quoting the original note about WITH_META_MODE ( https://lists.freebsd.org/pipermail/freebsd-current/2016-May/061481.html ):
>> 
>>> You will also need to load the filemon(4) module with 'kldload filemon'.
>> 
>> But head's sys/modules/Makefile says:
>> 
>>> .if defined(MODULES_OVERRIDE) && !defined(ALL_MODULES)
>>> SUBDIR=${MODULES_OVERRIDE}
>>> .else
>>> SUBDIR= \
>> 
>> . . .
>>>       ${_filemon} \
>> 
>> . . .
>>> .if ${MACHINE_CPUARCH} == "i386" || ${MACHINE_CPUARCH} == "amd64"
>> . . .
>>> _filemon=       filemon
>> . . .
>> 
>> as the only contexts that provide a filemon.ko to use with kldload.
>> 
>> Thus, for example, arm variants (32 bit and 64 bit) and powerpc variants (32bit and 64 bit) do not have WITH_META_MODE as an option as things are set up.
>> 
>> I had been hoping to cut down on the time for clang-related rebuilds during native buildworld runs on my slower buildworld contexts (armv7a/cortex-a7, powerpc, powerpc64). But it was not to be.
>> 
>> It appears that, once some arm variants are officially tier 1, WITH_META_MODE will not span all tier 1 platforms.
>> 
>> [Since I tend to use non-tier-1 platforms I tend to notice some of the statements about FreeBSD that are true of only tier 1 without being explicit about it. But initially it takes some research to discover that status for each such point. WITH_META_MODE is an example.]
>> 
> 
> I've just enabled the filemon(4) build on all architectures in r301130.
> 
> -- 
> Regards,
> Bryan Drewery
Received on Wed Jun 01 2016 - 23:39:39 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:41:05 UTC