[Ecls-list] Building for solaris sparc

Raymond Toy toy.raymond at gmail.com
Wed Mar 5 01:23:54 UTC 2008




Raymond Toy wrote:
> Juan Jose Garcia-Ripoll wrote:
>> On Tue, Mar 4, 2008 at 3:01 AM, Raymond Toy <toy.raymond-Re5JQEeQqe8AvxtiuMwx3w at public.gmane.org> wrote:
>>   
>>> I tried to build ecl 0.9j-p1 on sparc and ran into a couple of issues.
>>>
>>>  First, a simple configure with all defaults, using gcc, doesn't quite
>>>  work.  This is because when gmp is configured it wants to build a 64-bit
>>>  version of gmp but the rest of ecl is built assuming a 32-bit version.
>>>  When everything is linked together, the linker fails since the object
>>>  files are incompatible.
>>>     
>> Regarding the Solaris port, remeber this was the only major issue. The
>> GMP library wants to build with a different word size than what the C
>> compiler by default takes. It was for this reason that I introduced a
>> compilation flag named "--enable-slow-conf" that first configures the
>> GMP library and then configures ECL using the same flags. It should
>> still work.
>>
>>   
> Oh, I'm new to ecl and the mailing list, so I didn't know that.  I'll 
> try that and let you know if it works.

Ok.  I tried --enable-slow-conf, with gcc.  It fails to finish 
configuring because configure can't find a type for cl_fixnum.  Didn't 
investigate further, though.  But configuring with CC=gcc CFLAGS=-m64 
and LDFLAGS=-m64 works ok.

Curiously, I tried to configure using CC=cc (Sun Studio 11 cc), and 
configure actually finishes.  I tried a build but it's clearly not going 
to work because it's using -fPIC.  For Sun C, it should be -KPIC (I 
think).  Didn't investigate further either.

More info available if you want it.

Ray






More information about the ecl-devel mailing list