gcc 4.9 on solaris 9 sparc (alignment)

Riccardo Mottola rmottola at opencsw.org
Thu Apr 9 15:17:40 CEST 2015


Hi Maiej,

Maciej (Matchek) Bliziński wrote:
> It's the same error I was getting when attempting to build on Solaris 9.
>
> When I talked to the GCC developers, they wanted me to build it in the
> most vanilla way possible, without GAR or anything like that. They
> even wanted me to build internal versions of libraries GCC depends on.
> You could see whether if a vanilla build works for you.
I haven't tried that yet, since it is a lot of work :) But what would 
mgar make different from vanilla?

I tried 4.8.4 with no difference, I tried using ccs as (we already force 
the ccs linker right now)
  This old thread https://gcc.gnu.org/bugzilla/show_bug.cgi?id=15267

1. with Sun as + Sun ld,
2. with GNU as + GNU ld,
3. with GNU as + Sun ld + easy workaround

we were attempting 3). I don't know which the workaround is, but I tried 1) and failed.

I then check this:
https://gcc.gnu.org/ml/gcc-testresults/2014-08/msg01668.html

TGC is I suppose thew new name from the old sunfreeware stuff. They got 4.9 to build and test, 4.8 too as well.


GNU as 2.23.1
Sun ld 5.9-1.401 (112963-36)
gmp 5.1.3
mpfr 3.1.2
mpc 1.0.1
isl 0.11.2
cloog 0.18.0

Our GNU is older, I already ot 2.24 to compile, as soon as the solaris9 "hang" problem is solved, I can commit that, we have 2.22 in fact.
Can you check what solaris linker we have? Older perhaps?

I don't know and don't think the other dependencies are relevant.

They configured like this:
configure flags: --enable-obsolete --prefix=/usr/tgcware --with-local-prefix=/usr/tgcware/gcc49
  --bindir=/usr/tgcware/gcc49/bin --mandir=/usr/tgcware/gcc49/man --infodir=/usr/tgcware/gcc49/info
--disable-nls
  --enable-shared
  --enable-threads=posix
  --with-gmp=/usr/tgcware --with-mpfr=/usr/tgcware --with-mpc=/usr/tgcware --with-cloog=/usr/tgcware --with-isl=/usr/tgcware --with-cloog-backend=isl
  --without-gnu-ld --with-ld=/usr/ccs/bin/ld
  --with-gnu-as --with-as=/usr/tgcware/bin/gas
  --enable-languages=all,ada,obj-c++,go --with-x --enable-java-awt=xlib --with-cpu=v9 --with-pkgversion='tgcware 4.9.1-1' --with-bugurl=http://jupiterrise.com/tgcware


They use GNU as and sun linker, so it should work for us too! So let's see if LD is the latest version and if I can bring the AS on par.

THe only relevant differences with us I see are:
--disable-nls
  --enable-shared
--with-cpu=v9
  

We explicitely enable nls, however it should not matter I think. But 
what about "shared"?

Riccardo


More information about the maintainers mailing list