gm2
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Gm2] Re: Building under Solaris 9 on Sparc -- update 2 (mostly bad)


From: Gaius Mulley
Subject: [Gm2] Re: Building under Solaris 9 on Sparc -- update 2 (mostly bad)
Date: 09 Jun 2005 20:50:13 +0100
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2

john o goyo <address@hidden> writes:

Hi John,

> >>3.2. The gcc makefile defines "srcdir" as an absolute path from the root
> >>but the makefile is peppered with relative (and nonsensical) paths such as
> >>../$(srcdir).  The paths were corrected but I wonder why they defined this
> >>way at all.
> > ok, sometimes the path ../$(srcdir) is used, say if the sh script
> > changes into a lower directory. cd gm2 ; etc etc etc ; -I../$(srcdir)
> > etc. Does this break the compile if you use an absolute srcdir on
> > Solaris?
> 
> It broke the build because the Makefile contained paths such as
> ../../home/build/src and so on.  However, I now call configure
> with a relative path (as indicated in a previous message) and all
> is well with the paths.

ok, thanks for this confirmation, I'll fix it to work with absolute
paths once I've sorted the bugs below:

> Unfortunately, now both the 32- and 64-bit version fail under the
> latest CVS version (of 2005-06-07).  It even fails on my Intel-based
> Linux box. (Sigh)

yes I get the same..

> -------------------------------------------------------------------------
> 1. Solaris-i32lp64 FAILED:
> 
> ../../gcc-3.3.3-gm2/gcc/gm2/ulm-lib-gm2/std/Plot.mod:0: internal
> compiler error: Segmentation Fault
> 
> Not sure what happened here.

yes this has happened because I added `-Wextended-opaque' to the
GM2_FLAGS in gm2/Make-lang.in

As a work around you could remove this option and the build should be
successful.

> -------------------------------------------------------------------------
> 2. Solaris-ilp32 FAILED:
> 
> First the compiler failed to find the constant CreateMode in StdIO.mod in
> the ulm library.  I moved the definition of the constant to outside the
> procedure.
> 
> ./xgm2 -Wnil -Wcase -Wbounds -Wreturn -g -gdwarf-2  -funbounded-by-reference
> -Wverbose-unbounded -Wpim -Wpedantic-param-names -Wextended-opaque -c
> -B./stage1/gm2
> -I../../gcc-3.3.2-gm2/gcc/gm2/ulm-lib-gm2/std:../../gcc-3.3.2-gm2/gcc/gm2/ulm-lib-gm2/sys:../../gcc-3.3.2-gm2/gcc/gm2/gm2-libs
> ../../gcc-3.3.3-gm2/gcc/gm2/ulm-lib-gm2/std/StdFuncs.mod
> -o gm2/ulm-lib-gm2/std/StdFuncs.o
> ../../gcc-3.3.3-gm2/gcc/gm2/gm2-compiler/SymbolKey.mod:241:parameter t
> should never be NIL
> gmake[1]: *** [gm2/ulm-lib-gm2/std/StdFuncs.o] Error 1

same bug.. as above

> -------------------------------------------------------------------------
> 3. Linux-Intel FAILED:
> 
> The same error with the constant CreateMode as in Solaris-ilp32.  (Consistency
> is good. #6-) I modified StdIO.mod as above and was rewarded with the
> same failure as above.
> 
> ./xgm2 -Wnil -Wcase -Wbounds -Wreturn -g -gdwarf-2  -funbounded-by-reference
> -Wverbose-unbounded -Wpim -Wpedantic-param-names -Wextended-opaque -c
> -B./stage1/gm2
> -I../../gcc-3.3.2-gm2/gcc/gm2/ulm-lib-gm2/std:../../gcc-3.3.2-gm2/gcc/gm2/ulm-lib-gm2/sys:../../gcc-3.3.2-gm2/gcc/gm2/gm2-libs
> ../../gcc-3.3.2-gm2/gcc/gm2/ulm-lib-gm2/std/StdFuncs.mod
> -o gm2/ulm-lib-gm2/std/StdFuncs.o
> ../../gcc-3.3.2-gm2/gcc/gm2/gm2-compiler/SymbolKey.mod:241:parameter t should
> never be NIL
> make[1]: *** [gm2/ulm-lib-gm2/std/StdFuncs.o] Error 1

same bug.. as above

I'm working on the fix as I type this (waiting for a recompile to
finish).. fixed a few and the problem appears elsewhere.. in the
regression tests. Thanks for the reports,

Gaius



reply via email to

[Prev in Thread] Current Thread [Next in Thread]