make isn't successfull on ARTIX #18

Closed
opened 2018-08-22 01:02:47 +02:00 by maxime-alves · 1 comment

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

I'm try to compile on artix and it doesn't work.
Author
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 referenced this issue from a commit 2018-08-22 01:36:21 +02:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
yannweb/ttail#18
No description provided.