Hi I just tried it again , and it works fine for me , I can give gcc-4.6.0 a go to see if that causes any problems , the only other difference is that you have set RANLIB , I never did . I suppose the shell might be cause , can you try it in cygwin ? as a cross compiler , again this worked for me.
Thanks Jason On Apr 11, 5:12 am, "Sisyphus" <[email protected]> wrote: > Hi, > > Just tried building mpir-2.3.1 using the mingw64 compiler in the msys > shell - on MS Windows Vista64. > > My MinGW64 compiler: > > Rob@DESKTOP2 /c/_64/comp/mpir-2.3.1 > $ x86_64-w64-mingw32-gcc -v > Using built-in specs. > COLLECT_GCC=c:\_64\mingw64\bin\x86_64-w64-mingw32-gcc.exe > COLLECT_LTO_WRAPPER=c:/_64/mingw64/bin/../libexec/gcc/x86_64-w64-mingw32/4.6.0/lto-wrapper.exe > Target: x86_64-w64-mingw32 > Configured with: > ../../../build/gcc/gcc/configure --target=x86_64-w64-mingw32 > --prefix=/c/bb/vista64-mingw32/mingw-x86-x86_64/build/build/root > --with-sysroot=/c/bb/vista64-mingw32/mingw-x86-x86_64/build/build/root > --with-gmp=/c/bb/vista64-mingw32/mingw-x86-x86_64/build/build/gmp/install > --with-mpfr=/c/bb/vista64-mingw32/mingw-x86-x86_64/build/build/mpfr/install > --with-mpc=/c/bb/vista64-mingw32/mingw-x86-x86_64/build/build/mpc/install > --enable-languages=all,obj-c++ > --enable-fully-dynamic-string --disable-multilib > Thread model: win32 > gcc version 4.6.0 20100414 (experimental) (GCC) > > The configure command I ran: > > Rob@DESKTOP2 /c/_64/comp/mpir-2.3.1 > $ ./configure CC=x86_64-w64-mingw32-gcc CXX=x86_64-w64-mingw32-g++ > AR=x86_64-w64-mingw32-ar LD=x86_64-w64-mingw32-ld NM=x86_64-w64-mingw32-nm > RANLIB=x86_64-w64-mingw32-ranlib --prefix=/c/_64/mpir --enable-gmpcompat && > make && make > check > > No problems with make, but 'make check' croaks with: > > /bin/sh ../libtool --tag=CC --mode=link > 86_64-w64-mingw32-gcc -std=gnu99 -O2 -m64 -march=k8 -mtune=k8 -o > t-bswap.exe t-bswap.o libtests.la ../libmpir.la > libtool: link: > x86_64-w64-mingw32-gcc -std=gnu99 -O2 -m64 -march=k8 -mtune=k8 -o > t-bswap.exe t-bswap.o ./.libs/libtests.a > /c/_64/comp/mpir-2.3.1/.libs/libmpir.a ../.libs/libmpir.a > ./.libs/libtests.a(refmpn.o):refmpn.c:(.text+0x3f62): undefined reference to > `__gmpn_mul_1' > c:/_64/comp/mpir-2.3.1/.libs/libmpir.a(set_str.o):set_str.c:(.text+0x219): > undefined reference to `__gmpn_divrem_2' > [snip many other undefined reference to gmpn symbols] > c:/_64/comp/mpir-2.3.1/.libs/libmpir.a(toom_eval_dgr3_pm1.o):toom_eval_dgr3_pm1.c:(.text+0x152): > undefined reference to `__gmpn_add_n' > collect2: ld returned 1 exit status > make[4]: *** [t-bswap.exe] Error 1 > make[4]: Leaving directory `/c/_64/comp/mpir-2.3.1/tests' > make[3]: *** [check-am] Error 2 > make[3]: Leaving directory `/c/_64/comp/mpir-2.3.1/tests' > make[2]: *** [check-recursive] Error 1 > make[2]: Leaving directory `/c/_64/comp/mpir-2.3.1/tests' > make[1]: *** [check-recursive] Error 1 > make[1]: Leaving directory `/c/_64/comp/mpir-2.3.1' > make: *** [check] Error 2 > > I ran 'make install' and then tried the following: > > ############################### > C:\_64\c>type gmp_basic.c > #include <stdio.h> > #include <gmp.h> > > int main(void) { > mpz_t x; > mpz_init_set_str(x, "1011", 2); > mpz_out_str(0, 10, x); > return 0; > > } > > C:\_64\c>x86_64-w64-mingw32-gcc -o gmp_basic.exe > gmp_basic.c -IC:/_64/mpir/include -LC:/_64/mpir/lib -lgmp 2>err.txt > > C:\_64\c> > ############################### > > Looking at err.txt I can see a long list of undefined references to gmpn > symbols (and that the build failed). > 'err.txt' contains nothing other than those 'undefined reference' messages. > > What's needed to fix this ? > > Cheers, > Rob -- You received this message because you are subscribed to the Google Groups "mpir-devel" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/mpir-devel?hl=en.
