On Tue, May 4, 2010 at 4:00 PM, t66...@gmail.com <t66...@gmail.com> wrote: > Hello: > Currently I am using the mingw-w64 SVN to build recently released GCC > 4.5 4.4 series. > Anyone have have problem with gcc-4.4.4 and 4.5.0 cross compiler with > mingw-w64 trunk CRT and W32API running on Linux ? > > I use these cross compiler, but it fails at configure mpfr 2.4.2 > --host=x86_64-w64-mingw32... > > Initially I thought it was 4.5.0-release then I retried again with > 4.4.4-release cross compilers ... still no go. > And then I thought it could be problem with binutils CVS... so retried > again by only rebuild binutils to binutils-2.20.1 release and install it > to the cross compiler. > Still no go... > > mpfr-2.4.2': > configure: error: C compiler cannot create executables > See `config.log' for more details. > > I looked in to the config.log and saw lots of undefined references... > lib/gcc/x86_64-w64-mingw32/4.4.4/../../../../x86_64-w64-mingw32/lib/../lib64/crt2.o:crtexe.c:(.text+0x49): > undefined reference to `___getmainargs' > ... > ... > ... > lib/gcc/x86_64-w64-mingw32/4.4.4/../../../../x86_64-w64-mingw32/lib/../lib64/libmingw32.a(lib64_libmingw32_a-pesect.o):pesect.c:(.text+0x291): > undefined reference to `_strncmp' > collect2: ld returned 1 exit status > configure:4193: $? = 1 > configure:4230: result: > configure: failed program was: > | /* confdefs.h */ > | #define PACKAGE_NAME "MPFR" > | #define PACKAGE_TARNAME "mpfr" > | #define PACKAGE_VERSION "2.4.2" > | #define PACKAGE_STRING "MPFR 2.4.2" > | #define PACKAGE_BUGREPORT "" > | #define PACKAGE_URL "" > | /* end confdefs.h. */ > | #include <stdio.h> > | int > | main () > | { > | FILE *f = fopen ("conftest.out", "w"); > | return ferror (f) || fclose (f) != 0; > | > | ; > | return 0; > | } > > t66...
You built a cross-binutils-2.20.1 but kept the rest as the same yes? I think that's why it fails. Binutils-cvs has the undrerscoring changes but release versions of gcc-4.4.4 and gcc-4.5.0 do not. You should rebuild your toolchain from the start, I guess. -- Ozkan ------------------------------------------------------------------------------ _______________________________________________ Mingw-w64-public mailing list Mingw-w64-public@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mingw-w64-public