SCM

[#6589] MacOS compilation failure with g++-8 and clang++

Date:
2018-06-27 01:27
Priority:
3
State:
Closed
Submitted by:
Adam Erickson (adamerickson)
Assigned to:
Nobody (None)
Hardware:
Other
Product:
None
Operating System:
MacOS X
Component:
None
Version:
None
Severity:
None
Resolution:
Won't Fix
URL:
Summary:
MacOS compilation failure with g++-8 and clang++

Detailed description
Installation of rgl fails on MacOS 10.12 using MRO due to pretty.c file compilation error:

/usr/bin/clang++ -I/Library/Frameworks/R.framework/Resources/include -DNDEBUG -I/System/Library/Frameworks/OpenGL.framework/Headers -DHAVE_PNG_H -I/Users/null/anaconda3/include/libpng16 -I/usr/X11/include -DDarwin -DNO_GL_PREFIX -I/opt/X11/include -DHAVE_FREETYPE -Iext/ftgl -I/opt/X11/include/freetype2 -Iext -DU_STATIC_IMPLEMENTATION -Wall -mtune=core2 -g -O2 -I/opt/X11/include -fPIC -DU_STATIC_IMPLEMENTATION -Wall -mtune=core2 -g -O2 -I/opt/X11/include -c pretty.c -o pretty.o
clang: warning: treating 'c' input as 'c++' when in C++ mode, this behavior is deprecated [-Wdeprecated]
pretty.c:108:10: error: assigning to 'Rboolean' from incompatible type 'bool'
i_small = dx < cell * U * imax2(1,*ndiv) * DBL_EPSILON *3;
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
make: *** [pretty.o] Error 1
ERROR: compilation failed for package ‘rgl’

Both gcc and clang produce this error with MRO. The issue was resolved by installing the MacOS binary from CRAN using R CMD INSTALL.

Comments:

No Comments Have Been Posted

Attached Files:

Changes

Field Old Value Date By
status_idOpen2021-02-02 18:03murdoch
close_dateNone2021-02-02 18:03murdoch
ResolutionNone2021-02-02 18:03murdoch
Thanks to:
Vienna University of Economics and Business Powered By FusionForge