From owner-freebsd-current@freebsd.org Sun Nov 1 18:19:20 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 8F291A24156 for ; Sun, 1 Nov 2015 18:19:20 +0000 (UTC) (envelope-from sjg@juniper.net) 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 480A51A4A for ; Sun, 1 Nov 2015 18:19:20 +0000 (UTC) (envelope-from sjg@juniper.net) Received: by mailman.ysv.freebsd.org (Postfix) id 44AC1A24155; Sun, 1 Nov 2015 18:19:20 +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 43464A24154 for ; Sun, 1 Nov 2015 18:19:20 +0000 (UTC) (envelope-from sjg@juniper.net) Received: from na01-bn1-obe.outbound.protection.outlook.com (mail-bn1bn0102.outbound.protection.outlook.com [157.56.110.102]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (Client CN "mail.protection.outlook.com", Issuer "MSIT Machine Auth CA 2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 1C7B11A46; Sun, 1 Nov 2015 18:19:18 +0000 (UTC) (envelope-from sjg@juniper.net) Received: from BL2PR05CA0038.namprd05.prod.outlook.com (10.255.226.38) by BL2PR05MB050.namprd05.prod.outlook.com (10.255.228.146) with Microsoft SMTP Server (TLS) id 15.1.312.18; Sun, 1 Nov 2015 18:19:16 +0000 Received: from BN1AFFO11OLC001.protection.gbl (2a01:111:f400:7c10::152) by BL2PR05CA0038.outlook.office365.com (2a01:111:e400:c04::38) with Microsoft SMTP Server (TLS) id 15.1.312.18 via Frontend Transport; Sun, 1 Nov 2015 18:19:16 +0000 Authentication-Results: spf=softfail (sender IP is 66.129.239.17) smtp.mailfrom=juniper.net; freebsd.org; dkim=none (message not signed) header.d=none;freebsd.org; dmarc=none action=none header.from=juniper.net; Received-SPF: SoftFail (protection.outlook.com: domain of transitioning juniper.net discourages use of 66.129.239.17 as permitted sender) Received: from p-emfe01a-sac.jnpr.net (66.129.239.17) by BN1AFFO11OLC001.mail.protection.outlook.com (10.58.53.72) with Microsoft SMTP Server (TLS) id 15.1.318.9 via Frontend Transport; Sun, 1 Nov 2015 18:19:15 +0000 Received: from magenta.juniper.net (172.17.27.123) by p-emfe01a-sac.jnpr.net (172.24.192.21) with Microsoft SMTP Server (TLS) id 14.3.123.3; Sun, 1 Nov 2015 10:19:14 -0800 Received: from chaos.jnpr.net (chaos.jnpr.net [172.21.16.28]) by magenta.juniper.net (8.11.3/8.11.3) with ESMTP id tA1IJDD58162; Sun, 1 Nov 2015 10:19:13 -0800 (PST) (envelope-from sjg@juniper.net) Received: from chaos (localhost [IPv6:::1]) by chaos.jnpr.net (Postfix) with ESMTP id 6FEA8580A9; Sun, 1 Nov 2015 10:19:13 -0800 (PST) To: NGie Cooper CC: Bryan Drewery , Ed Maste , "Mark Johnston" , FreeBSD CURRENT , 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 In-Reply-To: <5AEBE041-4AAC-49F4-BE34-C92EBD736092@gmail.com> References: <653F31AA-982B-4026-BEF5-F608BCFFFD3A@gmail.com> <6585.1446248620@chaos> <9192D4AA-FCF1-4841-89FD-A4E5D93C6941@gmail.com> <3957F6B6-275D-4A63-8406-A5AAECF3F131@gmail.com> <5AEBE041-4AAC-49F4-BE34-C92EBD736092@gmail.com> Comments: In-reply-to: NGie Cooper message dated "Sat, 31 Oct 2015 15:37:18 -0700." From: "Simon J. Gerraty" X-Mailer: MH-E 8.6; nmh 1.6; GNU Emacs 24.5.1 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Date: Sun, 1 Nov 2015 10:19:13 -0800 Message-ID: <12876.1446401953@chaos> X-EOPAttributedMessage: 0 X-Microsoft-Exchange-Diagnostics: 1; BN1AFFO11OLC001; 1:RXlYSu+ojgwmdfbZtlx9ez3G1z+ydSdyFHcetrFuFILF6oxuK0tS3F2usccPjIUCTILgs0JeMvs1cRcrAaue1xmAcK1N/DBSSC6qTEOuQVRWBYhnF3QMPW6cYhIJcUk4tYzDGUZkMTdUbNSmQV3jdp1hgj8bdlQ5aSGii8pCg8d7dwXQmXFvWn++laPiNGai6TUERpHXrynDOqdjpW0quh05X3ZS4vO4+K+M9vQ2abj5cD/UPLG4goBTM5dwBhdkTWptdfT+RNQQvw85TssrX6Enp7uPtuI7G6wbRwtiT5jldWHJzsb8zC7H0lVMGAbG7bMMDMVxbvd1jOszoXopGa3XukSHUvyoO0uLiXGrdS7k7d+bb2rIY2+PFRzPuMeP X-Forefront-Antispam-Report: CIP:66.129.239.17; CTRY:US; IPV:NLI; EFV:NLI; SFV:NSPM; SFS:(10019020)(6009001)(2980300002)(189002)(199003)(76104003)(24454002)(87936001)(6806005)(1411001)(77096005)(23676002)(2950100001)(5007970100001)(50226001)(106466001)(86362001)(69596002)(19580405001)(105596002)(189998001)(110136002)(107886002)(4001430100002)(5001960100002)(19580395003)(47776003)(57986006)(93886004)(50466002)(92566002)(76506005)(97736004)(76176999)(50986999)(33716001)(81156007)(11100500001)(5008740100001)(5001920100001)(117636001)(62816006)(42262002)(460985005); DIR:OUT; SFP:1102; SCL:1; SRVR:BL2PR05MB050; H:p-emfe01a-sac.jnpr.net; FPR:; SPF:SoftFail; PTR:InfoDomainNonexistent; MX:1; A:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BL2PR05MB050; 2:xo372bsxbAEj4tJTWjL0eiKV6YIb3tnOXbrE/mj8WLIKVJeE4qXp8nj6zMjcY+ODKZ7XzXL9aRPwtvJfOzLb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N0w3hbaenigg/Pe7B3hHyhpYP3IxNM3PaHitPzbyvFlXISVoi4IJgz0MWunn/FfT/zeO/K3o+ORUCG3obhkS70dR4nouxhDOKj/XPlKQi0hHaDSo7uSpUFa/6XRn4Py1NuCtRMno; 4:46+asi7Z/7rK+TDmn0gfk23zDSzkcBWHjuROtv1x3sfeWDpee99tbipOkWYxNNLrBKOm9QJcfd+hPn2P++UwT/jZhVuUPuBWK+B2gW9X6tV6ApHKhQpjx2BBFkwo7OkGkMjk2eUzmd2CZdprjGOelZS3GqpphfGzKgs1pijn3ofWFjbT5kuITaPIKyeD3HPnEFNTiFm16Pgdf008on3ttwTkN/dFOgk8A4iHVz5FQmUW9oH6i/STlKc65gn9P+45BCDsZn0hvZJChYWri3VMnEGAZ+91MiGwXZdmJXAwW0ud3dlB9U3P2Y03JCgXPk63OVwalUhdrxkMHLLGuq+A452pm+WoGascoj0Xm1TOd3KHfaym6KYQarB2WvvuBwcX X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(601004)(2401047)(520078)(5005006)(8121501046)(10201501046)(3002001); SRVR:BL2PR05MB050; BCL:0; PCL:0; RULEID:; SRVR:BL2PR05MB050; X-Forefront-PRVS: 07473990A5 X-Microsoft-Exchange-Diagnostics: =?utf-8?B?MTtCTDJQUjA1TUIwNTA7MjM6QTZmcytSSkxqbk9LaWk4dmQ3SElySklLOU9L?= =?utf-8?B?RGtjN0FvZU85cmVPOXJkMHZxWDZVUGtXZ0ppRVNkNmNlSUx5V3B1bTRMZjdB?= =?utf-8?B?UW1WMXMvRGl6ei9IOEhqTzM1MXBYeDRsemlxa2JRRTA1V3o0S1UvdzJxZTNr?= =?utf-8?B?R3V1SzN0a2plOFVDVmtOM2M1S3RkY0pQUGhjQ3lqaS8zYW4zNmlnbVBlY3Np?= =?utf-8?B?NFM4QlhvN3puc0Z6UGtDRnJFd29ld1JpQWJVbnBYTkJH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M1eUF1TGxDNW96bjFPZC93Q2tk?= =?utf-8?B?TWhVNFRIcm5wWmRFY2x5T0VGc2dob2h1cXpuT1hBekd1dk5Wa2IzellBMHVV?= =?utf-8?B?QllaWk9lRmM4MTFJbUwxY3Z6aUY1M0JGcU5BUTRMRy9mL285NXVEcFpLSlBT?= =?utf-8?B?NDk1c0NqV0thbG9Dc1BkWlRwNTNZL2kxNFFCNlpiVHRETnUzTnZHSllyeXMx?= =?utf-8?B?aEo5RFZSemM0YkRLN1dxWkl5KzQ3OC8rTTlWclM1RXVCNmhRa0U3cmUrUitX?= =?utf-8?B?UERNdlFOYmpTcE9MK1NLVkR6TTNMbXZBcWZ3Q29jaHhmbmxNWW1tWGl0Zmp4?= =?utf-8?B?WGk4YmR4WTB5a2JKNldOV3Fja1hKTU44RW8rMGZ6ejJDb01KeHdhY0VPMmd5?= =?utf-8?B?dTUyanR1QTZ5bVQ0RVdmNmdVS1RwZz09?= X-Microsoft-Exchange-Diagnostics: 1; BL2PR05MB050; 5:lcWrx84KxPxfu5524lNii4WeXUiJrk2ZW58IPlcyLfJyeAk3NGcSXf7qRvPsVBqRESUpwRM0zQCq5hYB2edUhM3VkzWAhvQZFICBk5TgKYzqEtLXY0CJGOw1lRkHFgKOn44tn071tL2jZDmCB+RIUg==; 24:6lT22lGUcEmejv/4meJaNSEYxyta0QXiUGwbSybQdR4uFIjlspw7MLhn3uJgQDrVLy2mNbovqOvR6Nn2SC9uckWDTwnddUTs0Bcewm5Pn5Y=; 20:p9iQ+qPUJQWM46hvrG0qC3MTthSgsMOo5BzksTu3x/N1y0c5V7INyLYSsDJx1fK51MPxyZYIYG17MEaDH9INYQ== SpamDiagnosticOutput: 1:23 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: juniper.net X-MS-Exchange-CrossTenant-OriginalArrivalTime: 01 Nov 2015 18:19:15.5880 (UTC) X-MS-Exchange-CrossTenant-Id: bea78b3c-4cdb-4130-854a-1d193232e5f4 X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=bea78b3c-4cdb-4130-854a-1d193232e5f4; Ip=[66.129.239.17]; Helo=[p-emfe01a-sac.jnpr.net] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BL2PR05MB050 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: Sun, 01 Nov 2015 18:19:20 -0000 NGie Cooper wrote: > And here=E2=80=99s the real issue =E2=80=94 .PATH is completely broken wh= en > TARGET/TARGET_ARCH are specified as explicit values: It would help if you could indicate what you think the right value should be. =20 > $ env MAKEOBJDIRPREFIX=3D/scratch/tmp/ngie/obj/ make buildenv TARGET=3Dpo= werpc TARGET_ARCH=3Dpowerpc > Entering world for powerpc:powerpc > $ cd cddl/usr.sbin/dtrace/tests/common/json > $ make -V.OBJDIR > /scratch/tmp/ngie/obj//powerpc.powerpc/scratch/tmp/ngie/svn/cddl/usr.sbin= /dtrace/tests/common/json > $ make -VMAKEOBJDIRPREFIX > /scratch/tmp/ngie/obj//powerpc.powerpc > $ make depend > (cd /scratch/tmp/ngie/svn/cddl/usr.sbin/dtrace/tests/common/json && DEPE= NDFILE=3D.depend.tst.usdt.exe NO_SUBDIR=3D1 make -f /scratch/tmp/ngie/svn/= cddl/usr.sbin/dtrace/tests/common/json/Makefile _RECURSING_PROGS=3D PROG= =3Dtst.usdt.exe depend) If you are doing this on current (ie MAKE_VERSION=3D=3D20151020), adding -w would be useful, since will report entering src and obj dirs. > $ make all > (cd /scratch/tmp/ngie/svn/cddl/usr.sbin/dtrace/tests/common/json && DEPE= NDFILE=3D.depend.tst.usdt.exe NO_SUBDIR=3D1 make -f /scratch/tmp/ngie/svn/= cddl/usr.sbin/dtrace/tests/common/json/Makefile _RECURSING_PROGS=3D PROG= =3Dtst.usdt.exe ) > dtrace -C -x nolibs -G -o usdt.o -s /scratch/tmp/ngie/svn/cddl/contrib/op= ensolaris/cmd/dtrace/test/tst/common/json/usdt.d tst.usdt.o > dtrace: failed to link script /scratch/tmp/ngie/svn/cddl/contrib/opensola= ris/cmd/dtrace/test/tst/common/json/usdt.d: incorrect ELF machine type for = object file: tst.usdt.o > Stop. > make[2]: stopped in /scratch/tmp/ngie/svn/cddl/usr.sbin/dtrace/tests/comm= on/json > $ make -V.PATH what dir do you execute that in? I'm *guessing* cddl/usr.sbin/dtrace/tests/common/json. It's actually quite useful when reporting/describing problems to do everything from src eg. make -w -C cddl/usr.sbin/dtrace/tests/common/json leaves very little room for confusion. > . /scratch/tmp/ngie/svn/cddl/usr.sbin/dtrace/tests/common/json /scratch/t= mp/ngie/svn/cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/json What else do you expect in .PATH? I didn't see anything in the Makefile or ../../Makefile.inc1 to add anything else You may also find it useful to set MAKE_PRINT_VAR_ON_ERROR to a list of variables - that will be reported when make dies. eg. MAKE_PRINT_VAR_ON_ERROR=3D".CURDIR .OBJDIR MACHINE MACHINE_ARCH .PATH"