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

Fails to install on Mac OS X 10.11 #135

Closed
rustyconover opened this issue Jan 8, 2016 · 10 comments
Closed

Fails to install on Mac OS X 10.11 #135

rustyconover opened this issue Jan 8, 2016 · 10 comments

Comments

@rustyconover
Copy link

> devtools::install_github("igraph/rigraph")
Downloading GitHub repo igraph/rigraph@master
Installing igraph
'/usr/local/Cellar/r/3.2.2_1/R.framework/Resources/bin/R' --no-site-file  \
  --no-environ --no-save --no-restore CMD INSTALL  \
  '/private/var/folders/11/8ydpws752f100kjcy0jzhpdh0000gn/T/Rtmp80DI80/devtoolsaa70783b2c0f/igraph-rigraph-057cc9d'  \
  --library='/usr/local/lib/R/site-library' --install-tests 

* installing *source* package ‘igraph’ ...
....[good lines]...
clang -I/usr/local/Cellar/r/3.2.2_1/R.framework/Resources/include -DNDEBUG -I/usr/local/include  -I/usr/local/opt/gettext/include -I/usr/local/opt/readline/include -I/usr/local/opt/openssl/include -I/usr/local/include  -I/usr/local/include  -DUSING_R -I. -Iinclude -Ics -Iglpk -Iplfit -ICHOLMOD/Include -IAMD/Include -ICOLAMD/Include -ISuiteSparse_config -g -O2 -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/usr/include/libxml2 -g -O2 -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/usr/include/libxml2 -DNDEBUG -DNPARTITION -DNTIMER -DNCAMD -DNPRINT -DPACKAGE_VERSION=\"1.1.0\" -DINTERNAL_ARPACK -DIGRAPH_THREAD_LOCAL=/**/ -fPIC  -g -O2  -c CHOLMOD/Check/cholmod_check.c -o CHOLMOD/Check/cholmod_check.o
CHOLMOD/Check/cholmod_check.c:170:2: error: no member named 'print_function' in 'struct cholmod_common_struct'
        PRINTVALUE (Xx [p]) ;
        ^~~~~~~~~~~~~~~~~~~
CHOLMOD/Check/cholmod_check.c:112:2: note: expanded from macro 'PRINTVALUE'
        P4 (" %23.15e", value) ; \
        ^~~~~~~~~~~~~~~~~~~~~~
CHOLMOD/Check/cholmod_check.c:93:24: note: expanded from macro 'P4'
#define P4(format,arg) PR(4,format,arg)
                       ^~~~~~~~~~~~~~~~
CHOLMOD/Check/cholmod_check.c:84:31: note: expanded from macro 'PR'
    if (print >= i && Common->print_function != NULL) \
                      ~~~~~~  ^
CHOLMOD/Check/cholmod_check.c:170:2: error: no member named 'print_function' in 'struct cholmod_common_struct'
        PRINTVALUE (Xx [p]) ;
        ^~~~~~~~~~~~~~~~~~~
CHOLMOD/Check/cholmod_check.c:112:2: note: expanded from macro 'PRINTVALUE'
        P4 (" %23.15e", value) ; \
        ^~~~~~~~~~~~~~~~~~~~~~
CHOLMOD/Check/cholmod_check.c:93:24: note: expanded from macro 'P4'
#define P4(format,arg) PR(4,format,arg)
                       ^~~~~~~~~~~~~~~~
CHOLMOD/Check/cholmod_check.c:86:11: note: expanded from macro 'PR'
        (Common->print_function) (format, arg) ; \
         ~~~~~~  ^
CHOLMOD/Check/cholmod_check.c:170:2: error: no member named 'print_function' in 'struct cholmod_common_struct'
        PRINTVALUE (Xx [p]) ;
        ^~~~~~~~~~~~~~~~~~~
CHOLMOD/Check/cholmod_check.c:116:2: note: expanded from macro 'PRINTVALUE'
        P4 (" %.5g", value) ; \
        ^~~~~~~~~~~~~~~~~~~
CHOLMOD/Check/cholmod_check.c:93:24: note: expanded from macro 'P4'
#define P4(format,arg) PR(4,format,arg)
                       ^~~~~~~~~~~~~~~~
CHOLMOD/Check/cholmod_check.c:84:31: note: expanded from macro 'PR'
    if (print >= i && Common->print_function != NULL) \
                      ~~~~~~  ^
CHOLMOD/Check/cholmod_check.c:170:2: error: no member named 'print_function' in 'struct cholmod_common_struct'
        PRINTVALUE (Xx [p]) ;
        ^~~~~~~~~~~~~~~~~~~
CHOLMOD/Check/cholmod_check.c:116:2: note: expanded from macro 'PRINTVALUE'
        P4 (" %.5g", value) ; \
        ^~~~~~~~~~~~~~~~~~~
CHOLMOD/Check/cholmod_check.c:93:24: note: expanded from macro 'P4'
#define P4(format,arg) PR(4,format,arg)
                       ^~~~~~~~~~~~~~~~
CHOLMOD/Check/cholmod_check.c:86:11: note: expanded from macro 'PR'
        (Common->print_function) (format, arg) ; \
         ~~~~~~  ^
CHOLMOD/Check/cholmod_check.c:174:2: error: no member named 'print_function' in 'struct cholmod_common_struct'
        P4 ("%s", "(") ;
        ^~~~~~~~~~~~~~
CHOLMOD/Check/cholmod_check.c:93:24: note: expanded from macro 'P4'
#define P4(format,arg) PR(4,format,arg)
                       ^~~~~~~~~~~~~~~~
CHOLMOD/Check/cholmod_check.c:84:31: note: expanded from macro 'PR'
    if (print >= i && Common->print_function != NULL) \
                      ~~~~~~  ^
CHOLMOD/Check/cholmod_check.c:174:2: error: no member named 'print_function' in 'struct cholmod_common_struct'
        P4 ("%s", "(") ;
        ^~~~~~~~~~~~~~
CHOLMOD/Check/cholmod_check.c:93:24: note: expanded from macro 'P4'
#define P4(format,arg) PR(4,format,arg)
                       ^~~~~~~~~~~~~~~~
CHOLMOD/Check/cholmod_check.c:86:11: note: expanded from macro 'PR'
        (Common->print_function) (format, arg) ; \
         ~~~~~~  ^
CHOLMOD/Check/cholmod_check.c:175:2: error: no member named 'print_function' in 'struct cholmod_common_struct'
        PRINTVALUE (Xx [2*p  ]) ;
        ^~~~~~~~~~~~~~~~~~~~~~~
CHOLMOD/Check/cholmod_check.c:112:2: note: expanded from macro 'PRINTVALUE'
        P4 (" %23.15e", value) ; \
        ^~~~~~~~~~~~~~~~~~~~~~
CHOLMOD/Check/cholmod_check.c:93:24: note: expanded from macro 'P4'
#define P4(format,arg) PR(4,format,arg)
                       ^~~~~~~~~~~~~~~~
CHOLMOD/Check/cholmod_check.c:84:31: note: expanded from macro 'PR'
    if (print >= i && Common->print_function != NULL) \
                      ~~~~~~  ^
CHOLMOD/Check/cholmod_check.c:175:2: error: no member named 'print_function' in 'struct cholmod_common_struct'
        PRINTVALUE (Xx [2*p  ]) ;
        ^~~~~~~~~~~~~~~~~~~~~~~
CHOLMOD/Check/cholmod_check.c:112:2: note: expanded from macro 'PRINTVALUE'
        P4 (" %23.15e", value) ; \
        ^~~~~~~~~~~~~~~~~~~~~~
CHOLMOD/Check/cholmod_check.c:93:24: note: expanded from macro 'P4'
#define P4(format,arg) PR(4,format,arg)
                       ^~~~~~~~~~~~~~~~
CHOLMOD/Check/cholmod_check.c:86:11: note: expanded from macro 'PR'
        (Common->print_function) (format, arg) ; \
         ~~~~~~  ^
CHOLMOD/Check/cholmod_check.c:175:2: error: no member named 'print_function' in 'struct cholmod_common_struct'
        PRINTVALUE (Xx [2*p  ]) ;
        ^~~~~~~~~~~~~~~~~~~~~~~
CHOLMOD/Check/cholmod_check.c:116:2: note: expanded from macro 'PRINTVALUE'
        P4 (" %.5g", value) ; \
        ^~~~~~~~~~~~~~~~~~~
CHOLMOD/Check/cholmod_check.c:93:24: note: expanded from macro 'P4'
#define P4(format,arg) PR(4,format,arg)
                       ^~~~~~~~~~~~~~~~
CHOLMOD/Check/cholmod_check.c:84:31: note: expanded from macro 'PR'
    if (print >= i && Common->print_function != NULL) \
                      ~~~~~~  ^
CHOLMOD/Check/cholmod_check.c:175:2: error: no member named 'print_function' in 'struct cholmod_common_struct'
        PRINTVALUE (Xx [2*p  ]) ;
        ^~~~~~~~~~~~~~~~~~~~~~~
CHOLMOD/Check/cholmod_check.c:116:2: note: expanded from macro 'PRINTVALUE'
        P4 (" %.5g", value) ; \
        ^~~~~~~~~~~~~~~~~~~
CHOLMOD/Check/cholmod_check.c:93:24: note: expanded from macro 'P4'
#define P4(format,arg) PR(4,format,arg)
                       ^~~~~~~~~~~~~~~~
CHOLMOD/Check/cholmod_check.c:86:11: note: expanded from macro 'PR'
        (Common->print_function) (format, arg) ; \
         ~~~~~~  ^
CHOLMOD/Check/cholmod_check.c:176:2: error: no member named 'print_function' in 'struct cholmod_common_struct'
        P4 ("%s", " , ") ;
        ^~~~~~~~~~~~~~~~
CHOLMOD/Check/cholmod_check.c:93:24: note: expanded from macro 'P4'
#define P4(format,arg) PR(4,format,arg)
                       ^~~~~~~~~~~~~~~~
CHOLMOD/Check/cholmod_check.c:84:31: note: expanded from macro 'PR'
    if (print >= i && Common->print_function != NULL) \
                      ~~~~~~  ^
CHOLMOD/Check/cholmod_check.c:176:2: error: no member named 'print_function' in 'struct cholmod_common_struct'
        P4 ("%s", " , ") ;
        ^~~~~~~~~~~~~~~~
CHOLMOD/Check/cholmod_check.c:93:24: note: expanded from macro 'P4'
#define P4(format,arg) PR(4,format,arg)
                       ^~~~~~~~~~~~~~~~
CHOLMOD/Check/cholmod_check.c:86:11: note: expanded from macro 'PR'
        (Common->print_function) (format, arg) ; \
         ~~~~~~  ^
CHOLMOD/Check/cholmod_check.c:177:2: error: no member named 'print_function' in 'struct cholmod_common_struct'
        PRINTVALUE (Xx [2*p+1]) ;
        ^~~~~~~~~~~~~~~~~~~~~~~
CHOLMOD/Check/cholmod_check.c:112:2: note: expanded from macro 'PRINTVALUE'
        P4 (" %23.15e", value) ; \
        ^~~~~~~~~~~~~~~~~~~~~~
CHOLMOD/Check/cholmod_check.c:93:24: note: expanded from macro 'P4'
#define P4(format,arg) PR(4,format,arg)
                       ^~~~~~~~~~~~~~~~
CHOLMOD/Check/cholmod_check.c:84:31: note: expanded from macro 'PR'
    if (print >= i && Common->print_function != NULL) \
                      ~~~~~~  ^
CHOLMOD/Check/cholmod_check.c:177:2: error: no member named 'print_function' in 'struct cholmod_common_struct'
        PRINTVALUE (Xx [2*p+1]) ;
        ^~~~~~~~~~~~~~~~~~~~~~~
CHOLMOD/Check/cholmod_check.c:112:2: note: expanded from macro 'PRINTVALUE'
        P4 (" %23.15e", value) ; \
        ^~~~~~~~~~~~~~~~~~~~~~
CHOLMOD/Check/cholmod_check.c:93:24: note: expanded from macro 'P4'
#define P4(format,arg) PR(4,format,arg)
                       ^~~~~~~~~~~~~~~~
CHOLMOD/Check/cholmod_check.c:86:11: note: expanded from macro 'PR'
        (Common->print_function) (format, arg) ; \
         ~~~~~~  ^
CHOLMOD/Check/cholmod_check.c:177:2: error: no member named 'print_function' in 'struct cholmod_common_struct'
        PRINTVALUE (Xx [2*p+1]) ;
        ^~~~~~~~~~~~~~~~~~~~~~~
CHOLMOD/Check/cholmod_check.c:116:2: note: expanded from macro 'PRINTVALUE'
        P4 (" %.5g", value) ; \
        ^~~~~~~~~~~~~~~~~~~
CHOLMOD/Check/cholmod_check.c:93:24: note: expanded from macro 'P4'
#define P4(format,arg) PR(4,format,arg)
                       ^~~~~~~~~~~~~~~~
CHOLMOD/Check/cholmod_check.c:84:31: note: expanded from macro 'PR'
    if (print >= i && Common->print_function != NULL) \
                      ~~~~~~  ^
CHOLMOD/Check/cholmod_check.c:177:2: error: no member named 'print_function' in 'struct cholmod_common_struct'
        PRINTVALUE (Xx [2*p+1]) ;
        ^~~~~~~~~~~~~~~~~~~~~~~
CHOLMOD/Check/cholmod_check.c:116:2: note: expanded from macro 'PRINTVALUE'
        P4 (" %.5g", value) ; \
        ^~~~~~~~~~~~~~~~~~~
CHOLMOD/Check/cholmod_check.c:93:24: note: expanded from macro 'P4'
#define P4(format,arg) PR(4,format,arg)
                       ^~~~~~~~~~~~~~~~
CHOLMOD/Check/cholmod_check.c:86:11: note: expanded from macro 'PR'
        (Common->print_function) (format, arg) ; \
         ~~~~~~  ^
CHOLMOD/Check/cholmod_check.c:178:2: error: no member named 'print_function' in 'struct cholmod_common_struct'
        P4 ("%s", ")") ;
        ^~~~~~~~~~~~~~
CHOLMOD/Check/cholmod_check.c:93:24: note: expanded from macro 'P4'
#define P4(format,arg) PR(4,format,arg)
                       ^~~~~~~~~~~~~~~~
CHOLMOD/Check/cholmod_check.c:84:31: note: expanded from macro 'PR'
    if (print >= i && Common->print_function != NULL) \
                      ~~~~~~  ^
CHOLMOD/Check/cholmod_check.c:178:2: error: no member named 'print_function' in 'struct cholmod_common_struct'
        P4 ("%s", ")") ;
        ^~~~~~~~~~~~~~
CHOLMOD/Check/cholmod_check.c:93:24: note: expanded from macro 'P4'
#define P4(format,arg) PR(4,format,arg)
                       ^~~~~~~~~~~~~~~~
CHOLMOD/Check/cholmod_check.c:86:11: note: expanded from macro 'PR'
        (Common->print_function) (format, arg) ; \
         ~~~~~~  ^
CHOLMOD/Check/cholmod_check.c:182:2: error: no member named 'print_function' in 'struct cholmod_common_struct'
        P4 ("%s", "(") ;
        ^~~~~~~~~~~~~~
CHOLMOD/Check/cholmod_check.c:93:24: note: expanded from macro 'P4'
#define P4(format,arg) PR(4,format,arg)
                       ^~~~~~~~~~~~~~~~
CHOLMOD/Check/cholmod_check.c:84:31: note: expanded from macro 'PR'
    if (print >= i && Common->print_function != NULL) \
                      ~~~~~~  ^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
make: *** [CHOLMOD/Check/cholmod_check.o] Error 1
ERROR: compilation failed for package ‘graph’
@gaborcsardi
Copy link
Contributor

Looks like you use R from brew. Unfortunately I don't have the time to support that. You can try asking on StackOverflow.

@rundel
Copy link
Contributor

rundel commented Feb 27, 2016

I'm seeing the same issue with CRAN installed R when installing the package from source. I do also have homebrew installed and have been using its R distribution - but switching back to a CRAN install I am having the same issue (failure is at the same location for both R distros).

***Good results snipped***
clang -I/Library/Frameworks/R.framework/Resources/include -DNDEBUG  -I/usr/local/include -I/usr/local/include/freetype2 -I/opt/X11/include   -DUSING_R -I. -Iinclude -Ics -Iglpk -Iplfit -ICHOLMOD/Include -IAMD/Include -ICOLAMD/Include -ISuiteSparse_config -Wall -mtune=core2 -g -O2 -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/usr/include/libxml2 -Wall -mtune=core2 -g -O2 -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/usr/include/libxml2 -DNDEBUG -DNPARTITION -DNTIMER -DNCAMD -DNPRINT -DPACKAGE_VERSION=\"@VERSION@\" -DINTERNAL_ARPACK -DIGRAPH_THREAD_LOCAL=/**/ -fPIC  -Wall -mtune=core2 -g -O2  -c CHOLMOD/Check/cholmod_check.c -o CHOLMOD/Check/cholmod_check.o
CHOLMOD/Check/cholmod_check.c:170:2: error: no member named 'print_function' in 'struct cholmod_common_struct'
        PRINTVALUE (Xx [p]) ;
        ^~~~~~~~~~~~~~~~~~~
CHOLMOD/Check/cholmod_check.c:112:2: note: expanded from macro 'PRINTVALUE'
        P4 (" %23.15e", value) ; \
        ^~~~~~~~~~~~~~~~~~~~~~
CHOLMOD/Check/cholmod_check.c:93:24: note: expanded from macro 'P4'
#define P4(format,arg) PR(4,format,arg)
                       ^~~~~~~~~~~~~~~~
CHOLMOD/Check/cholmod_check.c:84:31: note: expanded from macro 'PR'
    if (print >= i && Common->print_function != NULL) \
                      ~~~~~~  ^
CHOLMOD/Check/cholmod_check.c:170:2: error: no member named 'print_function' in 'struct cholmod_common_struct'
        PRINTVALUE (Xx [p]) ;
        ^~~~~~~~~~~~~~~~~~~
CHOLMOD/Check/cholmod_check.c:112:2: note: expanded from macro 'PRINTVALUE'
        P4 (" %23.15e", value) ; \
        ^~~~~~~~~~~~~~~~~~~~~~
CHOLMOD/Check/cholmod_check.c:93:24: note: expanded from macro 'P4'
#define P4(format,arg) PR(4,format,arg)
                       ^~~~~~~~~~~~~~~~
CHOLMOD/Check/cholmod_check.c:86:11: note: expanded from macro 'PR'
        (Common->print_function) (format, arg) ; \
         ~~~~~~  ^
CHOLMOD/Check/cholmod_check.c:170:2: error: no member named 'print_function' in 'struct cholmod_common_struct'
        PRINTVALUE (Xx [p]) ;
        ^~~~~~~~~~~~~~~~~~~
CHOLMOD/Check/cholmod_check.c:116:2: note: expanded from macro 'PRINTVALUE'
        P4 (" %.5g", value) ; \
        ^~~~~~~~~~~~~~~~~~~
CHOLMOD/Check/cholmod_check.c:93:24: note: expanded from macro 'P4'
#define P4(format,arg) PR(4,format,arg)
                       ^~~~~~~~~~~~~~~~
CHOLMOD/Check/cholmod_check.c:84:31: note: expanded from macro 'PR'
    if (print >= i && Common->print_function != NULL) \
                      ~~~~~~  ^
CHOLMOD/Check/cholmod_check.c:170:2: error: no member named 'print_function' in 'struct cholmod_common_struct'
        PRINTVALUE (Xx [p]) ;
        ^~~~~~~~~~~~~~~~~~~
CHOLMOD/Check/cholmod_check.c:116:2: note: expanded from macro 'PRINTVALUE'
        P4 (" %.5g", value) ; \
        ^~~~~~~~~~~~~~~~~~~
CHOLMOD/Check/cholmod_check.c:93:24: note: expanded from macro 'P4'
#define P4(format,arg) PR(4,format,arg)
                       ^~~~~~~~~~~~~~~~
CHOLMOD/Check/cholmod_check.c:86:11: note: expanded from macro 'PR'
        (Common->print_function) (format, arg) ; \
         ~~~~~~  ^
CHOLMOD/Check/cholmod_check.c:174:2: error: no member named 'print_function' in 'struct cholmod_common_struct'
        P4 ("%s", "(") ;
        ^~~~~~~~~~~~~~
CHOLMOD/Check/cholmod_check.c:93:24: note: expanded from macro 'P4'
#define P4(format,arg) PR(4,format,arg)
                       ^~~~~~~~~~~~~~~~
CHOLMOD/Check/cholmod_check.c:84:31: note: expanded from macro 'PR'
    if (print >= i && Common->print_function != NULL) \
                      ~~~~~~  ^
CHOLMOD/Check/cholmod_check.c:174:2: error: no member named 'print_function' in 'struct cholmod_common_struct'
        P4 ("%s", "(") ;
        ^~~~~~~~~~~~~~
CHOLMOD/Check/cholmod_check.c:93:24: note: expanded from macro 'P4'
#define P4(format,arg) PR(4,format,arg)
                       ^~~~~~~~~~~~~~~~
CHOLMOD/Check/cholmod_check.c:86:11: note: expanded from macro 'PR'
        (Common->print_function) (format, arg) ; \
         ~~~~~~  ^
CHOLMOD/Check/cholmod_check.c:175:2: error: no member named 'print_function' in 'struct cholmod_common_struct'
        PRINTVALUE (Xx [2*p  ]) ;
        ^~~~~~~~~~~~~~~~~~~~~~~
CHOLMOD/Check/cholmod_check.c:112:2: note: expanded from macro 'PRINTVALUE'
        P4 (" %23.15e", value) ; \
        ^~~~~~~~~~~~~~~~~~~~~~
CHOLMOD/Check/cholmod_check.c:93:24: note: expanded from macro 'P4'
#define P4(format,arg) PR(4,format,arg)
                       ^~~~~~~~~~~~~~~~
CHOLMOD/Check/cholmod_check.c:84:31: note: expanded from macro 'PR'
    if (print >= i && Common->print_function != NULL) \
                      ~~~~~~  ^
CHOLMOD/Check/cholmod_check.c:175:2: error: no member named 'print_function' in 'struct cholmod_common_struct'
        PRINTVALUE (Xx [2*p  ]) ;
        ^~~~~~~~~~~~~~~~~~~~~~~
CHOLMOD/Check/cholmod_check.c:112:2: note: expanded from macro 'PRINTVALUE'
        P4 (" %23.15e", value) ; \
        ^~~~~~~~~~~~~~~~~~~~~~
CHOLMOD/Check/cholmod_check.c:93:24: note: expanded from macro 'P4'
#define P4(format,arg) PR(4,format,arg)
                       ^~~~~~~~~~~~~~~~
CHOLMOD/Check/cholmod_check.c:86:11: note: expanded from macro 'PR'
        (Common->print_function) (format, arg) ; \
         ~~~~~~  ^
CHOLMOD/Check/cholmod_check.c:175:2: error: no member named 'print_function' in 'struct cholmod_common_struct'
        PRINTVALUE (Xx [2*p  ]) ;
        ^~~~~~~~~~~~~~~~~~~~~~~
CHOLMOD/Check/cholmod_check.c:116:2: note: expanded from macro 'PRINTVALUE'
        P4 (" %.5g", value) ; \
        ^~~~~~~~~~~~~~~~~~~
CHOLMOD/Check/cholmod_check.c:93:24: note: expanded from macro 'P4'
#define P4(format,arg) PR(4,format,arg)
                       ^~~~~~~~~~~~~~~~
CHOLMOD/Check/cholmod_check.c:84:31: note: expanded from macro 'PR'
    if (print >= i && Common->print_function != NULL) \
                      ~~~~~~  ^
CHOLMOD/Check/cholmod_check.c:175:2: error: no member named 'print_function' in 'struct cholmod_common_struct'
        PRINTVALUE (Xx [2*p  ]) ;
        ^~~~~~~~~~~~~~~~~~~~~~~
CHOLMOD/Check/cholmod_check.c:116:2: note: expanded from macro 'PRINTVALUE'
        P4 (" %.5g", value) ; \
        ^~~~~~~~~~~~~~~~~~~
CHOLMOD/Check/cholmod_check.c:93:24: note: expanded from macro 'P4'
#define P4(format,arg) PR(4,format,arg)
                       ^~~~~~~~~~~~~~~~
CHOLMOD/Check/cholmod_check.c:86:11: note: expanded from macro 'PR'
        (Common->print_function) (format, arg) ; \
         ~~~~~~  ^
CHOLMOD/Check/cholmod_check.c:176:2: error: no member named 'print_function' in 'struct cholmod_common_struct'
        P4 ("%s", " , ") ;
        ^~~~~~~~~~~~~~~~
CHOLMOD/Check/cholmod_check.c:93:24: note: expanded from macro 'P4'
#define P4(format,arg) PR(4,format,arg)
                       ^~~~~~~~~~~~~~~~
CHOLMOD/Check/cholmod_check.c:84:31: note: expanded from macro 'PR'
    if (print >= i && Common->print_function != NULL) \
                      ~~~~~~  ^
CHOLMOD/Check/cholmod_check.c:176:2: error: no member named 'print_function' in 'struct cholmod_common_struct'
        P4 ("%s", " , ") ;
        ^~~~~~~~~~~~~~~~
CHOLMOD/Check/cholmod_check.c:93:24: note: expanded from macro 'P4'
#define P4(format,arg) PR(4,format,arg)
                       ^~~~~~~~~~~~~~~~
CHOLMOD/Check/cholmod_check.c:86:11: note: expanded from macro 'PR'
        (Common->print_function) (format, arg) ; \
         ~~~~~~  ^
CHOLMOD/Check/cholmod_check.c:177:2: error: no member named 'print_function' in 'struct cholmod_common_struct'
        PRINTVALUE (Xx [2*p+1]) ;
        ^~~~~~~~~~~~~~~~~~~~~~~
CHOLMOD/Check/cholmod_check.c:112:2: note: expanded from macro 'PRINTVALUE'
        P4 (" %23.15e", value) ; \
        ^~~~~~~~~~~~~~~~~~~~~~
CHOLMOD/Check/cholmod_check.c:93:24: note: expanded from macro 'P4'
#define P4(format,arg) PR(4,format,arg)
                       ^~~~~~~~~~~~~~~~
CHOLMOD/Check/cholmod_check.c:84:31: note: expanded from macro 'PR'
    if (print >= i && Common->print_function != NULL) \
                      ~~~~~~  ^
CHOLMOD/Check/cholmod_check.c:177:2: error: no member named 'print_function' in 'struct cholmod_common_struct'
        PRINTVALUE (Xx [2*p+1]) ;
        ^~~~~~~~~~~~~~~~~~~~~~~
CHOLMOD/Check/cholmod_check.c:112:2: note: expanded from macro 'PRINTVALUE'
        P4 (" %23.15e", value) ; \
        ^~~~~~~~~~~~~~~~~~~~~~
CHOLMOD/Check/cholmod_check.c:93:24: note: expanded from macro 'P4'
#define P4(format,arg) PR(4,format,arg)
                       ^~~~~~~~~~~~~~~~
CHOLMOD/Check/cholmod_check.c:86:11: note: expanded from macro 'PR'
        (Common->print_function) (format, arg) ; \
         ~~~~~~  ^
CHOLMOD/Check/cholmod_check.c:177:2: error: no member named 'print_function' in 'struct cholmod_common_struct'
        PRINTVALUE (Xx [2*p+1]) ;
        ^~~~~~~~~~~~~~~~~~~~~~~
CHOLMOD/Check/cholmod_check.c:116:2: note: expanded from macro 'PRINTVALUE'
        P4 (" %.5g", value) ; \
        ^~~~~~~~~~~~~~~~~~~
CHOLMOD/Check/cholmod_check.c:93:24: note: expanded from macro 'P4'
#define P4(format,arg) PR(4,format,arg)
                       ^~~~~~~~~~~~~~~~
CHOLMOD/Check/cholmod_check.c:84:31: note: expanded from macro 'PR'
    if (print >= i && Common->print_function != NULL) \
                      ~~~~~~  ^
CHOLMOD/Check/cholmod_check.c:177:2: error: no member named 'print_function' in 'struct cholmod_common_struct'
        PRINTVALUE (Xx [2*p+1]) ;
        ^~~~~~~~~~~~~~~~~~~~~~~
CHOLMOD/Check/cholmod_check.c:116:2: note: expanded from macro 'PRINTVALUE'
        P4 (" %.5g", value) ; \
        ^~~~~~~~~~~~~~~~~~~
CHOLMOD/Check/cholmod_check.c:93:24: note: expanded from macro 'P4'
#define P4(format,arg) PR(4,format,arg)
                       ^~~~~~~~~~~~~~~~
CHOLMOD/Check/cholmod_check.c:86:11: note: expanded from macro 'PR'
        (Common->print_function) (format, arg) ; \
         ~~~~~~  ^
CHOLMOD/Check/cholmod_check.c:178:2: error: no member named 'print_function' in 'struct cholmod_common_struct'
        P4 ("%s", ")") ;
        ^~~~~~~~~~~~~~
CHOLMOD/Check/cholmod_check.c:93:24: note: expanded from macro 'P4'
#define P4(format,arg) PR(4,format,arg)
                       ^~~~~~~~~~~~~~~~
CHOLMOD/Check/cholmod_check.c:84:31: note: expanded from macro 'PR'
    if (print >= i && Common->print_function != NULL) \
                      ~~~~~~  ^
CHOLMOD/Check/cholmod_check.c:178:2: error: no member named 'print_function' in 'struct cholmod_common_struct'
        P4 ("%s", ")") ;
        ^~~~~~~~~~~~~~
CHOLMOD/Check/cholmod_check.c:93:24: note: expanded from macro 'P4'
#define P4(format,arg) PR(4,format,arg)
                       ^~~~~~~~~~~~~~~~
CHOLMOD/Check/cholmod_check.c:86:11: note: expanded from macro 'PR'
        (Common->print_function) (format, arg) ; \
         ~~~~~~  ^
CHOLMOD/Check/cholmod_check.c:182:2: error: no member named 'print_function' in 'struct cholmod_common_struct'
        P4 ("%s", "(") ;
        ^~~~~~~~~~~~~~
CHOLMOD/Check/cholmod_check.c:93:24: note: expanded from macro 'P4'
#define P4(format,arg) PR(4,format,arg)
                       ^~~~~~~~~~~~~~~~
CHOLMOD/Check/cholmod_check.c:84:31: note: expanded from macro 'PR'
    if (print >= i && Common->print_function != NULL) \
                      ~~~~~~  ^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
make: *** [CHOLMOD/Check/cholmod_check.o] Error 1
ERROR: compilation failed for package ‘igraph’
* removing ‘/Library/Frameworks/R.framework/Versions/3.2/Resources/library/igraph’
* restoring previous ‘/Library/Frameworks/R.framework/Versions/3.2/Resources/library/igraph’

The downloaded source packages are in
    ‘/private/var/folders/k8/4z3ndjqd0nj1xczfp4ktnnzc0000gp/T/RtmpGUZLcI/downloaded_packages’
Warning message:
In install.packages("igraph", type = "source") :
  installation of package ‘igraph’ had non-zero exit status

@rundel
Copy link
Contributor

rundel commented Mar 1, 2016

This seems to be related to a couple of issues, see #111 for a fix for the package defined CFLAGS and this for a Homebrew related issue.

A short term fix for me was to uninstall suite-sparse via Homebrew, which removed the CHOLMOD headers that were causing the issue.

@ivirshup
Copy link

Minor update, brew unlink suite-sparse was sufficient for me to get igraph to install (then ran brew link suite-sparse to quickly re-enable).

@pat-s
Copy link

pat-s commented Nov 30, 2019

Since the above comment has so many upvotes and it also did the trick for me: Is there a chance this can be solved upstream?

(not using R from brew in combination with clang7)

@ktmeaton
Copy link

Minor update, brew unlink suite-sparse was sufficient for me to get igraph to install (then ran brew link suite-sparse to quickly re-enable).

For anyone encountering this problem with conda rather than brew, I found that suite-sparse was also the culprit:

conda remove suitesparse
conda install -c r r-igraph
conda install suitesparse

@vtraag
Copy link
Member

vtraag commented Mar 5, 2021

I believe this no longer should be any issue. You should be able to install using remotes::install_github("igraph/rigraph@master"), which at the time of writing contains the development version 1.2.6.9108. It now links explicitly to the internal suitesparse, and we no longer vendor CHOLMOD, so I think this should no longer be a problem. Please do give it a try @pat-s, @ktmeaton, @ivirshup and @rustyconover . If you do run into any issues, feel free to re-open this issue.

@bvaldebenitom
Copy link

@vtraag I stumbled upon the same issue, and using the "remotes" command results in

Error: (converted from warning) Setting LC_CTYPE failed, using "C"
Execution halted
Error: Failed to install 'igraph' from GitHub:
  (converted from warning) installation of package '/var/folders/b5/718shs9n01jfp6zqss98_y_m0000gn/T//Rtmps3Scpt/file74ff6386968d/igraph_1.2.6.9114.tar.gz' had non-zero exit status

@gaborcsardi
Copy link
Contributor

@bvaldebenitom That's not an igraph issue. Update remotes to version 2.3.0 and try again.

@bvaldebenitom
Copy link

@gaborcsardi thanks for the quick reply.. That worked!!

@github-actions github-actions bot locked and limited conversation to collaborators Mar 18, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants