Skip to content

Why does the installation of my R package 'interpolation' fail on Mac? #7383

Answered by mglisse
stla asked this question in Q&A
Discussion options

You must be logged in to vote

Apparently that means LLVM-6, while the highly similar bug report mentions a fix in LLVM-9 (probably Xcode 11.4). If there is a way to use a more recent compiler, that would be best. Otherwise, you could try to patch GMP with

-#define mpz_sgn(Z) ((Z)->_mp_size < 0 ? -1 : (Z)->_mp_size > 0) 
+#define mpz_sgn(Z) (((Z)->_mp_size < 0) ? -1 : ((Z)->_mp_size > 0)) 

(and similar for the next 2 lines) to see if that helps work around this compiler bug.

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@stla
Comment options

@mglisse
Comment options

Answer selected by stla
@stla
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants