Open StuntsPT opened 9 years ago
the sprintf error above looks like it was fixed with c61bb90eeb558d
I'm still getting an error on Ubuntu 12.04:
g++ -c -O2 src/main.cpp -o src/main.o
g++ -c -O2 src/parameter.cpp -o src/parameter.o
g++ -c -O2 src/matrix.cpp -o src/matrix.o
g++ -c -O2 src/fastq.cpp -o src/fastq.o
src/fastq.cpp: In function ‘int64 gzsize(const char*)’:
src/fastq.cpp:211:27: warning: ignoring return value of ‘size_t fread(void*, size_t, size_t, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
g++ -pthread -lrt src/main.o src/parameter.o src/matrix.o src/fastq.o -o skewer
src/fastq.o: In function `versatile_gettime(timespec*)':
fastq.cpp:(.text+0xaf9): undefined reference to `clock_gettime'
collect2: ld returned 1 exit status
make: *** [skewer] Error 1
This did not solve it...
But at least it's throwing one less error on Ubuntu 14.04
g++ -c -O2 src/main.cpp -o src/main.o
g++ -c -O2 src/parameter.cpp -o src/parameter.o
g++ -c -O2 src/matrix.cpp -o src/matrix.o
g++ -c -O2 src/fastq.cpp -o src/fastq.o
src/fastq.cpp: In function ‘int64 gzsize(const char*)’:
src/fastq.cpp:211:27: warning: ignoring return value of ‘size_t fread(void*, size_t, size_t, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
fread(buffer, 1, 4, fp);
^
g++ -pthread -lrt src/main.o src/parameter.o src/matrix.o src/fastq.o -o skewer
So I suppose it's moving in the right direction...
I'm trying to compile from git on anUbuntu 12.04 machine and failing. Here is what I get after "make":
On an ubuntu 14.04 machine I am getting this (but I do get a binary):
On my Archlinux machine, fully up-to-date I get no errors and a working binary:
Could this be an issue with older versions of GCC? Thanks.