Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mafToFastaStitcher installation problem #40

Open
yefanglee opened this issue Aug 22, 2024 · 0 comments
Open

mafToFastaStitcher installation problem #40

yefanglee opened this issue Aug 22, 2024 · 0 comments

Comments

@yefanglee
Copy link

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant