Re: ./genmodes: syntax error at line 1: `(' unexpected => whilebuilding gcc3.4.2

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

 



Lookinginto the /gcc/Makefile this is the place the error occurs:

s-modes: genmodes$(build_exeext) $(srcdir)/move-if-change
        $(RUN_GEN) ./genmodes$(build_exeext) -h > tmp-modes.h
        $(SHELL) $(srcdir)/move-if-change tmp-modes.h insn-modes.h
        $(RUN_GEN) ./genmodes$(build_exeext) -m > tmp-min-modes.c
        $(SHELL) $(srcdir)/move-if-change tmp-min-modes.c min-insn-modes.c
        $(RUN_GEN) ./genmodes$(build_exeext) > tmp-modes.c
        $(SHELL) $(srcdir)/move-if-change tmp-modes.c insn-modes.c
        $(STAMP) s-modes

RUN_GEN is set by --enable-checking=valgrind. (WHAT IS VALGRIND???)

RUN_GEN =

This is where the errro occurs using option m for the genmodes. I executed 
this command manually and get the error : ksh: g++: cannot execute

There is another copy of genmodes in the objdir and it works fine for -m 
option.


warm regards

Saurabh




Saurabh Bhatnagar/BLR/HTL
05/06/2005 09:17 AM

To
Nix <nix@xxxxxxxxxxxxx>
cc
"gcc-help@xxxxxxxxxxx" <gcc-help@xxxxxxxxxxx>
Subject
Re: ./genmodes: syntax error at line 1: `(' unexpected => whilebuilding 
gcc3.4.2





Hi Nix

I am able to build GCC 3.2.3 by creating an objdir in the GCC-3.2.3 dir.
Running ../configure .
I was able to build GCCv3.4.2 earlier on another sun machine with SUN5.8 
but different hardware.
Thanks for your suggestion, I will try it when I get my next break.

warm regards
Saurabh




Nix <nix@xxxxxxxxxxxxx> 
05/05/2005 06:21 PM

To
Saurabh.Bhatnagar@xxxxxxxxxxxxxxxx
cc
"gcc-help@xxxxxxxxxxx" <gcc-help@xxxxxxxxxxx>
Subject
Re: ./genmodes: syntax error at line 1: `(' unexpected => whilebuilding 
gcc3.4.2






On 5 May 2005, Saurabh Bhatnagar uttered the following:
> ./genmodes: syntax error at line 1: `(' unexpected
> gmake[2]: *** [s-modes] Error 2
> gmake[2]: Leaving directory `/user/sbhatnag/gcc-3.4.2/objdir/gcc'
> gmake[1]: *** [stage2_build] Error 2
> gmake[1]: Leaving directory `/user/sbhatnag/gcc-3.4.2/objdir/gcc'
> gmake: *** [bootstrap] Error 2

Please read the installation guide. You cannot build GCC in an
objdir that is a subdirectory of the GCC source tree: you must
build it in a parallel directory (e.g. /user/sbhatnag/gcc-build,
running configure via a relative path, as ../gcc-3.4.2/configure).

This has been true pretty much forever (certainly since gcc-2.7.2).

(I don't know if this is causing your problem, but I've seen *exactly*
that error when generating with an objdir as a subdirectory of the
GCC source tree before.)

-- 
`End users are just test loads for verifying that the system works, kind 
of
 like resistors in an electrical circuit.' - Kaz Kylheku in c.o.l.d.s




[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux