http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56057



             Bug #: 56057

           Summary: libbacktrace STILL doesn't honor --disable-werror

    Classification: Unclassified

           Product: gcc

           Version: 4.8.0

            Status: UNCONFIRMED

          Severity: normal

          Priority: P3

         Component: other

        AssignedTo: unassig...@gcc.gnu.org

        ReportedBy: lailavrazda1...@gmail.com





libbacktrace is not honoring --disable-werror and using -fPIC, causing a

warning (which is promoted to an error) when building a native compiler for

x86_64-w64-mingw32. This happens with revision 195330, the latest, as of this

writing. Errors below:



libtool: compile:  x86_64-w64-mingw32-gcc

-L/root/win64-build/native/x86_64-w64-mingw32/lib

-L/root/win64-build/native/mingw/lib -isystem

/root/win64-build/native/x86_64-w64-mingw32/include -isystem

/root/win64-build/native/mingw/include -DHAVE_CONFIG_H -I.

-I../../../gcc-4.8.0/libbacktrace -I ../../../gcc-4.8.0/libbacktrace/../include

-I ../../../gcc-4.8.0/libbacktrace/../libgcc -I ../libgcc -funwind-tables

-frandom-seed=dwarf.lo -W -Wall -Wwrite-strings -Wstrict-prototypes

-Wmissing-prototypes -Wold-style-definition -Wmissing-format-attribute

-Wcast-qual -Werror -fPIC -g -O2 -c ../../../gcc-4.8.0/libbacktrace/dwarf.c -o

dwarf.o

../../../gcc-4.8.0/libbacktrace/dwarf.c:1:0: error: -fPIC ignored for target

(all code is position independent) [-Werror]

 /* dwarf.c -- Get file/line information from DWARF for backtraces.

 ^

cc1: all warnings being treated as errors

make[3]: *** [dwarf.lo] Error 1

make[3]: Leaving directory

`/root/win64-build/src/gcc-build/x86_64-w64-mingw32/libbacktrace'

make[2]: *** [all] Error 2

make[2]: Leaving directory

`/root/win64-build/src/gcc-build/x86_64-w64-mingw32/libbacktrace'

make[1]: *** [all-target-libbacktrace] Error 2

make[1]: Leaving directory `/root/win64-build/src/gcc-build'

make: *** [all] Error 2

Reply via email to