On 06/05 22:29:22, Bill Fischofer wrote:
> On Mon, Jun 5, 2017 at 9:32 PM, Brian Brooks <[email protected]> wrote:
> > On 06/05 18:40:02, Bill Fischofer wrote:
> >> After installing a copy of GCC 7, It looks like this patch is an
> >> incomplete fix. With this patch applied older GCC 6.3.0 continues to
> >> work fine, but GCC 7.0.1 generates the following errors:
> >>
> >> Making all in platform/linux-generic
> >> make[1]: Entering directory
> >> '/home/bill/linaro/gcc7fix/platform/linux-generic'
> >> CC pktio/ipc.lo
> >> pktio/ipc.c: In function ‘ipc_close’:
> >> pktio/ipc.c:698:33: error: ‘%s’ directive output may be truncated
> >> writing up to 255 bytes into a region of size 32
> >> [-Werror=format-truncation=]
> >> snprintf(name, sizeof(name), "%s", dev);
> >
> > It looks like ./bootstrap might not have been run after applying the patch?
>
> I just retried the build on a clean directory with ./bootstrap and
> ./configure and get the same errors.
Can you post the bottom part of ./configure output?
Here is what I see:
cc: gcc
cc version: 7.1.1
cppflags:
am_cppflags:
am_cxxflags: -std=c++11
cflags: -g -O2
am_cflags: -pthread -DHAVE_PCAP
-DIMPLEMENTATION_NAME=odp-linux -DODP_DEBUG_PRINT=0 -DODPH_DEBUG_PRINT=0
-DODP_DEBUG=0 -W -Wall -Werror -Wstrict-prototypes -Wmissing-prototypes
-Wmissing-declarations -Wold-style-definition -Wpointer-arith -Wcast-align
-Wnested-externs -Wcast-qual -Wformat-nonliteral -Wformat-security -Wundef
-Wwrite-strings -std=c99 -Wimplicit-fallthrough=0 -Wformat-truncation=0
-Wformat-overflow=0 -mcx16
ldflags:
am_ldflags: -latomic -pthread -lrt
libs: -lrt -lcunit -lcrypto -lpcap
defs: -DHAVE_CONFIG_H
static libraries: yes
shared libraries: yes
ABI compatible: yes
cunit: yes
test_vald: yes
test_perf: yes
test_perf_proc: yes
test_cpp: yes
test_helper: yes
test_example: yes
user_guides: no