This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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 Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]