[MacPorts] #60399: R @3.6.3_1 fails building on 10.5.8

MacPorts noreply at macports.org
Wed Apr 29 21:46:58 UTC 2020


#60399: R @3.6.3_1 fails building on 10.5.8
-------------------------+------------------------
  Reporter:  udbraumann  |      Owner:  i0ntempest
      Type:  defect      |     Status:  assigned
  Priority:  Normal      |  Milestone:
 Component:  ports       |    Version:  2.6.2
Resolution:              |   Keywords:  leopard
      Port:  R           |
-------------------------+------------------------

Comment (by udbraumann):

 Thanks a lot, I managed to follow your hints (the only pitfall were the
 existing installation files, I had to run a `sudo port clean --all R` at
 first, i.e. `--all` was essential). Well, unfortunately still the same
 problem is persistent:

 {{{
 ...
 :info:build make[3]: Entering directory
 `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_math_R/R/work/R-4.0.0/src/main'
 :info:build /usr/bin/gcc-4.2 -std=gnu99 -I../../src/extra  -I.
 -I../../src/include -I../../src/include -I/opt/local/include
 -I/opt/local/include -I../../src/nmath -DHAVE_CONFIG_H
  -fPIC  -pipe -Os -arch ppc  -c CommandLineArgs.c -o CommandLineArgs.o
 :info:build /usr/bin/gcc-4.2 -std=gnu99 -I../../src/extra  -I.
 -I../../src/include -I../../src/include -I/opt/local/include
 -I/opt/local/include -I../../src/nmath -DHAVE_CONFIG_H
  -fPIC  -pipe -Os -arch ppc  -c Rdynload.c -o Rdynload.o
 :info:build /usr/bin/gcc-4.2 -std=gnu99 -I../../src/extra  -I.
 -I../../src/include -I../../src/include -I/opt/local/include
 -I/opt/local/include -I../../src/nmath -DHAVE_CONFIG_H
  -fPIC  -pipe -Os -arch ppc  -c Renviron.c -o Renviron.o
 :info:build /usr/bin/gcc-4.2 -std=gnu99 -I../../src/extra  -I.
 -I../../src/include -I../../src/include -I/opt/local/include
 -I/opt/local/include -I../../src/nmath -DHAVE_CONFIG_H
  -fPIC  -pipe -Os -arch ppc  -c RNG.c -o RNG.o
 :info:build /usr/bin/gcc-4.2 -std=gnu99 -I../../src/extra  -I.
 -I../../src/include -I../../src/include -I/opt/local/include
 -I/opt/local/include -I../../src/nmath -DHAVE_CONFIG_H
  -fPIC  -pipe -Os -arch ppc  -c agrep.c -o agrep.o
 :info:build /usr/bin/gcc-4.2 -std=gnu99 -I../../src/extra  -I.
 -I../../src/include -I../../src/include -I/opt/local/include
 -I/opt/local/include -I../../src/nmath -DHAVE_CONFIG_H
  -fPIC  -pipe -Os -arch ppc  -c altclasses.c -o altclasses.o
 :info:build /usr/bin/gcc-4.2 -std=gnu99 -I../../src/extra  -I.
 -I../../src/include -I../../src/include -I/opt/local/include
 -I/opt/local/include -I../../src/nmath -DHAVE_CONFIG_H
  -fPIC  -pipe -Os -arch ppc  -c altrep.c -o altrep.o
 :info:build /usr/bin/gcc-4.2 -std=gnu99 -I../../src/extra  -I.
 -I../../src/include -I../../src/include -I/opt/local/include
 -I/opt/local/include -I../../src/nmath -DHAVE_CONFIG_H
  -fPIC  -pipe -Os -arch ppc  -c apply.c -o apply.o
 :info:build /usr/bin/gcc-4.2 -std=gnu99 -I../../src/extra  -I.
 -I../../src/include -I../../src/include -I/opt/local/include
 -I/opt/local/include -I../../src/nmath -DHAVE_CONFIG_H
  -fPIC  -pipe -Os -arch ppc  -c arithmetic.c -o arithmetic.o
 :info:build arithmetic.c:186: error: initializer element is not constant
 :info:build make[3]: *** [arithmetic.o] Error 1
 :info:build make[3]: Leaving directory
 `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_math_R/R/work/R-4.0.0/src/main'
 :info:build make[2]: *** [R] Error 2
 ...
 }}}

 The relevant modified code inside `arithmetic.c` presently looks like
 this:

 {{{
     180 #if HAVE_LONG_DOUBLE && (SIZEOF_LONG_DOUBLE > SIZEOF_DOUBLE)
     181 # ifdef __powerpc__
     182  // PowerPC 64 (when gcc has -mlong-double-128) fails constant
 folding with LDOUBLE
     183  // Debian Bug#946836 shows it is needed also for 32-bit ppc, not
 just __PPC64__
     184 #  define q_1_eps (1 / LDBL_EPSILON)
     185 # else
     186 static LDOUBLE q_1_eps = 1 / LDBL_EPSILON;
     187 # endif
     188 #else
     189 static double  q_1_eps = 1 / DBL_EPSILON;
     190 #endif
 }}}

 That means `__powerpc__` is not defined on my 32bit PPC!?

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


More information about the macports-tickets mailing list