DReichLab / AdmixTools

Tools test whether admixture occurred and more
183 stars 64 forks source link

install problem #9

Closed llq0325 closed 7 years ago

llq0325 commented 8 years ago

Hi all, I got problems during compiling. Anyone know how to solve this problem?

liu194@DeepPhylo:~/AdmixTools/src$ make all mkdir -p /home/liu194/AdmixTools/src/admixlib mkdir -p /home/liu194/AdmixTools/src/admixtables mkdir -p /home/liu194/AdmixTools/src/admixinclude mkdir -p /home/liu194/AdmixTools/src/../bin cp .h /home/liu194/AdmixTools/src/admixinclude
cp nicksrc/
.h /home/liu194/AdmixTools/src/admixinclude
ar -r libnick.a strsubs.o sortit.o vsubs.o statsubs.o linsubs.o getpars.o xsearch.o gauss.o gds.o ranlib libnick.a cp libnick.a /home/liu194/AdmixTools/src/admixlib/nicklib.a gcc -I/home/liu194/AdmixTools/src/admixinclude -g -lm -o qp3Pop qp3Pop.o qpsubs.o mcio.o ldsubs.o admutils.o egsubs.o regsubs.o /home/liu194/AdmixTools/src/admixlib/nicklib.a qpsubs.o: In function getpdata': /home/liu194/AdmixTools/src/qpsubs.c:143: undefined reference tosqrt' qpsubs.o: In function getcolx': /home/liu194/AdmixTools/src/qpsubs.c:336: undefined reference tosqrt' qpsubs.o: In function dofancy': /home/liu194/AdmixTools/src/qpsubs.c:401: undefined reference tosqrt' qpsubs.o: In function yll': /home/liu194/AdmixTools/src/qpsubs.c:450: undefined reference tolog' qpsubs.o: In function ridoutlier': /home/liu194/AdmixTools/src/qpsubs.c:713: undefined reference tosqrt' qpsubs.o: In function crho': /home/liu194/AdmixTools/src/qpsubs.c:1683: undefined reference tosqrt' qpsubs.o: In function wjackestx': /home/liu194/AdmixTools/src/qpsubs.c:2709: undefined reference tosqrt' qpsubs.o: In function wjackvestx': /home/liu194/AdmixTools/src/qpsubs.c:3216: undefined reference tosqrt' qpsubs.o: In function printnorm': /home/liu194/AdmixTools/src/qpsubs.c:3618: undefined reference tosqrt' mcio.o: In function nextmesh': /home/liu194/AdmixTools/src/mcio.c:701: undefined reference toceil' mcio.o: In function getgenos': /home/liu194/AdmixTools/src/mcio.c:1439: undefined reference toceil' mcio.o: In function outpack': /home/liu194/AdmixTools/src/mcio.c:2336: undefined reference toceil' mcio.o: In function ineigenstrat': /home/liu194/AdmixTools/src/mcio.c:2494: undefined reference toceil' mcio.o: In function inpack': /home/liu194/AdmixTools/src/mcio.c:2727: undefined reference toceil' mcio.o:/home/liu194/AdmixTools/src/mcio.c:3298: more undefined references to ceil' follow mcio.o: In functionkillhir2': /home/liu194/AdmixTools/src/mcio.c:4175: undefined reference to sqrt' mcio.o: In functioninpack2': /home/liu194/AdmixTools/src/mcio.c:4335: undefined reference to ceil' mcio.o: In functiongenoopenit': /home/liu194/AdmixTools/src/mcio.c:4689: undefined reference to ceil' ldsubs.o: In functionzdip0': /home/liu194/AdmixTools/src/ldsubs.c:488: undefined reference to sqrt' ldsubs.o: In functioncalccorr': /home/liu194/AdmixTools/src/ldsubs.c:574: undefined reference to sqrt' /home/liu194/AdmixTools/src/ldsubs.c:575: undefined reference tosqrt' /home/liu194/AdmixTools/src/ldsubs.c:585: undefined reference to log' /home/liu194/AdmixTools/src/ldsubs.c:586: undefined reference tosqrt' admutils.o: In function xxlog2': /home/liu194/AdmixTools/src/admutils.c:527: undefined reference tolog' admutils.o: In function kurtosis': /home/liu194/AdmixTools/src/admutils.c:1020: undefined reference tosqrt' regsubs.o: In function regressit': /home/liu194/AdmixTools/src/regsubs.c:73: undefined reference tolog' regsubs.o: In function regressitall': /home/liu194/AdmixTools/src/regsubs.c:86: undefined reference topow' regsubs.o: In function calcgh': /home/liu194/AdmixTools/src/regsubs.c:338: undefined reference tosqrt' regsubs.o: In function zlike': /home/liu194/AdmixTools/src/regsubs.c:368: undefined reference tolog' /home/liu194/AdmixTools/src/regsubs.c:368: undefined reference to log' regsubs.o: In functionhgrad': /home/liu194/AdmixTools/src/regsubs.c:618: undefined reference to pow' /home/liu194/AdmixTools/src/admixlib/nicklib.a(vsubs.o): In functionvsqrt': /home/liu194/AdmixTools/src/nicksrc/vsubs.c:75: undefined reference to sqrt' /home/liu194/AdmixTools/src/admixlib/nicklib.a(vsubs.o): In functionvlog': /home/liu194/AdmixTools/src/nicksrc/vsubs.c:106: undefined reference to log' /home/liu194/AdmixTools/src/admixlib/nicklib.a(vsubs.o): In functionvexp': /home/liu194/AdmixTools/src/nicksrc/vsubs.c:126: undefined reference to exp' /home/liu194/AdmixTools/src/admixlib/nicklib.a(vsubs.o): In functioncorr': /home/liu194/AdmixTools/src/nicksrc/vsubs.c:427: undefined reference to sqrt' /home/liu194/AdmixTools/src/admixlib/nicklib.a(vsubs.o): In functioncorrx': /home/liu194/AdmixTools/src/nicksrc/vsubs.c:456: undefined reference to sqrt' /home/liu194/AdmixTools/src/admixlib/nicklib.a(vsubs.o): In functionnnint': /home/liu194/AdmixTools/src/nicksrc/vsubs.c:780: undefined reference to lrint' /home/liu194/AdmixTools/src/admixlib/nicklib.a(vsubs.o): In functionrndit': /home/liu194/AdmixTools/src/nicksrc/vsubs.c:1244: undefined reference to nearbyint' /home/liu194/AdmixTools/src/admixlib/nicklib.a(vsubs.o): In functionNPlog2': /home/liu194/AdmixTools/src/nicksrc/vsubs.c:1352: undefined reference to log' /home/liu194/AdmixTools/src/admixlib/nicklib.a(vsubs.o): In functionlogfac': /home/liu194/AdmixTools/src/nicksrc/vsubs.c:1364: undefined reference to lgamma' /home/liu194/AdmixTools/src/admixlib/nicklib.a(vsubs.o): In functionlog2fac': /home/liu194/AdmixTools/src/nicksrc/vsubs.c:1418: undefined reference to lgamma' /home/liu194/AdmixTools/src/admixlib/nicklib.a(vsubs.o): In functionaddlog': /home/liu194/AdmixTools/src/nicksrc/vsubs.c:1441: undefined reference to exp' /home/liu194/AdmixTools/src/nicksrc/vsubs.c:1442: undefined reference tolog' /home/liu194/AdmixTools/src/admixlib/nicklib.a(vsubs.o): In function ipow2': /home/liu194/AdmixTools/src/nicksrc/vsubs.c:1476: undefined reference topow' /home/liu194/AdmixTools/src/admixlib/nicklib.a(vsubs.o): In function pow10': /home/liu194/AdmixTools/src/nicksrc/vsubs.c:1482: undefined reference toexp' /home/liu194/AdmixTools/src/admixlib/nicklib.a(vsubs.o): In function vpow10': /home/liu194/AdmixTools/src/nicksrc/vsubs.c:1491: undefined reference toexp' /home/liu194/AdmixTools/src/admixlib/nicklib.a(vsubs.o): In function vlog10': /home/liu194/AdmixTools/src/nicksrc/vsubs.c:1499: undefined reference tolog10' /home/liu194/AdmixTools/src/admixlib/nicklib.a(vsubs.o): In function hlife': /home/liu194/AdmixTools/src/nicksrc/vsubs.c:1934: undefined reference tolog' /home/liu194/AdmixTools/src/admixlib/nicklib.a(vsubs.o): In function isprime': /home/liu194/AdmixTools/src/nicksrc/vsubs.c:2222: undefined reference tosqrt' /home/liu194/AdmixTools/src/admixlib/nicklib.a(statsubs.o): In function nordis': /home/liu194/AdmixTools/src/nicksrc/statsubs.c:57: undefined reference toexp' /home/liu194/AdmixTools/src/nicksrc/statsubs.c:58: undefined reference to sqrt' /home/liu194/AdmixTools/src/admixlib/nicklib.a(statsubs.o): In functionntail': /home/liu194/AdmixTools/src/nicksrc/statsubs.c:86: undefined reference to erfc' /home/liu194/AdmixTools/src/nicksrc/statsubs.c:92: undefined reference toexp' /home/liu194/AdmixTools/src/nicksrc/statsubs.c:93: undefined reference to sqrt' /home/liu194/AdmixTools/src/admixlib/nicklib.a(statsubs.o): In functionzzprob': /home/liu194/AdmixTools/src/nicksrc/statsubs.c:113: undefined reference to sqrt' /home/liu194/AdmixTools/src/nicksrc/statsubs.c:113: undefined reference tolog' /home/liu194/AdmixTools/src/nicksrc/statsubs.c:116: undefined reference to sqrt' /home/liu194/AdmixTools/src/nicksrc/statsubs.c:119: undefined reference tolog' /home/liu194/AdmixTools/src/admixlib/nicklib.a(statsubs.o): In function medchi': /home/liu194/AdmixTools/src/nicksrc/statsubs.c:175: undefined reference tosqrt' /home/liu194/AdmixTools/src/admixlib/nicklib.a(statsubs.o): In function ks2': /home/liu194/AdmixTools/src/nicksrc/statsubs.c:245: undefined reference tosqrt' /home/liu194/AdmixTools/src/admixlib/nicklib.a(statsubs.o): In function probks': /home/liu194/AdmixTools/src/nicksrc/statsubs.c:273: undefined reference toexp' /home/liu194/AdmixTools/src/admixlib/nicklib.a(statsubs.o): In function conchiv': /home/liu194/AdmixTools/src/nicksrc/statsubs.c:323: undefined reference tosqrt' /home/liu194/AdmixTools/src/admixlib/nicklib.a(statsubs.o): In function z2x2': /home/liu194/AdmixTools/src/nicksrc/statsubs.c:373: undefined reference tosqrt' /home/liu194/AdmixTools/src/admixlib/nicklib.a(statsubs.o): In function zprob': /home/liu194/AdmixTools/src/nicksrc/statsubs.c:494: undefined reference tolog' /home/liu194/AdmixTools/src/admixlib/nicklib.a(statsubs.o): In function setzptable': /home/liu194/AdmixTools/src/nicksrc/statsubs.c:530: undefined reference tolog' /home/liu194/AdmixTools/src/admixlib/nicklib.a(statsubs.o): In function znewt': /home/liu194/AdmixTools/src/nicksrc/statsubs.c:551: undefined reference toexp' /home/liu194/AdmixTools/src/nicksrc/statsubs.c:551: undefined reference to sqrt' /home/liu194/AdmixTools/src/admixlib/nicklib.a(statsubs.o): In functionmleg': /home/liu194/AdmixTools/src/nicksrc/statsubs.c:609: undefined reference to log' /home/liu194/AdmixTools/src/nicksrc/statsubs.c:617: undefined reference tolog' /home/liu194/AdmixTools/src/nicksrc/statsubs.c:627: undefined reference to log' /home/liu194/AdmixTools/src/nicksrc/statsubs.c:637: undefined reference tolog' /home/liu194/AdmixTools/src/admixlib/nicklib.a(statsubs.o): In function psi': /home/liu194/AdmixTools/src/nicksrc/statsubs.c:662: undefined reference tolog' /home/liu194/AdmixTools/src/admixlib/nicklib.a(statsubs.o):/home/liu194/AdmixTools/src/nicksrc/statsubs.c:725: more undefined references to log' follow /home/liu194/AdmixTools/src/admixlib/nicklib.a(statsubs.o): In functionbessi1': /home/liu194/AdmixTools/src/nicksrc/statsubs.c:781: undefined reference to exp' /home/liu194/AdmixTools/src/nicksrc/statsubs.c:781: undefined reference tosqrt' /home/liu194/AdmixTools/src/admixlib/nicklib.a(statsubs.o): In function logbessi0': /home/liu194/AdmixTools/src/nicksrc/statsubs.c:807: undefined reference tolog' /home/liu194/AdmixTools/src/nicksrc/statsubs.c:821: undefined reference to log' /home/liu194/AdmixTools/src/nicksrc/statsubs.c:823: undefined reference tolog' /home/liu194/AdmixTools/src/admixlib/nicklib.a(statsubs.o): In function bessi0': /home/liu194/AdmixTools/src/nicksrc/statsubs.c:862: undefined reference toexp' /home/liu194/AdmixTools/src/nicksrc/statsubs.c:862: undefined reference to sqrt' /home/liu194/AdmixTools/src/admixlib/nicklib.a(statsubs.o): In functionli2': /home/liu194/AdmixTools/src/nicksrc/statsubs.c:916: undefined reference to log' /home/liu194/AdmixTools/src/nicksrc/statsubs.c:916: undefined reference tolog' /home/liu194/AdmixTools/src/admixlib/nicklib.a(statsubs.o): In function hwstat': /home/liu194/AdmixTools/src/nicksrc/statsubs.c:962: undefined reference tosqrt' /home/liu194/AdmixTools/src/admixlib/nicklib.a(statsubs.o): In function bprob': /home/liu194/AdmixTools/src/nicksrc/statsubs.c:978: undefined reference tolog' /home/liu194/AdmixTools/src/nicksrc/statsubs.c:978: undefined reference to log' /home/liu194/AdmixTools/src/admixlib/nicklib.a(statsubs.o): In functiongammprob': /home/liu194/AdmixTools/src/nicksrc/statsubs.c:993: undefined reference to log' /home/liu194/AdmixTools/src/nicksrc/statsubs.c:994: undefined reference tolog' /home/liu194/AdmixTools/src/admixlib/nicklib.a(statsubs.o): In function binlogtail': /home/liu194/AdmixTools/src/nicksrc/statsubs.c:1078: undefined reference tolog' /home/liu194/AdmixTools/src/admixlib/nicklib.a(statsubs.o):/home/liu194/AdmixTools/src/nicksrc/statsubs.c:1134: more undefined references to log' follow /home/liu194/AdmixTools/src/admixlib/nicklib.a(statsubs.o): In functionxlgamma': /home/liu194/AdmixTools/src/nicksrc/statsubs.c:1168: undefined reference to lgamma' /home/liu194/AdmixTools/src/nicksrc/statsubs.c:1173: undefined reference tolog' /home/liu194/AdmixTools/src/nicksrc/statsubs.c:1174: undefined reference to log' /home/liu194/AdmixTools/src/admixlib/nicklib.a(statsubs.o): In functionrtlchsq': /home/liu194/AdmixTools/src/nicksrc/statsubs.c:1194: undefined reference to sqrt' /home/liu194/AdmixTools/src/nicksrc/statsubs.c:1196: undefined reference toexp' /home/liu194/AdmixTools/src/admixlib/nicklib.a(statsubs.o): In function pochisq': /home/liu194/AdmixTools/src/nicksrc/statsubs.c:1233: undefined reference toexp' /home/liu194/AdmixTools/src/nicksrc/statsubs.c:1234: undefined reference to sqrt' /home/liu194/AdmixTools/src/nicksrc/statsubs.c:1242: undefined reference tolog' /home/liu194/AdmixTools/src/nicksrc/statsubs.c:1245: undefined reference to log' /home/liu194/AdmixTools/src/nicksrc/statsubs.c:1246: undefined reference toexp' /home/liu194/AdmixTools/src/nicksrc/statsubs.c:1253: undefined reference to sqrt' /home/liu194/AdmixTools/src/admixlib/nicklib.a(statsubs.o): In functioncritchi': /home/liu194/AdmixTools/src/nicksrc/statsubs.c:1289: undefined reference to log' /home/liu194/AdmixTools/src/nicksrc/statsubs.c:1293: undefined reference tosqrt' /home/liu194/AdmixTools/src/admixlib/nicklib.a(statsubs.o): In function pof': /home/liu194/AdmixTools/src/nicksrc/statsubs.c:1346: undefined reference tosqrt' /home/liu194/AdmixTools/src/nicksrc/statsubs.c:1349: undefined reference to atan' /home/liu194/AdmixTools/src/nicksrc/statsubs.c:1353: undefined reference tosqrt' /home/liu194/AdmixTools/src/nicksrc/statsubs.c:1358: undefined reference to sqrt' /home/liu194/AdmixTools/src/admixlib/nicklib.a(statsubs.o): In functionltlg1': /home/liu194/AdmixTools/src/nicksrc/statsubs.c:1446: undefined reference to log' /home/liu194/AdmixTools/src/nicksrc/statsubs.c:1447: undefined reference tolog' /home/liu194/AdmixTools/src/nicksrc/statsubs.c:1449: undefined reference to exp' /home/liu194/AdmixTools/src/admixlib/nicklib.a(statsubs.o): In functionrtlg2': /home/liu194/AdmixTools/src/nicksrc/statsubs.c:1486: undefined reference to log' /home/liu194/AdmixTools/src/nicksrc/statsubs.c:1487: undefined reference tolog' /home/liu194/AdmixTools/src/nicksrc/statsubs.c:1489: undefined reference to exp' /home/liu194/AdmixTools/src/admixlib/nicklib.a(statsubs.o): In functiontwdensx': /home/liu194/AdmixTools/src/nicksrc/statsubs.c:1543: undefined reference to log' /home/liu194/AdmixTools/src/nicksrc/statsubs.c:1544: undefined reference tolog' /home/liu194/AdmixTools/src/nicksrc/statsubs.c:1545: undefined reference to sqrt' /home/liu194/AdmixTools/src/nicksrc/statsubs.c:1547: undefined reference toexp' /home/liu194/AdmixTools/src/admixlib/nicklib.a(statsubs.o): In function twtailx': /home/liu194/AdmixTools/src/nicksrc/statsubs.c:1559: undefined reference tolog' /home/liu194/AdmixTools/src/nicksrc/statsubs.c:1560: undefined reference to log' /home/liu194/AdmixTools/src/nicksrc/statsubs.c:1561: undefined reference tosqrt' /home/liu194/AdmixTools/src/nicksrc/statsubs.c:1563: undefined reference to exp' /home/liu194/AdmixTools/src/admixlib/nicklib.a(statsubs.o): In functiontwnorm': /home/liu194/AdmixTools/src/nicksrc/statsubs.c:1597: undefined reference to sqrt' /home/liu194/AdmixTools/src/nicksrc/statsubs.c:1597: undefined reference tosqrt' /home/liu194/AdmixTools/src/nicksrc/statsubs.c:1599: undefined reference to sqrt' /home/liu194/AdmixTools/src/nicksrc/statsubs.c:1599: undefined reference tosqrt' /home/liu194/AdmixTools/src/nicksrc/statsubs.c:1600: undefined reference to pow' /home/liu194/AdmixTools/src/admixlib/nicklib.a(statsubs.o): In functiondirmult': /home/liu194/AdmixTools/src/nicksrc/statsubs.c:1853: undefined reference to lgamma' /home/liu194/AdmixTools/src/nicksrc/statsubs.c:1854: undefined reference tolgamma' /home/liu194/AdmixTools/src/nicksrc/statsubs.c:1856: undefined reference to lgamma' /home/liu194/AdmixTools/src/nicksrc/statsubs.c:1857: undefined reference tolgamma' /home/liu194/AdmixTools/src/admixlib/nicklib.a(statsubs.o): In function betai': /home/liu194/AdmixTools/src/nicksrc/statsubs.c:1898: undefined reference tolgamma' /home/liu194/AdmixTools/src/admixlib/nicklib.a(statsubs.o):/home/liu194/AdmixTools/src/nicksrc/statsubs.c:1898: more undefined references to lgamma' follow /home/liu194/AdmixTools/src/admixlib/nicklib.a(statsubs.o): In functionbetai': /home/liu194/AdmixTools/src/nicksrc/statsubs.c:1898: undefined reference to log' /home/liu194/AdmixTools/src/nicksrc/statsubs.c:1899: undefined reference tolog' /home/liu194/AdmixTools/src/nicksrc/statsubs.c:1897: undefined reference to exp' /home/liu194/AdmixTools/src/admixlib/nicklib.a(statsubs.o): In functionweightjackx': /home/liu194/AdmixTools/src/nicksrc/statsubs.c:2172: undefined reference to sqrt' /home/liu194/AdmixTools/src/admixlib/nicklib.a(statsubs.o): In functioncalcfc': /home/liu194/AdmixTools/src/nicksrc/statsubs.c:2232: undefined reference to cos' /home/liu194/AdmixTools/src/nicksrc/statsubs.c:2233: undefined reference tosqrt' /home/liu194/AdmixTools/src/nicksrc/statsubs.c:2243: undefined reference to cos' /home/liu194/AdmixTools/src/admixlib/nicklib.a(statsubs.o): In functionsetbino': /home/liu194/AdmixTools/src/nicksrc/statsubs.c:2307: undefined reference to exp' /home/liu194/AdmixTools/src/admixlib/nicklib.a(statsubs.o): In functiondither': /home/liu194/AdmixTools/src/nicksrc/statsubs.c:2362: undefined reference to sqrt' /home/liu194/AdmixTools/src/admixlib/nicklib.a(statsubs.o): In functionexx': /home/liu194/AdmixTools/src/nicksrc/statsubs.c:2408: undefined reference to exp' /home/liu194/AdmixTools/src/nicksrc/statsubs.c:2412: undefined reference toexp' /home/liu194/AdmixTools/src/admixlib/nicklib.a(linsubs.o): In function bal': /home/liu194/AdmixTools/src/nicksrc/linsubs.c:32: undefined reference tosqrt' /home/liu194/AdmixTools/src/admixlib/nicklib.a(linsubs.o): In function choldc': /home/liu194/AdmixTools/src/nicksrc/linsubs.c:276: undefined reference tosqrt' /home/liu194/AdmixTools/src/admixlib/nicklib.a(gauss.o): In function gauss': /home/liu194/AdmixTools/src/nicksrc/gauss.c:26: undefined reference tolog' /home/liu194/AdmixTools/src/nicksrc/gauss.c:26: undefined reference to sqrt' /home/liu194/AdmixTools/src/admixlib/nicklib.a(gds.o): In functionrandev1': /home/liu194/AdmixTools/src/nicksrc/gds.c:42: undefined reference to sqrt' /home/liu194/AdmixTools/src/nicksrc/gds.c:49: undefined reference tolog' /home/liu194/AdmixTools/src/nicksrc/gds.c:49: undefined reference to log' /home/liu194/AdmixTools/src/admixlib/nicklib.a(gds.o): In functionrandev0': /home/liu194/AdmixTools/src/nicksrc/gds.c:65: undefined reference to exp' /home/liu194/AdmixTools/src/nicksrc/gds.c:70: undefined reference topow' /home/liu194/AdmixTools/src/nicksrc/gds.c:74: undefined reference to log' /home/liu194/AdmixTools/src/nicksrc/gds.c:75: undefined reference tolog' /home/liu194/AdmixTools/src/nicksrc/gds.c:81: undefined reference to log' /home/liu194/AdmixTools/src/admixlib/nicklib.a(gds.o): In functionranexp': /home/liu194/AdmixTools/src/nicksrc/gds.c:101: undefined reference to log' /home/liu194/AdmixTools/src/admixlib/nicklib.a(gds.o): In functionpoidev': /home/liu194/AdmixTools/src/nicksrc/gds.c:164: undefined reference to exp' /home/liu194/AdmixTools/src/nicksrc/gds.c:176: undefined reference tosqrt' /home/liu194/AdmixTools/src/nicksrc/gds.c:177: undefined reference to log' /home/liu194/AdmixTools/src/nicksrc/gds.c:178: undefined reference tolgamma' /home/liu194/AdmixTools/src/nicksrc/gds.c:182: undefined reference to tan' /home/liu194/AdmixTools/src/nicksrc/gds.c:185: undefined reference tofloor' /home/liu194/AdmixTools/src/nicksrc/gds.c:186: undefined reference to lgamma' /home/liu194/AdmixTools/src/nicksrc/gds.c:186: undefined reference toexp' /home/liu194/AdmixTools/src/admixlib/nicklib.a(gds.o): In function ranpoiss1': /home/liu194/AdmixTools/src/nicksrc/gds.c:432: undefined reference toexp' /home/liu194/AdmixTools/src/admixlib/nicklib.a(gds.o): In function raninvwis': /home/liu194/AdmixTools/src/nicksrc/gds.c:557: undefined reference tosqrt' /home/liu194/AdmixTools/src/nicksrc/gds.c:565: undefined reference to sqrt' /home/liu194/AdmixTools/src/admixlib/nicklib.a(gds.o): In functionrant': /home/liu194/AdmixTools/src/nicksrc/gds.c:680: undefined reference to sqrt' /home/liu194/AdmixTools/src/nicksrc/gds.c:684: undefined reference tosqrt' /home/liu194/AdmixTools/src/admixlib/nicklib.a(gds.o): In function samppow': /home/liu194/AdmixTools/src/nicksrc/gds.c:710: undefined reference tolog' /home/liu194/AdmixTools/src/nicksrc/gds.c:710: undefined reference to log' /home/liu194/AdmixTools/src/nicksrc/gds.c:714: undefined reference tolog' /home/liu194/AdmixTools/src/nicksrc/gds.c:714: undefined reference to log' /home/liu194/AdmixTools/src/nicksrc/gds.c:724: undefined reference toexp' /home/liu194/AdmixTools/src/admixlib/nicklib.a(gds.o): In function ranhprob': /home/liu194/AdmixTools/src/nicksrc/gds.c:821: undefined reference toexp' /home/liu194/AdmixTools/src/nicksrc/gds.c:838: undefined reference to exp' /home/liu194/AdmixTools/src/nicksrc/gds.c:839: undefined reference toexp' /home/liu194/AdmixTools/src/nicksrc/gds.c:839: undefined reference to `exp' collect2: ld returned 1 exit status make: *** [qp3Pop] Error 1

shubhamsaini commented 8 years ago

This is due to the recent changes to the gcc compiler. The flags, and their usage has changed. Try my makefile. Replace your Makefile with mine: http://pastebin.com/Fpjwzczh Run make clobber; make all; make install

francescomontinaro commented 7 years ago

Hi, This did not work for me. The compiled executables had a wrong behaviour.

XuexueLiu commented 7 years ago

I also used this new Makefile, but got the result: /usr/bin/ld: cannot find -lopenblas collect2: ld returned 1 exit status make: *** [qpAdm] Error 1 how should I deal with this problem, thankyou!

MatthewMah commented 7 years ago

@XuexueLiu This means the linker cannot find the required openblas library. You resolve this by adding the linker option to inform of the location of the library, which must be installed somewhere.

For example, if the library is located in the directory /n/app/openblas/0.2.19/lib add the gcc option -L/n/app/openblas/0.2.19/lib

geneanalyst commented 7 years ago

I also used this Makefile, but got the following error:

In file included from qpAdm.c:4:0: qpAdm.c: In function ‘calcevar’: qpAdm.c:1041:5: error: expected ‘(’ before ‘__builtin_isnan’ if isnan(y) { ^ qpAdm.c: In function ‘scorel’: qpAdm.c:1140:1: warning: implicit declaration of function ‘eigvecs’ [-Wimplicit-function-declaration] eigvecs(V, evals, evecs, n) ; ^

: recipe for target 'qpAdm.o' failed make: *** [qpAdm.o] Error 1 **I looked in qpAdm.c and checked line 1041. This is what is there:** ZALLOC (wjack, nblocks, double); for (k = 0; k < nblocks; ++k) { wjack[k] = asum (bbot[k], dim); y = asum(tmean[k], nl) ; **if isnan(y) {** copyarr(totmean, tmean[k], nl) ; wjack[k] = 0 ; } } **With regards to the warning this is what line 1140 in qpAdm looks like:** ZALLOC(evecs, n*n, double) ; ZALLOC(evals, n, double) ; ZALLOC(uvals, n, double) ; ZALLOC(u1, n, double) ; ZALLOC(theta, n, double) ; ZALLOC(ff, n, double) ; **eigvecs(V, evals, evecs, n) ;** mulmat(u1, evecs, d, n, n, 1) ; vst(u1, u1, 1000, n) ; vst(evals, evals, 1000*1000, n) ; copyarr(evals, theta, n) ; //printf("unorms: %12.6f %12.6f\n", asum2(u1, n), 1000*1000*asum2(d, n)) ; vvt(uvals, u1, u1, n) ; vmaxmin(theta, n, &tmax, &tmin) ; **Thanks in advance everyone.**
bumblenick commented 7 years ago

I fixed this (I hope). My compiler is more tolerant of sloppy code than yours!

Nick

On Fri, Jun 2, 2017 at 3:43 PM, geneanalyst notifications@github.com wrote:

I also used this Makefile, but got the following error:

In file included from qpAdm.c:4:0: qpAdm.c: In function ‘calcevar’: qpAdm.c:1041:5: error: expected ‘(’ before ‘__builtin_isnan’ if isnan(y) { ^ qpAdm.c: In function ‘scorel’: qpAdm.c:1140:1: warning: implicit declaration of function ‘eigvecs’ [-Wimplicit-function-declaration] eigvecs(V, evals, evecs, n) ; ^ : recipe for target 'qpAdm.o' failed make: *** [qpAdm.o] Error 1

I looked in qpAdm.c and checked line 1041. This is what is there:

ZALLOC (wjack, nblocks, double); for (k = 0; k < nblocks; ++k) { wjack[k] = asum (bbot[k], dim); y = asum(tmean[k], nl) ; if isnan(y) { copyarr(totmean, tmean[k], nl) ; wjack[k] = 0 ; }

}

Thanks in advance.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/DReichLab/AdmixTools/issues/9#issuecomment-305891314, or mute the thread https://github.com/notifications/unsubscribe-auth/AQn_h5YtkB3wl58Lc0Cs8L1kxXopgP8Tks5sAGXngaJpZM4Kpjq_ .

geneanalyst commented 7 years ago

Thanks bumblenick! Will you be updating the Makefile in AdmixTools at Github?

bumblenick commented 7 years ago

That's complicated. I'm learning that it's hard to produce a universal Makefile. We should improve the README to give better install instructions.

Nick

On Fri, Jun 2, 2017 at 4:03 PM, geneanalyst notifications@github.com wrote:

Thanks bumblenick! Will you be updating the Makefile in AdmixTools at Reichlab?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/DReichLab/AdmixTools/issues/9#issuecomment-305895753, or mute the thread https://github.com/notifications/unsubscribe-auth/AQn_h759neOPEMZOy-DvTBAanGGEYSHLks5sAGqMgaJpZM4Kpjq_ .

geneanalyst commented 7 years ago

What about source files such as qpAdm.c. Will those be updated?

bumblenick commented 7 years ago

Yes. We will do that

N

On Fri, Jun 2, 2017 at 4:11 PM, geneanalyst notifications@github.com wrote:

What about source files such as qpAdm.c. Will those be updated?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/DReichLab/AdmixTools/issues/9#issuecomment-305897360, or mute the thread https://github.com/notifications/unsubscribe-auth/AQn_h6_7xH2axPKE4oyBi5Sc8dMZB-mGks5sAGxfgaJpZM4Kpjq_ .

MatthewMah commented 7 years ago

I have resolved the original Makefile issue here in caef66e2e252cb4b7f0f15e6a68fa300ebba8fa9.

RCWilliams commented 7 years ago

I'm sorry I know this is closed, but I just installed AdmixTools (including the new Makefile) and I'm still getting the same error:

... collect2: error: ld returned 1 exit status make: *** [qp3Pop] Error 1

Any suggestions?

MatthewMah commented 7 years ago

@RCWilliams The messages that come before the ld error matter. If yours do not match those above, please open a new issue.