public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/55819] New: Conflicting declaration of getcwd breaks mingw-w64 compile
@ 2012-12-28  0:35 lailavrazda1979 at gmail dot com
  2012-12-31 16:27 ` [Bug c/55819] " rguenth at gcc dot gnu.org
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: lailavrazda1979 at gmail dot com @ 2012-12-28  0:35 UTC (permalink / raw)
  To: gcc-bugs


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


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

* [Bug c/55819] Conflicting declaration of getcwd breaks mingw-w64 compile
  2012-12-28  0:35 [Bug c/55819] New: Conflicting declaration of getcwd breaks mingw-w64 compile lailavrazda1979 at gmail dot com
@ 2012-12-31 16:27 ` 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
  2 siblings, 0 replies; 4+ messages in thread
From: rguenth at gcc dot gnu.org @ 2012-12-31 16:27 UTC (permalink / raw)
  To: gcc-bugs


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

--- Comment #1 from Richard Biener <rguenth at gcc dot gnu.org> 2012-12-31 16:27:01 UTC ---
This means a configure test was not detecting presence of getcwd correctly.


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

* [Bug c/55819] Conflicting declaration of getcwd breaks mingw-w64 compile
  2012-12-28  0:35 [Bug c/55819] New: Conflicting declaration of getcwd breaks mingw-w64 compile lailavrazda1979 at gmail dot com
  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
  2 siblings, 0 replies; 4+ messages in thread
From: lailavrazda1979 at gmail dot com @ 2012-12-31 19:42 UTC (permalink / raw)
  To: gcc-bugs


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

--- Comment #2 from lailavrazda1979 at gmail dot com 2012-12-31 19:42:19 UTC ---
I know it works with 4.7.2, and I think 4.7.3 as well.


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

* [Bug c/55819] Conflicting declaration of getcwd breaks mingw-w64 compile
  2012-12-28  0:35 [Bug c/55819] New: Conflicting declaration of getcwd breaks mingw-w64 compile lailavrazda1979 at gmail dot com
  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
  2 siblings, 0 replies; 4+ messages in thread
From: lailavrazda1979 at gmail dot com @ 2013-01-21  5:28 UTC (permalink / raw)
  To: gcc-bugs


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

lailavrazda1979 at gmail dot com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |WORKSFORME

--- Comment #3 from lailavrazda1979 at gmail dot com 2013-01-21 05:28:14 UTC ---
Seems to work now, strangely. Must have been an issue with my setup.


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

end of thread, other threads:[~2013-01-21  5:28 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-12-28  0:35 [Bug c/55819] New: Conflicting declaration of getcwd breaks mingw-w64 compile lailavrazda1979 at gmail dot com
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

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).