On Monday, January 15, 2018 11:11:58 AM Antoine Brodin wrote: > On Thu, Jan 11, 2018 at 8:24 PM, John Baldwin <j...@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 _______________________________________________ svn-src-head@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/svn-src-head To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"