[MacPorts] #71068: R build fails due to g95 dependency, despite specifying gcc
MacPorts
noreply at macports.org
Sat Nov 16 07:52:41 UTC 2024
#71068: R build fails due to g95 dependency, despite specifying gcc
------------------------+--------------------
Reporter: klausness | Owner: (none)
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 2.10.2
Resolution: | Keywords: R g95
Port: R |
------------------------+--------------------
Comment (by Alex11N):
Replying to [comment:11 barracuda156]:
> It is literally just changing 23 to 22.
>
> Default with Sonoma’s native Xcode:
> {{{
> svacchanda at Sergeys-MacBook-Air ~ % port deps R
> Full Name: R @4.4.1_3+aqua+builtin_lapack+cairo+gcc13+openmp+tcltk+x11
> Build Dependencies: pkgconfig, gcc13, clang-16
> Library Dependencies: bzip2, curl, gnutar, gzip, icu, ld64, less,
libiconv,
> libjpeg-turbo, libpng, pcre, pcre2, readline,
texinfo,
> tiff, unzip, xz, zip, zlib, libgcc, libgcc13,
cairo,
> pango, glib2, freetype, fontconfig, gettext-
runtime, tcl,
> tk, xorg-libice, xorg-libsm, xorg-libX11, xorg-
libXt,
> libomp
> Runtime Dependencies: clang-16
> }}}
>
> Edit portfile to force Sequoia-matching behavior:
> {{{
> svacchanda at Sergeys-MacBook-Air ~ % bbedit `port file R`
> svacchanda at Sergeys-MacBook-Air ~ % port deps R
> Full Name: R @4.4.1_3+aqua+builtin_lapack+cairo+gcc14+openmp+tcltk+x11
> Build Dependencies: pkgconfig, gcc14, clang-17
> Library Dependencies: bzip2, curl, gnutar, gzip, icu, ld64, less,
libiconv,
> libjpeg-turbo, libpng, pcre, pcre2, readline,
texinfo,
> tiff, unzip, xz, zip, zlib, libgcc, cairo, pango,
glib2,
> freetype, fontconfig, gettext-runtime, tcl, tk,
> xorg-libice, xorg-libsm, xorg-libX11, xorg-libXt,
libomp
> Runtime Dependencies: clang-17
> }}}
>
> There won’t be any g95 needed. The problem arose from Apple breaking the
Xcode, which made it impossible to compile gcc13 and some Clangs, then
MacPorts could do nothing else but blacklist those compilers for the
affected Xcode. R port and R PG assume a matching Xcode version, so things
broke down, when users began installing Xcode 16, which triggered
different blacklists. I.e. in result R and R PG blacklist gcc14 and ask
for gcc13, but MacPorts itself blacklists gcc13 and earlier. Since no one
remembered to blacklist g95, that gets picked simply because no other
option was left.
>
> Change `if { ${os.major} > 23 } {` to `if { ${os.major} > 22 } {` three
time in R port and three times in R portgroup, that should fix
dependencies.
Thanks for that - worked a treat. port wanted clang/llvm-17, and once that
was done the R packjage with gcc14 support and NO g95 downloaded, and the
build went without a hitch. And I've learnt a bit more about how ports
work - bargain!b This was on macOS 14.7.1 and CLTs 16.1.
Cheers,
Alex.
--
Ticket URL: <https://trac.macports.org/ticket/71068#comment:21>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list