It looks to me like you have something hanging around in your environment you shouldn't have. Specifically you have:
CFLAGS=-O0 -g So it never runs the tests to see which ABI is appropriate. It is trying to build with ABI=64, which means it is taking the 64 bit assembly code, but the compiler is building all the C code as the default 32 bits. Try typing $CFLAGS at your command line. If you don't get -O0 -g then Sage must be injecting that, which would be wrong. Either way it shouldn't be there. You should be able to build MPIR from source. Here is a link to our website: http://www.mpir.org/ Also, building with optimisation level -O0 will run everything dog slow. Bill. 2009/6/3 Jhair Tocancipa Triana <jhair.tocanc...@gmail.com>: > Thanks for your answer. Please find attached > spkg/build/gmp-mpir-1.1.2/src/config.log. > > Bill Hart <goodwillh...@googlemail.com> writes: > >> Can you post the contents of MPIR's config log in >> spkg/build/mpir.../src/src thanks. >> >> Bill. >> >> 2009/6/3 Jhair <jhair.tocanc...@gmail.com>: >>> >>> Hello, >>> >>> I'm trying to compile the sage library which AFAIK uses mpir: >>> http://www.sagemath.org/. >>> >>> I'm getting build errors like: >>> >>> /usr/bin/ld: i386:x86-64 architecture of input file `mpn/.libs/ >>> add_n.o' is incompatible with i386 output >>> >>> If I check the generated file, it says: >>> >>> $ file ./spkg/build/gmp-mpir-1.1.2/src/mpn/.libs/and_n.o >>> >>> ./spkg/build/gmp-mpir-1.1.2/src/mpn/.libs/and_n.o: ELF 64-bit LSB >>> relocatable, x86-64, version 1 (SYSV), not stripped >>> >>> However other files look fine (i.e. 32bit): >>> >>> $ file ./spkg/build/gmp-mpir-1.1.2/src/mpn/.libs/dive_1.o >>> >>> ./spkg/build/gmp-mpir-1.1.2/src/mpn/.libs/dive_1.o: ELF 32-bit LSB >>> relocatable, Intel 80386, version 1 (SYSV), not stripped >>> >>> I asked the SAGE developers and they say mpir/mpn uses fairy >>> sophisticated architecture detection. So I would like to know if >>> somehow the detection is ignoring that I'm running a 32 bit kernel on >>> a 64bit processor. >>> >>> Thanks, >>> >>> Regards, >>> >>> >>> >>> > >>> >> >> > > > -- > --Jhair > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "mpir-devel" group. To post to this group, send email to mpir-devel@googlegroups.com To unsubscribe from this group, send email to mpir-devel+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/mpir-devel?hl=en -~----------~----~----~----~------~----~------~--~---