This is the mail archive of the gdb-prs@sourceware.org mailing list for the GDB 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/17718] New: gdb build failure with -Werror


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

            Bug ID: 17718
           Summary: gdb build failure with -Werror
           Product: gdb
           Version: HEAD
            Status: NEW
          Severity: normal
          Priority: P2
         Component: build
          Assignee: unassigned at sourceware dot org
          Reporter: renlin.li at arm dot com

gcc -O1 -g   -I. -I/work/src/binutils-gdb/gdb
-I/work/src/binutils-gdb/gdb/common -I/work/src/binutils-gdb/gdb/config
-DLOCALEDIR="\"/work/build-aarch64-none-elf-4.9/install/share/locale\""
-DHAVE_CONFIG_H -I/work/src/binutils-gdb/gdb/../include/opcode
-I/work/src/binutils-gdb/gdb/../opcodes/..
-I/work/src/binutils-gdb/gdb/../readline/.. -I../bfd
-I/work/src/binutils-gdb/gdb/../bfd -I/work/src/binutils-gdb/gdb/../include
-I../libdecnumber -I/work/src/binutils-gdb/gdb/../libdecnumber 
-I/work/src/binutils-gdb/gdb/gnulib/import -Ibuild-gnulib/import    -Wall
-Wdeclaration-after-statement -Wpointer-arith -Wpointer-sign -Wno-unused
-Wunused-value -Wunused-function -Wno-switch -Wno-char-subscripts
-Wmissing-prototypes -Wdeclaration-after-statement -Wempty-body
-Wmissing-parameter-type -Wold-style-declaration -Wold-style-definition
-Wformat-nonliteral -Werror -c -o compile.o -MT compile.o -MMD -MP -MF
.deps/compile.Tpo /work/src/binutils-gdb/gdb/compile/compile.c

/work/src/binutils-gdb/gdb/compile/compile.c: In function âdo_rmdirâ:
/work/src/binutils-gdb/gdb/compile/compile.c:176:10: error: ignoring return
value of âsystemâ, declared with attribute warn_unused_result
[-Werror=unused-result]


gcc version 4.6.3 (Ubuntu/Linaro 4.6.3-1ubuntu5)
glibc version 2.15-0ubuntu10.7

configuration:

/work/src/binutils-gdb/gdb/configure --cache-file=./config.cache --with-gnu-as
--with-gnu-ld --with-system-zlib --with-newlib --enable-64-bit-bfd
--enable-targets=arm-none-eabi,aarch64-none-linux-gnu,aarch64-none-elf
--disable-newlib-supplied-syscalls --enable-newlib-io-long-long
--enable-newlib-mb --prefix=/work/build-aarch64-none-elf-4.9/install
--with-pkgversion=unknown --disable-nls --without-x --disable-gdbtk
--disable-tui --without-python --without-tcl --without-tk
--program-transform-name=s&^&aarch64-none-elf-& --disable-option-checking
--build=x86_64-unknown-linux-gnu --host=x86_64-unknown-linux-gnu
--target=aarch64-none-elf --srcdir=/work/src/binutils-gdb/gdb


I found the following comment in configure script: "Enable -Werror flags by
default when using gcc, Turn it off for release"

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