gnu.gcc.help
[Top] [All Lists]

Re: build trouble - gcc-4.1.1 on Solaris 10

Subject: Re: build trouble - gcc-4.1.1 on Solaris 10
From: Rainer Orth
Date: 21 Jul 2006 11:46:10 +0200
Newsgroups: gnu.gcc.help, comp.unix.solaris
"Thommy M. Malmström"  <thommy.m.malmstrom@xxxxxxxxx> writes:

> Lucky you. I still have errors...
>
>
> $ cd /opt/local/src
> $ gtar jxf gcc-4.1.1.tar.bz2
> $ mkdir buildgcc-4.1.1
> $ cd buildgcc-4.1.1
> $ export CONFIG_SHELL=/usr/bin/bash
>
> $ ../gcc-4.1.1/configure   --prefix=/opt/local --with-as=/usr/ccs/bin/as

You should avoid using relative pathnames to the toplevel configure script
and an objdir that is a subdir of srcdir:

        http://gcc.gnu.org/install/configure.html

> --with-ld=/usr/ccs/bin/ld --enable-threads --disable-nls

--with-as and --with-ld shouldn't be necessary if you have /usr/ccs/bin in
your PATH.  --enable-threads is superfluous (the default) either.

> --enable-java-awt=xlib --with-x --enable-languages=c,c++,java,objc
[...]
> Assembler:
>         "", line 1 : Illegal flag (-)
> gmake[4]: *** [amd64/gmon.o] Error 1

Dave's build was on SPARC, your's is on x86/amd64: you either need to use
--disable-multilib (and don't include amd64 support) or use GNU as
(preferably the one in /usr/sfw/bin/gas) with

        --with-as=/usr/sfw/bin/gas --with-gnu-as

Some hints can be found at

                                        gcc.gnu.org/install/specific.html#ix86-x-solaris210">http://gcc.gnu.org/install/specific.html#ix86-x-solaris210
                                        gcc.gnu.org/install/specific.html#x-x-solaris2">http://gcc.gnu.org/install/specific.html#x-x-solaris2

Hope this helps.

        Rainer

--
-----------------------------------------------------------------------------
Rainer Orth, Faculty of Technology, Bielefeld University

<Prev in Thread] Current Thread [Next in Thread>
Privacy Policy