gm2
[Top][All Lists]
Advanced

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

Re: [Gm2] (no subject)


From: Gaius Mulley
Subject: Re: [Gm2] (no subject)
Date: 02 Oct 2005 22:35:51 +0100
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.4

Thomas Ahn <address@hidden> writes:

> Gaius,
> 
> I started all over building gm2. I assume the build works with the
> changes suggested by Michael and you. The build finishes as follows:
> 
> mkdir .libs
> ar cru .libs/libobjc.a archive.o class.o encoding.o gc.o hash.o init.o
> linking.o misc.o nil_method.o NXConstStr.o Object.o objects.o
> Protocol.o sarray.o selector.o sendmsg.o thr.o thr-objc.o
> ranlib .libs/libobjc.a
> creating libobjc.la
> (cd .libs && rm -f libobjc.la && ln -s ../libobjc.la libobjc.la)
> : make ; exec true "AR=ar" "AR_FLAGS=rc"
> "CC=/Users/tommy/gcc-3.3.6/gcc/xgcc -B/Users/tommy/gcc-3.3.6/gcc/
> -B/usr/local/powerpc-apple-darwin7.9.0/bin/
> -B/usr/local/powerpc-apple-darwin7.9.0/lib/ -isystem
> /usr/local/powerpc-apple-darwin7.9.0/include" "CFLAGS=-O2 -g -O2
> -msoft-float" "DESTDIR=" "LIBCFLAGS=-O2 -g -O2 -msoft-float"
> "EXTRA_OFILES=" "HDEFINES=" "INSTALL=/bin/sh
> /Users/tommy/gcc-3.3.6/install-sh -c" "INSTALL_DATA=/bin/sh
> /Users/tommy/gcc-3.3.6/install-sh -c -m 644" "INSTALL_PROGRAM=/bin/sh
> /Users/tommy/gcc-3.3.6/install-sh -c " "LDFLAGS=-msoft-float"
> "LIBTOOL=./libtool" "LOADLIBES=" "PICFLAG=" "RANLIB=ranlib"
> "SHELL=/bin/sh" "prefix=/usr/local" "exec_prefix=/usr/local"
> "libdir=/usr/local/lib"
> "libsubdir=/usr/local/lib/gcc-lib/powerpc-apple-darwin7.9.0/3.3.6"
> "tooldir=/usr/local/powerpc-apple-darwin7.9.0" multi-do DO=all
> [Thomas-Ahns-Computer:~/gcc-3.3.6] tommy%


> Then I installed gm2 what finished as follows:
> 
> make[4]: Nothing to be done for `all'.
> /bin/sh ./../../../mkinstalldirs /usr/local/lib/soft-float
> /bin/sh /Users/tommy/gcc-3.3.6/install-sh -c -m 644 libiberty.a
> /usr/local/lib/soft-float/libiberty.an
> ( cd /usr/local/lib/soft-float ; ranlib libiberty.an )
> mv -f /usr/local/lib/soft-float/libiberty.an
> /usr/local/lib/soft-float/libiberty.a
> if test -n ""; then \
>   case "" in \
>     /*) thd=;; \
>     *) thd=/usr/local/include/soft-float/;; \
>   esac; \
>   /bin/sh ./../../../mkinstalldirs ${thd}; \
>   for h in ./../../../include/ansidecl.h ./../../../include/demangle.h
> ./../../../include/dyn-string.h ./../../../include/fibheap.h
> ./../../../include/floatformat.h ./../../../include/hashtab.h
> ./../../../include/libiberty.h ./../../../include/objalloc.h
> ./../../../include/partition.h ./../../../include/safe-ctype.h
> ./../../../include/sort.h ./../../../include/splay-tree.h
> ./../../../include/ternary.h; do \
>     /bin/sh /Users/tommy/gcc-3.3.6/install-sh -c -m 644 $h ${thd}; \
>   done; \
> fi
> make[4]: Nothing to be done for `install'.
> make[2]: Nothing to be done for `install'.
> [Thomas-Ahns-Computer:/Users/tommy/gcc-3.3.6]
> 
> Looks somehow suspicious to me (Too many : Nothing to be done for
> install), but I am not an expert and maybe it is ok.

yes suspicious, but check the directory /usr/local/bin
for `gm2' and `gm2m'

> After that I tried to make the hello.mod and got the following
> messages:
> 
> [Thomas-Ahns-Computer:/Users/tommy/gcc-3.3.6] tommy# cd
> gcc/gm2/examples/hello
> [Thomas-Ahns-Computer:gm2/examples/hello] tommy# make
> gm2 -c -g -I. hello.mod
> make: gm2: Command not found
> make: *** [all] Error 127
> [Thomas-Ahns-Computer:gm2/examples/hello] tommy#

     export PATH=/usr/local/bin:$PATH

sets the path

     type gm2

checks that the shell can see the program `gm2' and displays its
absolute path.

> 
> I am just guessing, but do I have to modify the PATH variable - no
> clue how to do this anyway? Well, I did the following, which tells me
> that obviously there exists a xgm2, which is doing something when I
> call it from the gcc directory. However I never got any output like an
> object file or an executable (a.out).
> 
> [Thomas-Ahns-Computer:tommy/gcc-3.3.6/gcc] tommy# ./xgm2 -c -g
> -I. gm2/examples/hello/hello.mod
> [Thomas-Ahns-Computer:tommy/gcc-3.3.6/gcc] tommy# ./xgm2 -g -I.
> gm2/examples/hello/hello.mod

ok, xgm2 is the name of the compiler in the build tree to
differentiate it from (a possibly) installed version 'gm2'.

> /usr/bin/ld: archive: /var/tmp//cc96Fyhv.a has no table of contents,
> add one with ranlib(1) (can't load from it)
> collect2: ld returned 1 exit status

this looks like a problem - but first check the install so that you
can run `gm2' rather than `xgm2'

> [Thomas-Ahns-Computer:tommy/gcc-3.3.6/gcc] tommy#
> 
> Anyway, after this I did the "gm2.paranoid" which quit with the
> following error message:
> 
> mv mod_init.c gm2/gm2-compiler-paranoid
> gcc -c -g gm2/gm2-compiler-paranoid/mod_init.c -o
> gm2/gm2-compiler-paranoid/mod_init.o
> ./xgm2 -c -B./stage2/gm2 -I./gm2/gm2-compiler -I./gm2/gm2-libs
> -I./gm2/gm2-libiberty gm2/gm2-compiler/FifoQueue.mod -o
> gm2/gm2-compiler-paranoid/FifoQueue.o
> ./gm2/gm2-libs/SYSTEM.def:33:syntax error, found `MODULE'
> ./gm2/gm2-libs/SYSTEM.def:47:syntax error, syntax error
> ./gm2/gm2-libs/SYSTEM.def:47:syntax error, `;' missing
> ./gm2/gm2-libs/SYSTEM.def:47:syntax error, `identifier' missing
> ./gm2/gm2-libs/SYSTEM.def:47:syntax error, syntax error
> ./gm2/gm2-libs/SYSTEM.def:47:syntax error, `.' missing
> ./gm2/gm2-libs/SYSTEM.def:47:syntax error, `identifier' missing
> ./gm2/gm2-libs/SYSTEM.def:47:compilation failed
> make: *** [gm2/gm2-compiler-paranoid/FifoQueue.o] Error 1
> [Thomas-Ahns-Computer:tommy/gcc-3.3.6/gcc] tommy#
> 
> Any suggestions what to do next? I was also wondering how to run the
> tests you mentioned from gm2-harness-0.5. I have gm2-harness-05, but
> what are these tests and how do I use those?
> Thomas


cd <builddir>/gcc
make check-gm2

will run the regression tests (make sure you have 'dejagnu' and 'wget'
installed) - I used the ports collection for both on my x86 OpenDarwin
system.

regards,
Gaius



reply via email to

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