|
|
Rainer Orth wrote:
> "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.
Will try this out. Thanks Rainer.
|
|