2014-09-09 4 views
0

Je suis en train de compiler igraph 0.7.1 sous Windows en utilisant MinGW. Il y a trois étapes pour cela.erreur de compilation igraph dans MinGW

configure 
make 
make install 

configure fonctionne bien. Mais je reçois l'erreur suivante de make.

make all-recursive 
make[1]: Entering directory `/home/874469/igraph-0.7.1' 
Making all in src 
make[2]: Entering directory `/home/874469/igraph-0.7.1/src' 
make all-am 
make[3]: Entering directory `/home/874469/igraph-0.7.1/src' 
/bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. -DSkip_f2c_Undefs -I. -I../include -I../include -Wall -g -O2 -MT f2 
c/libf2c_la-dtime_.lo -MD -MP -MF f2c/.deps/libf2c_la-dtime_.Tpo -c -o f2c/libf2c_la-dtime_.lo `test -f 'f2c/dtime_.c' || echo './'`f2c/dtime_.c 
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -DSkip_f2c_Undefs -I. -I../include -I../include -Wall -g -O2 -MT f2c/libf2c_la-dtime_.lo -MD -MP 
-MF f2c/.deps/libf2c_la-dtime_.Tpo -c f2c/dtime_.c -DDLL_EXPORT -DPIC -o f2c/.libs/libf2c_la-dtime_.o 
f2c/dtime_.c:16:23: fatal error: sys/times.h: No such file or directory 
#include "sys/times.h" 
        ^
compilation terminated. 
make[3]: *** [f2c/libf2c_la-dtime_.lo] Error 1 
make[3]: Leaving directory `/home/874469/igraph-0.7.1/src' 
make[2]: *** [all] Error 2 
make[2]: Leaving directory `/home/874469/igraph-0.7.1/src' 
make[1]: *** [all-recursive] Error 1 
make[1]: Leaving directory `/home/874469/igraph-0.7.1' 
make: *** [all] Error 2 

Qu'est-ce qui ne va pas ici? J'utilise gcc et g ++ version 4.8.1. Erreurs attribuées après avoir suivi la suggestion de Tamas.

f2c/uninit.c: In function 'ieee0': 
f2c/uninit.c:182:2: warning: implicit declaration of function '_control87' [-Wimplicit-function-declaration] 
    _control87(EM_DENORMAL | EM_UNDERFLOW | EM_INEXACT, MCW_EM); 
^
f2c/uninit.c:171:21: error: '_EM_DENORMAL' undeclared (first use in this function) 
#define EM_DENORMAL _EM_DENORMAL 
        ^
f2c/uninit.c:182:13: note: in expansion of macro 'EM_DENORMAL' 
    _control87(EM_DENORMAL | EM_UNDERFLOW | EM_INEXACT, MCW_EM); 
      ^
f2c/uninit.c:171:21: note: each undeclared identifier is reported only once for each function it appears in 
#define EM_DENORMAL _EM_DENORMAL 
        ^
f2c/uninit.c:182:13: note: in expansion of macro 'EM_DENORMAL' 
    _control87(EM_DENORMAL | EM_UNDERFLOW | EM_INEXACT, MCW_EM); 
      ^
f2c/uninit.c:174:22: error: '_EM_UNDERFLOW' undeclared (first use in this function) 
#define EM_UNDERFLOW _EM_UNDERFLOW 
        ^
f2c/uninit.c:182:27: note: in expansion of macro 'EM_UNDERFLOW' 
    _control87(EM_DENORMAL | EM_UNDERFLOW | EM_INEXACT, MCW_EM); 
         ^
f2c/uninit.c:177:20: error: '_EM_INEXACT' undeclared (first use in this function) 
#define EM_INEXACT _EM_INEXACT 
        ^
f2c/uninit.c:182:42: note: in expansion of macro 'EM_INEXACT' 
    _control87(EM_DENORMAL | EM_UNDERFLOW | EM_INEXACT, MCW_EM); 
             ^
f2c/uninit.c:180:16: error: '_MCW_EM' undeclared (first use in this function) 
#define MCW_EM _MCW_EM 
       ^
f2c/uninit.c:182:54: note: in expansion of macro 'MCW_EM' 
    _control87(EM_DENORMAL | EM_UNDERFLOW | EM_INEXACT, MCW_EM); 
                ^
make[3]: *** [f2c/libf2c_la-uninit.lo] Error 1 
make[3]: Leaving directory `/home/874469/igraph-0.7.1/src' 
make[2]: *** [all] Error 2 
make[2]: Leaving directory `/home/874469/igraph-0.7.1/src' 
make[1]: *** [all-recursive] Error 1 
make[1]: Leaving directory `/home/874469/igraph-0.7.1' 
make: *** [all] Error 2 
+0

Il semble que d'autres personnes aient aussi trébuché sur ce problème en essayant de compiler igraph sous MinGW; voir cette réponse: http://stackoverflow.com/a/12766354/156771 –

Répondre

2

L'en-tête sys/times.h10 n'est pas disponible sur Windows. Cet en-tête semble être référencé de src/f2c/dtime_.c et src/f2c/etime_.c, mais seulement si USE_CLOCK n'est pas défini. Essayez recompiler igraph comme suit:

CFLAGS=-DUSE_CLOCK ./configure 
make 
make install 

Mise à jour: vous aurez également besoin d'autres modifications MinGW ne semble pas prendre en charge plusieurs autres choses qui sont utilisées par f2c, un composant de igraph. Voir this response sur Stack Overflow pour plus de choses à modifier.

+0

Maintenant, je reçois des tonnes d'erreurs de marque. –

+0

Je ne peux pas vous aider sans voir ces erreurs. –

+0

J'ai donné un petit sous-ensemble de la sortie. Il y a beaucoup plus d'erreurs. –

Questions connexes