Building Parrot on Solaris

Andy Dougherty doughera at lafayette.edu
Fri Oct 31 12:17:46 UTC 2008


On Thu, 30 Oct 2008, Ovid wrote:

> --- On Thu, 30/10/08, NotFound <julian.notfound at gmail.com> wrote:
> 
> > > Help?  Google gives me no love.  (Configure.pl with
> > "--cc=gcc" also fails miserably)
> > 
> > To build with gcc you probably need:
> > 
> > perl Configure.pl --cc=gcc --ld=gcc --link=gcc --cxx=g++
> > 
> Unfortunately, that doesn't even come close :(

> inter::progs -        Determine what C compiler and linker to use...
> ./test_15656
> (
> __GNUC__ => 3,
> __GNUC_MINOR__ =>4,
> );
>  ccflags: -D_REENTRANT -xO3 -xarch=386 -xspace -xildoff -I/opt/csw/bdb44/include -I/opt/csw/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 gcc -D_REENTRANT -xO3 -xarch=386 -xspace -xildoff -I/opt/csw/bdb44/include -I/opt/csw/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I./include -c test_15656.c 
> gcc: language ildoff not recognized 
> gcc: test_15656.c: linker input file unused because linking not done 
> gcc -xarch=386 -L/opt/csw/bdb44/lib -L/opt/csw/lib -L/usr/lib -L/usr/ccs/lib -L/opt/SUNWspro/prod/lib -L/lib test_15656.o -o test_15656 -lsocket -lnsl -ldb-4.4 -ldl -lm -lpthread -lrt 
> gcc: test_15656.o: No such file or directory Compilation failed with 'gcc'

Right.  That's [perl #38823].  Configure.pl is blindly copying the flags 
(and libraries) from your perl 5 installation.

It might be that it's only the optimize setting that's causing problems.
(For my SPARC set-up, that's the case.  The other flags are the same for
both cc and gcc.)  Or, if you are unlucky, you also have to manually
set ccflags, ldflags, linkflags (and optimize) to values compatible
with your gcc installation.  You might have to set 'libs' as well.
Running Configure.pl interactively (with --ask) might work.

-- 
    Andy Dougherty		doughera at lafayette.edu


More information about the parrot-dev mailing list