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

MacPorts noreply at macports.org
Sun Apr 26 21:59:07 UTC 2020


#60399: R @3.6.3_1 fails building on 10.5.8
------------------------+--------------------
 Reporter:  udbraumann  |      Owner:  (none)
     Type:  defect      |     Status:  new
 Priority:  Normal      |  Milestone:
Component:  ports       |    Version:  2.6.2
 Keywords:  leopard     |       Port:  R
------------------------+--------------------
 While upgrading `R` from `3.6.1_0` to `3.6.3_1` building stopped here:


 {{{
 ...
 :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:185: error: initializer element is not constant
 :info:build make[3]: *** [arithmetic.o] Error 1
 ...
 }}}

 My first attempt was to try MacPorts `gcc6`instead of the Xcode `gcc-4.2`,
 however, basically the same error occurred, whereas some explanation is
 given:

 {{{
 ...
 :info:build /opt/local/bin/gcc-mp-6 -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:185:26: error: initializer element is not
 constant
 :info:build  static LDOUBLE q_1_eps = 1 / LDBL_EPSILON;
 :info:build                           ^
 :info:build make[3]: *** [arithmetic.o] Error 1
 ...
 }}}

 Any hints? This is the portion of `arithmetic.c` where the error occurs at
 line 185:


 {{{
     180 #if HAVE_LONG_DOUBLE && (SIZEOF_LONG_DOUBLE > SIZEOF_DOUBLE)
     181 # ifdef __PPC64__
     182  // PowerPC 64 (when gcc has -mlong-double-128) fails constant
 folding with LDOUBLE
     183 #  define q_1_eps (1 / LDBL_EPSILON)
     184 # else
     185 static LDOUBLE q_1_eps = 1 / LDBL_EPSILON;
     186 # endif
     187 #else
     188 static double  q_1_eps = 1 / DBL_EPSILON;
     189 #endif
 }}}

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


More information about the macports-tickets mailing list