This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug build/18432] New: make check fails for Werror=memset-transposed-args with gcc 4.9.2


https://sourceware.org/bugzilla/show_bug.cgi?id=18432

            Bug ID: 18432
           Summary: make check fails for Werror=memset-transposed-args
                    with gcc 4.9.2
           Product: glibc
           Version: 2.21
            Status: NEW
          Severity: normal
          Priority: P2
         Component: build
          Assignee: unassigned at sourceware dot org
          Reporter: simon at keinstein dot org
                CC: carlos at redhat dot com
  Target Milestone: ---

glibc version: 85bae5a160e288fa85eab8a5d1b0b227ab20798a (Tue May 19 11:23:56
2015 -0700)
config: --enable-maintainer-mode --prefix=/home/simon/local/glibc
gcc --version: gcc (Debian 4.9.2-10) 4.9.2
on Debian 8 amd64

make check fails in the string subdir:
./make check
[...]
make[2]: Entering directory '/home/simon/glibc.master/string'
gcc tester.c -c -std=gnu99 -fgnu89-inline  -O2 -Wall -Werror -Wno-error=undef
-Wundef -Wwrite-strings -fmerge-all-constants -frounding-math -g
-Wstrict-prototypes          -I../include
-I/home/simon/build/glibc.master/string  -I/home/simon/build/glibc.master 
-I../sysdeps/unix/sysv/linux/x86_64/64  -I../sysdeps/unix/sysv/linux/x86_64 
-I../sysdeps/unix/sysv/linux/x86  -I../sysdeps/unix/sysv/linux/wordsize-64 
-I../sysdeps/x86_64/nptl  -I../sysdeps/unix/sysv/linux/include
-I../sysdeps/unix/sysv/linux  -I../sysdeps/nptl  -I../sysdeps/pthread 
-I../sysdeps/gnu  -I../sysdeps/unix/inet  -I../sysdeps/unix/sysv 
-I../sysdeps/unix/x86_64  -I../sysdeps/unix  -I../sysdeps/posix 
-I../sysdeps/x86_64/64  -I../sysdeps/x86_64/fpu/multiarch 
-I../sysdeps/x86_64/fpu  -I../sysdeps/x86/fpu/include -I../sysdeps/x86/fpu 
-I../sysdeps/x86_64/multiarch  -I../sysdeps/x86_64  -I../sysdeps/x86 
-I../sysdeps/ieee754/ldbl-96  -I../sysdeps/ieee754/dbl-64/wordsize-64 
-I../sysdeps/ieee754/dbl-64  -I../sysdeps/ieee754/flt-32 
-I../sysdeps/wordsize-64  -I../sysdeps/ieee754  -I../sysdeps/generic  -I..
-I../libio -I.   -D_LIBC_REENTRANT -include
/home/simon/build/glibc.master/libc-modules.h -DMODULE_NAME=nonlib -include
../include/libc-symbols.h       -o
/home/simon/build/glibc.master/string/tester.o -MD -MP -MF
/home/simon/build/glibc.master/string/tester.o.dt -MT
/home/simon/build/glibc.master/string/tester.o
tester.c: In function âtest_memsetâ:
tester.c:1313:10: error: âmemsetâ used with constant zero length parameter;
this could be due to transposed parameters [-Werror=memset-transposed-args]
   (void) memset(one+2, 'y', 0);
          ^
cc1: all warnings being treated as errors
../o-iterator.mk:9: recipe for target
'/home/simon/build/glibc.master/string/tester.o' failed
make[2]: *** [/home/simon/build/glibc.master/string/tester.o] Error 1
make[2]: Leaving directory '/home/simon/glibc.master/string'
Makefile:213: recipe for target 'string/tests' failed
make[1]: *** [string/tests] Error 2
make[1]: Leaving directory '/home/simon/glibc.master'
Makefile:9: recipe for target 'check' failed
make: *** [check] Error 2

Regards, Simon

-- 
You are receiving this mail because:
You are on the CC list for the bug.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]