[MacPorts] #64669: r fails to configure on Tiger without specifying gcc7 on command line

MacPorts noreply at macports.org
Tue Feb 15 02:33:47 UTC 2022


#64669: r fails to configure on Tiger without specifying gcc7 on command line
----------------------------+--------------------
 Reporter:  barracuda156    |      Owner:  (none)
     Type:  defect          |     Status:  new
 Priority:  Normal          |  Milestone:
Component:  ports           |    Version:  2.7.1
 Keywords:  powerpc, tiger  |       Port:  r
----------------------------+--------------------
 Just invoking installation fails on:

 {{{
 :info:extract --->  Extracting R-4.1.2.tar.gz
 :debug:extract setting option extract.args to
 '/opt/local/var/macports/distfiles/R/R-4.1.2.tar.gz'
 :debug:extract Environment:
 :debug:extract CC_PRINT_OPTIONS='YES'
 :debug:extract
 CC_PRINT_OPTIONS_FILE='/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_math_R/R/work/.CC_PRINT_OPTIONS'
 :debug:extract CPATH='/opt/local/include'
 :debug:extract DEVELOPER_DIR='/Developer'
 :debug:extract LIBRARY_PATH='/opt/local/lib'
 :debug:extract MACOSX_DEPLOYMENT_TARGET='10.4'
 :info:extract Executing:  cd
 "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_math_R/R/work"
 && /usr/bin/gzip -dc '/opt/local/var/macports/distfiles/R/R-4.1.2.tar.gz'
 | /usr/bin/gnutar --no-same-owner -xf -
 :debug:extract system:  cd
 "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_math_R/R/work"
 && /usr/bin/gzip -dc '/opt/local/var/macports/distfiles/R/R-4.1.2.tar.gz'
 | /usr/bin/gnutar --no-same-owner -xf -
 :info:extract /usr/bin/gnutar: Read 1024 bytes from -
 :debug:extract euid/egid changed to: 0/0
 :debug:extract chowned
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_math_R/R/work
 to macports
 :debug:extract euid/egid changed to: 502/500
 :debug:extract Privilege de-escalation not attempted as not running as
 root.
 :debug:patch patch phase started at Tue Feb 15 09:54:24 CST 2022
 :debug:patch Executing org.macports.patch (R)
 :debug:patch Executing proc-post-org.macports.patch-patch-0
 :info:patch --->  Patching Rscript.c:
 s|R_HOME|"/opt/local/Library/Frameworks/R.framework/Versions/4.1/Resources"|
 :debug:patch Executing reinplace: /usr/bin/sed
 s|R_HOME|\"/opt/local/Library/Frameworks/R.framework/Versions/4.1/Resources\"|
 </opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_math_R/R/work/R-4.1.2/src/unix/Rscript.c
 >@file12
 :debug:patch euid/egid changed to: 0/0
 :debug:patch chowned
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_math_R/R/work/R-4.1.2/src/unix/Rscript.c
 to macports
 :debug:patch euid/egid changed to: 502/500
 :debug:patch euid/egid changed to: 0/0
 :debug:patch setting attributes on
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_math_R/R/work/R-4.1.2/src/unix/Rscript.c
 :debug:patch euid/egid changed to: 502/500
 :info:patch --->  Patching Defn.h: s|<libintl.h>|"libintl.h"|
 :debug:patch Executing reinplace: /usr/bin/sed
 s|<libintl.h>|\"libintl.h\"|
 </opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_math_R/R/work/R-4.1.2/src/include/Defn.h
 >@file12
 :debug:patch euid/egid changed to: 0/0
 :debug:patch chowned
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_math_R/R/work/R-4.1.2/src/include/Defn.h
 to macports
 :debug:patch euid/egid changed to: 502/500
 :debug:patch euid/egid changed to: 0/0
 :debug:patch setting attributes on
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_math_R/R/work/R-4.1.2/src/include/Defn.h
 :debug:patch euid/egid changed to: 502/500
 :debug:patch Privilege de-escalation not attempted as not running as root.
 :debug:configure configure phase started at Tue Feb 15 09:54:24 CST 2022
 :notice:configure --->  Configuring R
 :error:configure Failed to configure R: Invalid value for
 configure.compiler:
 :debug:configure Error code: NONE
 :debug:configure Backtrace: Invalid value for configure.compiler:
 :debug:configure     while executing
 :debug:configure "[ditem_key $ditem prerun] $targetname"
 }}}

 However this succeeds:

 {{{
 sudo port -v -s install r configure.compiler=macports-gcc-7
 }}}

 {{{
 sergey-fedorovs-powerbook-g4-12:~ svacchanda$ port -v installed
 The following ports are currently installed:
   R @4.1.2_1+builtin_lapack+cairo+gcc7+openmp+recommended+x11 (active)
 requested_variants='' platform='darwin 8' archs='ppc'
 date='2022-02-15T10:14:40+0800'
 }}}

 I guess compiler should be called depending on the OS here without a need
 of a custom line.

-- 
Ticket URL: <https://trac.macports.org/ticket/64669>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list