From owner-svn-src-all@freebsd.org Mon Jan 15 18:38:47 2018 Return-Path: Delivered-To: svn-src-all@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 C03C2E6E04F; Mon, 15 Jan 2018 18:38:47 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from mail.baldwin.cx (bigwig.baldwin.cx [96.47.65.170]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 9CE75680C5; Mon, 15 Jan 2018 18:38:47 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from ralph.baldwin.cx (astound-66-234-199-215.ca.astound.net [66.234.199.215]) by mail.baldwin.cx (Postfix) with ESMTPSA id 1BC3A10A7DB; Mon, 15 Jan 2018 13:38:40 -0500 (EST) From: John Baldwin To: Antoine Brodin Cc: src-committers , svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: Re: svn commit: r327841 - head Date: Mon, 15 Jan 2018 10:37:58 -0800 Message-ID: <3014002.O2kdJrrLOE@ralph.baldwin.cx> User-Agent: KMail/4.14.10 (FreeBSD/11.1-STABLE; KDE/4.14.30; amd64; ; ) In-Reply-To: References: <201801111924.w0BJOicg089230@repo.freebsd.org> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.4.3 (mail.baldwin.cx); Mon, 15 Jan 2018 13:38:40 -0500 (EST) X-Virus-Scanned: clamav-milter 0.99.2 at mail.baldwin.cx X-Virus-Status: Clean X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 15 Jan 2018 18:38:47 -0000 On Monday, January 15, 2018 11:11:58 AM Antoine Brodin wrote: > On Thu, Jan 11, 2018 at 8:24 PM, John Baldwin wrote: > > Author: jhb > > Date: Thu Jan 11 19:24:44 2018 > > New Revision: 327841 > > URL: https://svnweb.freebsd.org/changeset/base/327841 > > > > Log: > > Allow MIPS lib32 to build with clang. > > > > Don't try to set -march as clang doesn't permit use of the O32 ABI > > with newer CPU microarchitectures like 'mips3'. In addition, clang > > doesn't permit the O32 ABI with the default N64 target, so use an > > explicit O32 -target for clang. > > > > Sponsored by: DARPA / AFRL > > > > Modified: > > head/Makefile.libcompat > > > Hi, > > This seems to break buildworld for mips/mips64 > > > --- includes_subdir_include/rpc --- > RPCGEN_CPP=cpp\ -DCOMPAT_32BIT\ -target\ mips-unknown-freebsd12.0\ > -mabi=32\ \ -L/usr/obj/usr/local/poudriere/jails/head-mips64/usr/src/mips.mips64/obj-lib32/tmp/usr/lib32\ > \ --sysroot=/usr/obj/usr/local/poudriere/jails/head-mips64/usr/src/mips.mips64/obj-lib32/tmp\ > \ -B/usr/obj/usr/local/poudriere/jails/head-mips64/usr/src/mips.mips64/tmp/usr/bin\ > -B/usr/obj/usr/local/poudriere/jails/head-mips64/usr/src/mips.mips64/obj-lib32/tmp/usr/lib32\ > -isystem\ /usr/obj/usr/local/poudriere/jails/head-mips64/usr/src/mips.mips64/obj-lib32/tmp/usr/include > rpcgen -C -h -DWANT_NFS3 > /usr/local/poudriere/jails/head-mips64/usr/src/include/rpc/rpcb_prot.x > -o rpcb_prot.h > cpp: mips-unknown-freebsd12.0: No such file or directory > cpp: warning: '-x c' after last input file has no effect > cpp: unrecognized option '-target' > cpp: No input files specified > *** [rpcb_prot.h] Error code 1 Yes, Bryan is working on a fix. The issue has to do with how to properly detect which compiler is used. If Bryan isn't able to fix it soon I'll either revert or add a clunky workaround. (If you check for GCC first rather than clang first which is what Makefile.inc1 does, then you happen to avoid the bug with X_COMPILER_TYPE being set) -- John Baldwin