From owner-freebsd-arm@freebsd.org Thu Jun 2 01:39:39 2016 Return-Path: Delivered-To: freebsd-arm@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 42926B62484 for ; Thu, 2 Jun 2016 01:39:39 +0000 (UTC) (envelope-from markmi@dsl-only.net) Received: from asp.reflexion.net (outbound-mail-211-175.reflexion.net [208.70.211.175]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id E990D1945 for ; Thu, 2 Jun 2016 01:39:38 +0000 (UTC) (envelope-from markmi@dsl-only.net) Received: (qmail 17505 invoked from network); 2 Jun 2016 01:40:02 -0000 Received: from unknown (HELO mail-cs-01.app.dca.reflexion.local) (10.81.19.1) by 0 (rfx-qmail) with SMTP; 2 Jun 2016 01:40:02 -0000 Received: by mail-cs-01.app.dca.reflexion.local (Reflexion email security v7.90.3) with SMTP; Wed, 01 Jun 2016 21:40:10 -0400 (EDT) Received: (qmail 11417 invoked from network); 2 Jun 2016 01:40:10 -0000 Received: from unknown (HELO iron2.pdx.net) (69.64.224.71) by 0 (rfx-qmail) with SMTP; 2 Jun 2016 01:40:10 -0000 X-No-Relay: not in my network X-No-Relay: not in my network X-No-Relay: not in my network X-No-Relay: not in my network Received: from [192.168.1.8] (c-76-115-7-162.hsd1.or.comcast.net [76.115.7.162]) by iron2.pdx.net (Postfix) with ESMTPSA id 1C1B31C43D2; Wed, 1 Jun 2016 18:39:26 -0700 (PDT) Content-Type: text/plain; charset=windows-1252 Mime-Version: 1.0 (Mac OS X Mail 9.3 \(3124\)) Subject: Re: [CFT] WITH_META_MODE: Working incremental build [only on i386 and amd64] [filemon fails to load on powerpc64] From: Mark Millard In-Reply-To: <7748cc71-3788-22ae-fcb2-699eae529310@FreeBSD.org> Date: Wed, 1 Jun 2016 18:39:30 -0700 Cc: FreeBSD Current , FreeBSD PowerPC ML , freebsd-arm Content-Transfer-Encoding: quoted-printable Message-Id: <9A1A624D-9286-4C0F-A435-D590E07C1149@dsl-only.net> References: <7748cc71-3788-22ae-fcb2-699eae529310@FreeBSD.org> To: Bryan Drewery X-Mailer: Apple Mail (2.3124) X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 02 Jun 2016 01:39:39 -0000 [A top-posted error report for powerpc64.] On 2016-Jun-1, at 8:20 AM, Bryan Drewery = 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@FBSDG5C0:/usr/obj/xtoolchain/powerpc.powerpc64/usr/src/sys/GENERIC64v= tsc-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=3Dyes yet for powerpc64. I'm not sure when I get to trying the rpi2 (armv6). =3D=3D=3D Mark Millard markmi at dsl-only.net On 2016-Jun-1, at 8:20 AM, Bryan Drewery = 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 = ): >>=20 >>> You will also need to load the filemon(4) module with 'kldload = filemon'. >>=20 >> But head's sys/modules/Makefile says: >>=20 >>> .if defined(MODULES_OVERRIDE) && !defined(ALL_MODULES) >>> SUBDIR=3D${MODULES_OVERRIDE} >>> .else >>> SUBDIR=3D \ >>=20 >> . . . >>> ${_filemon} \ >>=20 >> . . . >>> .if ${MACHINE_CPUARCH} =3D=3D "i386" || ${MACHINE_CPUARCH} =3D=3D = "amd64" >> . . . >>> _filemon=3D filemon >> . . . >>=20 >> as the only contexts that provide a filemon.ko to use with kldload. >>=20 >> 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. >>=20 >> 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. >>=20 >> It appears that, once some arm variants are officially tier 1, = WITH_META_MODE will not span all tier 1 platforms. >>=20 >> [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.] >>=20 >=20 > I've just enabled the filemon(4) build on all architectures in = r301130. >=20 > --=20 > Regards, > Bryan Drewery