x86_64-w64-mingw32-gcc -fomit-frame-pointer -D__USE_MINGW_ACCESS -DIN_GCC -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wcast-qual -Wold-style-definition -Wc++-compat -Wmissing-format-attribute -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings -DHAVE_CONFIG_H -s -o cc1-dummy.exe c-lang.o stub-objc.o attribs.o c-errors.o c-lex.o c-pragma.o c-decl.o c-typeck.o c-convert.o c-aux-info.o c-common.o c-opts.o c-format.o c-semantics.o c-ppoutput.o c-cppbuiltin.o c-objc-common.o c-dump.o c-pch.o c-parser.o i386-c.o msformat-c.o c-gimplify.o tree-mudflap.o c-pretty-print.o c-omp.o dummy-checksum.o \ main.o libbackend.a ../libcpp/libcpp.a ../libdecnumber/libdecnumber.a ../libcpp/libcpp.a ../libiberty/libiberty.a ../libdecnumber/libdecnumber.a -L/home/linux/usr/win64/lib -lcloog -L/home/linux/usr/win64/lib -lppl_c -lppl -lgmpxx -lstdc++ -L/home/linux/usr/win64/lib -L/home/linux/usr/win64/lib -lmpfr -lgmp /home/linux/local/gcc-4.4.1-w64/mingw/lib64/libmingwex.a(lib64_libmingwex_a-_fstat64i32.o):_fstat64i32.c:(.text+0xb0): multiple definition of `__fstat64i32' /home/linux/local/gcc-4.4.1-w64/lib/gcc/x86_64-w64-mingw32/4.4.1/libstdc++.a(basic_file.o):basic_file.cc:(.text$_fstat64i32[__fstat64i32]+0x0): first defined here /home/linux/local/gcc-4.4.1-w64/mingw/lib64/libmingwex.a(lib64_libmingwex_a-_fstat64i32.o):_fstat64i32.c:(.text+0x130): multiple definition of `_fstat' /home/linux/local/gcc-4.4.1-w64/lib/gcc/x86_64-w64-mingw32/4.4.1/libstdc++.a(basic_file.o):basic_file.cc:(.text$fstat[_fstat]+0x0): first defined here collect2: ld returned 1 exit status make: *** [cc1-dummy.exe] Error 1
Trying to cross compile a gcc-4.4.1 release, win64 native compiler from Linux. The bootstrap process failed here while trying to build a win64 native compiler from a x86_64-w64-mingw32 cross compiler under Linux. -- Summary: ld picks up multiple definitions of *fstat* Product: gcc Version: 4.4.1 Status: UNCONFIRMED Severity: normal Priority: P3 Component: bootstrap AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: t66667 at gmail dot com GCC build triplet: i486-slackware-linux GCC host triplet: x86_64-w64-mingw32 GCC target triplet: x86_64-w64-mingw32 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41136