gm2
[Top][All Lists]
Advanced

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

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


From: john o goyo
Subject: [Gm2] Building under Solaris 9 on Sparc -- update 2 (mostly bad)
Date: Wed, 08 Jun 2005 15:27:57 -0400
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7) Gecko/20040616

Greetings:

Gaius Mulley wrote:
john o goyo <address@hidden> writes:

------------------------------------------------------------------------
3. Fixups.

3.1. The gm2 makefile uses the "-e" options.  Under Solaris, this is
only available with the XPG 3 version of grep, not the usual grep.  Athough
easilly corrected with the appropriate PATH, I wonder why this was not
picked up by configure.


ok, I've modified the gm2/Make-lang.in to utilise

  grep \\-DCROSS_COMPILE

rather than

  grep -e -DCROSS_COMPILE

any chance you can test this on Solaris?

This works with the usual grep. Thank you.


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.

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)

-------------------------------------------------------------------------
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.


-------------------------------------------------------------------------
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


-------------------------------------------------------------------------
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

-------------------------------------------------------------------------
For the record, I configure anew each time that I build.

Sincerely,
john



reply via email to

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