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/21249] New: Compile error: strfmon_l.c:334:29: error: 'va_arg_tmp.19' may be used uninitialized in this function [-Werror=maybe-uninitialized]


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

            Bug ID: 21249
           Summary: Compile error: strfmon_l.c:334:29: error:
                    'va_arg_tmp.19' may be used uninitialized in this
                    function [-Werror=maybe-uninitialized]
           Product: glibc
           Version: 2.24
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: build
          Assignee: unassigned at sourceware dot org
          Reporter: tamtamis at gmail dot com
                CC: carlos at redhat dot com
  Target Milestone: ---

In yocto, morty branch I try to compile glibc 2.24 for powerpc with gcc version
4.8.2
And I have the following error:

powerpc-poky-linux-gnuspe-gcc  -m32 -mcpu=8548 -mabi=spe -mspe
-mfloat-gprs=double
--sysroot=/home/tamis/opt/yocto/tmp/sysroots/qoriq-tcbootstrap cmp.c -c
-std=gnu11 -fgnu89-inline  -O2 -Wall -Werror -Wundef -Wwrite-strings
-fdebug-prefix-map=/home/tamis/opt/yocto/tmp/sysroots/qoriq=
-fdebug-prefix-map=/home/tamis/opt/yocto/tmp/sysroots/x86_64-linux=
-fdebug-prefix-map=/home/tamis/opt/yocto/tmp/work/ppce500v2-poky-linux-gnuspe/glibc/2.24-r0=/usr/src/debug/glibc/2.24-r0
-feliminate-unused-debug-types -fmerge-all-constants -frounding-math -g -pipe
-Wstrict-prototypes -Wold-style-definition -mlong-double-128   
-ftls-model=initial-exec      -I../include
-I/home/tamis/opt/yocto/tmp/work/ppce500v2-poky-linux-gnuspe/glibc/2.24-r0/build-powerpc-poky-linux-gnuspe/stdlib

-I/home/tamis/opt/yocto/tmp/work/ppce500v2-poky-linux-gnuspe/glibc/2.24-r0/build-powerpc-poky-linux-gnuspe
 -I../sysdeps/unix/sysv/linux/powerpc/powerpc32/e500/nofpu 
-I../sysdeps/powerpc/powerpc32/e500/nofpu  -I../sysdeps/powerpc/nofpu 
-I../sysdeps/powerpc/soft-fp 
-I../sysdeps/unix/sysv/linux/powerpc/powerpc32/e500 
-I../sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu 
-I../sysdeps/unix/sysv/linux/powerpc/powerpc32 
-I../sysdeps/unix/sysv/linux/powerpc  -I../sysdeps/powerpc/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/powerpc 
-I../sysdeps/unix  -I../sysdeps/posix  -I../sysdeps/powerpc/powerpc32/e500 
-I../sysdeps/powerpc/powerpc32  -I../sysdeps/wordsize-32  -I../sysdeps/powerpc 
-I../sysdeps/ieee754/ldbl-128ibm  -I../sysdeps/ieee754/ldbl-opt 
-I../sysdeps/ieee754/dbl-64  -I../sysdeps/ieee754/flt-32  -I../sysdeps/ieee754 
-I../sysdeps/generic  -I.. -I../libio -I. -nostdinc -isystem
/home/tamis/opt/yocto/tmp/sysroots/x86_64-linux/usr/lib/powerpc-poky-linux-gnuspe.gcc-cross-initial-powerpc/gcc/powerpc-poky-linux-gnuspe/4.8.2/include
-isystem
/home/tamis/opt/yocto/tmp/sysroots/x86_64-linux/usr/lib/powerpc-poky-linux-gnuspe.gcc-cross-initial-powerpc/gcc/powerpc-poky-linux-gnuspe/4.8.2/include-fixed
-isystem /home/tamis/opt/yocto/tmp/sysroots/qoriq/usr/include 
-D_LIBC_REENTRANT -include
/home/tamis/opt/yocto/tmp/work/ppce500v2-poky-linux-gnuspe/glibc/2.24-r0/build-powerpc-poky-linux-gnuspe/libc-modules.h
-DMODULE_NAME=libc -include ../include/libc-symbols.h       -o
/home/tamis/opt/yocto/tmp/work/ppce500v2-poky-linux-gnuspe/glibc/2.24-r0/build-powerpc-poky-linux-gnuspe/stdlib/cmp.o
-MD -MP -MF
/home/tamis/opt/yocto/tmp/work/ppce500v2-poky-linux-gnuspe/glibc/2.24-r0/build-powerpc-poky-linux-gnuspe/stdlib/cmp.o.dt
-MT
/home/tamis/opt/yocto/tmp/work/ppce500v2-poky-linux-gnuspe/glibc/2.24-r0/build-powerpc-poky-linux-gnuspe/stdlib/cmp.o
| strfmon_l.c: In function '__vstrfmon_l':
| strfmon_l.c:334:29: error: 'va_arg_tmp.19' may be used uninitialized in this
function [-Werror=maybe-uninitialized]
|     fpnum.ldbl = va_arg (ap, long double);
|                              ^
| cc1: all warnings being treated as errors

-- 
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]