Compiler issues with Eclipse CDT

Clay Codner claycodner at
Mon Jul 1 04:33:50 CEST 2013


Thanks for the reply. I rebuilt my GMP installation, using
coreisbr-pc-mingw32 as the build option, and even gave gmp its own build
directory. I changed the various include settings in eclipse to correspond,
but no dice. I still get the same compiler error.  As far as I can tell,
MinGW & msys simply implement a basic unix command line interface. I'm not
sure they are the source of the problem. I could try changing the $PATH in
msys, but it looks like it picks the path up from windows. Plus the
compiler seems to be including the header paths explicitly.

Any other ideas?


On Sun, Jun 30, 2013 at 8:06 AM, Gabriel Risterucci <cleyfaye at>wrote:

> 2013/6/30 Clay Codner <claycodner at>
>> I have been trying to get the GMP libraries to work properly with the
>> Eclipse CDT. Unfortunately, I am new to both and could use some help. I
>> have been able to get Eclipse to recognize the header files while writing
>> the program and as an include file. Now I get a whole list of errors
>> involving the sparc64 files, which is curious since I'm on Windows. Can
>> anybody tell me how I might fix this? It feels like I have made progress,
>> but either the compiler or linker seems to be very mad.
>> Eclipse IDE for C/C++ Developers - 64 bit
>> Version: Juno Service Release 2
>> Build id: 20130225-0426
>> Windows 7 Pro / Intel Core I5 / 8GB
>> GMP 5.1.2
>> From the problems tab:
>> Description Resource Path Location Type
>> no such instruction: `fmuld u32,v32,r64 C FIXME not urgent' mul_1.asm
>> /GMPTest/gmp-5.1.2/mpn/sparc64/ultrasparc1234 line 383 C/C++ Problem
>> no such instruction: `ld [%i5+%i2],%f3 C read low 32 bits of up[i]'
>> mul_1.asm /GMPTest/gmp-5.1.2/mpn/sparc64/ultrasparc1234 line 382 C/C++
>> Problem
>> no such instruction: `c 01' mul_1.asm
>> /GMPTest/gmp-5.1.2/mpn/sparc64/ultrasparc1234 line 385 C/C++ Problem
>> no such instruction: `faddd p32,r32,a32' mul_1.asm
>> /GMPTest/gmp-5.1.2/mpn/sparc64/ultrasparc1234 line 384 C/C++ Problem
> ...
> The process to build GMP is described in the manual:
> <>
> You have to first build the library, install it in your development
> environment, then build your program. If you just scram every files in
> eclipse CDT, it will blindly try to build everything including optimized
> assembly for all supported architectures, which won't work. It will
> probably miss a few define directives needed to build correctly.
> For more information on using a gcc-like environment on windows, you
> should read about mingw and msys or cygwin.
> --
> Cley Faye

More information about the gmp-discuss mailing list