Current-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Cannot cross-build sparc64 on Darwin



On Monday 24 September 2012 16:07:42 Adam Ciarciński wrote:
> Hello,
> 
> I am having trouble cross-building NetBSD-current-sparc64 on Darwin.
> With Clang enabled, I got:
> 
> [lib/csu]
> error: unknown target triple 'sparc64--netbsd', please use -triple or -arch
> error: unknown target triple 'sparc64--netbsd', please use -triple or -arch
> error: unknown target triple 'sparc64--netbsd', please use -triple or -arch
> 
> With GCC:
> 
> [lib/libc]
> In file included from
> /Users/adam/dist/src/obj.sparc64/destdir.sparc64/usr/include/rpc/rpc.h:75:
> 0, from /Users/adam/dist/src/lib/libc/compat/rpc/compat_pmap_rmtcall.c:50:
> /Users/adam/dist/src/obj.sparc64/destdir.sparc64/usr/include/rpc/rpcb_clnt
> .h:68:17: error: expected '=', ',', ';', 'asm' or '__attribute__' before
> '*' token In file included from
> /Users/adam/dist/src/lib/libc/compat/rpc/compat_rpcb.c:50:0:
> /Users/adam/dist/src/obj.sparc64/destdir.sparc64/usr/include/rpc/rpcb_clnt
> .h:68:17: error: expected '=', ',', ';', 'asm' or '__attribute__' before
> '*' token

Try cleaning your destdir and your src/include objdir. I had this problem when 
I did a make includes with MKGCC=no. The rpc{,svc} includes don't get created 
properly as 

TOOL_RPCGEN=  RPCGEN_CPP=${CPP:Q} ${TOOLDIR}/bin/${_TOOL_PREFIX}rpcgen

ends up with RPCGEN_CPP=false

Nick


Home | Main Index | Thread Index | Old Index