[Ecls-list] ecl on Solaris/sparc?

Michael Abshoff michael.abshoff at googlemail.com
Fri Aug 29 07:27:33 UTC 2008


Juan Jose Garcia-Ripoll wrote:
> On Fri, Aug 29, 2008 at 2:51 AM, Raymond Toy <toy.raymond at gmail.com> wrote:
>> I was wrong; leaving off ABI=32 doesn't work.  For some reason, the config
>> wants to use -Wc,-m64, which gcc (3.4.3) doesn't like. [...]
>> Also, I think I found out what the problem was with sparc-mach-dep.o issue.
>>  I was using gcc 3.4.3 that comes with Solaris 10, which also uses binutils.
>>  But I rebuilt using my own build of gcc 3.4.3 that uses Sun as and Sun ld.

Hi,

> Since Michael did not have those problems, do you think we can produce
> a minimal set of instructions that people can follow for building with
> Solaris? I would gladly add them to the manual
> http://ecls.sourceforge.net/new-manual/pr01s06.html#preface.osdep

I usually build with an extenal gmp and boehm_gc, so I am unlikely to 
hit those issues.

I hit one issue with a boehm_gc from the system not in a standard place:

I ran ./configure --with-system-gmp --enable-boehm=system 
--prefix=/home/mabshoff/maxima+ecl/ecl-0.9l-x86-64 with CPPFLAGS so that 
  my boehm_gc was picked up. This leads to

In file included from /home/mabshoff/maxima+ecl/ecl-0.9l/src/c/dpp.c:77:
/home/mabshoff/maxima+ecl/ecl-0.9l/build/ecl/config.h:51:16: error: 
gc.h: No such file or directory
make[2]: *** [dpp] Error 1
make[2]: Leaving directory `/home/mabshoff/maxima+ecl/ecl-0.9l/build/c'
make[1]: *** [libeclmin.a] Error 2
make[1]: Leaving directory `/home/mabshoff/maxima+ecl/ecl-0.9l/build'
make: *** [all] Error 2
[mabshoff at eno ecl-0.9l]$


Adding $(CPPFLAGS) to the makefile rule for dpp in build/c/Makefile 
fixes this.

$(DPP): $(srcdir)/dpp.c $(srcdir)/symbols_list2.h
         if test -f ../CROSS-DPP; then touch dpp; else \
         $(TRUE_CC) -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -g -O2 -fPIC 
-Dlinux -I$(srcdir) $(CPPFLAGS) 
-I/home/mabshoff/maxima+ecl/ecl-0.9l/build -I./ $(DEFS) $(srcdir)/dpp.c 
  -o $@ ; \
         fi

This is obviously not a proper fix since it needs to be done in the auto 
tools somewhere. If you have trouble reproducing this I will submit a 
proper patch this weekend.

> Juanjo

Cheers,

Michael




More information about the ecl-devel mailing list