Error building for PPC
Jong Chen
jong.chen@nrl.navy.mil
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
-I/home/chen/.build/powerpc-e500v2-linux-gnuspe/build/build-libc-final/stdli
b -I/home/chen/.build/powerpc-e500v2-linux-gnuspe/build/build-libc-final
-I../sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu
-I../sysdeps/powerpc/nofpu -I../sysdeps/powerpc/soft-fp
-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
-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/chen/.build/powerpc-e500v2-linux-gnuspe/buildtools/lib/gcc/powerpc-e50
0v2-linux-gnuspe/4.6.4/include -isystem
/home/chen/.build/powerpc-e500v2-linux-gnuspe/buildtools/lib/gcc/powerpc-e50
0v2-linux-gnuspe/4.6.4/include-fixed -isystem
/home/chen/x-tools/powerpc-e500v2-linux-gnuspe/powerpc-e500v2-linux-gnuspe/s
ysroot/usr/include -D_LIBC_REENTRANT -include
/home/chen/.build/powerpc-e500v2-linux-gnuspe/build/build-libc-final/libc-mo
dules.h -DMODULE_NAME=libc -include ../include/libc-symbols.h -o
/home/chen/.build/powerpc-e500v2-linux-gnuspe/build/build-libc-final/stdlib/
strtoumax.o -MD -MP -MF
/home/chen/.build/powerpc-e500v2-linux-gnuspe/build/build-libc-final/stdlib/
strtoumax.o.dt -MT
/home/chen/.build/powerpc-e500v2-linux-gnuspe/build/build-libc-final/stdlib/
strtoumax.o
[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]: ***
[/home/chen/.build/powerpc-e500v2-linux-gnuspe/build/build-libc-final/stdlib
/strfmon_l.o] Error 1
[ALL ] make[3]: *** Waiting for unfinished jobs....
[ALL ] make[3]: Leaving directory
`/home/chen/.build/src/glibc-2.21/stdlib'
[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
`/home/chen/.build/powerpc-e500v2-linux-gnuspe/build/build-libc-final'
[ERROR]
[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:
do_libc_backend_once[scripts/build/libc/glibc.sh@454]
[ERROR] >> called from:
do_libc_backend[scripts/build/libc/glibc.sh@151]
[ERROR] >> called from: do_libc[scripts/build/libc/glibc.sh@73]
[ERROR] >> called from: main[scripts/crosstool-NG.sh@638]
[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
issues.txt'
[ERROR]
[ERROR] (elapsed: 18:09.73)
Jong Chen
Software Engineer
COMSEC Systems Section
Naval Research Laboratory
202-767-2570
jong.chen@nrl.navy.mil
jong.chen@nrl.nmic.ic.gov
--
For unsubscribe information see http://sourceware.org/lists.html#faq
More information about the crossgcc
mailing list