math/R doesn't compile

Otacílio otacilio.neto at bsd.com.br
Tue Sep 12 10:12:48 UTC 2017


Em 11/09/2017 20:07, Grzegorz Junka escreveu:
> ../extra/tre/libtre.a: error adding symbols: Malformed archive
> collect2: error: ld returned 1 exit status
> gmake[4]: *** [Makefile:177: libR.so] Error 1
> gmake[4]: Leaving directory 
> '/wrkdirs/usr/ports/math/R/work/R-3.4.1/src/main'
> gmake[3]: *** [Makefile:135: R] Error 2
> gmake[3]: Leaving directory 
> '/wrkdirs/usr/ports/math/R/work/R-3.4.1/src/main'
> gmake[2]: *** [Makefile:28: R] Error 1
> gmake[2]: Leaving directory '/wrkdirs/usr/ports/math/R/work/R-3.4.1/src'
> gmake[1]: *** [Makefile:61: R] Error 1
> gmake[1]: Leaving directory '/wrkdirs/usr/ports/math/R/work/R-3.4.1'
>
> Which option may be responsible for this problem? I can only set libr 
> to be compiled or not.
>
> GrzegorzJ
>
> _______________________________________________ 

Maybe this is a local problem on your system because I have just 
finished a build and install of math/R on my machine (FreeBSD 11.1 amd64 
ports Revision: 449667, default R options):

install  -m 0644 "./dir" "/usr/ports/math/R/work/stage/usr/local/info"
installing R info pages ...
updating '/usr/local/info/dir' ...
gmake[3]: Leaving directory '/usr/ports/math/R/work/R-3.4.1/doc/manual'
gmake[2]: Leaving directory '/usr/ports/math/R/work/R-3.4.1'
====> Compressing man pages (compress-man)
===>   Installing ldconfig configuration file
====> Running Q/A tests (stage-qa)
root at nostromo:/usr/ports/math/R # make deinstall install
===>  Deinstalling for R
===>   Deinstalling R-3.4.0_2
Updating database digests format: 100%
Checking integrity... done (0 conflicting)
Deinstallation has been requested for the following 1 packages (of 0 
packages in the universe):

Installed packages to be REMOVED:
     R-3.4.0_2

Number of packages to be removed: 1

The operation will free 61 MiB.
[1/1] Deinstalling R-3.4.0_2...
[1/1] Deleting files for R-3.4.0_2: 100%
===>  Installing for R-3.4.1_7
===>   R-3.4.1_7 depends on executable: gmake - found
===>   R-3.4.1_7 depends on executable: wget - found
===>   R-3.4.1_7 depends on executable: gfortran6 - found
===>   R-3.4.1_7 depends on package: ghostscript9-agpl-base>=9.16_2 - found
===>   R-3.4.1_7 depends on file: /usr/local/libdata/pkgconfig/ice.pc - 
found
===>   R-3.4.1_7 depends on file: /usr/local/libdata/pkgconfig/sm.pc - found
===>   R-3.4.1_7 depends on file: /usr/local/libdata/pkgconfig/x11.pc - 
found
===>   R-3.4.1_7 depends on file: /usr/local/libdata/pkgconfig/xext.pc - 
found
===>   R-3.4.1_7 depends on file: /usr/local/libdata/pkgconfig/xmu.pc - 
found
===>   R-3.4.1_7 depends on file: 
/usr/local/libdata/pkgconfig/xscrnsaver.pc - found
===>   R-3.4.1_7 depends on file: /usr/local/libdata/pkgconfig/xt.pc - found
===>   R-3.4.1_7 depends on executable: indexinfo - found
===>   R-3.4.1_7 depends on shared library: libcurl.so - found 
(/usr/local/lib/libcurl.so)
===>   R-3.4.1_7 depends on shared library: libpcre.so - found 
(/usr/local/lib/libpcre.so)
===>   R-3.4.1_7 depends on shared library: libicui18n.so - found 
(/usr/local/lib/libicui18n.so)
===>   R-3.4.1_7 depends on shared library: libpng.so - found 
(/usr/local/lib/libpng.so)
===>   R-3.4.1_7 depends on shared library: libtiff.so - found 
(/usr/local/lib/libtiff.so)
===>   R-3.4.1_7 depends on shared library: libreadline.so.7 - found 
(/usr/local/lib/libreadline.so.7)
===>   R-3.4.1_7 depends on shared library: libintl.so - found 
(/usr/local/lib/libintl.so)
===>   R-3.4.1_7 depends on shared library: libjpeg.so - found 
(/usr/local/lib/libjpeg.so)
===>   R-3.4.1_7 depends on shared library: libtk86.so - found 
(/usr/local/lib/libtk86.so)
===>   R-3.4.1_7 depends on shared library: libtcl86.so - found 
(/usr/local/lib/libtcl86.so)
===>   R-3.4.1_7 depends on shared library: libcairo.so - found 
(/usr/local/lib/libcairo.so)
===>   R-3.4.1_7 depends on shared library: libglib-2.0.so - found 
(/usr/local/lib/libglib-2.0.so)
===>   R-3.4.1_7 depends on shared library: libintl.so - found 
(/usr/local/lib/libintl.so)
===>   R-3.4.1_7 depends on shared library: libpango-1.0.so - found 
(/usr/local/lib/libpango-1.0.so)
===>  Checking if R already installed
===>   Registering installation for R-3.4.1_7
Installing R-3.4.1_7...
========================================================================
On 11.1 and later, there is a problem downloading R packages when
gfortran is chosen as the fortran compiler.

Use either of these workarounds until a permanent solution is found.

1. If you are on an amd64 system, you can use flang as the fortran
    compiler.

2. If you choose gfortran as the fortran compiler, you can add

    options(download.file.method="wget")

    to ~/.Rprofile followed by a newline.

Details: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=221127
========================================================================



More information about the freebsd-ports mailing list