Bug 232271

Summary: /math/R does not compile in FreeBSD-11.2: can't find "as"
Product: Ports & Packages Reporter: Nicola Mingotti <nmingotti>
Component: Individual Port(s)Assignee: freebsd-ports-bugs (Nobody) <ports-bugs>
Status: Closed FIXED    
Severity: Affects Only Me CC: rhurlin, salvadore
Priority: ---    
Version: Latest   
Hardware: amd64   
OS: Any   

Description Nicola Mingotti 2018-10-15 07:09:05 UTC
Hi, 

I observe the port is not compiling in FreeBSD-11.2. 

This is an exceprpt if the output, it does not find "as".
But "as" is installed in in /usr/bin according to "whereis".

------ 
===>  Patching for gcc7-7.3.0_5
===>  Applying FreeBSD patches for gcc7-7.3.0_5
===>   gcc7-7.3.0_5 depends on file: /usr/local/bin/as - not found
===>   gcc7-7.3.0_5 depends on file: /usr/local/bin/as - not found
*** Error code 1
--------

bye
nicola
Comment 1 Lorenzo Salvadore freebsd_committer freebsd_triage 2018-10-15 12:31:06 UTC
Your problem is not with math/R but with lang/gcc7, which is a dependency of math/R.

And the port lang/gcc7 is not broken, but depends on devel/binutils which installs /usr/local/bin/as (different from /usr/bin/as).

Probably you had installed and deinstalled devel/binutils but you need to reinstall it. Hence those lines should fix your problem:

cd /usr/ports/devel/binutils
make clean install clean

And if you do not want to have devel/binutils registered as manually installed, finally you run the following line:

pkg set -A 1 devel/binutils.
Comment 2 Nicola Mingotti 2018-10-15 19:31:03 UTC

yes, you are right, sorry, the problem was related
to gcc; for some reasons it did not install binutils.

bye
nicola