From owner-freebsd-current@freebsd.org Fri Oct 30 22:03:59 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 6ACFBA22D72 for ; Fri, 30 Oct 2015 22:03:59 +0000 (UTC) (envelope-from yaneurabeya@gmail.com) 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 4AC4019E0 for ; Fri, 30 Oct 2015 22:03:59 +0000 (UTC) (envelope-from yaneurabeya@gmail.com) Received: by mailman.ysv.freebsd.org (Postfix) id 47317A22D70; Fri, 30 Oct 2015 22:03:59 +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 2D945A22D6F for ; Fri, 30 Oct 2015 22:03:59 +0000 (UTC) (envelope-from yaneurabeya@gmail.com) Received: from mail-qg0-x231.google.com (mail-qg0-x231.google.com [IPv6:2607:f8b0:400d:c04::231]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id DD19119DF; Fri, 30 Oct 2015 22:03:58 +0000 (UTC) (envelope-from yaneurabeya@gmail.com) Received: by qgad10 with SMTP id d10so73128931qga.3; Fri, 30 Oct 2015 15:03:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; bh=RHf02r1RryH/DraqnmvnbVUoTe4KduVIe/TahJ5skDU=; b=U4YssHLLc2sPGjIJbHZIXqOfBgo8EEX98TLXSDxFjUAURnHR0+yu7qbXizA2THqlHD 1DfWy0WkgPTXjaxJI6tYx5rofPYscCktbLU1fZnakvwTWnnhDHrB0EWe0V+c/F5XnCJL ZugzsG5pM9F4QDeQCqh49OWMbBJLfjKLmtTWHqP+VSaa/Cov8veEFwZeiDZQsXVINVLM Pigr7FPBZ+GIsyIdps4XzRf+HNl1o1h9lic5rc8JIDljNOq1lWmsKQEVtG4bVupIF+6P 7WHL1DO+94sbLywvAjCfBDBSkGWkn+qc6VF1JpuM4tIlUzh/6jAI/QMoZOkY5asnteZF iarg== MIME-Version: 1.0 X-Received: by 10.140.128.16 with SMTP id 16mr13617268qha.54.1446242637745; Fri, 30 Oct 2015 15:03:57 -0700 (PDT) Received: by 10.140.88.209 with HTTP; Fri, 30 Oct 2015 15:03:57 -0700 (PDT) In-Reply-To: <5633E27C.6000101@FreeBSD.org> References: <653F31AA-982B-4026-BEF5-F608BCFFFD3A@gmail.com> <5633DF51.1070305@FreeBSD.org> <5633E27C.6000101@FreeBSD.org> Date: Fri, 30 Oct 2015 15:03:57 -0700 Message-ID: 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 From: NGie Cooper To: Bryan Drewery Cc: "Simon J. Gerraty" , Ed Maste , Mark Johnston , FreeBSD CURRENT Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable 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 22:03:59 -0000 On Fri, Oct 30, 2015 at 2:34 PM, Bryan Drewery wrote= : > On 10/30/2015 2:21 PM, Bryan Drewery wrote: >> On 10/30/2015 1:57 PM, NGie Cooper wrote: >>> Hi Bryan/Simon! >>> I tried doing buildworld on powerpc/powerpc with -DWITH_DTRACE_TES= TS and I ran into this linker issue below. I have no idea (yet) why it=E2= =80=99s 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 >>> >> >> 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.depend.tst.usdt.exe NO_SUBDIR=3D1 make -f /usr/src/svn/cddl/usr.sbin/d= trace/tests/common/json/Makefile _RECURSING_PROGS=3D PROG=3Dtst.usdt.exe ) >>> 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/dtr= ace/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 object = 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 >>> > > I ran a buildworld with TARGET=3Dpowerpc just a few days ago and it seeme= d > to be fine with PROGS. Here's a test object built via PROGS: > > ~/git/freebsd # find /usr/obj/powerpc.powerpc -name ld_library_pathfds.o > /usr/obj/powerpc.powerpc/root/git/freebsd/libexec/rtld-elf/tests/ld_libra= ry_pathfds.o > ~/git/freebsd # file > /usr/obj/powerpc.powerpc/root/git/freebsd/libexec/rtld-elf/tests/ld_libra= ry_pathfds.o > /usr/obj/powerpc.powerpc/root/git/freebsd/libexec/rtld-elf/tests/ld_libra= ry_pathfds.o: > ELF 32-bit MSB relocatable, PowerPC or cisco 4500, version 1 (FreeBSD), > not stripped > -rw-r--r-- 1 root wheel 21136 Oct 23 17:08 > /usr/obj/powerpc.powerpc/root/git/freebsd/libexec/rtld-elf/tests/ld_libra= ry_pathfds.o > > I see nothing special with the DTRACE_TESTS to change any of this. I could see there being a possible issue with my host VM, but I haven't modified my environment in ref11-amd64.freebsd.org at all. Could you please try reproing it there with your user? Thanks, -NGie