On 29/08/2020 19:38, Duncan Murdoch wrote:
I seem to have got past this error by reinstalling Xcode.  I'm not sure what went wrong with the old install; I'm pretty sure I did an R-devel build since installing Catalina.

This seems to come from a CLT update: my Catalina box updated to 12.0 beta 5 overnight. And that has defaulted the SDK to 11.0.

I wish they would not do that -- it is not the first time they have installed a beta CLT without asking and set the SDK for a future OS.

I have tweaked configure for R-devel and R-patched so they install, but likely the better answer for me is to downgrade the CLT to 11.5 or set an SDK.


Duncan Murdoch

On 28/08/2020 10:41 a.m., Duncan Murdoch wrote:
I'm trying to build R-devel in Catalina for the first time in a few
weeks, and configure is dying with this error:

   checking whether bzip2 support suffices... configure: error: bzip2
library and headers are required

I tried a Homebrew install of bzip2, and it didn't help.

When I look in config.log, I see this:


configure:45424: checking if bzip2 version >= 1.0.6
configure:45452: gcc -o conftest  -g -O2 -I/usr/local/opt/libffi/include
   -L/usr/local/opt/libffi/lib conftest.c -lbz2 -lz -licucore -ldl -lm
-liconv >&5
conftest.c:250:11: warning: initializing 'char *' with an expression of
type 'const char *' discards qualifiers
[-Wincompatible-pointer-types-discards-qualifiers]
      char *ver = BZ2_bzlibVersion();
            ^     ~~~~~~~~~~~~~~~~~~
conftest.c:251:5: error: implicitly declaring library function 'exit'
with type 'void (int) __attribute__((noreturn))'
[-Werror,-Wimplicit-function-declaration]
      exit(strcmp(ver, "1.0.6") < 0);
      ^
conftest.c:251:5: note: include the header <stdlib.h> or explicitly
provide a declaration for 'exit'
conftest.c:251:10: error: implicitly declaring library function 'strcmp'
with type 'int (const char *, const char *)'
[-Werror,-Wimplicit-function-declaration]
      exit(strcmp(ver, "1.0.6") < 0);
           ^
conftest.c:251:10: note: include the header <string.h> or explicitly
provide a declaration for 'strcmp'
1 warning and 2 errors generated.


Suggestions for fixing this?

Duncan Murdoch


_______________________________________________
R-SIG-Mac mailing list
R-SIG-Mac@r-project.org
https://stat.ethz.ch/mailman/listinfo/r-sig-mac


--
Brian D. Ripley,                  rip...@stats.ox.ac.uk
Emeritus Professor of Applied Statistics, University of Oxford

_______________________________________________
R-SIG-Mac mailing list
R-SIG-Mac@r-project.org
https://stat.ethz.ch/mailman/listinfo/r-sig-mac

Reply via email to