Hello,
I am trying to make mrsFast v3.3.0 on Ubuntu, but I get an error message.
This is the code I have used:
git clone https://github.com/sfu-compbio/mrsfast
cd mrsfast
git checkout v3.3.0
make
And I get a list of warnings:
cc -fno-pic -DMRSFAST_VERSION=\""3.3.0"\" -DBUILD_DATE=\""Tue Nov 21 04:55:59 MST 2017"\" -DSSE4=1 -msse4.2 -O2 -c -o baseFAST.o baseFAST.c
cc -fno-pic -DMRSFAST_VERSION=\""3.3.0"\" -DBUILD_DATE=\""Tue Nov 21 04:55:59 MST 2017"\" -DSSE4=1 -msse4.2 -O2 -c -o Sort.o Sort.c
cc -fno-pic -DMRSFAST_VERSION=\""3.3.0"\" -DBUILD_DATE=\""Tue Nov 21 04:55:59 MST 2017"\" -DSSE4=1 -msse4.2 -O2 -c -o MrsFAST.o MrsFAST.c
MrsFAST.c:61: warning: integer constant is too large for ‘long’ type
MrsFAST.c: In function ‘countErrorsNormal’:
MrsFAST.c:449: warning: integer constant is too large for ‘long’ type
MrsFAST.c:454: warning: integer constant is too large for ‘long’ type
MrsFAST.c:470: warning: integer constant is too large for ‘long’ type
MrsFAST.c:478: warning: integer constant is too large for ‘long’ type
MrsFAST.c: In function ‘countErrorsSNP’:
MrsFAST.c:512: warning: integer constant is too large for ‘long’ type
MrsFAST.c:518: warning: integer constant is too large for ‘long’ type
MrsFAST.c:537: warning: integer constant is too large for ‘long’ type
MrsFAST.c:547: warning: integer constant is too large for ‘long’ type
MrsFAST.c: In function ‘calculateMD_SNP’:
MrsFAST.c:709: warning: integer constant is too large for ‘long’ type
MrsFAST.c: In function ‘calculateMD_Normal’:
MrsFAST.c:820: warning: integer constant is too large for ‘long’ type
MrsFAST.c: In function ‘calculateScore’:
MrsFAST.c:3428: warning: integer constant is too large for ‘long’ type
cc -fno-pic -DMRSFAST_VERSION=\""3.3.0"\" -DBUILD_DATE=\""Tue Nov 21 04:55:59 MST 2017"\" -DSSE4=1 -msse4.2 -O2 -c -o Common.o Common.c
cc -fno-pic -DMRSFAST_VERSION=\""3.3.0"\" -DBUILD_DATE=\""Tue Nov 21 04:55:59 MST 2017"\" -DSSE4=1 -msse4.2 -O2 -c -o CommandLineParser.o CommandLineParser.c
cc -fno-pic -DMRSFAST_VERSION=\""3.3.0"\" -DBUILD_DATE=\""Tue Nov 21 04:55:59 MST 2017"\" -DSSE4=1 -msse4.2 -O2 -c -o RefGenome.o RefGenome.c
RefGenome.c: In function ‘initLoadingRefGenome’:
RefGenome.c:61: warning: ignoring return value of ‘fscanf’, declared with attribute warn_unused_result
cc -fno-pic -DMRSFAST_VERSION=\""3.3.0"\" -DBUILD_DATE=\""Tue Nov 21 04:55:59 MST 2017"\" -DSSE4=1 -msse4.2 -O2 -c -o HashTable.o HashTable.c
HashTable.c: In function ‘calculateHashTableOnFly’:
HashTable.c:442: warning: integer constant is too large for ‘long’ type
HashTable.c:443: warning: integer constant is too large for ‘long’ type
HashTable.c: In function ‘loadHashTable’:
HashTable.c:646: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result
HashTable.c:647: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result
cc -fno-pic -DMRSFAST_VERSION=\""3.3.0"\" -DBUILD_DATE=\""Tue Nov 21 04:55:59 MST 2017"\" -DSSE4=1 -msse4.2 -O2 -c -o Reads.o Reads.c
cc -fno-pic -DMRSFAST_VERSION=\""3.3.0"\" -DBUILD_DATE=\""Tue Nov 21 04:55:59 MST 2017"\" -DSSE4=1 -msse4.2 -O2 -c -o Output.o Output.c
cc -fno-pic -DMRSFAST_VERSION=\""3.3.0"\" -DBUILD_DATE=\""Tue Nov 21 04:55:59 MST 2017"\" -DSSE4=1 -msse4.2 -O2 -c -o SNPReader.o SNPReader.c
SNPReader.c: In function ‘loadSNPMap’:
SNPReader.c:153: warning: integer constant is too large for ‘long’ type
gcc -w baseFAST.o Sort.o MrsFAST.o Common.o CommandLineParser.o RefGenome.o HashTable.o Reads.o Output.o SNPReader.o HELP.o -o mrsfast -lz -lm -pthread -lpthread
MrsFAST.o: In function countErrorsSNP':
MrsFAST.c:(.text+0x7098): undefined reference to_mm_popcnt_u64'
MrsFAST.c:(.text+0x726f): undefined reference to _mm_popcnt_u64'
MrsFAST.o: In functioncountErrorsNormal':
MrsFAST.c:(.text+0x73c9): undefined reference to _mm_popcnt_u64'
MrsFAST.c:(.text+0x752e): undefined reference to_mm_popcnt_u64'
collect2: ld returned 1 exit status
make: *** [mrsfast] Error 1
Can anyone help me?
Thank you
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hello,
I am trying to make mrsFast v3.3.0 on Ubuntu, but I get an error message.
This is the code I have used:
And I get a list of warnings:
cc -fno-pic -DMRSFAST_VERSION=\""3.3.0"\" -DBUILD_DATE=\""Tue Nov 21 04:55:59 MST 2017"\" -DSSE4=1 -msse4.2 -O2 -c -o baseFAST.o baseFAST.c
cc -fno-pic -DMRSFAST_VERSION=\""3.3.0"\" -DBUILD_DATE=\""Tue Nov 21 04:55:59 MST 2017"\" -DSSE4=1 -msse4.2 -O2 -c -o Sort.o Sort.c
cc -fno-pic -DMRSFAST_VERSION=\""3.3.0"\" -DBUILD_DATE=\""Tue Nov 21 04:55:59 MST 2017"\" -DSSE4=1 -msse4.2 -O2 -c -o MrsFAST.o MrsFAST.c
MrsFAST.c:61: warning: integer constant is too large for ‘long’ type
MrsFAST.c: In function ‘countErrorsNormal’:
MrsFAST.c:449: warning: integer constant is too large for ‘long’ type
MrsFAST.c:454: warning: integer constant is too large for ‘long’ type
MrsFAST.c:470: warning: integer constant is too large for ‘long’ type
MrsFAST.c:478: warning: integer constant is too large for ‘long’ type
MrsFAST.c: In function ‘countErrorsSNP’:
MrsFAST.c:512: warning: integer constant is too large for ‘long’ type
MrsFAST.c:518: warning: integer constant is too large for ‘long’ type
MrsFAST.c:537: warning: integer constant is too large for ‘long’ type
MrsFAST.c:547: warning: integer constant is too large for ‘long’ type
MrsFAST.c: In function ‘calculateMD_SNP’:
MrsFAST.c:709: warning: integer constant is too large for ‘long’ type
MrsFAST.c: In function ‘calculateMD_Normal’:
MrsFAST.c:820: warning: integer constant is too large for ‘long’ type
MrsFAST.c: In function ‘calculateScore’:
MrsFAST.c:3428: warning: integer constant is too large for ‘long’ type
cc -fno-pic -DMRSFAST_VERSION=\""3.3.0"\" -DBUILD_DATE=\""Tue Nov 21 04:55:59 MST 2017"\" -DSSE4=1 -msse4.2 -O2 -c -o Common.o Common.c
cc -fno-pic -DMRSFAST_VERSION=\""3.3.0"\" -DBUILD_DATE=\""Tue Nov 21 04:55:59 MST 2017"\" -DSSE4=1 -msse4.2 -O2 -c -o CommandLineParser.o CommandLineParser.c
cc -fno-pic -DMRSFAST_VERSION=\""3.3.0"\" -DBUILD_DATE=\""Tue Nov 21 04:55:59 MST 2017"\" -DSSE4=1 -msse4.2 -O2 -c -o RefGenome.o RefGenome.c
RefGenome.c: In function ‘initLoadingRefGenome’:
RefGenome.c:61: warning: ignoring return value of ‘fscanf’, declared with attribute warn_unused_result
cc -fno-pic -DMRSFAST_VERSION=\""3.3.0"\" -DBUILD_DATE=\""Tue Nov 21 04:55:59 MST 2017"\" -DSSE4=1 -msse4.2 -O2 -c -o HashTable.o HashTable.c
HashTable.c: In function ‘calculateHashTableOnFly’:
HashTable.c:442: warning: integer constant is too large for ‘long’ type
HashTable.c:443: warning: integer constant is too large for ‘long’ type
HashTable.c: In function ‘loadHashTable’:
HashTable.c:646: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result
HashTable.c:647: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result
cc -fno-pic -DMRSFAST_VERSION=\""3.3.0"\" -DBUILD_DATE=\""Tue Nov 21 04:55:59 MST 2017"\" -DSSE4=1 -msse4.2 -O2 -c -o Reads.o Reads.c
cc -fno-pic -DMRSFAST_VERSION=\""3.3.0"\" -DBUILD_DATE=\""Tue Nov 21 04:55:59 MST 2017"\" -DSSE4=1 -msse4.2 -O2 -c -o Output.o Output.c
cc -fno-pic -DMRSFAST_VERSION=\""3.3.0"\" -DBUILD_DATE=\""Tue Nov 21 04:55:59 MST 2017"\" -DSSE4=1 -msse4.2 -O2 -c -o SNPReader.o SNPReader.c
SNPReader.c: In function ‘loadSNPMap’:
SNPReader.c:153: warning: integer constant is too large for ‘long’ type
gcc -w baseFAST.o Sort.o MrsFAST.o Common.o CommandLineParser.o RefGenome.o HashTable.o Reads.o Output.o SNPReader.o HELP.o -o mrsfast -lz -lm -pthread -lpthread
MrsFAST.o: In function
countErrorsSNP': MrsFAST.c:(.text+0x7098): undefined reference to
_mm_popcnt_u64'MrsFAST.c:(.text+0x726f): undefined reference to
_mm_popcnt_u64' MrsFAST.o: In function
countErrorsNormal':MrsFAST.c:(.text+0x73c9): undefined reference to
_mm_popcnt_u64' MrsFAST.c:(.text+0x752e): undefined reference to
_mm_popcnt_u64'collect2: ld returned 1 exit status
make: *** [mrsfast] Error 1
Can anyone help me?
Thank you