Skip to content

mafToFastaStitcher installation problem #40

@yefanglee

Description

@yefanglee

Hi, I met errors when installed mafToFastaStitcher like this:

cd mafToFastaStitcher && make all make[1]: Entering directory '/workspace/home/pig/wangdd/maf/mafTools/mafToFastaStitcher' gcc -std=c99 -Wno-unused-but-set-variable -c src/mafToFastaStitcherAPI.c -o src/mafToFastaStitcherAPI.o.tmp -O3 -Wall -Werror --pedantic -funroll-loops -DNDEBUG -Wshadow -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes -I ../../sonLib/lib -I ../inc -I ../external -lm src/mafToFastaStitcherAPI.c: In function ‘writeMafOut’: src/mafToFastaStitcherAPI.c:655:22: error: ‘%lu’ directive writing between 1 and 19 bytes into a region of size 7 [-Werror=format-overflow=] 655 | sprintf(fmtName, " %%-%" PRIu64 "s", maxName + 2); | ^~~~~~~ src/mafToFastaStitcherAPI.c:655:27: note: format string is defined here 655 | sprintf(fmtName, " %%-%" PRIu64 "s", maxName + 2); src/mafToFastaStitcherAPI.c:655:22: note: directive argument in the range [3, 9223372036854775807] 655 | sprintf(fmtName, " %%-%" PRIu64 "s", maxName + 2); | ^~~~~~~ src/mafToFastaStitcherAPI.c:655:5: note: ‘sprintf’ output between 6 and 24 bytes into a destination of size 10 655 | sprintf(fmtName, " %%-%" PRIu64 "s", maxName + 2); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ cc1: all warnings being treated as errors make[1]: *** [Makefile:56: src/mafToFastaStitcherAPI.o] Error 1 make[1]: Leaving directory '/workspace/home/pig/wangdd/maf/mafTools/mafToFastaStitcher' make: *** [Makefile:41: mafToFastaStitcher.all] Error 2

how to solve it?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions