[MacPorts] #59453: R @3.5.1: Fails to compile on Mojave (10.14.6) with XCode 11 (11.1 11A1027)

MacPorts noreply at macports.org
Tue Nov 26 18:37:48 UTC 2019


#59453: R @3.5.1: Fails to compile on Mojave (10.14.6) with XCode 11 (11.1 11A1027)
---------------------------+----------------------
  Reporter:  vjorlikowski  |      Owner:  kjellpk
      Type:  defect        |     Status:  assigned
  Priority:  Normal        |  Milestone:
 Component:  ports         |    Version:  2.6.2
Resolution:                |   Keywords:
      Port:  R             |
---------------------------+----------------------

Comment (by himay81):

 Adding `--without-internal-tzcode` to `configure.args` in the Portfile (I
 assume that's the correct block to add it) doesn't appear to have any
 effect. Still seems to error out in the same fashion, complaining about
 `_timespec_get`. If I got that wrong, please advise.

 `config.log` after this test build still warns `timespec_get` is only
 available in Catalina…
 {{{
 configure:33502: checking whether timespec_get exists and is declared
 configure:33530: /usr/bin/clang -o conftest -pipe -Os
 -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk -arch
 x86_64 -fPIC  -I/opt/local/include
 -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk
 -L/opt/local/lib -Wl,-headerpad_max_install_names
 -Wl,-syslibroot,/Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk
 -arch x86_64 conftest.c -lm  >&5
 conftest.c:180:22: warning: 'timespec_get' is only available on macOS
 10.15 or newer [-Wunguarded-availability-new]
   char *p = (char *) timespec_get;
                      ^~~~~~~~~~~~
 /Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk/usr/include/time.h:199:5:
 note: 'timespec_get' has been marked as being introduced in macOS 10.15
 here, but the deployment target is macOS 10.14.0
 int timespec_get(struct timespec *ts, int base);
     ^
 conftest.c:180:22: note: enclose 'timespec_get' in a __builtin_available
 check to silence this warning
   char *p = (char *) timespec_get;
                      ^~~~~~~~~~~~
 1 warning generated.
 configure:33530: $? = 0
 configure:33539: result: yes
 }}}

 `~:$ tail -n40
 /opt/local/var/macports/logs/_usr_local_ports_math_R/R/main.log`
 {{{
 :info:build /usr/bin/clang -I"../../../../include" -DNDEBUG
 -I../../../include -I../../../../src/include -DHAVE_CONFIG_H
 -I../../../../src/main  -I/opt/local/include
 -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk   -fPIC
 -pipe -Os
 -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk -arch
 x86_64  -c gramRd.c -o gramRd.o
 :info:build /usr/bin/clang -dynamiclib -Wl,-headerpad_max_install_names
 -undefined dynamic_lookup -single_module -multiply_defined suppress
 -L../../../../lib -L/opt/local/lib -Wl,-headerpad_max_install_names
 -Wl,-syslibroot,/Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk
 -arch x86_64 -o tools.so text.o init.o Rmd5.o md5.o signals.o install.o
 getfmts.o http.o gramLatex.o gramRd.o -L../../../../lib -lR -Wl,-framework
 -Wl,CoreFoundation
 :info:build make[6]: Entering directory
 `/opt/local/var/macports/build/_usr_local_ports_math_R/R/work/R-3.5.1/src/library/tools/src'
 :info:build mkdir ../../../../library/tools/libs
 :info:build make[6]: Leaving directory
 `/opt/local/var/macports/build/_usr_local_ports_math_R/R/work/R-3.5.1/src/library/tools/src'
 :info:build make[5]: Leaving directory
 `/opt/local/var/macports/build/_usr_local_ports_math_R/R/work/R-3.5.1/src/library/tools/src'
 :info:build make[4]: Leaving directory
 `/opt/local/var/macports/build/_usr_local_ports_math_R/R/work/R-3.5.1/src/library/tools'
 :info:build make[4]: Entering directory
 `/opt/local/var/macports/build/_usr_local_ports_math_R/R/work/R-3.5.1/src/library/tools'
 :info:build installing 'sysdata.rda'
 :info:build dyld: lazy symbol binding failed: Symbol not found:
 _timespec_get
 :info:build   Referenced from:
 /opt/local/var/macports/build/_usr_local_ports_math_R/R/work/R-3.5.1/lib/libR.dylib
 :info:build   Expected in: /usr/lib/libSystem.B.dylib
 :info:build dyld: Symbol not found: _timespec_get
 :info:build   Referenced from:
 /opt/local/var/macports/build/_usr_local_ports_math_R/R/work/R-3.5.1/lib/libR.dylib
 :info:build   Expected in: /usr/lib/libSystem.B.dylib
 :info:build /bin/sh: line 1: 62470 Done                    echo
 "tools:::sysdata2LazyLoadDB(\"./R/sysdata.rda\",\"../../../library/tools/R\")"
 :info:build      62471 Abort trap: 6           | R_DEFAULT_PACKAGES=NULL
 LC_ALL=C R_ENABLE_JIT=0 TZ=UTC ../../../bin/R --vanilla --slave
 :info:build make[4]: *** [sysdata] Error 134
 :info:build make[4]: Leaving directory
 `/opt/local/var/macports/build/_usr_local_ports_math_R/R/work/R-3.5.1/src/library/tools'
 :info:build make[3]: *** [all] Error 2
 :info:build make[3]: Leaving directory
 `/opt/local/var/macports/build/_usr_local_ports_math_R/R/work/R-3.5.1/src/library/tools'
 :info:build make[2]: *** [R] Error 1
 :info:build make[2]: Leaving directory
 `/opt/local/var/macports/build/_usr_local_ports_math_R/R/work/R-3.5.1/src/library'
 :info:build make[1]: *** [R] Error 1
 :info:build make[1]: Leaving directory
 `/opt/local/var/macports/build/_usr_local_ports_math_R/R/work/R-3.5.1/src'
 :info:build make: *** [R] Error 1
 :info:build make: Leaving directory
 `/opt/local/var/macports/build/_usr_local_ports_math_R/R/work/R-3.5.1'
 :info:build Command failed:  cd
 "/opt/local/var/macports/build/_usr_local_ports_math_R/R/work/R-3.5.1" &&
 /usr/bin/make -j6 -w all
 :info:build Exit code: 2
 :error:build Failed to build R: command execution failed
 :debug:build Error code: CHILDSTATUS 59376 2
 :debug:build Backtrace: command execution failed
 :debug:build     while executing
 :debug:build "system {*}$notty {*}$nice $fullcmdstring"
 :debug:build     invoked from within
 :debug:build "command_exec build"
 :debug:build     (procedure "portbuild::build_main" line 8)
 :debug:build     invoked from within
 :debug:build "$procedure $targetname"
 :error:build See
 /opt/local/var/macports/logs/_usr_local_ports_math_R/R/main.log for
 details.
 }}}

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


More information about the macports-tickets mailing list