Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error in Compilation cgpBigWig #14

Open
mattoslmp opened this issue Oct 26, 2017 · 1 comment
Open

Error in Compilation cgpBigWig #14

mattoslmp opened this issue Oct 26, 2017 · 1 comment
Labels

Comments

@mattoslmp
Copy link

Dear Davir,
When I run the compilation (cgpBigWig) everything runs, but in the end I get an error bellow, any suggestion:

gcc -O3 -DVERSION='"0.4.4"' -g -I/usr/local/ICGC/include -I/usr/local/cgpBigWig-0.4.4/install_tmp/htslib/ -rdynamic -Wall ./bam2bwbases.c ./bam_access.o ./utils.o -L./htslib_tmp -L/usr/local/ICGC/lib -lBigWig -lz -lcurl -lm -lgnutls -ltasn1 -lhogweed -lnettle -lgmp -lp11-kit -lhts -lpthread -lz -lm -ldl -o ../bin/bam2bwbases
gcc -O3 -DVERSION='"0.4.4"' -g -I/usr/local/ICGC/include -I/usr/local/cgpBigWig-0.4.4/install_tmp/htslib/ -rdynamic -Wall ./bwjoin.c ./bam_access.o ./utils.o -L./htslib_tmp -L/usr/local/ICGC/lib -lhts -lpthread -lz -lm -ldl -lBigWig -lz -lcurl -lm -lgnutls -ltasn1 -lhogweed -lnettle -lgmp -lp11-kit -o ../bin/bwjoin
gcc -O3 -DVERSION='"0.4.4"' -g -I/usr/local/ICGC/include -I/usr/local/cgpBigWig-0.4.4/install_tmp/htslib/ -rdynamic -Wall ./catbw.c ./bam_access.o ./utils.o -L./htslib_tmp -L/usr/local/ICGC/lib -lhts -lpthread -lz -lm -ldl -lBigWig -lz -lcurl -lm -lgnutls -ltasn1 -lhogweed -lnettle -lgmp -lp11-kit -o ../bin/bwcat
gcc -O3 -DVERSION='"0.4.4"' -g -I/usr/local/ICGC/include -I/usr/local/cgpBigWig-0.4.4/install_tmp/htslib/ -rdynamic -Wall ./bg2bw.c ./bam_access.o ./utils.o -L./htslib_tmp -L/usr/local/ICGC/lib -lhts -lpthread -lz -lm -ldl -lBigWig -lz -lcurl -lm -lgnutls -ltasn1 -lhogweed -lnettle -lgmp -lp11-kit -o ../bin/bg2bw
gcc -O3 -DVERSION='"0.4.4"' -g -I/usr/local/ICGC/include -I/usr/local/cgpBigWig-0.4.4/install_tmp/htslib/ -rdynamic -Wall ./detectExtremeDepth.c ./bam_access.o ./utils.o -L./htslib_tmp -L/usr/local/ICGC/lib -lhts -lpthread -lz -lm -ldl -lBigWig -lz -lcurl -lm -lgnutls -ltasn1 -lhogweed -lnettle -lgmp -lp11-kit -o ../bin/detectExtremeDepth
remove tmp hts location
rm -rf ./htslib_tmp
gcc -O3 -DVERSION='"0.4.4"' -g -Wall -I/usr/local/ICGC/include -I/usr/local/cgpBigWig-0.4.4/install_tmp/htslib/ -rdynamic -I./ ./bam_access.o ./utils.o -L./htslib_tmp -lhts -lpthread -lz -lm -ldl -L/usr/local/ICGC/lib c_tests/utils_tests.c -o c_tests/utils_tests
./bam_access.o: In function process_bam_region_bases': /usr/local/cgpBigWig-0.4.4/c/bam_access.c:316: undefined reference to sam_index_load'
/usr/local/cgpBigWig-0.4.4/c/bam_access.c:334: undefined reference to sam_itr_querys' ./bam_access.o: In function process_bam_region':
/usr/local/cgpBigWig-0.4.4/c/bam_access.c:415: undefined reference to sam_index_load' /usr/local/cgpBigWig-0.4.4/c/bam_access.c:417: undefined reference to sam_itr_querys'
collect2: error: ld returned 1 exit status
make: *** [c_tests/utils_tests] Error 1
make: Leaving directory `/usr/local/cgpBigWig-0.4.4/c

Thanks,
Leandro

@ghost
Copy link

ghost commented Oct 30, 2017

@mattoslmp Looks like cbpBigWig isn't seeing the sam.h include file. How have you installed this? Using the standard ./setup.sh /path/to/install?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant