[MacPorts] #65510: Can no longer compile R packages with MacPorts's GCC (@rpath related)

MacPorts noreply at macports.org
Wed Jul 20 09:48:02 UTC 2022


#65510: Can no longer compile R packages with MacPorts's GCC (@rpath related)
---------------------------+--------------------
  Reporter:  szhorvat      |      Owner:  (none)
      Type:  defect        |     Status:  new
  Priority:  Normal        |  Milestone:
 Component:  ports         |    Version:
Resolution:                |   Keywords:
      Port:  gcc11, gcc12  |
---------------------------+--------------------

Comment (by szhorvat):

 I am using `gcc12 @12.1.0_5` and `libgcc12 @12.1.0_5`. To be clear, I was
 not building R, but building the `igraph` R package, which uses
 `gfortran`. I was using the CRAN distribution of R, not MacPort's, set up
 to use MacPorts's compiler. I do this by adding the following to
 `~/.R/Makevars`:

 {{{
 CCACHE=/opt/local/bin/ccache
 CC = $(CCACHE) /opt/local/bin/clang-mp-14
 CXX = $(CCACHE) /opt/local/bin/clang++-mp-14
 FC = $(CCACHE) /opt/local/bin/gfortran-mp-12
 F77 = $(CCACHE) /opt/local/bin/gfortran-mp-12
 FLIBS = -L/opt/local/lib/gcc12 -lgfortran -lquadmath -lm -Wl,-rpath
 /opt/local/lib/libgcc
 CPPFLAGS=-I/opt/local/include
 LDFLAGS=-L/opt/local/lib
 }}}

 Officially, using any other compiler than what R itself was compiled with
 is not supported for building R packages. However, this used to work until
 a few days ago.

 Thanks for the help Chris, I can compile R packages again now, so feel
 free to close the issue.

-- 
Ticket URL: <https://trac.macports.org/ticket/65510#comment:6>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list