From: Deane, P. <pd...@et...> - 2005-04-29 13:19:43
|
Has anyone successfully compiled infomap on 64-bit linux? (AMD 64 running Debian with 64-bit libraries only). When I tried to compile 0.8.5 (using the 64-bit version of GCC), I get the following error messages during compile: myutils.c: In function `mymalloc': myutils.c:167: error: conflicting types for 'malloc' make[3]: *** [myutils.o] Error 1 make[2]: *** [all-recursive] Error 1 make[1]: *** [all-recursive] Error 1 When I comment out the offending line, it compiles, but I get memory errors when I attempt to run the program, i.e., the end of the log looks like this: ================================================== Building target: /export/home/bragi2/pdeane/test/left Prerequisites: /export/home/bragi2/pdeane/test/coll /export/home/bragi2/pdeane/t est/indx Fri Apr 29 09:06:56 EDT 2005 .................................................. cd /export/home/bragi2/pdeane/test && rm svd_diag left \ rght sing rm: cannot remove `svd_diag': No such file or directory rm: cannot remove `left': No such file or directory rm: cannot remove `rght': No such file or directory rm: cannot remove `sing': No such file or directory make: [/export/home/bragi2/pdeane/test/left] Error 1 (ignored) cd /export/home/bragi2/pdeane/test && svdinterface \ -singvals 100 \ -iter 100 This is svdinterface. Writing to: left Writing to: rght Writing to: sing Writing to: svd_diag Reading: indx Reading: indx Reading: coll make: *** [/export/home/bragi2/pdeane/test/left] Error 139 ---------------------------------------------------------------------------- ----------------- When I check the directory the model was being created in, this is the state of things, with the evidence suggesting that something when nastily wrong in the svdinterface code that calls the mymalloc function: -rw-r--r-- 1 pdeane nlp 2819650 Apr 29 09:06 coll -rw-r--r-- 1 pdeane nlp 374 Apr 29 09:06 corpus_format.bin -rw-r--r-- 1 pdeane nlp 157223 Apr 29 09:06 dic -rw-r--r-- 1 pdeane nlp 3939 Apr 29 09:06 indx -rw-r--r-- 1 pdeane nlp 0 Apr 29 09:06 left -rw-r--r-- 1 pdeane nlp 28 Apr 29 09:06 model_info.bin -rw-r--r-- 1 pdeane nlp 16396 Apr 29 09:06 model_params.bin -rw-r--r-- 1 pdeane nlp 4 Apr 29 09:06 numDocs -rw-r--r-- 1 pdeane nlp 0 Apr 29 09:06 rght -rw-r--r-- 1 pdeane nlp 0 Apr 29 09:06 sing -rw-r--r-- 1 pdeane nlp 0 Apr 29 09:06 svd_diag -rw-r--r-- 1 pdeane nlp 540345 Apr 29 09:06 wordlist I tried changing the defines e.g. BIGINT, BIGFLOAT in fixed.h to 64-bit values but this make no difference, and that was the only obvious 32-bit dependency I could see. Interestingly, the original SVDPACKC compiles and runs in my environment, so whatever is going on looks like it must be a function of the svdinterface code and associated changes. Also, btw, I have had no problem running infomap on a 32-bit linux machine nor under cygwin on a windows machine. Can anybody help me out here? Thanks Paul Deane ************************************************************************** This e-mail and any files transmitted with it may contain privileged or confidential information. It is solely for use by the individual for whom it is intended, even if addressed incorrectly. If you received this e-mail in error, please notify the sender; do not disclose, copy, distribute, or take any action in reliance on the contents of this information; and delete it from your system. Any other use of this e-mail is prohibited. Thank you for your compliance. |