From owner-freebsd-current@freebsd.org Sat Oct 31 21:37:13 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 7278FA2282D for ; Sat, 31 Oct 2015 21:37:13 +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 4EE801C5E for ; Sat, 31 Oct 2015 21:37:13 +0000 (UTC) (envelope-from yaneurabeya@gmail.com) Received: by mailman.ysv.freebsd.org (Postfix) id 4E065A2282C; Sat, 31 Oct 2015 21:37:13 +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 4DA18A2282B for ; Sat, 31 Oct 2015 21:37:13 +0000 (UTC) (envelope-from yaneurabeya@gmail.com) Received: from mail-pa0-x22c.google.com (mail-pa0-x22c.google.com [IPv6:2607:f8b0:400e:c03::22c]) (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 1CE741C5D; Sat, 31 Oct 2015 21:37:13 +0000 (UTC) (envelope-from yaneurabeya@gmail.com) Received: by pacfv9 with SMTP id fv9so111906157pac.3; Sat, 31 Oct 2015 14:37:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=content-type:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=/WihuWzD3QIR6vJw15Fb5+1KMG5spqYyWzwp5jg57RE=; b=AGVFDhS/yOg0QTm5WSMovfPZnm3rwaRieKL4vo56NO9FlIPQ1G5pupaDhWyDyLt10D V+3v9JpAOxsOBsvCAxQUfIYSsR3usyvvBD1yqGvhzsncsNtKnvtZTxqOouzPvGausGv5 DuXByhyvj2dVJOnxyaYgybzymsZNpM3cX9Vj+NcXmC7BOflwar92eIeHbxFD4YKfxgBW 6Mwdq7q5u4HdPXwsF7CusLrJQloaooq3QFKiHjZJU87VEjviKasl6WBuQH40ftYRD+vo RRlTvNUcgAWRekwANzzqIyF9unFFDrIRFDBbuDkHM4isF1IHJ4WF+E6tClD/vjp97fXm xjwg== X-Received: by 10.68.201.200 with SMTP id kc8mr16882638pbc.18.1446327432749; Sat, 31 Oct 2015 14:37:12 -0700 (PDT) Received: from [192.168.20.7] (c-24-16-212-205.hsd1.wa.comcast.net. [24.16.212.205]) by smtp.gmail.com with ESMTPSA id k10sm15479998pbq.78.2015.10.31.14.37.11 (version=TLSv1/SSLv3 cipher=OTHER); Sat, 31 Oct 2015 14:37:12 -0700 (PDT) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2104\)) 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 In-Reply-To: <9192D4AA-FCF1-4841-89FD-A4E5D93C6941@gmail.com> Date: Sat, 31 Oct 2015 14:37:10 -0700 Cc: Bryan Drewery , Ed Maste , Mark Johnston , FreeBSD CURRENT Content-Transfer-Encoding: quoted-printable Message-Id: <3957F6B6-275D-4A63-8406-A5AAECF3F131@gmail.com> References: <653F31AA-982B-4026-BEF5-F608BCFFFD3A@gmail.com> <6585.1446248620@chaos> <9192D4AA-FCF1-4841-89FD-A4E5D93C6941@gmail.com> To: "Simon J. Gerraty" X-Mailer: Apple Mail (2.2104) 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: Sat, 31 Oct 2015 21:37:13 -0000 > On Oct 30, 2015, at 23:51, NGie Cooper wrote: >=20 >=20 >> On Oct 30, 2015, at 16:43, Simon J. Gerraty wrote: >>=20 >> NGie Cooper wrote: >>> I tried doing buildworld on powerpc/powerpc with = -DWITH_DTRACE_TESTS 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". >>=20 >> Is it possible that the file is left over from a previous build (of = amd64?) >>=20 >> Does your log show it being built? >>=20 >>=20 >>> dtrace -C -x nolibs -G -o usdt.o -s = /usr/src/svn/cddl/contrib/opensolaris/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 >=20 > Still running into issues on ref11-amd64: >=20 > cc1: error: unrecognized command line option "-m64" > dtrace: failed to compile script = /scratch/tmp/ngie/svn/cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/= json/usdt.d: Preprocessor failed to process input program > --- usdt.h --- > *** [usdt.h] Error code 1 >=20 > Let=E2=80=99s see what happens if I use make buildenv =E2=80=A6 Deleting the lines that pass -m32/-m64 gets me back to the same point I = was at before: dtrace: failed to link script = /scratch/tmp/ngie/svn/cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/= json/usdt.d: incorrect ELF machine type for object file: tst.usdt.o --- usdt.o --- *** [usdt.o] Error code 1 I=E2=80=99ll need to check .PATH, but I think it=E2=80=99s picking up = the host copy by accident: $ find ../obj/ -name tst.usdt.o | xargs file = ../obj/arm.armv6hf/scratch/tmp/ngie/svn/cddl/usr.sbin/dtrace/tests/common/= json/tst.usdt.o: ELF 32-bit LSB relocatable, ARM, EABI5 version 1 = (FreeBSD), not stripped = ../obj/arm.arm/scratch/tmp/ngie/svn/cddl/usr.sbin/dtrace/tests/common/json= /tst.usdt.o: ELF 32-bit LSB relocatable, ARM, EABI5 version 1 = (FreeBSD), not stripped = ../obj/arm.armeb/scratch/tmp/ngie/svn/cddl/usr.sbin/dtrace/tests/common/js= on/tst.usdt.o: ELF 32-bit MSB relocatable, ARM, EABI5 version 1 = (FreeBSD), not stripped = ../obj/powerpc.powerpc/scratch/tmp/ngie/svn/cddl/usr.sbin/dtrace/tests/com= mon/json/tst.usdt.o: ELF 32-bit MSB relocatable, PowerPC or cisco = 4500, version 1 (FreeBSD), not stripped = ../obj/arm.armv6/scratch/tmp/ngie/svn/cddl/usr.sbin/dtrace/tests/common/js= on/tst.usdt.o: ELF 32-bit LSB relocatable, ARM, EABI5 version 1 = (FreeBSD), not stripped = ../obj/scratch/tmp/ngie/svn/cddl/usr.sbin/dtrace/tests/common/json/tst.usd= t.o: ELF 64-bit LSB relocatable, x86-64, version 1 = (FreeBSD), not stripped = ../obj/i386.i386/scratch/tmp/ngie/svn/cddl/usr.sbin/dtrace/tests/common/js= on/tst.usdt.o: ELF 32-bit LSB relocatable, Intel 80386, version = 1 (FreeBSD), not stripped = ../obj/pc98.i386/scratch/tmp/ngie/svn/cddl/usr.sbin/dtrace/tests/common/js= on/tst.usdt.o: ELF 32-bit LSB relocatable, Intel 80386, version = 1 (FreeBSD), not stripped = ../obj/powerpc.powerpc64/scratch/tmp/ngie/svn/cddl/usr.sbin/dtrace/tests/c= ommon/json/tst.usdt.o: ELF 64-bit MSB relocatable, 64-bit PowerPC or = cisco 7500, version 1 (FreeBSD), not stripped = ../obj/arm64.aarch64/scratch/tmp/ngie/svn/cddl/usr.sbin/dtrace/tests/commo= n/json/tst.usdt.o: ELF 64-bit LSB relocatable, ARM aarch64, version = 1 (FreeBSD), not stripped=