Comments (13)
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.
Hi,
This did not work for me. The compiled executables had a wrong behaviour.
from admixtools.
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.
@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.
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.
from admixtools.
Thanks bumblenick! Will you be updating the Makefile in AdmixTools at Github?
from admixtools.
from admixtools.
What about source files such as qpAdm.c. Will those be updated?
from admixtools.
from admixtools.
I have resolved the original Makefile issue here in caef66e.
from admixtools.
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.
@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)
- Warning while using mergeit
- examples/qpWave.log is missing HOT 1
- Convertf error "fatalx: no valid samples!" HOT 1
- Using f3 to test gene flow from ghost species HOT 3
- Negative outgroup f3 statistics
- zsh: segmentation fault (core dumped) HOT 1
- qpadm with single sample - is it possible to run? HOT 2
- Issue with directories with spaces during install
- qpF4Ration
- warning: bad chrom HOT 2
- Compilation issues on the latest macOS Monterey (M1 Mac) HOT 1
- qpAdm: command not found
- qpWave - Segmentation fault (core dumped) HOT 9
- qpDstat Segmentation fault (core dumped)
- What‘s mean the "best" in the result from the qpDstat?
- something about qpGraph
- qpAdm - "pop: ??? has sample size 1 and inbreed set" error message HOT 2
- Not enough RAM for qpfstats? HOT 1
- only 71 lines and truncated
- Nothing happens when using convertf for PACKEDPED to PACKEDANCESTRYMAP HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from admixtools.