Re: 11.0 -r301139: WITH_META_MODE=yes vs. "sh: ./make_keys: Exec format error"? [still true of -r301815]

2016-06-14 Thread Bryan Drewery
On 6/11/2016 9:55 PM, Mark Millard wrote: > Doing cleanworld instead of "-j 5 buildworld buildkernel" and then retrying > "-j 5 buildworld buildkernel" resulted in the same sort of thing but for > maketab instead: This is fixed after r301884. You'll need to clean the objdir for usr.bin/awk at t

Re: 11.0 -r301139: WITH_META_MODE=yes vs. "sh: ./make_keys: Exec format error"? [still true of -r301815]

2016-06-13 Thread Simon J. Gerraty
Bryan Drewery wrote: > > eg. in our internal tree - which cross builds fine: > > > > make_keys: make_keys.c names.c ncurses_def.h ${HEADERS} > > ${HOST_CC} -o $@ ${HOST_CFLAGS} > > ${NCURSES_DIR}/ncurses/tinfo/make_keys.c > > I like this method but am going to put it off for a while. T

Re: 11.0 -r301139: WITH_META_MODE=yes vs. "sh: ./make_keys: Exec format error"? [still true of -r301815]

2016-06-13 Thread Bryan Drewery
On 6/11/2016 9:55 PM, Mark Millard wrote: > Doing cleanworld instead of "-j 5 buildworld buildkernel" and then retrying > "-j 5 buildworld buildkernel" resulted in the same sort of thing but for > maketab instead: The cleanworld likely fixed an issue of a stale file sitting in the objdir. I was

Re: 11.0 -r301139: WITH_META_MODE=yes vs. "sh: ./make_keys: Exec format error"? [still true of -r301815]

2016-06-13 Thread Bryan Drewery
On 6/12/2016 5:39 AM, Simon J. Gerraty wrote: > eg. in our internal tree - which cross builds fine: > > make_keys: make_keys.c names.c ncurses_def.h ${HEADERS} > ${HOST_CC} -o $@ ${HOST_CFLAGS} > ${NCURSES_DIR}/ncurses/tinfo/make_keys.c I like this method but am going to put it off for a

Re: 11.0 -r301139: WITH_META_MODE=yes vs. "sh: ./make_keys: Exec format error"? [still true of -r301815]

2016-06-13 Thread Bryan Drewery
On 6/12/2016 7:14 PM, Simon J. Gerraty wrote: > Mark Millard wrote: >> Cross builds work just fine based on the FreeBSD tree when omitting >> WITH_META_MODE=. >> > > Hmm must do something odd then. > >> As of -r301825 there is almost no use of HOST_CC at the upper levels or in >> share/mk/*: >

Re: 11.0 -r301139: WITH_META_MODE=yes vs. "sh: ./make_keys: Exec format error"? [still true of -r301815]

2016-06-12 Thread Simon J. Gerraty
Mark Millard wrote: > Cross builds work just fine based on the FreeBSD tree when omitting > WITH_META_MODE=. > Hmm must do something odd then. > As of -r301825 there is almost no use of HOST_CC at the upper levels or in > share/mk/*: Yes, which means if cross-building works it must be requri

Re: 11.0 -r301139: WITH_META_MODE=yes vs. "sh: ./make_keys: Exec format error"? [still true of -r301815]

2016-06-12 Thread Mark Millard
On 2016-Jun-12, at 5:39 AM, Simon J. Gerraty wrote: > Mark Millard wrote: >>> --- build-tools_lib/ncurses/ncursesw --- >>> Building /usr/obj/clang/arm.armv6/usr/src/lib/ncurses/ncursesw/make_keys > > I must have been looking at on of our internal FreeBSD trees last > time... > > In FreeBSD lib

Re: 11.0 -r301139: WITH_META_MODE=yes vs. "sh: ./make_keys: Exec format error"? [still true of -r301815]

2016-06-12 Thread Simon J. Gerraty
Simon J. Gerraty wrote: > If you want cross-building to work, the simple solution is to ensure > that you use HOST_CC rather than CC when building things that need to > run on the build host. FWIW there are not many makefiles to fix: bin/csh/Makefile gnu/usr.bin/cc/cc_tools/Makefile lib/libmagic

Re: 11.0 -r301139: WITH_META_MODE=yes vs. "sh: ./make_keys: Exec format error"? [still true of -r301815]

2016-06-12 Thread Simon J. Gerraty
Mark Millard wrote: > > --- build-tools_lib/ncurses/ncursesw --- > > Building /usr/obj/clang/arm.armv6/usr/src/lib/ncurses/ncursesw/make_keys I must have been looking at on of our internal FreeBSD trees last time... In FreeBSD lib/ncurses/ncursesw/Makefile and other places I checked just uses ${

Re: 11.0 -r301139: WITH_META_MODE=yes vs. "sh: ./make_keys: Exec format error"? [still true of -r301815]

2016-06-11 Thread Mark Millard
On 2016-Jun-2, at 11:11 AM, Bryan Drewery wrote: > On 6/2/2016 10:53 AM, Simon J. Gerraty wrote: >> BTW Mark, thanks very much for testing this. >> # grep make_keys ~/sys_typescripts/typescript_make_rpi2_nodebug_clang_bootstrap-amd64-host-2016-06-01:15:17:28 Building /usr/obj/cla