Code Monkey home page Code Monkey logo

Comments (13)

shubhamsaini avatar shubhamsaini commented on July 21, 2024

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

from admixtools.

francescomontinaro avatar francescomontinaro commented on July 21, 2024

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

from admixtools.

XuexueLiu avatar XuexueLiu commented on July 21, 2024

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!

from admixtools.

MatthewMah avatar MatthewMah commented on July 21, 2024

@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

from admixtools.

geneanalyst avatar geneanalyst commented on July 21, 2024

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), 10001000asum2(d, n)) ;
vvt(uvals, u1, u1, n) ;
vmaxmin(theta, n, &tmax, &tmin) ;

Thanks in advance everyone.

from admixtools.

bumblenick avatar bumblenick commented on July 21, 2024

from admixtools.

geneanalyst avatar geneanalyst commented on July 21, 2024

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

from admixtools.

bumblenick avatar bumblenick commented on July 21, 2024

from admixtools.

geneanalyst avatar geneanalyst commented on July 21, 2024

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

from admixtools.

bumblenick avatar bumblenick commented on July 21, 2024

from admixtools.

MatthewMah avatar MatthewMah commented on July 21, 2024

I have resolved the original Makefile issue here in caef66e.

from admixtools.

RCWilliams avatar RCWilliams commented on July 21, 2024

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?

from admixtools.

MatthewMah avatar MatthewMah commented on July 21, 2024

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

from admixtools.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.