Re: make universe fails with MAKEOBJDIRPREFIX [cross builds part: sh: ./make_keys: Exec format error for init_keytry.h]

2016-09-30 Thread Mark Millard
Quoting:

> --- lib/ncurses/ncurses__L ---
> ./make_keys keys.list > init_keytry.h
. . .
> --- lib/ncurses/ncurses__L ---
> sh: ./make_keys: Exec format error
> *** [init_keytry.h] Error code 126


Since the reworking of the build handling in recent (many) months "sh: 
./make_keys: Exec format error" is a long standing problem for buildworld for 
cross builds. The native part of the build execution is trying to execute the 
cross-build target's make_keys (that was likely left from a prior cross-build 
and now doing incremental-build activity). lib/ncurses/ncurses__L is not the 
only place that this can happen. There is past list exchanges for this issue 
with other examples.

I rebuild after cleanworld when this happens in order to force a full rebuild 
instead of an incremental one --but I only build one cross build target at a 
time, not universe. I've never had such an after-cleanworld rebuild fail: only 
some later incremental builds.

Luckily in my experience so far most incremental builds do not go back through 
those areas (such as lib/ncurses/ncurses__L ) and so do not try to execute 
make_keys (stated in terms of this example). So the incremental builds for me 
are usually effective --but sometimes lib/ncurses/ncurses__L is rebuilt.

It has been a fairly long time since my 11.0 related activities (tracking 
stable/11 now) have run into this but likely lib/ncurses/ncurses__L (and the 
like) simply have not rebuilt in my cross builds. I've no head (CURRENT) 
activities going on at this point.

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

___
freebsd-current@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"


make universe fails with MAKEOBJDIRPREFIX

2016-09-30 Thread Eric van Gyzen
"make universe" consistently fails in buildworld when I set MAKEOBJDIRPREFIX.
I'm running head r306046 on amd64 and building head r306380.  There are only
comments in /etc/make.conf.  My complete command is:

make universe JFLAG=-j16 MAKEOBJDIRPREFIX=/work/universe \
> /usr/obj/build-logs/universe.log 2>&1  init_keytry.h
--- lib/libpam/libpam__L ---
cc -isystem /work/universe/mips.mips/usr/src/tmp/usr/include -L/work/universe/mi
ps.mips/usr/src/tmp/usr/lib -B/work/universe/mips.mips/usr/src/tmp/usr/lib --sys
root=/work/universe/mips.mips/usr/src/tmp -B/work/universe/mips.mips/usr/src/tmp
/usr/bin -fpic -DPIC -g -O -pipe -I/usr/src/lib/libpam/libpam/../../../contrib/o
penpam/include -DLIB_MAJ=6 -DHAVE_DLFUNC=1 -DHAVE_FDLOPEN=1 -DHAVE_FPURGE=1 -DHA
VE_STRLCAT=1 -DHAVE_STRLCPY=1 -G0   -DOPENPAM_DEBUG -MD  -MF.depend.openpam_strl
cpy.pico -MTopenpam_strlcpy.pico -std=iso9899:1999 -Wsystem-headers -Werror -Wal
l -Wno-format-y2k -W -Wno-unused-parameter -Wstrict-prototypes -Wmissing-prototy
pes -Wpointer-arith -Wreturn-type -Wcast-qual -Wwrite-strings -Wswitch -Wshadow
-Wunused-parameter -Wcast-align -Wchar-subscripts -Winline -Wnested-externs -Wre
dundant-decls -Wold-style-definition -Wno-pointer-sign -c /usr/src/lib/libpa
m/libpam/../../../contrib/openpam/lib/libpam/openpam_strlcpy.c -o openpam_strlcp
y.pico
--- lib/libthr__L ---
--- thr_detach.o ---
--- lib/ncurses/ncurses__L ---
sh: ./make_keys: Exec format error
*** [init_keytry.h] Error code 126

make[5]: stopped in /usr/src/lib/ncurses/ncurses
--- lib/libthr__L ---
cc -isystem /work/universe/mips.mips/usr/src/tmp/usr/include -L/work/universe/mi
ps.mips/usr/src/tmp/usr/lib -B/work/universe/mips.mips/usr/src/tmp/usr/lib --sys
root=/work/universe/mips.mips/usr/src/tmp -B/work/universe/mips.mips/usr/src/tmp
/usr/bin  -O -pipe -G0   -DPTHREAD_KERNEL -I/usr/src/lib/libthr/../libc/include
-I/usr/src/lib/libthr/thread  -I/usr/src/lib/libthr/../../include -I/usr/src/lib
/libthr/arch/mips/include -I/usr/src/lib/libthr/sys -I/usr/src/lib/libthr/../../
libexec/rtld-elf -I/usr/src/lib/libthr/../../libexec/rtld-elf/mips -I/usr/src/li
b/libthr/../libthread_db -Winline -fexceptions -D_PTHREAD_FORCED_UNWIND -D_PTHRE
ADS_INVARIANTS -MD  -MF.depend.thr_detach.o -MTthr_detach.o -std=gnu99 -Wsystem-
headers -Werror -Wall -Wno-format-y2k -W -Wno-unused-parameter -Wstrict-prototyp
es -Wmissing-prototypes -Wpointer-arith -Wno-uninitialized -Wno-pointer-sign
 -c /usr/src/lib/libthr/thread/thr_detach.c -o thr_detach.o
--- lib/ncurses/ncurses__L ---
1 error

make[5]: stopped in /usr/src/lib/ncurses/ncurses
*** [lib/ncurses/ncurses__L] Error code 2
==
___
freebsd-current@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"