Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 24 Sep 2017 13:01:07 +0000
From:      Grzegorz Junka <list1@gjunka.com>
To:        freebsd-ports@freebsd.org
Subject:   Re: math/R doesn't compile
Message-ID:  <b6b29609-14c1-a818-7b44-e9dd6c70c566@gjunka.com>
In-Reply-To: <0a193599-cb6e-2649-8b4f-33b6407cca32@bsd.com.br>
References:  <c36758c2-52ca-7e9d-e6bd-def8198a9598@gjunka.com> <0a193599-cb6e-2649-8b4f-33b6407cca32@bsd.com.br>

next in thread | previous in thread | raw e-mail | index | archive | help
Looks like the port doesn't compile when LTO is set:

OPTIONS_FILE_SET+=LTO

I have raised a new bug as I couldn't find one mentioning this issue yet:

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

GrzegorzJ


On 12/09/2017 10:12, OtacĂ­lio wrote:
> 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@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
> ========================================================================
>
> _______________________________________________
> freebsd-ports@freebsd.org mailing list
> https://lists.freebsd.org/mailman/listinfo/freebsd-ports
> To unsubscribe, send any mail to "freebsd-ports-unsubscribe@freebsd.org"




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?b6b29609-14c1-a818-7b44-e9dd6c70c566>