Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

farver (ggplot2 dependency) fails to install on macOS Big Sur and XCode 12.5 #185

Open
fniephaus opened this issue May 29, 2021 · 0 comments
Labels

Comments

@fniephaus
Copy link
Member

Repro

R -e 'install.packages("ggplot2")'

Workaround

Use an older version of XCode (e.g. 11.5):

sudo xcode-select --switch /Applications/Xcode\ 11.5.app

Log

* installing *source* package ‘farver’ ...
** package ‘farver’ successfully unpacked and MD5 sums checked
** using staged installation
** libs
"/Users/fniephaus/bin/graalvm-ce-java11-21.1.0/Contents/Home/languages/llvm/native/bin/graalvm-native-clang++" -std=gnu++11 -I"/Users/fniephaus/bin/graalvm-ce-java11-21.1.0/Contents/Home/languages/R/include" -DNDEBUG   -O2 -DFASTR -DNO_GNUR   -fPIC  -O2  -DFASTR -DNO_GNUR  -c ColorSpace.cpp -o ColorSpace.o
In file included from ColorSpace.cpp:1:
In file included from ./ColorSpace.h:4:
In file included from /Users/fniephaus/bin/graalvm-ce-java11-21.1.0/Contents/Home/lib/llvm/bin/../include/c++/v1/typeinfo:60:
In file included from /Users/fniephaus/bin/graalvm-ce-java11-21.1.0/Contents/Home/lib/llvm/bin/../include/c++/v1/exception:81:
In file included from /Users/fniephaus/bin/graalvm-ce-java11-21.1.0/Contents/Home/lib/llvm/bin/../include/c++/v1/cstdlib:85:
In file included from /Users/fniephaus/bin/graalvm-ce-java11-21.1.0/Contents/Home/lib/llvm/bin/../include/c++/v1/stdlib.h:100:
/Users/fniephaus/bin/graalvm-ce-java11-21.1.0/Contents/Home/lib/llvm/bin/../include/c++/v1/math.h:773:12: error: no member named 'labs' in the global
      namespace; did you mean 'abs'?
  return ::labs(__x);
         ~~^
/Users/fniephaus/bin/graalvm-ce-java11-21.1.0/Contents/Home/lib/llvm/bin/../include/c++/v1/math.h:772:39: note: 'abs' declared here
inline _LIBCPP_INLINE_VISIBILITY long abs(long __x) _NOEXCEPT {
                                      ^
/Users/fniephaus/bin/graalvm-ce-java11-21.1.0/Contents/Home/lib/llvm/bin/../include/c++/v1/math.h:777:12: error: no member named 'llabs' in the global
      namespace
  return ::llabs(__x);
         ~~^
/Users/fniephaus/bin/graalvm-ce-java11-21.1.0/Contents/Home/lib/llvm/bin/../include/c++/v1/math.h:785:12: error: no member named 'fabsf' in the global
      namespace
  return ::fabsf(__lcpp_x);
         ~~^
/Users/fniephaus/bin/graalvm-ce-java11-21.1.0/Contents/Home/lib/llvm/bin/../include/c++/v1/math.h:789:12: error: no member named 'fabs' in the global
      namespace; did you mean 'abs'?
  return ::fabs(__lcpp_x);
         ~~^
/Users/fniephaus/bin/graalvm-ce-java11-21.1.0/Contents/Home/lib/llvm/bin/../include/c++/v1/math.h:772:39: note: 'abs' declared here
inline _LIBCPP_INLINE_VISIBILITY long abs(long __x) _NOEXCEPT {
                                      ^
/Users/fniephaus/bin/graalvm-ce-java11-21.1.0/Contents/Home/lib/llvm/bin/../include/c++/v1/math.h:794:12: error: no member named 'fabsl' in the global
      namespace
  return ::fabsl(__lcpp_x);
         ~~^
/Users/fniephaus/bin/graalvm-ce-java11-21.1.0/Contents/Home/lib/llvm/bin/../include/c++/v1/math.h:808:34: error: unknown type name 'ldiv_t'
inline _LIBCPP_INLINE_VISIBILITY ldiv_t div(long __x, long __y) _NOEXCEPT {
                                 ^
/Users/fniephaus/bin/graalvm-ce-java11-21.1.0/Contents/Home/lib/llvm/bin/../include/c++/v1/math.h:809:12: error: no member named 'ldiv' in the global
      namespace
  return ::ldiv(__x, __y);
         ~~^
/Users/fniephaus/bin/graalvm-ce-java11-21.1.0/Contents/Home/lib/llvm/bin/../include/c++/v1/math.h:812:34: error: unknown type name 'lldiv_t'
inline _LIBCPP_INLINE_VISIBILITY lldiv_t div(long long __x,
                                 ^
/Users/fniephaus/bin/graalvm-ce-java11-21.1.0/Contents/Home/lib/llvm/bin/../include/c++/v1/math.h:814:12: error: no member named 'lldiv' in the global
      namespace
  return ::lldiv(__x, __y);
         ~~^
/Users/fniephaus/bin/graalvm-ce-java11-21.1.0/Contents/Home/lib/llvm/bin/../include/c++/v1/math.h:822:93: error: no member named 'acosf' in the global
      namespace; did you mean 'acos'?
inline _LIBCPP_INLINE_VISIBILITY float       acos(float __lcpp_x) _NOEXCEPT       {return ::acosf(__lcpp_x);}
                                                                                          ~~^
/Users/fniephaus/bin/graalvm-ce-java11-21.1.0/Contents/Home/lib/llvm/bin/../include/c++/v1/math.h:822:46: note: 'acos' declared here
inline _LIBCPP_INLINE_VISIBILITY float       acos(float __lcpp_x) _NOEXCEPT       {return ::acosf(__lcpp_x);}
                                             ^
/Users/fniephaus/bin/graalvm-ce-java11-21.1.0/Contents/Home/lib/llvm/bin/../include/c++/v1/math.h:823:93: error: no member named 'acosl' in the global
      namespace; did you mean 'acos'?
inline _LIBCPP_INLINE_VISIBILITY long double acos(long double __lcpp_x) _NOEXCEPT {return ::acosl(__lcpp_x);}
                                                                                          ~~^
/Users/fniephaus/bin/graalvm-ce-java11-21.1.0/Contents/Home/lib/llvm/bin/../include/c++/v1/math.h:822:46: note: 'acos' declared here
inline _LIBCPP_INLINE_VISIBILITY float       acos(float __lcpp_x) _NOEXCEPT       {return ::acosf(__lcpp_x);}
                                             ^
/Users/fniephaus/bin/graalvm-ce-java11-21.1.0/Contents/Home/lib/llvm/bin/../include/c++/v1/math.h:829:38: error: call to 'acos' is ambiguous
acos(_A1 __lcpp_x) _NOEXCEPT {return ::acos((double)__lcpp_x);}
                                     ^~~~~~
/Users/fniephaus/bin/graalvm-ce-java11-21.1.0/Contents/Home/lib/llvm/bin/../include/c++/v1/math.h:822:46: note: candidate function
inline _LIBCPP_INLINE_VISIBILITY float       acos(float __lcpp_x) _NOEXCEPT       {return ::acosf(__lcpp_x);}
                                             ^
/Users/fniephaus/bin/graalvm-ce-java11-21.1.0/Contents/Home/lib/llvm/bin/../include/c++/v1/math.h:823:46: note: candidate function
inline _LIBCPP_INLINE_VISIBILITY long double acos(long double __lcpp_x) _NOEXCEPT {return ::acosl(__lcpp_x);}
                                             ^
/Users/fniephaus/bin/graalvm-ce-java11-21.1.0/Contents/Home/lib/llvm/bin/../include/c++/v1/math.h:834:93: error: no member named 'asinf' in the global
      namespace; did you mean 'asin'?
inline _LIBCPP_INLINE_VISIBILITY float       asin(float __lcpp_x) _NOEXCEPT       {return ::asinf(__lcpp_x);}
                                                                                          ~~^
/Users/fniephaus/bin/graalvm-ce-java11-21.1.0/Contents/Home/lib/llvm/bin/../include/c++/v1/math.h:834:46: note: 'asin' declared here
inline _LIBCPP_INLINE_VISIBILITY float       asin(float __lcpp_x) _NOEXCEPT       {return ::asinf(__lcpp_x);}
                                             ^
/Users/fniephaus/bin/graalvm-ce-java11-21.1.0/Contents/Home/lib/llvm/bin/../include/c++/v1/math.h:835:93: error: no member named 'asinl' in the global
      namespace; did you mean 'asin'?
inline _LIBCPP_INLINE_VISIBILITY long double asin(long double __lcpp_x) _NOEXCEPT {return ::asinl(__lcpp_x);}
                                                                                          ~~^
/Users/fniephaus/bin/graalvm-ce-java11-21.1.0/Contents/Home/lib/llvm/bin/../include/c++/v1/math.h:834:46: note: 'asin' declared here
inline _LIBCPP_INLINE_VISIBILITY float       asin(float __lcpp_x) _NOEXCEPT       {return ::asinf(__lcpp_x);}
                                             ^
/Users/fniephaus/bin/graalvm-ce-java11-21.1.0/Contents/Home/lib/llvm/bin/../include/c++/v1/math.h:841:38: error: call to 'asin' is ambiguous
asin(_A1 __lcpp_x) _NOEXCEPT {return ::asin((double)__lcpp_x);}
                                     ^~~~~~
/Users/fniephaus/bin/graalvm-ce-java11-21.1.0/Contents/Home/lib/llvm/bin/../include/c++/v1/math.h:834:46: note: candidate function
inline _LIBCPP_INLINE_VISIBILITY float       asin(float __lcpp_x) _NOEXCEPT       {return ::asinf(__lcpp_x);}
                                             ^
/Users/fniephaus/bin/graalvm-ce-java11-21.1.0/Contents/Home/lib/llvm/bin/../include/c++/v1/math.h:835:46: note: candidate function
inline _LIBCPP_INLINE_VISIBILITY long double asin(long double __lcpp_x) _NOEXCEPT {return ::asinl(__lcpp_x);}
                                             ^
/Users/fniephaus/bin/graalvm-ce-java11-21.1.0/Contents/Home/lib/llvm/bin/../include/c++/v1/math.h:846:93: error: no member named 'atanf' in the global
      namespace; did you mean 'atan'?
inline _LIBCPP_INLINE_VISIBILITY float       atan(float __lcpp_x) _NOEXCEPT       {return ::atanf(__lcpp_x);}
                                                                                          ~~^
/Users/fniephaus/bin/graalvm-ce-java11-21.1.0/Contents/Home/lib/llvm/bin/../include/c++/v1/math.h:846:46: note: 'atan' declared here
inline _LIBCPP_INLINE_VISIBILITY float       atan(float __lcpp_x) _NOEXCEPT       {return ::atanf(__lcpp_x);}
                                             ^
/Users/fniephaus/bin/graalvm-ce-java11-21.1.0/Contents/Home/lib/llvm/bin/../include/c++/v1/math.h:847:93: error: no member named 'atanl' in the global
      namespace; did you mean 'atan'?
inline _LIBCPP_INLINE_VISIBILITY long double atan(long double __lcpp_x) _NOEXCEPT {return ::atanl(__lcpp_x);}
                                                                                          ~~^
/Users/fniephaus/bin/graalvm-ce-java11-21.1.0/Contents/Home/lib/llvm/bin/../include/c++/v1/math.h:846:46: note: 'atan' declared here
inline _LIBCPP_INLINE_VISIBILITY float       atan(float __lcpp_x) _NOEXCEPT       {return ::atanf(__lcpp_x);}
                                             ^
/Users/fniephaus/bin/graalvm-ce-java11-21.1.0/Contents/Home/lib/llvm/bin/../include/c++/v1/math.h:853:38: error: call to 'atan' is ambiguous
atan(_A1 __lcpp_x) _NOEXCEPT {return ::atan((double)__lcpp_x);}
                                     ^~~~~~
/Users/fniephaus/bin/graalvm-ce-java11-21.1.0/Contents/Home/lib/llvm/bin/../include/c++/v1/math.h:846:46: note: candidate function
inline _LIBCPP_INLINE_VISIBILITY float       atan(float __lcpp_x) _NOEXCEPT       {return ::atanf(__lcpp_x);}
                                             ^
/Users/fniephaus/bin/graalvm-ce-java11-21.1.0/Contents/Home/lib/llvm/bin/../include/c++/v1/math.h:847:46: note: candidate function
inline _LIBCPP_INLINE_VISIBILITY long double atan(long double __lcpp_x) _NOEXCEPT {return ::atanl(__lcpp_x);}
                                             ^
/Users/fniephaus/bin/graalvm-ce-java11-21.1.0/Contents/Home/lib/llvm/bin/../include/c++/v1/math.h:858:116: error: no member named 'atan2f' in the global
      namespace; did you mean 'atan2'?
inline _LIBCPP_INLINE_VISIBILITY float       atan2(float __lcpp_y, float __lcpp_x) _NOEXCEPT             {return ::atan2f(__lcpp_y, __lcpp_x);}
                                                                                                                 ~~^
/Users/fniephaus/bin/graalvm-ce-java11-21.1.0/Contents/Home/lib/llvm/bin/../include/c++/v1/math.h:858:46: note: 'atan2' declared here
inline _LIBCPP_INLINE_VISIBILITY float       atan2(float __lcpp_y, float __lcpp_x) _NOEXCEPT             {return ::atan2f(__lcpp_y, __lcpp_x);}
                                             ^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
make: *** [ColorSpace.o] Error 1
ERROR: compilation failed for package ‘farver’
* removing ‘/Users/fniephaus/bin/graalvm-ce-java11-21.1.0/Contents/Home/languages/R/library/farver’
^C[1]    87731 exit 130   R -e 'install.packages("ggplot2")'
@fniephaus fniephaus added the bug label May 29, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant