Code Monkey home page Code Monkey logo

multidfe's People

Contributors

kousathanas avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

peterdfields

multidfe's Issues

Segfault - possibly caused by large sample size?

Hi Thanasis!

I am getting another segfault. This is on a simulation that has a large number of samples (2592 haplotypes sampled) and my suspicion is that MultiDFE sets a maximum sample or DFE size, and then doesn't check the input. (I note that dfe-alpha also sets an arbitrary compile-time maximum on this, but did screen the input.)

My first guess is that it is caused by

Multi_DFE_est_v1.0.c: int max_sfs_size=2000;

#but then but then worryingly a few lines later

char sfsname[2000]

#looks like it might be assuming the same limit, but not using the max_sfs_size to set it?

My other thought is that it might be caused by

bctmat01.hd: #define maxn 2000
bctmat01.hd: #define maxnd 2*maxn

#but then this same global is defined differently here:

Library_DFE_v1.0.h: #define maxnd 10000

make error

Hello-

I am trying to compile MultiDFE on a server and I'm getting multiple "multiple definition" errors, as shown below:

make gcc -o MultiDFE *.c -g -O3 -lm -lgsl -lgslcblas -w /accre/arch/easybuild/software/Compiler/GCCcore/10.2.0/binutils/2.35/bin/ld.gold: error: /tmp/ccpetgrl.o: multiple definition of 'n_t2_evaluated' /accre/arch/easybuild/software/Compiler/GCCcore/10.2.0/binutils/2.35/bin/ld.gold: /tmp/cc9K3ndw.o: previous definition here /accre/arch/easybuild/software/Compiler/GCCcore/10.2.0/binutils/2.35/bin/ld.gold: error: /tmp/ccpetgrl.o: multiple definition of 't2_lower' /accre/arch/easybuild/software/Compiler/GCCcore/10.2.0/binutils/2.35/bin/ld.gold: /tmp/cc9K3ndw.o: previous definition here /accre/arch/easybuild/software/Compiler/GCCcore/10.2.0/binutils/2.35/bin/ld.gold: error: /tmp/ccpetgrl.o: multiple definition of 't2_evaluated_vec' /accre/arch/easybuild/software/Compiler/GCCcore/10.2.0/binutils/2.35/bin/ld.gold: /tmp/cc9K3ndw.o: previous definition here /accre/arch/easybuild/software/Compiler/GCCcore/10.2.0/binutils/2.35/bin/ld.gold: error: /tmp/ccpetgrl.o: multiple definition of 'n2_evaluated_vec' /accre/arch/easybuild/software/Compiler/GCCcore/10.2.0/binutils/2.35/bin/ld.gold: /tmp/cc9K3ndw.o: previous definition here /accre/arch/easybuild/software/Compiler/GCCcore/10.2.0/binutils/2.35/bin/ld.gold: error: /tmp/ccpetgrl.o: multiple definition of 'n_s_evaluated' /accre/arch/easybuild/software/Compiler/GCCcore/10.2.0/binutils/2.35/bin/ld.gold: /tmp/cc9K3ndw.o: previous definition here /accre/arch/easybuild/software/Compiler/GCCcore/10.2.0/binutils/2.35/bin/ld.gold: error: /tmp/ccpetgrl.o: multiple definition of 's_evaluated_vec' /accre/arch/easybuild/software/Compiler/GCCcore/10.2.0/binutils/2.35/bin/ld.gold: /tmp/cc9K3ndw.o: previous definition here /accre/arch/easybuild/software/Compiler/GCCcore/10.2.0/binutils/2.35/bin/ld.gold: error: /tmp/ccpetgrl.o: multiple definition of 'data_path' /accre/arch/easybuild/software/Compiler/GCCcore/10.2.0/binutils/2.35/bin/ld.gold: /tmp/cc9K3ndw.o: previous definition here /accre/arch/easybuild/software/Compiler/GCCcore/10.2.0/binutils/2.35/bin/ld.gold: error: /tmp/ccpetgrl.o: multiple definition of 's_evaluated_vec_file' /accre/arch/easybuild/software/Compiler/GCCcore/10.2.0/binutils/2.35/bin/ld.gold: /tmp/cc9K3ndw.o: previous definition here /accre/arch/easybuild/software/Compiler/GCCcore/10.2.0/binutils/2.35/bin/ld.gold: error: /tmp/ccpetgrl.o: multiple definition of 's_range_file' /accre/arch/easybuild/software/Compiler/GCCcore/10.2.0/binutils/2.35/bin/ld.gold: /tmp/cc9K3ndw.o: previous definition here /accre/arch/easybuild/software/Compiler/GCCcore/10.2.0/binutils/2.35/bin/ld.gold: error: /tmp/ccpetgrl.o: multiple definition of 'n_s_evaluated_file' /accre/arch/easybuild/software/Compiler/GCCcore/10.2.0/binutils/2.35/bin/ld.gold: /tmp/cc9K3ndw.o: previous definition here /accre/arch/easybuild/software/Compiler/GCCcore/10.2.0/binutils/2.35/bin/ld.gold: error: /tmp/ccpetgrl.o: multiple definition of 'n2_evaluated_vec_file' /accre/arch/easybuild/software/Compiler/GCCcore/10.2.0/binutils/2.35/bin/ld.gold: /tmp/cc9K3ndw.o: previous definition here /accre/arch/easybuild/software/Compiler/GCCcore/10.2.0/binutils/2.35/bin/ld.gold: error: /tmp/ccpetgrl.o: multiple definition of 't2_evaluated_vec_file' /accre/arch/easybuild/software/Compiler/GCCcore/10.2.0/binutils/2.35/bin/ld.gold: /tmp/cc9K3ndw.o: previous definition here /accre/arch/easybuild/software/Compiler/GCCcore/10.2.0/binutils/2.35/bin/ld.gold: error: /tmp/ccpetgrl.o: multiple definition of 'phase_1_dir' /accre/arch/easybuild/software/Compiler/GCCcore/10.2.0/binutils/2.35/bin/ld.gold: /tmp/cc9K3ndw.o: previous definition here /accre/arch/easybuild/software/Compiler/GCCcore/10.2.0/binutils/2.35/bin/ld.gold: error: /tmp/ccpetgrl.o: multiple definition of 'phase_2_dir' /accre/arch/easybuild/software/Compiler/GCCcore/10.2.0/binutils/2.35/bin/ld.gold: /tmp/cc9K3ndw.o: previous definition here /accre/arch/easybuild/software/Compiler/GCCcore/10.2.0/binutils/2.35/bin/ld.gold: error: /tmp/ccpetgrl.o: multiple definition of 't2_step' /accre/arch/easybuild/software/Compiler/GCCcore/10.2.0/binutils/2.35/bin/ld.gold: /tmp/cc9K3ndw.o: previous definition here /accre/arch/easybuild/software/Compiler/GCCcore/10.2.0/binutils/2.35/bin/ld.gold: error: /tmp/ccpetgrl.o: multiple definition of 'n2_lower' /accre/arch/easybuild/software/Compiler/GCCcore/10.2.0/binutils/2.35/bin/ld.gold: /tmp/cc9K3ndw.o: previous definition here /accre/arch/easybuild/software/Compiler/GCCcore/10.2.0/binutils/2.35/bin/ld.gold: error: /tmp/ccpetgrl.o: multiple definition of 'n_n2_evaluated' /accre/arch/easybuild/software/Compiler/GCCcore/10.2.0/binutils/2.35/bin/ld.gold: /tmp/cc9K3ndw.o: previous definition here /accre/arch/easybuild/software/Compiler/GCCcore/10.2.0/binutils/2.35/bin/ld.gold: error: /tmp/ccpetgrl.o: multiple definition of 'const_pop_dir' /accre/arch/easybuild/software/Compiler/GCCcore/10.2.0/binutils/2.35/bin/ld.gold: /tmp/cc9K3ndw.o: previous definition here /accre/arch/easybuild/software/Compiler/GCCcore/10.2.0/binutils/2.35/bin/ld.gold: error: /tmp/ccpetgrl.o: multiple definition of 'neutrals_only_mode' /accre/arch/easybuild/software/Compiler/GCCcore/10.2.0/binutils/2.35/bin/ld.gold: /tmp/cc9K3ndw.o: previous definition here /accre/arch/easybuild/software/Compiler/GCCcore/10.2.0/binutils/2.35/bin/ld.gold: error: /tmp/ccpetgrl.o: multiple definition of 'verbose_mode' /accre/arch/easybuild/software/Compiler/GCCcore/10.2.0/binutils/2.35/bin/ld.gold: /tmp/cc9K3ndw.o: previous definition here /accre/arch/easybuild/software/Compiler/GCCcore/10.2.0/binutils/2.35/bin/ld.gold: error: /tmp/ccpetgrl.o: multiple definition of 'gss_n2' /accre/arch/easybuild/software/Compiler/GCCcore/10.2.0/binutils/2.35/bin/ld.gold: /tmp/cc9K3ndw.o: previous definition here /accre/arch/easybuild/software/Compiler/GCCcore/10.2.0/binutils/2.35/bin/ld.gold: error: /tmp/ccpetgrl.o: multiple definition of 'n_sfs' /accre/arch/easybuild/software/Compiler/GCCcore/10.2.0/binutils/2.35/bin/ld.gold: /tmp/cc9K3ndw.o: previous definition here /accre/arch/easybuild/software/Compiler/GCCcore/10.2.0/binutils/2.35/bin/ld.gold: error: /tmp/ccpetgrl.o: multiple definition of 'trace_level' /accre/arch/easybuild/software/Compiler/GCCcore/10.2.0/binutils/2.35/bin/ld.gold: /tmp/cc9K3ndw.o: previous definition here /accre/arch/easybuild/software/Compiler/GCCcore/10.2.0/binutils/2.35/bin/ld.gold: error: /tmp/ccpetgrl.o: multiple definition of 'nranges' /accre/arch/easybuild/software/Compiler/GCCcore/10.2.0/binutils/2.35/bin/ld.gold: /tmp/cc9K3ndw.o: previous definition here /accre/arch/easybuild/software/Compiler/GCCcore/10.2.0/binutils/2.35/bin/ld.gold: error: /tmp/ccpetgrl.o: multiple definition of 'file_label_str' /accre/arch/easybuild/software/Compiler/GCCcore/10.2.0/binutils/2.35/bin/ld.gold: /tmp/cc9K3ndw.o: previous definition here /accre/arch/easybuild/software/Compiler/GCCcore/10.2.0/binutils/2.35/bin/ld.gold: error: /tmp/ccpetgrl.o: multiple definition of 'total_density_s0' /accre/arch/easybuild/software/Compiler/GCCcore/10.2.0/binutils/2.35/bin/ld.gold: /tmp/cc9K3ndw.o: previous definition here /accre/arch/easybuild/software/Compiler/GCCcore/10.2.0/binutils/2.35/bin/ld.gold: error: /tmp/ccpetgrl.o: multiple definition of 'allele_freq_sampled' /accre/arch/easybuild/software/Compiler/GCCcore/10.2.0/binutils/2.35/bin/ld.gold: /tmp/cc9K3ndw.o: previous definition here /accre/arch/easybuild/software/Compiler/GCCcore/10.2.0/binutils/2.35/bin/ld.gold: error: /tmp/ccpetgrl.o: multiple definition of 's_ranges' /accre/arch/easybuild/software/Compiler/GCCcore/10.2.0/binutils/2.35/bin/ld.gold: /tmp/cc9K3ndw.o: previous definition here collect2: error: ld returned 1 exit status make: *** [MultiDFE] Error 1

How do I fix this issue?

Thanks,
Alissa

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.