From owner-freebsd-questions@FreeBSD.ORG Mon Jan 13 02:09:23 2014 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 7E2A9D71 for ; Mon, 13 Jan 2014 02:09:23 +0000 (UTC) Received: from monday.kientzle.com (99-115-135-74.uvs.sntcca.sbcglobal.net [99.115.135.74]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 4E0F8156C for ; Mon, 13 Jan 2014 02:09:22 +0000 (UTC) Received: (from root@localhost) by monday.kientzle.com (8.14.4/8.14.4) id s0D29Lxr012886; Mon, 13 Jan 2014 02:09:21 GMT (envelope-from kientzle@freebsd.org) Received: from [192.168.2.123] (gateway.kientzle.com [192.168.1.65]) by kientzle.com with SMTP id kjysnf7ctme9jysudnwhycra32; Mon, 13 Jan 2014 02:09:21 +0000 (UTC) (envelope-from kientzle@freebsd.org) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 7.1 \(1827\)) Subject: Re: cross-building ARM world on amd64 From: Tim Kientzle In-Reply-To: <20140112221305.GB2687@frozen.localdomain> Date: Sun, 12 Jan 2014 18:09:21 -0800 Content-Transfer-Encoding: quoted-printable Message-Id: <31AA6E3F-FEC4-4F69-9954-553E76871B16@freebsd.org> References: <20140112185955.GA29733@frozen.localdomain> <0DC39714-91FA-4C27-AC0B-A8F52B1EAD38@freebsd.org> <20140112214258.GA2687@frozen.localdomain> <20140112221305.GB2687@frozen.localdomain> To: Timo Buhrmester X-Mailer: Apple Mail (2.1827) Cc: FreeBSD Questions Mailing List X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 13 Jan 2014 02:09:23 -0000 According to lib/ncurses/Makefile, make_keys is a requirement for build-tools. build-tools builds things for the host machine. > build-tools: make_hash make_keys >=20 > make_keys: make_keys.c names.c ncurses_def.h ${HEADERS} > ${CC} -o $@ ${CFLAGS} ${NCURSES_DIR}/ncurses/tinfo/make_keys.c Looking through your full log, it looks like it is getting built during the build-tools phase: > =3D=3D=3D> lib/ncurses/ncurses (obj,build-tools) ... > cc -o make_keys -O2 -pipe -I. = -I/usr/cross/obj/arm.armv6/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=3Dgnu99 = -I/usr/cross/obj/arm.armv6/usr/src/tmp/legacy/usr/include = /usr/src/lib/ncurses/ncurses/../../../contrib/ncurses/ncurses/tinfo/make_k= eys.c And is then getting built again for some reason: > =3D=3D=3D> lib/ncurses/ncurses (obj,depend,all,install) .... > 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=3Dgnu99 = -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_k= eys.c > ./make_keys keys.list > init_keytry.h > ./make_keys: Exec format error I can't find anything in this part of the tree that's been touched more recently than last June. I know I've done many cross-builds since then, so there must be something peculiar in your environment. If we can figure out what that is, maybe we can adjust things so other people don't stumble on this. Can you search your /usr/obj to see if you have multiple copies of make_keys somewhere? It might also be worth scrutinizing your environment; you may have some environment variables that are surprising the build process. Of course, getting a new /usr/src tree is always a worthwhile thing to try. Tim