From owner-freebsd-bugs@freebsd.org Sun Jul 10 23:01:53 2016 Return-Path: Delivered-To: freebsd-bugs@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 58BEDB85B6B for ; Sun, 10 Jul 2016 23:01:53 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (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 3D523173A for ; Sun, 10 Jul 2016 23:01:53 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id u6AN1rQj064343 for ; Sun, 10 Jul 2016 23:01:53 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-bugs@FreeBSD.org Subject: [Bug 210993] 11.0 WITH_META_MODE cross builds have "Exec format error" problems when certain areas attempt a rebuild Date: Sun, 10 Jul 2016 23:01:53 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: misc X-Bugzilla-Version: 11.0-BETA1 X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: markmi@dsl-only.net X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 10 Jul 2016 23:01:53 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D210993 Bug ID: 210993 Summary: 11.0 WITH_META_MODE cross builds have "Exec format error" problems when certain areas attempt a rebuild Product: Base System Version: 11.0-BETA1 Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: misc Assignee: freebsd-bugs@FreeBSD.org Reporter: markmi@dsl-only.net For using WITH_META_MODE=3Dyes again for going from -r302331 to -r302412 via cross builds amd64 -> armmv6 or powerpc64: The build stopped with: --- init_keytry.h --- sh: ./make_keys: Exec format error *** [init_keytry.h] Error code 126 Using a worldclean and then separately a buildworld was sufficient to get around the problem. Past exchanges also reported: > --- proctab.c ---=20 > sh: ./maketab: Exec format error=20 > *** [proctab.c] Error code 126=20 But this only happened if one got by the make_keys one. I've not seen this = one recently but the worldclean may be avoiding it too. I only remember the two examples [make_keys and maketab] being found as hav= ing the issue but there could be more as far as I know. At one time at least the maketab one was believed fixed after -r301884 (2016-Jun-14 or so). I expect "Exec format error" is an issue in certain areas whenever TARGET_A= RCH is incompatible with the host architecture. amd64 -> armv6/powerpc64 are ju= st the examples from my environment. Prior activity ends up leaving the incompatible file(s) where later rebuilds try to use them on the host. If it turns out that WITH_META_MODE=3Dyes rebuilding a cross build does not execute make_keys or maketabs [or . . .?] then it works fine. At least is w= hat I expect is the reason that some of my WITH_META_MODE=3Dyes cross-rebuilds = have had no problems. It may be that UPDATING for 11.0-RELEASE and 11.0-STABLE and the like just = will need notes something like the following for now: "If you run into 'Exec format error' during a WITH_META_MODE=3Dyes rebuild = for a cross build (TARGET_ARCH=3D. . .) then you will need to do a make worldclea= n and then another buildworld (and possibly build kernel) for the TARGET_ARCH. An alternative is to not use WITH_META_MODE=3Dyes ." --=20 You are receiving this mail because: You are the assignee for the bug.=