Date: Wed, 05 Jul 2017 13:46:24 +0000 From: bugzilla-noreply@freebsd.org To: freebsd-ports-bugs@FreeBSD.org Subject: [Bug 220481] math/R gcc-ar5 invokes ar from PATH not /usr/local/bin/ar Message-ID: <bug-220481-13@https.bugs.freebsd.org/bugzilla/>
next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D220481 Bug ID: 220481 Summary: math/R gcc-ar5 invokes ar from PATH not /usr/local/bin/ar Product: Ports & Packages Version: Latest Hardware: Any OS: Any Status: New Severity: Affects Some People Priority: --- Component: Individual Port(s) Assignee: jrm@freebsd.org Reporter: Trond.Endrestol@ximalas.info Flags: maintainer-feedback?(jrm@freebsd.org) Assignee: jrm@freebsd.org Created attachment 184075 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D184075&action= =3Dedit Typescript while building math/R, both without and with /usr/local/bin prepended to PATH This probably belongs to lang/gcc5, but building math/R made me aware of th= is issue. PATH is nominally set to: /sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:/root/bin This results in: /usr/local/bin/gcc-ar5 -cr libtre.a regcomp.o regerror.o regexec.o tre-ast.o tre-compile.o tre-match-approx.o tre-match-backtrack.o tre-match-parallel.o tre-mem.o tre-parse.o tre-stack.o xmalloc.o ar: unrecognized option `--plugin' usage: ar -d [-Tjsvz] archive file ... ar -m [-Tjsvz] archive file ... ar -m [-Tabijsvz] position archive file ... ar -p [-Tv] archive [file ...] ar -q [-TcDjsUvz] archive file ... ar -r [-TcDjsUuvz] archive file ... ar -r [-TabcDijsUuvz] position archive file ... ar -s [-jz] archive ar -t [-Tv] archive [file ...] ar -x [-CTouv] archive [file ...] ar -V gmake[6]: *** [Makefile:53: libtre.a] Error 64 gmake[6]: Leaving directory '/usr/ports/workdirs/usr/ports/math/R/work/R-3.4.1/src/extra/tre' In this case it's necessary to prepend /usr/local/bin to PATH. This way /usr/local/bin/gcc-ar5 invokes /usr/local/bin/ar with the required LTO plug= in, and not /usr/bin/ar who are unaware of --plugin and LTO in the first place. Maybe /usr/local/bin/gcc-ar5 should be hardcoded to run /usr/local/bin/ar a= nd not look it up using PATH. See attached typescript for further details. --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-220481-13>