public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "lailavrazda1979 at gmail dot com" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug c/55819] New: Conflicting declaration of getcwd breaks mingw-w64 compile Date: Fri, 28 Dec 2012 00:35:00 -0000 [thread overview] Message-ID: <bug-55819-4@http.gcc.gnu.org/bugzilla/> (raw) http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55819 Bug #: 55819 Summary: Conflicting declaration of getcwd breaks mingw-w64 compile Classification: Unclassified Product: gcc Version: unknown Status: UNCONFIRMED Severity: major Priority: P3 Component: c AssignedTo: unassigned@gcc.gnu.org ReportedBy: lailavrazda1979@gmail.com Output when compiling on x86_64-unknown-linux-gnu for x86_64-w64-mingw32: x86_64-w64-mingw32-g++ -c -DIN_GCC_FRONTEND -g -O2 -DIN_GCC -fno-exceptions -fno-rtti -fasynchronous-unwind-tables -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wmissing-format-attribute -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings -DHAVE_CONFIG_H -I. -Ic -I../../gcc-4.8.0/gcc -I../../gcc-4.8.0/gcc/c -I../../gcc-4.8.0/gcc/../include -I../../gcc-4.8.0/gcc/../libcpp/include -I/root/win64-build/native/include -I/root/win64-build/native/include -I/root/win64-build/native/include -I../../gcc-4.8.0/gcc/../libdecnumber -I../../gcc-4.8.0/gcc/../libdecnumber/bid -I../libdecnumber -I../../gcc-4.8.0/gcc/../libbacktrace -DCLOOG_INT_GMP -I/root/win64-build/native/include ../../gcc-4.8.0/gcc/c/c-lang.c -o c/c-lang.o In file included from ../../gcc-4.8.0/gcc/c/c-lang.c:24:0: ../../gcc-4.8.0/gcc/system.h:426:36: error: declaration of C function 'char* getcwd(char*, size_t)' conflicts with In file included from /usr/lib/gcc/x86_64-w64-mingw32/4.7.2/../../../../x86_64-w64-mingw32/include/unistd.h:10:0, from ../../gcc-4.8.0/gcc/system.h:256, from ../../gcc-4.8.0/gcc/c/c-lang.c:24: /usr/lib/gcc/x86_64-w64-mingw32/4.7.2/../../../../x86_64-w64-mingw32/include/io.h:266:17: error: previous declaration 'char* getcwd(char*, int)' here make[1]: *** [c/c-lang.o] Error 1 make[1]: Leaving directory `/root/win64-build/src/gcc-build/gcc' make: *** [all-gcc] Error 2
next reply other threads:[~2012-12-28 0:35 UTC|newest] Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top 2012-12-28 0:35 lailavrazda1979 at gmail dot com [this message] 2012-12-31 16:27 ` [Bug c/55819] " rguenth at gcc dot gnu.org 2012-12-31 19:42 ` lailavrazda1979 at gmail dot com 2013-01-21 5:28 ` lailavrazda1979 at gmail dot com
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=bug-55819-4@http.gcc.gnu.org/bugzilla/ \ --to=gcc-bugzilla@gcc.gnu.org \ --cc=gcc-bugs@gcc.gnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
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).