Hi Patrick, pkgsrc-users@, On 16/11/2017 14:34, Patrick Welche wrote: > ERROR: Makefile:13: Unknown tool "ar". What did you do to encounter this error? Any chance you have PKGSRC_MKREPRO set to "yes"? (or really, set and not to "no") > and I see > > .if !empty(USE_CROSS_COMPILE:M[yY][eE][sS]) > TOOLS_CREATE+= ar Where are you looking? "grep -nrFB 1 TOOLS_CREATE mk" does not show anything with USE_CROSS_COMPILE. I suppose you mean mk/tools/tools.NetBSD.mk: > 148 .if !empty(USE_CROSS_COMPILE:M[yY][eE][sS]) > 149 . for _t_ in ar as ld nm objcopy objdump ranlib readelf strip > 150 TOOLS_PATH.${MACHINE_GNU_PLATFORM}-${_t_}?= \ > 151 ${TOOLDIR}/bin/${MACHINE_GNU_PLATFORM}-${_t_} > 152 TOOLS_CREATE+= ${MACHINE_GNU_PLATFORM}-${_t_} > 153 . endfor This really does, for ar: TOOLS_CREATE+= ${MACHINE_GNU_PLATFORM}-ar > so should something be added in the non-cross compile case to make > ar exist whether or not USE_CROSS_COMPILE is true? I had a look at this recently (while working on PKGSRC_MKREPRO) and it seemed to me that nothing ever creates ar(1) as a tool, regardless of cross-compilation being in use. The default ar(1) from the system is always used. Cheers, -- khorben
Attachment:
signature.asc
Description: OpenPGP digital signature