This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/55819] New: Conflicting declaration of getcwd breaks mingw-w64 compile
- From: "lailavrazda1979 at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Fri, 28 Dec 2012 00:35:23 +0000
- Subject: [Bug c/55819] New: Conflicting declaration of getcwd breaks mingw-w64 compile
- Auto-submitted: auto-generated
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