Closed knowah closed 3 years ago
@knowah Can you please supply your compiler information?
@knowah Can you please supply your compiler information?
Hi @andrewdavidsmith, the compiler version is:
g++ (Debian 6.3.0-18+deb9u1) 6.3.0 20170516
And the offending command from make
that caused the error was:
depbase=`echo src/moment_sequence.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
g++ -std=c++11 -DHAVE_CONFIG_H -I. -I.. -I ../src/smithlab_cpp -O2 -MT src/moment_sequence.o -MD -MP -MF $depbase.Tpo -c -o src/moment_sequence.o ../src/moment_sequence.cpp &&\
mv -f $depbase.Tpo $depbase.Po`
Let me know if there's another command I can run to get you more compiler info if needed!
Thanks @knowah this is very helpful. We have used a similar compiler but not seen the error. This seems to need a fix, and we'll look into yours -- I agree it's likely a header that might be included (or not) through a chain of headers in a way that isn't the same across all systems.
I just got the same error, also on 3.1.1. My (old!) compiler is g++ (Ubuntu 5.4.0-6ubuntu1~16.04.12) 5.4.0 20160609
Including
Thanks @pgfoster we will do a new release soon to address this. Not sure how it happened, but likely the <cstddef>
was indirectly included (possibly through headers in std
) and it seems we can't rely on these always being consistent.
Sorry for the delay! 3.1.2 just dropped with the header included.
I just downloaded the v3.1.1 release and tried to install both with and without htslib. Running
make
failed, giving the following errors:I attempted to create a pull request with my fix but I couldn't figure out how to integrate the preseqR and smithlab_cpp submodules into my fork.
I was able to fix the errors and build/install successfully by just adding the following
include
line tosrc/moment_sequence.hpp
: