|
|
Dave (from the UK) wrote:
> I have a Sun UltraSPARC workstation with Solaris 10 update 2 (6/06
> release) and gcc 3.4.3 - the gcc is now part of Solaris.
>
> I need to build a java compiler (gcl), as the gcc that is shipped in
> Solaris is not built with that. So I downloaded gcc-4.1.1 and configured
> gcc like this:
>
> teal /export/home/drkirkby/build % ../gcc-4.1.1/configure
> --prefix=/usr/local --with-as=/usr/sfw/bin/gas --with-gnu-as
> --with-ld=/usr/ccs/bin/ld --without-gnu-ld --enable-languages=c,c++,java
>
> (those config options are the same as those used for building gcc in
> /usr/sfw/bin/gcc)
>
> Whilst the build process of 4.1.1 went a long way (there was over 300 Mb
> of files created), it finally bombs out. Various linker errors about "
> relocation error" and "symbol <unknown>: offset 0xfeeb5aa6 is
> non-aligned". (See below for more details)
>
>
> Any idea where the hell to start looking for this problem?
>
>
> teal /export/home/drkirkby/build % gmake
This worked for me on a Ultra-60 Sol 10 3/05
CONFIG_SHELL=/usr/bin/bash
export CONFIG_SHELL
gcc-4.1.1/configure --prefix=/opt/gnu/gcc-4.1.1 \
--with-as=/usr/ccs/bin/as \
--with-ld=/usr/ccs/bin/ld --enable-threads \
--enable-languages=c,c++,java,objc \
--disable-nls --enable-java-awt=xlib --with-x
gmake bootstrap
I'm always using Solaris ld, as
Rainer
|
|