From owner-freebsd-current@freebsd.org Fri Oct 30 21:21:30 2015 Return-Path: Delivered-To: freebsd-current@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 780A5A226C7 for ; Fri, 30 Oct 2015 21:21:30 +0000 (UTC) (envelope-from bdrewery@FreeBSD.org) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id 58CAA151A for ; Fri, 30 Oct 2015 21:21:30 +0000 (UTC) (envelope-from bdrewery@FreeBSD.org) Received: by mailman.ysv.freebsd.org (Postfix) id 56C65A226C6; Fri, 30 Oct 2015 21:21:30 +0000 (UTC) Delivered-To: current@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 3B8A4A226C5 for ; Fri, 30 Oct 2015 21:21:30 +0000 (UTC) (envelope-from bdrewery@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) by mx1.freebsd.org (Postfix) with ESMTP id 198801516; Fri, 30 Oct 2015 21:21:30 +0000 (UTC) (envelope-from bdrewery@FreeBSD.org) Received: from mail.xzibition.com (localhost [IPv6:::1]) by freefall.freebsd.org (Postfix) with ESMTP id 0C42B1D62; Fri, 30 Oct 2015 21:21:30 +0000 (UTC) (envelope-from bdrewery@FreeBSD.org) Received: from mail.xzibition.com (localhost [172.31.3.2]) by mail.xzibition.com (Postfix) with ESMTP id BD487105E9; Fri, 30 Oct 2015 21:21:29 +0000 (UTC) X-Virus-Scanned: amavisd-new at mail.xzibition.com Received: from mail.xzibition.com ([172.31.3.2]) by mail.xzibition.com (mail.xzibition.com [172.31.3.2]) (amavisd-new, port 10026) with LMTP id 29tZfMv0hwDv; Fri, 30 Oct 2015 21:21:22 +0000 (UTC) Subject: Re: Compilation failure with WITH_DTRACE_TESTS on mips/mips and powerpc/powerpc; it's trying to compile a host object on mips/powerpc because MAKEOBJDIRPREFIX is incorrect DKIM-Filter: OpenDKIM Filter v2.9.2 mail.xzibition.com 4CFD5105E4 To: NGie Cooper , "Simon J. Gerraty" References: <653F31AA-982B-4026-BEF5-F608BCFFFD3A@gmail.com> Cc: Ed Maste , Mark Johnston , FreeBSD CURRENT From: Bryan Drewery Openpgp: id=F9173CB2C3AAEA7A5C8A1F0935D771BB6E4697CF; url=http://www.shatow.net/bryan/bryan2.asc Organization: FreeBSD Message-ID: <5633DF51.1070305@FreeBSD.org> Date: Fri, 30 Oct 2015 14:21:21 -0700 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.3.0 MIME-Version: 1.0 In-Reply-To: <653F31AA-982B-4026-BEF5-F608BCFFFD3A@gmail.com> Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="5krXj5lf1eJxV4m2xg1AM9l3JL3N3Iocm" X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 30 Oct 2015 21:21:30 -0000 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --5krXj5lf1eJxV4m2xg1AM9l3JL3N3Iocm Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On 10/30/2015 1:57 PM, NGie Cooper wrote: > Hi Bryan/Simon! > I tried doing buildworld on powerpc/powerpc with -DWITH_DTRACE_TESTS a= nd I ran into this linker issue below. I have no idea (yet) why it=E2=80=99= s trying to compile an x64 object when I specify powerpc/powerpc =E2=80=94= and more importantly, why is the object not being put in obj.powerpc? > I ran into the same issue on ref11-amd64.freebsd.org when I ran =E2=80= =9Cmake tinderbox". > Thanks! > -NGie >=20 Have you modified any of your local toolchain handling, or skipped CLANG_BOOTSTRAP? I would expect this to be failing much more broadly and there to be a lot more reports if there was a problem with buildworld cross compiling. > % make buildworld TARGET=3Dpowerpc TARGET_ARCH=3Dpowerpc > =E2=80=A6 > =3D=3D=3D> cddl/usr.sbin/dtrace/tests/common/json (all) > (cd /usr/src/svn/cddl/usr.sbin/dtrace/tests/common/json && DEPENDFILE=3D= =2Edepend.tst.usdt.exe NO_SUBDIR=3D1 make -f /usr/src/svn/cddl/usr.sbin/= dtrace/tests/common/json/Makefile _RECURSING_PROGS=3D PROG=3Dtst.usdt.ex= e ) > cc -O2 -pipe -fno-strict-aliasing -O2 -pipe -O0 -g -I/usr/obj/powerp= c.powerpc/usr/src/svn/cddl/usr.sbin/dtrace/tests/common/json -std=3Dgnu99= -fstack-protector-strong -c /usr/src/svn/cddl/contrib/opensolaris/cmd= /dtrace/test/tst/common/json/tst.usdt.c -o tst.usdt.o > dtrace -C -x nolibs -G -o usdt.o -s /usr/src/svn/cddl/contrib/opensolar= is/cmd/dtrace/test/tst/common/json/usdt.d tst.usdt.o > dtrace: failed to link script /usr/src/svn/cddl/contrib/opensolaris/cmd= /dtrace/test/tst/common/json/usdt.d: incorrect ELF machine type for objec= t file: tst.usdt.o > *** Error code 1 > $ find /usr/obj/usr/src/svn/ -name tst.usdt.o > /usr/obj/usr/src/svn/cddl/usr.sbin/dtrace/tests/common/json/tst.usdt.o > $ file /usr/obj/usr/src/svn/cddl/usr.sbin/dtrace/tests/common/json/tst.= usdt.o > /usr/obj/usr/src/svn/cddl/usr.sbin/dtrace/tests/common/json/tst.usdt.o:= ELF 64-bit LSB relocatable, x86-64, version 1 (FreeBSD), not stripped >=20 --=20 Regards, Bryan Drewery --5krXj5lf1eJxV4m2xg1AM9l3JL3N3Iocm Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQEcBAEBAgAGBQJWM99RAAoJEDXXcbtuRpfP7NsH/118B7ustqSvWnuJxWIC0Hyq DAzKu/iGVtpUGg5je356F1w9i7qtq9fN9PyKzPGN8/67i9xg13nsij+FNw6dWeuh qDQHfThQW40Oj+pfBn14zjve61pruEkZazkKAThtRYB/BxUaUsLAxzlpmudWH98G rwnYH1Wk4dx2YX02qc5fhD9kKab0LtLOdGJlUE1KZ2/+zc+7L9WzwNdR1JJnQQIM 8+wH0htL2rnNBZoN+WdlBGqO6ydJ7+ZExb4tBpiXKMZzuID7atpX//q56065mBqK tytOrKMnXQk/2yizv/HLrwvehHXHStxyfr5CSDHIRbe91yGJuCe7rQdT6SMMZ8k= =Rfte -----END PGP SIGNATURE----- --5krXj5lf1eJxV4m2xg1AM9l3JL3N3Iocm--