[Bug 210993] 11.0 WITH_META_MODE cross builds have "Exec format error" problems when certain areas attempt a rebuild

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Sun Jul 10 23:01:53 UTC 2016


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=210993

            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 at FreeBSD.org
          Reporter: markmi at dsl-only.net

For using WITH_META_MODE=yes 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 --- 
> sh: ./maketab: Exec format error 
> *** [proctab.c] Error code 126 

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 having
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_ARCH
is incompatible with the host architecture. amd64 -> armv6/powerpc64 are just
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=yes rebuilding a cross build does not
execute make_keys or maketabs [or . . .?] then it works fine. At least is what
I expect is the reason that some of my WITH_META_MODE=yes 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=yes rebuild for a
cross build (TARGET_ARCH=. . .) then you will need to do a make worldclean and
then another buildworld (and possibly build kernel) for the TARGET_ARCH. An
alternative is to not use WITH_META_MODE=yes ."

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-bugs mailing list