Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 15 Jan 2018 10:37:58 -0800
From:      John Baldwin <jhb@freebsd.org>
To:        Antoine Brodin <antoine@freebsd.org>
Cc:        src-committers <src-committers@freebsd.org>, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   Re: svn commit: r327841 - head
Message-ID:  <3014002.O2kdJrrLOE@ralph.baldwin.cx>
In-Reply-To: <CAALwa8kY4839w5wtVLWaYv86VUxJN-X8xsXuezMCbfPjatZYFw@mail.gmail.com>
References:  <201801111924.w0BJOicg089230@repo.freebsd.org> <CAALwa8kY4839w5wtVLWaYv86VUxJN-X8xsXuezMCbfPjatZYFw@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Monday, January 15, 2018 11:11:58 AM Antoine Brodin wrote:
> On Thu, Jan 11, 2018 at 8:24 PM, John Baldwin <jhb@freebsd.org> 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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3014002.O2kdJrrLOE>