#18 make isn't successfull on ARTIX

已关闭
maxime-alves6 年前创建 · 1 条评论

I’m try to compile on artix and it doesn’t work.

I'm try to compile on artix and it doesn't work.
maxime-alves 评论于 6 年前
发布者
make[2]: Entering directory '/mnt/glarg/src/ttail/docs'
mkdir -p ../docs/man/man1;\
cp ../docs/man/man3/ttail.3 ../docs/man/man1/ttail.1;\
sed -i 's/^.TH "ttail" 3/.TH "ttail" 1/' ../docs/man/man1/ttail.1
make[2]: Leaving directory '/mnt/glarg/src/ttail/docs'
make[1]: Leaving directory '/mnt/glarg/src/ttail/docs'
Making all in src
make[1]: Entering directory '/mnt/glarg/src/ttail/src'
gcc -DHAVE_CONFIG_H -I. -I../src/include     -g -O2 -O2 -std=c99 -pedantic -Wall -Werror -fgnu89-inline -D_XOPEN_SOURCE -D_GNU_SOURCE -MT libttail_a-ttail_init.o -MD -MP -MF .deps/libttail_a-ttail_init.Tpo -c -o libttail_a-ttail_init.o `test -f 'ttail_init.c' || echo './'`ttail_init.c
ttail_init.c: In function ‘ttail_set_fmt’:
ttail_init.c:356:2: error: ‘strncpy’ output truncated before terminating nul copying as many bytes from a string as its length [-Werror=stringop-truncation]
  strncpy(t->fmt, fmt, len);
  ^~~~~~~~~~~~~~~~~~~~~~~~~
ttail_init.c:350:8: note: length computed here
  len = strlen(fmt);
        ^~~~~~~~~~~
cc1: all warnings being treated as errors
make[1]: *** [Makefile:464: libttail_a-ttail_init.o] Error 1
make[1]: Leaving directory '/mnt/glarg/src/ttail/src'
make: *** [Makefile:362: all-recursive] Error 1
``` make[2]: Entering directory '/mnt/glarg/src/ttail/docs' mkdir -p ../docs/man/man1;\ cp ../docs/man/man3/ttail.3 ../docs/man/man1/ttail.1;\ sed -i 's/^.TH "ttail" 3/.TH "ttail" 1/' ../docs/man/man1/ttail.1 make[2]: Leaving directory '/mnt/glarg/src/ttail/docs' make[1]: Leaving directory '/mnt/glarg/src/ttail/docs' Making all in src make[1]: Entering directory '/mnt/glarg/src/ttail/src' gcc -DHAVE_CONFIG_H -I. -I../src/include -g -O2 -O2 -std=c99 -pedantic -Wall -Werror -fgnu89-inline -D_XOPEN_SOURCE -D_GNU_SOURCE -MT libttail_a-ttail_init.o -MD -MP -MF .deps/libttail_a-ttail_init.Tpo -c -o libttail_a-ttail_init.o `test -f 'ttail_init.c' || echo './'`ttail_init.c ttail_init.c: In function ‘ttail_set_fmt’: ttail_init.c:356:2: error: ‘strncpy’ output truncated before terminating nul copying as many bytes from a string as its length [-Werror=stringop-truncation] strncpy(t->fmt, fmt, len); ^~~~~~~~~~~~~~~~~~~~~~~~~ ttail_init.c:350:8: note: length computed here len = strlen(fmt); ^~~~~~~~~~~ cc1: all warnings being treated as errors make[1]: *** [Makefile:464: libttail_a-ttail_init.o] Error 1 make[1]: Leaving directory '/mnt/glarg/src/ttail/src' make: *** [Makefile:362: all-recursive] Error 1 ```
yannweb 在代码提交 6 年前 中引用了该工单
yannweb6 年前 关闭
登陆 并参与到对话中。
未选择里程碑
未指派成员
1 名参与者
到期时间

未设置到期时间。

依赖工单

此工单当前没有任何依赖。

正在加载...
取消
保存
这个人很懒,什么都没留下。