public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug build/15414] New: Build fails with mingw32-w64 GCC-4.8.0
@ 2013-04-28 21:45 freddie_chopin at op dot pl
  2013-04-29 13:46 ` [Bug build/15414] " tromey at redhat dot com
                   ` (8 more replies)
  0 siblings, 9 replies; 10+ messages in thread
From: freddie_chopin at op dot pl @ 2013-04-28 21:45 UTC (permalink / raw)
  To: gdb-prs

http://sourceware.org/bugzilla/show_bug.cgi?id=15414

             Bug #: 15414
           Summary: Build fails with mingw32-w64 GCC-4.8.0
           Product: gdb
           Version: HEAD
            Status: NEW
          Severity: normal
          Priority: P2
         Component: build
        AssignedTo: unassigned@sourceware.org
        ReportedBy: freddie_chopin@op.pl
    Classification: Unclassified


When building GDB from repo with mingw32-w64 compiler, GCC 4.8.0 there's a
problem with compilation flags:

i686-w64-mingw32-gcc
-I/home/freddie/bleeding-edge-toolchain/build-mingw/host-libs/zlib/include -O2
-D__USE_MINGW_ACCESS   -I. -I/home/freddie/bleeding-edge-toolchain/src/gdb/gdb
-I/home/freddie/bleeding-edge-toolchain/src/gdb/gdb/common
-I/home/freddie/bleeding-edge-toolchain/src/gdb/gdb/config
-DLOCALEDIR="\"/home/freddie/bleeding-edge-toolchain/install-mingw/share/locale\""
-DHAVE_CONFIG_H
-I/home/freddie/bleeding-edge-toolchain/src/gdb/gdb/../include/opcode
-I/home/freddie/bleeding-edge-toolchain/src/gdb/gdb/../opcodes/..
-I/home/freddie/bleeding-edge-toolchain/src/gdb/gdb/../readline/.. -I../bfd
-I/home/freddie/bleeding-edge-toolchain/src/gdb/gdb/../bfd
-I/home/freddie/bleeding-edge-toolchain/src/gdb/gdb/../include
-I../libdecnumber
-I/home/freddie/bleeding-edge-toolchain/src/gdb/gdb/../libdecnumber 
-I/home/freddie/bleeding-edge-toolchain/src/gdb/gdb/gnulib/import
-Ibuild-gnulib/import  
-I/home/freddie/bleeding-edge-toolchain/build-mingw/host-libs/zlib/include
-I/home/freddie/bleeding-edge-toolchain/build-mingw/host-libs/usr/include 
-Wall -Wdeclaration-after-statement -Wpointer-arith -Wformat-nonliteral
-Wpointer-sign -Wno-unused -Wunused-value -Wunused-function -Wno-switch
-Wno-char-subscripts -Wmissing-prototypes -Wdeclaration-after-statement
-Wempty-body -Wno-format -Werror -c -o gdb.o -MT gdb.o -MMD -MP -MF
.deps/gdb.Tpo /home/freddie/bleeding-edge-toolchain/src/gdb/gdb/gdb.c
i686-w64-mingw32-gcc
-I/home/freddie/bleeding-edge-toolchain/build-mingw/host-libs/zlib/include -O2
-D__USE_MINGW_ACCESS   -I. -I/home/freddie/bleeding-edge-toolchain/src/gdb/gdb
-I/home/freddie/bleeding-edge-toolchain/src/gdb/gdb/common
-I/home/freddie/bleeding-edge-toolchain/src/gdb/gdb/config
-DLOCALEDIR="\"/home/freddie/bleeding-edge-toolchain/install-mingw/share/locale\""
-DHAVE_CONFIG_H
-I/home/freddie/bleeding-edge-toolchain/src/gdb/gdb/../include/opcode
-I/home/freddie/bleeding-edge-toolchain/src/gdb/gdb/../opcodes/..
-I/home/freddie/bleeding-edge-toolchain/src/gdb/gdb/../readline/.. -I../bfd
-I/home/freddie/bleeding-edge-toolchain/src/gdb/gdb/../bfd
-I/home/freddie/bleeding-edge-toolchain/src/gdb/gdb/../include
-I../libdecnumber
-I/home/freddie/bleeding-edge-toolchain/src/gdb/gdb/../libdecnumber 
-I/home/freddie/bleeding-edge-toolchain/src/gdb/gdb/gnulib/import
-Ibuild-gnulib/import  
-I/home/freddie/bleeding-edge-toolchain/build-mingw/host-libs/zlib/include
-I/home/freddie/bleeding-edge-toolchain/build-mingw/host-libs/usr/include 
-Wall -Wdeclaration-after-statement -Wpointer-arith -Wformat-nonliteral
-Wpointer-sign -Wno-unused -Wunused-value -Wunused-function -Wno-switch
-Wno-char-subscripts -Wmissing-prototypes -Wdeclaration-after-statement
-Wempty-body -Wno-format -Werror -c -o arm-tdep.o -MT arm-tdep.o -MMD -MP -MF
.deps/arm-tdep.Tpo /home/freddie/bleeding-edge-toolchain/src/gdb/gdb/arm-tdep.c
cc1: error: -Wformat-nonliteral ignored without -Wformat
[-Werror=format-nonliteral]
cc1: error: -Wformat-nonliteral ignored without -Wformat
[-Werror=format-nonliteral]
cc1: all warnings being treated as errors
cc1: all warnings being treated as errors

As you see because this is mingw32 -Wno-format is added, but it seems that in
GCC this makes -Wformat-... option (or at least -Wformat-nonliteral) invalid.
No such problem exists with native Linux build, there was no problem when I
built GDB 2 months ago with mingw32-w64 GCC 4.7.x.

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2013-05-10 16:13 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-04-28 21:45 [Bug build/15414] New: Build fails with mingw32-w64 GCC-4.8.0 freddie_chopin at op dot pl
2013-04-29 13:46 ` [Bug build/15414] " tromey at redhat dot com
2013-04-29 14:45 ` freddie_chopin at op dot pl
2013-04-29 17:05 ` tromey at redhat dot com
2013-04-29 17:30 ` freddie_chopin at op dot pl
2013-04-29 18:15 ` freddie_chopin at op dot pl
2013-05-02 17:19 ` freddie_chopin at op dot pl
2013-05-07 20:10 ` tromey at redhat dot com
2013-05-10 16:10 ` cvs-commit at gcc dot gnu.org
2013-05-10 16:13 ` tromey at redhat dot com

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).