From owner-freebsd-current@freebsd.org Wed Jun 1 23:25:37 2016 Return-Path: Delivered-To: freebsd-current@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 CF720B661E7 for ; Wed, 1 Jun 2016 23:25:37 +0000 (UTC) (envelope-from markmi@dsl-only.net) Received: from asp.reflexion.net (outbound-mail-211-173.reflexion.net [208.70.211.173]) (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 850301B08 for ; Wed, 1 Jun 2016 23:25:36 +0000 (UTC) (envelope-from markmi@dsl-only.net) Received: (qmail 3641 invoked from network); 1 Jun 2016 23:25:31 -0000 Received: from unknown (HELO mail-cs-02.app.dca.reflexion.local) (10.81.19.2) by 0 (rfx-qmail) with SMTP; 1 Jun 2016 23:25:31 -0000 Received: by mail-cs-02.app.dca.reflexion.local (Reflexion email security v7.90.3) with SMTP; Wed, 01 Jun 2016 19:25:28 -0400 (EDT) Received: (qmail 4846 invoked from network); 1 Jun 2016 23:25:27 -0000 Received: from unknown (HELO iron2.pdx.net) (69.64.224.71) by 0 (rfx-qmail) with SMTP; 1 Jun 2016 23:25:27 -0000 X-No-Relay: not in my network X-No-Relay: not in my network Received: from [192.168.1.26] (c-76-115-7-162.hsd1.or.comcast.net [76.115.7.162]) by iron2.pdx.net (Postfix) with ESMTPSA id 687341C43DB; Wed, 1 Jun 2016 16:25:25 -0700 (PDT) From: Mark Millard Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Subject: 11.0 -r301139: WITH_META_MODE=yes vs. "sh: ./make_keys: Exec format error"? Date: Wed, 1 Jun 2016 16:25:29 -0700 Message-Id: <890D3808-1939-4BEA-886F-324EBA8C8671@dsl-only.net> Cc: FreeBSD Current To: Bryan Drewery Mime-Version: 1.0 (Mac OS X Mail 9.3 \(3124\)) X-Mailer: Apple Mail (2.3124) X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 01 Jun 2016 23:25:37 -0000 [The example context here for extracted materials is a amd64 -> armv6 = cross build.] In my recent experimentation with WITH_META_MODE=3Dyes I=E2=80=99ve had = multiple occasions when after updating /usr/src I attempt buildworld = buildkernel and end up with something like: > --- lib/ncurses/ncursesw__L --- > Building = /usr/obj/clang/arm.armv6/usr/src/lib/ncurses/ncursesw/init_keytry.h > --- init_keytry.h --- > sh: ./make_keys: Exec format error > *** [init_keytry.h] Error code 126 >=20 > make[4]: stopped in /usr/src/lib/ncurses/ncursesw > 1 error >=20 > make[4]: stopped in /usr/src/lib/ncurses/ncursesw > *** [lib/ncurses/ncursesw__L] Error code 2 I=E2=80=99ve also had such for powerpc being the target and make = toolchain in use (preparing for buildkernel without buildworld). There are multiple instances of make_keys construction in the builds. = Here it looks like: > # grep make_keys = ~/sys_typescripts/typescript_make_rpi2_nodebug_clang_bootstrap-amd64-host-= 2016-06-01:15:17:28 > Building = /usr/obj/clang/arm.armv6/usr/src/lib/ncurses/ncursesw/make_keys > Building = /usr/obj/clang/arm.armv6/usr/src/lib/ncurses/ncurses/make_keys > Building = /usr/obj/clang/arm.armv6/usr/src/lib/ncurses/ncursesw/make_keys > sh: ./make_keys: Exec format error Note that ncursesw has two Building lines above with the same path = listed. cleanworld and then retrying the sequence desired always seems to work = but is a complete rebuild. As for src.conf (example is for the amd64 -> armv6 cross build): > # more ~/src.configs/src.conf.rpi2-clang-bootstrap.amd64-host=20 > TO_TYPE=3Darmv6 > # > KERNCONF=3DRPI2-NODBG > TARGET=3Darm > .if ${.MAKE.LEVEL} =3D=3D 0 > TARGET_ARCH=3D${TO_TYPE} > .export TARGET_ARCH > .endif > # > WITH_CROSS_COMPILER=3D > WITHOUT_SYSTEM_COMPILER=3D > # > #CPUTYPE=3Dsoft > WITH_LIBSOFT=3D > WITH_LIBCPLUSPLUS=3D > WITH_BINUTILS_BOOTSTRAP=3D > WITH_CLANG_BOOTSTRAP=3D > WITH_CLANG=3D > WITH_CLANG_IS_CC=3D > WITH_CLANG_FULL=3D > WITH_CLANG_EXTRAS=3D > WITH_LLDB=3D > # > WITH_BOOT=3D > WITHOUT_LIB32=3D > # > WITHOUT_ELFTOOLCHAIN_BOOTSTRAP=3D > WITHOUT_GCC_BOOTSTRAP=3D > WITHOUT_GCC=3D > WITHOUT_GCC_IS_CC=3D > WITHOUT_GNUCXX=3D > # > NO_WERROR=3D > #WERROR=3D > MALLOC_PRODUCTION=3D > # > WITH_DEBUG_FILES=3D > # > XCFLAGS+=3D -march=3Darmv7a -mcpu=3Dcortex-a7 > XCXXFLAGS+=3D -march=3Darmv7a -mcpu=3Dcortex-a7 > # There is no XCPPFLAGS but XCPP ets XCFLAGS content. The amd64 context is at -r301139 and the rpi2/armv6 build was attempting = to update to -r301139 from -r300944. > # uname -apKU > FreeBSD FreeBSDx64 11.0-ALPHA1 FreeBSD 11.0-ALPHA1 #2 r301139M: Wed = Jun 1 11:38:44 PDT 2016 = markmi@FreeBSDx64:/usr/obj/clang/amd64.amd64/usr/src/sys/GENERIC-NODEBUG = amd64 amd64 1100116 1100116 =3D=3D=3D Mark Millard markmi at dsl-only.net