I am getting an error as gcc: c-parse.c: No such file or directory
I need clarification to the following error message of gcc in Fedora 13
gcc: c-parse.c: No such file or directory
Which gcc version has this file and does gcc-3.4 support the same. What gcc version should I use and how to upgrade the same in Fedora 13
Uh - this error has nothing to do with "upgrades".
You need to find "c-parse.c".
And then tell gcc where to find it ;)
Welcome to LQ.
"c-parse.c" : A parser file ? Bison, Yacc, xml-parser ?
Google .. "c-parse.c" ..
"It is supposed to be generated by bison from $SRCDIR/gcc"
But we want to make sure the OP doesn't get confused:
1. The problem is that "gcc" can't find the source file "c-parse.c".
2. I thought maybe it was in another directory.
You suggested that maybe it wasn't even created yet.
Either could be true.
3. But the OP thought that it was somehow part of "gcc", and that upgrading gcc might solve the problem.
You CANNOT solve the problem by "upgrading" gcc.
You must FIND (or create!) "c-parse.c".
Examples , "c-parse.c" : The gcc source code ..
1) gcc-3.3.3/gcc/c-parse.c c-parse.in c-parse.y
2) gcc-3.4.6 : the same as 1).
Are you trying to compile an old gcc ?
No bison or yacc ? Or using a wrong version of gcc,
may be. The first example gcc-3.3.3 requires e.g.
gcc-3.3.6 to compile. No go with gcc-3.4.6 .
And gcc-3.2.x : Not possible to compile on a modern
# yum install gcc-c++ compat-gcc-34-c++
.. will provide the gcc-4.4.4 and gcc-3.4.6 compilers in Fedora 13.
All versions can be installed at the same time !
.. And furthermore, packages with the most other compat gcc / g++
are available too for Fedora 13 ...
These are, what I have installed in Fedora 10 - 11 - 12 - 13 :
gcc33 / gcc33-c++ : version 3.3.3
and gcc41 / gcc41-c++ : 4.1.x ( Both versions are Suse compat )
gcc3.3 / gcc3.3-c++ : 3.3.6 ( PCLinuxOS compat )
So there is usually no need for compiling a new gcc.
|All times are GMT -5. The time now is 09:42 PM.|