[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Gm2] gm2 make errors?
From: |
Charles Bradshaw |
Subject: |
Re: [Gm2] gm2 make errors? |
Date: |
Sat, 10 May 2014 19:13:55 +0100 |
Gaius
Results of your tests:
address@hidden hello]$ gm2 -g -c hello.mod
address@hidden hello]$ ls -l
total 16
-rw-r--r-- 1 brad brad 976 May 10 17:53 hello.mod
-rw-rw-r-- 1 brad brad 3308 May 10 19:08 hello.o
-rw-r--r-- 1 brad brad 1694 May 10 17:53 Makefile.in
-rwxr-xr-x 1 brad brad 102 May 10 17:53 README
address@hidden hello]$ gm2 -g hello.mod
address@hidden hello]$ ls -l
total 148
-rwxrwxr-x 1 brad brad 128483 May 10 19:08 a.out
-rw-rw-r-- 1 brad brad 3817 May 10 19:08 hello_m2.cpp
-rw-r--r-- 1 brad brad 976 May 10 17:53 hello.mod
-rw-rw-r-- 1 brad brad 3308 May 10 19:08 hello.o
-rw-r--r-- 1 brad brad 1694 May 10 17:53 Makefile.in
-rwxr-xr-x 1 brad brad 102 May 10 17:53 README
address@hidden hello]$
Brad
On Sat, 2014-05-10 at 10:58 +0100, Gaius Mulley wrote:
> Charles Bradshaw <address@hidden> writes:
>
> Hi Charles,
>
> what happens if, after a make install, you:
>
> $ cd gcc-versionno/gcc/gm2/examples/hello
> $ gm2 -g -c hello.mod
> $ gm2 -g hello.mod
> $ ./a.out
>
> regards,
> Gaius
>
>
>
> > More info:
> >
> > I added a -B path to my gm2 .... hello.mod command, as follows, then I
> > get a different error:
> >
> > $ gm2 -g -I. -B /home/brad/opt/lib/gcc/i686-pc-linux-gnu/4.7.3/gm2
> > -fmakeall hello.mod
> >
> > gm2 -c -fmakeall0 -B -g -fonlylink -fobject-path=.
> > -ftarget-ar=/usr/bin/ar -ftarget-ranlib=/usr/bin/ranlib -fmakeall -I.
> > -I/home/brad/opt/lib/gcc/i686-pc-linux-gnu/4.7.3/gm2/pim hello.mod
> > gm2cc: error trying to exec 'cc1plus': execvp: No such file or directory
> >
> > A search for execvp produces:
> >
> > $ locate execvp
> > /home/brad/GM2/scratch-area/build-4.7.3/i686-pc-linux-gnu/libgcc/_gcov_execvp.dep
> > /home/brad/GM2/scratch-area/build-4.7.3/i686-pc-linux-gnu/libgcc/_gcov_execvp.o
> > /usr/lib/perl5/auto/POSIX/execvp.al
> >
> > I'm clutching at straws with:
> >
> > $ gm2 -print-search-dirs
> > install: /home/brad/opt/lib/gcc/i686-pc-linux-gnu/4.7.3/
> > programs:
> > =/home/brad/opt/lib/gcc/i686-pc-linux-gnu/4.7.3/i686-pc-linux-gnu/4.7.3/:/home/brad/opt/lib/gcc/i686-pc-linux-gnu/4.7.3/:/home/brad/opt/lib/gcc/i686-pc-linux-gnu/4.7.3/:/home/brad/opt/lib/gcc/i686-pc-linux-gnu/4.7.3/:/home/brad/opt/lib/gcc/i686-pc-linux-gnu/:/home/brad/opt/lib/gcc/i686-pc-linux-gnu/4.7.3/:/home/brad/opt/lib/gcc/i686-pc-linux-gnu/:/home/brad/opt/lib/gcc/i686-pc-linux-gnu/4.7.3/../../../../i686-pc-linux-gnu/bin/i686-pc-linux-gnu/4.7.3/:/home/brad/opt/lib/gcc/i686-pc-linux-gnu/4.7.3/../../../../i686-pc-linux-gnu/bin/
> > libraries:
> > =/home/brad/opt/lib/gcc/i686-pc-linux-gnu/4.7.3/i686-pc-linux-gnu/4.7.3/:/home/brad/opt/lib/gcc/i686-pc-linux-gnu/4.7.3/:/home/brad/opt/lib/gcc/i686-pc-linux-gnu/4.7.3/:/home/brad/opt/lib/gcc/i686-pc-linux-gnu/4.7.3/../../../../i686-pc-linux-gnu/lib/i686-pc-linux-gnu/4.7.3/:/home/brad/opt/lib/gcc/i686-pc-linux-gnu/4.7.3/../../../../i686-pc-linux-gnu/lib/:/home/brad/opt/lib/gcc/i686-pc-linux-gnu/4.7.3/../../../i686-pc-linux-gnu/4.7.3/:/home/brad/opt/lib/gcc/i686-pc-linux-gnu/4.7.3/../../../:/lib/i686-pc-linux-gnu/4.7.3/:/lib/:/usr/lib/i686-pc-linux-gnu/4.7.3/:/usr/lib/
> > Which produces some very funny looking output, several paths repeated!
> >
> >
> > Are these deep bugs or am I doing something wrong?