cross-building ARM world on amd64

Timo Buhrmester fstd.lkml at gmail.com
Sun Jan 12 22:13:10 UTC 2014


> I've uploaded the last 50 lines of the build output
Thinking again, for future reference it's probably more useful to inline those lines.
Here goes:

--8<--------------------

cc  -fpic -DPIC  -O -pipe  -I/usr/src/lib/libmd -std=gnu99 -Qunused-arguments -Wno-pointer-sign -Wno-empty-body -Wno-string-plus-int -Wno-tautological-compare -Wno-unused-value -Wno-parentheses-equality -Wno-unused-function -Wno-conversion -Wno-switch -Wno-switch-enum -Wno-knr-promoted-parameter -Wno-parentheses -c /usr/src/lib/libmd/sha512c.c -o sha512c.So
cc  -fpic -DPIC  -O -pipe  -I/usr/src/lib/libmd -std=gnu99 -Qunused-arguments -Wno-pointer-sign -Wno-empty-body -Wno-string-plus-int -Wno-tautological-compare -Wno-unused-value -Wno-parentheses-equality -Wno-unused-function -Wno-conversion -Wno-switch -Wno-switch-enum -Wno-knr-promoted-parameter -Wno-parentheses -c sha512hl.c -o sha512hl.So
building shared library libmd.so.6
sh /usr/src/tools/install.sh -C -o root -g wheel -m 444   libmd.a /usr/cross/obj/arm.armv6/usr/src/tmp/usr/lib
sh /usr/src/tools/install.sh -s -o root -g wheel -m 444     libmd.so.6 /usr/cross/obj/arm.armv6/usr/src/tmp/lib
sh /usr/src/tools/install.sh -l s /usr/cross/obj/arm.armv6/usr/src/tmp/lib/libmd.so.6  /usr/cross/obj/arm.armv6/usr/src/tmp/usr/lib/libmd.so
sh /usr/src/tools/install.sh -C -o root -g wheel -m 444  /usr/src/lib/libmd/md4.h /usr/src/lib/libmd/md5.h /usr/src/lib/libmd/ripemd.h /usr/src/lib/libmd/sha.h /usr/src/lib/libmd/sha256.h /usr/src/lib/libmd/sha512.h /usr/cross/obj/arm.armv6/usr/src/tmp/usr/include
===> lib/ncurses/ncurses (obj,depend,all,install)
sed </usr/src/lib/ncurses/ncurses/../../../contrib/ncurses/include/curses.h.in >curses.head  -e "/@BROKEN_LINKER@/s%%0%"  -e "/@HAVE_VSSCANF@/s%%1%"  -e "/@NCURSES_CH_T@/s%%chtype%"  -e "/@NCURSES_CONST@/s%%const%"  -e "/@NCURSES_EXT_COLORS@/s%%0%"  -e "/@NCURSES_EXT_FUNCS@/s%%1%"  -e "/@NCURSES_INLINE@/s%%inline%"  -e "/@NCURSES_LIBUTF8@/s%%0%"  -e "/@NCURSES_MAJOR@/s%%5%"  -e "/@NCURSES_MBSTATE_T@/s%%0%"  -e "/@NCURSES_MINOR@/s%%7%"  -e "/@NCURSES_MOUSE_VERSION@/s%%1%"  -e "/@NCURSES_OK_WCHAR_T@/s%%%"  -e "/@NCURSES_OPAQUE@/s%%0%"  -e "/@NCURSES_PATCH@/s%%20081102%"  -e "/@NCURSES_SIZE_T@/s%%short%"  -e "/@NCURSES_TPARM_VARARGS@/s%%1%"  -e "/@NCURSES_WCHAR_T@/s%%0%"  -e "/@NCURSES_WCHAR_T@/s%%0%"  -e "/@NCURSES_WINT_T@/s%%0%"  -e "/@NEED_WCHAR_H@/s%%0%"  -e "/@USE_CXX_BOOL@/s%%defined(__cplusplus)%"  -e "s%@cf_cv_1UL@%1UL%g"  -e "s%@cf_cv_builtin_bool@%1%g"  -e "s%@cf_cv_enable_lp64@%0%g"  -e "s%@cf_cv_enable_opaque@%NCURSES_OPAQUE%g"  -e "s%@cf_cv_enable_reentrant@%0%g"  -e "s%@cf_cv_header_stdbool_h@%1%g"  -e "s%@cf_cv_type_of_bool@%unsigned char%g"  -e "s%@cf_cv_typeof_chtype@%long%g"  -e "s%@cf_cv_typeof_mmask_t@%long%g"  -e "s/ _WCHAR_T/ __wchar_t/g"  -e "s/ _WINT_T/ __wint_t/g"
cat curses.head > curses.h.new
AWK=awk _POSIX2_VERSION=199209 sh /usr/src/lib/ncurses/ncurses/../../../contrib/ncurses/include/MKkey_defs.sh  /usr/src/lib/ncurses/ncurses/../../../contrib/ncurses/include/Caps >> curses.h.new
cat /usr/src/lib/ncurses/ncurses/../../../contrib/ncurses/include/curses.tail >> curses.h.new
mv -f curses.h.new curses.h
sh /usr/src/lib/ncurses/ncurses/../../../contrib/ncurses/include/MKhashsize.sh /usr/src/lib/ncurses/ncurses/../../../contrib/ncurses/include/Caps > hashsize.h
AWK=awk sh /usr/src/lib/ncurses/ncurses/../../../contrib/ncurses/ncurses/tinfo/MKkeys_list.sh  /usr/src/lib/ncurses/ncurses/../../../contrib/ncurses/include/Caps | LC_ALL=C sort > keys.list
awk -f /usr/src/lib/ncurses/ncurses/../../../contrib/ncurses/ncurses/tinfo/MKnames.awk bigstrings=1 /usr/src/lib/ncurses/ncurses/../../../contrib/ncurses/include/Caps > names.c
AWK=awk sh /usr/src/lib/ncurses/ncurses/../../../contrib/ncurses/include/MKncurses_def.sh  /usr/src/lib/ncurses/ncurses/../../../contrib/ncurses/include/ncurses_defs > ncurses_def.h
sed </usr/src/lib/ncurses/ncurses/../../../contrib/ncurses/include/MKterm.h.awk.in >MKterm.h.awk  -e "/@BROKEN_LINKER@/s%%0%"  -e "/@NCURSES_MAJOR@/s%%5%"  -e "/@NCURSES_MINOR@/s%%7%"  -e "/@NCURSES_CONST@/s%%const%"  -e "/@NCURSES_TPARM_VARARGS@/s%%1%"  -e "/@NCURSES_SBOOL@/s%%char%"  -e "/@NCURSES_XNAMES@/s%%1%"  -e "/@HAVE_TERMIOS_H@/s%%1%"  -e "/@HAVE_TERMIO_H@/s%%0%"  -e "/@HAVE_TCGETATTR@/s%%1%"  -e "s%@cf_cv_enable_reentrant@%0%g"
awk -f MKterm.h.awk /usr/src/lib/ncurses/ncurses/../../../contrib/ncurses/include/Caps > term.h.new
sh /usr/src/lib/ncurses/ncurses/../../../contrib/ncurses/include/edit_cfg.sh /usr/src/lib/ncurses/ncurses/ncurses_cfg.h term.h.new
** edit: HAVE_TCGETATTR 1
** edit: HAVE_TERMIOS_H 1
** edit: HAVE_TERMIO_H 0
** edit: BROKEN_LINKER 0
mv -f term.h.new term.h
sed </usr/src/lib/ncurses/ncurses/../../../contrib/ncurses/include/termcap.h.in >termcap.h  -e "/@NCURSES_MAJOR@/s%%5%"  -e "/@NCURSES_MINOR@/s%%7%"  -e "/@NCURSES_CONST@/s%%const%"  -e "/@NCURSES_OSPEED@/s%%short%"
sed </usr/src/lib/ncurses/ncurses/../../../contrib/ncurses/include/unctrl.h.in >unctrl.h  -e "/@NCURSES_MAJOR@/s%%5%"  -e "/@NCURSES_MINOR@/s%%7%"
cc  -o make_keys -O -pipe  -I. -I/usr/cross/obj/usr/src/lib/ncurses/ncurses/../ncurses -I/usr/src/lib/ncurses/ncurses/../ncurses -I/usr/src/lib/ncurses/ncurses/../ncurses -I/usr/src/lib/ncurses/ncurses/../../../contrib/ncurses/include -I/usr/src/lib/ncurses/ncurses/../../../contrib/ncurses/ncurses -Wall -DNDEBUG -DHAVE_CONFIG_H -DFREEBSD_NATIVE -DTERMIOS -std=gnu99 -Qunused-arguments -Wsystem-headers -Werror -Wall -Wno-format-y2k -W -Wno-unused-parameter -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wno-uninitialized -Wno-pointer-sign -Wno-empty-body -Wno-string-plus-int -Wno-tautological-compare -Wno-unused-value -Wno-parentheses-equality -Wno-unused-function -Wno-conversion /usr/src/lib/ncurses/ncurses/../../../contrib/ncurses/ncurses/tinfo/make_keys.c
./make_keys keys.list > init_keytry.h
./make_keys: Exec format error
*** Error code 126

Stop.
make[4]: stopped in /usr/src/lib/ncurses/ncurses
*** Error code 1

Stop.
make[3]: stopped in /usr/src
*** Error code 1

Stop.
make[2]: stopped in /usr/src
*** Error code 1

Stop.
make[1]: stopped in /usr/src
*** Error code 1

Stop.
make: stopped in /usr/src

--8<--------------------


More information about the freebsd-questions mailing list