Skip to content

Error building with g++ 9.3 #15

@giesselmann

Description

@giesselmann

Hi,

I'm trying to build GraphMap2 within a Docker with Alpine Linux. I'm running the required make modules && make steps.
The gcc/g++ toolchain is v9.3 and I'm getting the following error. Building with gcc7.5 on my Laptop works fine.
I'm using Graphmap v0.6.4

In file included from codebase/seqlib/src/utility/evalue.cc:10:
codebase/seqlib/src/utility/evalue.h:161:24: error: 'int64_t' was not declared in this scope
161 | int CalculateEValueDNA(int64_t alignment_score, int64_t query_length, int64_t target_length, const EValueParams* eValueParams, double ret_evalue);
| ^~~~~~~
codebase/seqlib/src/utility/evalue.h:161:49: error: 'int64_t' was not declared in this scope
161 | int CalculateEValueDNA(int64_t alignment_score, int64_t query_length, int64_t target_length, const EValueParams
eValueParams, double ret_evalue);
| ^~~~~~~
codebase/seqlib/src/utility/evalue.h:161:71: error: 'int64_t' was not declared in this scope
161 | int CalculateEValueDNA(int64_t alignment_score, int64_t query_length, int64_t target_length, const EValueParams
eValueParams, double ret_evalue);
| ^~~~~~~
codebase/seqlib/src/utility/evalue.h:161:94: error: expected primary-expression before 'const'
161 | int CalculateEValueDNA(int64_t alignment_score, int64_t query_length, int64_t target_length, const EValueParams
eValueParams, double ret_evalue);
| ^~~~~
In file included from codebase/seqlib/src/utility/evalue.cc:10:
codebase/seqlib/src/utility/evalue.h:161:128: error: expected primary-expression before 'double'
161 | int CalculateEValueDNA(int64_t alignment_score, int64_t query_length, int64_t target_length, const EValueParams
eValueParams, double ret_evalue);
| ^~~~~~
codebase/seqlib/src/utility/evalue.h:161:146: error: expression list treated as compound expression in initializer [-fpermissive]
161 | int CalculateEValueDNA(int64_t alignment_score, int64_t query_length, int64_t target_length, const EValueParams
eValueParams, double ret_evalue);
| ^
codebase/seqlib/src/utility/evalue.h:163:36: error: 'int64_t' has not been declared
163 | int SetupScorer(char
matrix_name, int64_t reference_length, int gap_open, int gap_extend, EValueParams ret_eValueParams);
| ^~~~~~~
codebase/seqlib/src/utility/evalue.cc:278:146: error: 'int CalculateEValueDNA(int64_t, int64_t, int64_t, const EValueParams
, double
)' redeclared as different kind of entity
278 | int CalculateEValueDNA(int64_t alignment_score, int64_t query_length, int64_t target_length, const EValueParams* eValueParams, double ret_evalue) {
| ^
In file included from codebase/seqlib/src/utility/evalue.cc:10:
codebase/seqlib/src/utility/evalue.h:161:5: note: previous declaration 'int CalculateEValueDNA'
161 | int CalculateEValueDNA(int64_t alignment_score, int64_t query_length, int64_t target_length, const EValueParams
eValueParams, double *ret_evalue);
| ^~~~~~~~~~~~~~~~~~
make: *** [Makefile:124: obj_linux/codebase/seqlib/src/utility/evalue.o] Error 1

Cheers,

Pay

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions