Error building for PPC

Jong Chen
Fri Jun 19 19:12:00 GMT 2015

I'm trying ct-ng to build for "powerpc-e500v2-linux-gnuspe"

The build is failing on the build of the C library (see log file below).  It
looks like there is a potential for an unused initialized variable to be
used in the C library.  GCC has been configured to error on uninitilized
variables (-Werror=uninitialized).  This is causing by ct-ng build to fail.
I thought that one way to work around the issue would be to use "ct-ng
menuconfig" and add the '-W' option to the "Extra build compiler flags" so
that I won't get any warning messages.  But from looking at the build line
below it does not look like my '-W' flag is getting passed to the compiler.
How can I work around this issue?

[ALL  ]    powerpc-e500v2-linux-gnuspe-gcc
../sysdeps/wordsize-32/strtoumax.c -c -std=gnu99 -fgnu89-inline  -O2
-U_FORTIFY_SOURCE -Wa,-me500x2 -Wall -Werror -Winline -Wno-error=undef
-Wundef -Wwrite-strings -fmerge-all-constants -frounding-math -mabi=spe
-mbig-endian -mcpu=8548 -mfloat-gprs=double -msoft-float -mspe -mtune=8548
-Wstrict-prototypes -mlong-double-128         -I../include
b  -I/home/chen/.build/powerpc-e500v2-linux-gnuspe/build/build-libc-final
-I../sysdeps/powerpc/nofpu  -I../sysdeps/powerpc/soft-fp
-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
-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
0v2-linux-gnuspe/4.6.4/include -isystem
0v2-linux-gnuspe/4.6.4/include-fixed -isystem
ysroot/usr/include  -D_LIBC_REENTRANT -include
dules.h -DMODULE_NAME=libc -include ../include/libc-symbols.h       -o
strtoumax.o -MD -MP -MF
strtoumax.o.dt -MT
[ALL  ]    strfmon_l.c: In function '__vstrfmon_l':
[ERROR]    strfmon_l.c:337:17: error: 'va_arg_tmp.15' may be used
uninitialized in this function [-Werror=uninitialized]
[ALL  ]    cc1: all warnings being treated as errors
[ERROR]    make[3]: ***
/strfmon_l.o] Error 1
[ALL  ]    make[3]: *** Waiting for unfinished jobs....
[ALL  ]    make[3]: Leaving directory
[ERROR]    make[2]: *** [stdlib/subdir_lib] Error 2
[ALL  ]    make[2]: Leaving directory `/home/chen/.build/src/glibc-2.21'
[ERROR]    make[1]: *** [all] Error 2
[ALL  ]    make[1]: Leaving directory
[ERROR]  >>
[ERROR]  >>  Build failed in step 'Installing C library'
[ERROR]  >>        called in step '(top-level)'
[ERROR]  >>
[ERROR]  >>  Error happened in: CT_DoExecLog[scripts/functions@257]
[ERROR]  >>        called from:
[ERROR]  >>        called from:
[ERROR]  >>        called from: do_libc[scripts/build/libc/]
[ERROR]  >>        called from: main[scripts/]
[ERROR]  >>
[ERROR]  >>  For more info on this error, look at the file: 'build.log'
[ERROR]  >>  There is a list of known issues, some with workarounds, in:
[ERROR]  >>
'work/crosstool-ng-1.21.0/share/doc/crosstool-ng/ct-ng.1.21.0/B - Known
[ERROR]  (elapsed: 18:09.73)

Jong Chen
Software Engineer
COMSEC Systems Section
Naval Research Laboratory

For unsubscribe information see

More information about the crossgcc mailing list