-   Linux - General (
-   -   I am getting an error as gcc: c-parse.c: No such file or directory (

pradheep2 06-06-2010 12:08 AM

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

paulsm4 06-06-2010 12:24 AM

Uh - this error has nothing to do with "upgrades".

You need to find "c-parse.c".

And then tell gcc where to find it ;)

knudfl 06-06-2010 04:20 AM

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"

paulsm4 06-06-2010 01:55 PM

knudfl -

Good call.

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.

Pradheep2 -

You CANNOT solve the problem by "upgrading" gcc.

You must FIND (or create!) "c-parse.c".

knudfl 06-07-2010 11:13 AM

Examples , "c-parse.c" : The gcc source code ..

1) gcc-3.3.3/gcc/c-parse.c c-parse.y
2) gcc-3.4.6 : the same as 1).
3) gcc-4.2.0/gcc/c-parser.c

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
Linux. AFAIK.
# 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 !

knudfl 06-12-2010 05:13 AM

.. 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 07:09 AM.