[M3devel] Couple of CM3 build comments (Solaris/SPARC).

Tony Hosking hosking at cs.purdue.edu
Tue Aug 21 15:59:01 CEST 2007


On Aug 20, 2007, at 11:07 PM, Alex Bochannek wrote:

> I finally got around to completing a successful buildship on  
> Solaris 10
> on SPARC. Here are the steps I did.
>
> o Downloaded cm3-min-POSIX-SOLgnu-5.4.0.tgz and do a cminstall as root
>   into /usr/local/cm3
>
> o In the process, some of the libraries it couldn't find I chose to
>   ignore (e.g., {PostgreSQL)
>
> o Downloaded the SOLgnu/cm3.gz and cm3cg.gz from Tony Hosking's site
>
> o Copied them over the existing ones in /usr/local/cm3
>
> o Checked out a top-of-tree CVS version of cm3-src
>
> o Adjusted Tony's cm3.cfg to my INSTALL_ROOT
>
> o Did a scripts/do-cm3-core.sh buildship as root
>
> o Ran into all sorts of problems with make and ld and adjusted the
>   cm3.cfg to use GNU_MAKE = "gmake" and tweaked my PATH to use a  
> GNU ld
>   and an ar. (Sidenote: Incidentally, gcc configure uses
>   --print-prog-name=ld to figure out what ld to use for itself and  
> since
>   my installed gcc uses /usr/ccs/bin/ld I was concerned it wouldn't
>   work, but this isn't what is used later on anyway, so it didn't
>   matter.)
>
> o Ran into another problem with as and for some reason Tony's cm3.cfg
>   used /usr/ccs/bin/as, which chokes on the GNU as directives. Changed
>   cm3.cfg again.

Which file chokes?  Is it because your m3cc is configured to use GNU as?

>
> o do-cm3-core.sh completed and I did an install-cm3-compiler.sh  
> upgrade,
>   again as root since it's writing it into /usr/local/cm3
>
> o Finally, did a do-cm3-std.sh buildship, which ran for quite a while.
>
> o Ran into compile problems with Gdb (looked like a C99 issue, but I
>   didn't investigate it further. Just ran a cm3 in m3gdb again and the
>   error is below.)
>
> o Commented out m3gdb in def-std-pkgs.sh and did a do-cm3-std.sh
>   buildship again.
>
> o The compile and install succeeded and I now have a nice new
>   cm3-d5.5.0.
>
> o Compiler some stuff in m3-games, just to make sure it really  
> works and
>   it looks like I am OK for now. I do see a number of core dumps  
> though
>   with some of apps, but I am not going to debug that at this point.

What's core dumping?  Is this from before my fixes to thread stopping  
yesterday?

>
> Thanks for the help and if there is anything I can do to help with
> troubleshooting some of the problems on Solaris, I am happy to do so.
>
> Alex.
>
>
>
> Gdb compile error:
>
> gcc -c -g    -I. -I../../gdb/gdb -I../../gdb/gdb/config - 
> DLOCALEDIR="\"/usr/local/share/locale\"" -DHAVE_CONFIG_H -I../../ 
> gdb/gdb/../include/opcode -I../../gdb/gdb/../readline/.. -I../bfd - 
> I../../gdb/gdb/../bfd -I../../gdb/gdb/../include -I../intl -I../../ 
> gdb/gdb/../intl  -DMI_OUT=1 -DTUI=1 -Wimplicit -Wreturn-type - 
> Wcomment -Wtrigraphs -Wformat -Wparentheses -Wpointer-arith - 
> Wformat-nonliteral -Wunused-label -Wunused-function  version.c
> gcc -c -g    -I. -I../../gdb/gdb -I../../gdb/gdb/config - 
> DLOCALEDIR="\"/usr/local/share/locale\"" -DHAVE_CONFIG_H -I../../ 
> gdb/gdb/../include/opcode -I../../gdb/gdb/../readline/.. -I../bfd - 
> I../../gdb/gdb/../bfd -I../../gdb/gdb/../include -I../intl -I../../ 
> gdb/gdb/../intl  -DMI_OUT=1 -DTUI=1 -Wimplicit -Wreturn-type - 
> Wcomment -Wtrigraphs -Wformat -Wparentheses -Wpointer-arith - 
> Wformat-nonliteral -Wunused-label -Wunused-function  ../../gdb/gdb/ 
> valops.c
> In file included from ../../gdb/gdb/m3-lang.h:23,
>                  from ../../gdb/gdb/valops.c:47:
> /usr/include/stdbool.h:42:2: #error "Use of <stdbool.h> is valid  
> only in a c99 compilation environment."
> In file included from ../../gdb/gdb/valops.c:47:
> ../../gdb/gdb/m3-lang.h:34: error: syntax error before  
> "processing_pm3_compilation"
> ../../gdb/gdb/m3-lang.h:34: warning: type defaults to `int' in  
> declaration of `processing_pm3_compilation'
> ../../gdb/gdb/m3-lang.h:34: warning: data definition has no type or  
> storage class
> ../../gdb/gdb/m3-lang.h:43: error: syntax error before  
> "procedures_have_extra_block"
> ../../gdb/gdb/m3-lang.h:43: warning: type defaults to `int' in  
> declaration of `procedures_have_extra_block'
> ../../gdb/gdb/m3-lang.h:43: warning: data definition has no type or  
> storage class
> gmake[2]: *** [valops.o] Error 1
> gmake[2]: Leaving directory `/opt/cm3/cm3/m3-sys/m3gdb/SOLgnu/gdb'
> gmake[1]: *** [all-gdb] Error 2
> gmake[1]: Leaving directory `/opt/cm3/cm3/m3-sys/m3gdb/SOLgnu'
> gmake: *** [all] Error 2




More information about the M3devel mailing list