|
From: | Barath Aron |
Subject: | Compile error with gcc8 |
Date: | Tue, 5 Jun 2018 11:24:56 +0200 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.8.0 |
Hello, I started to work on to replace fork() with posix_spawn(). I think it is not hopeless, so I though I make a try. I use the master ( git clone https://git.savannah.gnu.org/git/make.git ), which currently is: commit 8a731d1b2cc262d03e0246a4869c704b6c1599ec Author: Paul Smith <address@hidden> Date: Sat Feb 10 15:34:53 2018 -0500 Sadly, I got a compile error using gcc v8.1.0: gcc -DHAVE_CONFIG_H -Isrc -I./src -DLIBDIR=\"/usr/local/lib\" -DINCLUDEDIR=\"/usr/local/include\" -DLOCALEDIR=\"/usr/local/share/locale\" -DMAKE_MAINTAINER_MODE -Wall -Wextra -Werror -Wwrite-strings -Wshadow -Wpointer-arith -Wdeclaration-after-statement -Wbad-function-cast -Wformat-security -Wtype-limits -Wunused-but-set-parameter -Wlogical-op -Wignored-qualifiers -Wformat-signedness -Wduplicated-cond -g -O2 -MT src/function.o -MD -MP -MF $depbase.Tpo -c -o src/function.o src/function.c &&\ mv -f $depbase.Tpo $depbase.Po In function ‘abspath’, inlined from ‘func_abspath’ at src/function.c:2306:15: src/function.c:2084:7: error: ‘strncpy’ output may be truncated copying 1 byte from a string of length 4096 [-Werror=stringop-truncation] strncpy (apath, name, root_len); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ cc1: all warnings being treated as errors Note that this is a new feature in gcc8, see https://gcc.gnu.org/onlinedocs/gcc-8.1.0/gcc/Warning-Options.html#index-Wstringop-truncation Also, something is wrong in the doc/ directory. I get errors due to missing "fdl.texi" and "make-stds.texi" files. Can you help me with? Thanks, Aron |
[Prev in Thread] | Current Thread | [Next in Thread] |